"use strict"; (function () { 'use strict'; angular.module('srdModule') .service('srdService', ['$resource', function ($resource) { var srdResource = $resource('', {}, { GetRequestOnBehalfOf: { url: '/smartit/rest/request/requestobo/:customerId/:contactId', method: 'GET', isArray: true } }); this.getRequestOnBehalfOf = function (customerId, contactId) { var params = { customerId: customerId, contactId: contactId }; return srdResource.GetRequestOnBehalfOf(params, {}).$promise; }; } ]); }());