text: angular.module("angular-odata-service",[]).provider("odata",function(){var r={routePrefix:"",namespace:"",setRoutePrefix:function(n){n||(n=""),r.routePrefix=n},setNamespace:function(n){n||(n=""),r.namespace=n},$get:["$http",function(n){var t=function(r,n){if(!n)return r;var t={};for(var e in n)if("custom"===e)for(var u in n.custom){var a=n.custom[u];a&&""!=a&&(angular.isObject(a)?t[u]=JSON.stringify(a):t[u]=a)}else{var a=n[e];a&&""!=a&&(t["$"+e.toLowerCase()]=a)}return r?angular.isDefined(r.params)?angular.extend(r.params,t):r.params=t:r={params:t},r},e=function(n,t,e){var u=[];if(r.routePrefix&&""!=r.routePrefix&&u.push(r.routePrefix),n){var a="",i=null;if(angular.isString(n)?a=n:(a=n.entity,i=n.navigationProperty),t)if(angular.isString(t))u.push(a+"('"+t+"')");else if(angular.isNumber(t))u.push(a+"("+t+")");else{var o=[];for(var s in t)angular.isNumber(t[s])?o.push(s+"="+t[s]):angular.isString(t[s])&&o.push(s+"='"+t[s]+"'");u.push(a+"("+o.join(",")+")")}else u.push(a);i&&u.push(i)}return e&&u.push(r.namespace+"."+e),u.join("/")},u={get:function(r,u,a){var i=e(r),o=t(a,u);return n.get(i,o)},getById:function(r,u,a,i){var o=e(r,u),s=t(i,a);return n.get(o,s)},getCount:function(r,u,a){var i=e(r)+"/$count",o=t(a,u);return n.get(i,o).success(function(r){return Number(r)})},patch:function(r,t,u,a){var i=e(r,t);return n.patch(i,u,a)},post:function(r,t,u,a){var i=e(r,t);return n.post(i,u,a)},put:function(r,t,u,a){var i=e(r,t);return n.put(i,u,a)},"delete":function(r,t,u){var a=e(r,t);return n["delete"](a,u)},action:function(r,t,u,a,i){var o=e(u,a,r);return n.post(o,t,i)},"function":function(r,t,u,a){var i=e(t,u,r);return n.get(i,a)}};return u}]};return r});
  //# sourceMappingURL=angular-odata-service.min.js.map
  