{"version":3,"file":"tariffPreferenceCodeService.js","sourceRoot":"","sources":["../../../../src/modules/services/tariff/tariffPreferenceCodeService.ts"],"names":[],"mappings":"AAAA,IAAO,QAAQ,CAuBd;AAvBD,WAAO,QAAQ;IACX,IAAc,MAAM,CAoBnB;IApBD,WAAc,MAAM;QAChB;YAGI,qCAAoB,SAAuC,EAAU,GAA4C;gBAA7F,cAAS,GAAT,SAAS,CAA8B;gBAAU,QAAG,GAAH,GAAG,CAAyC;YACjH,CAAC;YAED,iEAAiE;YACjE,qDAAe,GAAf;gBAEI,OAAO,IAAI,CAAC,SAAS,CAA4C,IAAI,CAAC,GAAG,CAAC,OAAO,GAAG,sCAAsC,EAAE;oBACxH,eAAe,EAAE,kBAAkB;iBACtC,EAAE;oBACK,KAAK,EAAE;wBACH,MAAM,EAAE,KAAK;wBACb,OAAO,EAAE,IAAI;qBAChB;iBACJ,CAAC,CAAC;YACX,CAAC;YAhBM,mCAAO,GAAG,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;YAiB1C,kCAAC;SAAA,AAlBD,IAkBC;QAlBY,kCAA2B,8BAkBvC,CAAA;IACL,CAAC,EApBa,MAAM,GAAN,eAAM,KAAN,eAAM,QAoBnB;IACD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,6BAA6B,EAAE,QAAQ,CAAC,MAAM,CAAC,2BAA2B,CAAC,CAAC;AAC9G,CAAC,EAvBM,QAAQ,KAAR,QAAQ,QAuBd","sourcesContent":["module services {\r\n export module tariff {\r\n export class tariffPreferenceCodeService implements interfaces.tariff.ITariffPreferenceCodeService {\r\n static $inject = [\"$resource\", \"ENV\"];\r\n\r\n constructor(private $resource: ng.resource.IResourceService, private ENV: interfaces.applicationcore.serverConfig) {\r\n }\r\n\r\n //Gets list of all TariffCountry for a dropdown/autocomplete list\r\n getDropdownList(): ng.resource.IResourceClass {\r\n\r\n return this.$resource(this.ENV.DSP_URL + \"TariffPreferenceCode/GetDropdownList\", {\r\n tariffCountryId: '@tariffCountryId'\r\n }, {\r\n query: {\r\n method: 'GET',\r\n isArray: true\r\n }\r\n });\r\n }\r\n }\r\n }\r\n angular.module(\"app\").service(\"tariffPreferenceCodeService\", services.tariff.tariffPreferenceCodeService);\r\n}"]}