{"version":3,"file":"additionalInfoService.js","sourceRoot":"","sources":["../../../../src/modules/services/tariff/additionalInfoService.ts"],"names":[],"mappings":"AAAA,IAAO,QAAQ,CAqCd;AArCD,WAAO,QAAQ;IACX,IAAc,MAAM,CAkCnB;IAlCD,WAAc,MAAM;QAChB;YAGI,+BAAoB,SAAuC,EAAU,GAA4C;gBAA7F,cAAS,GAAT,SAAS,CAA8B;gBAAU,QAAG,GAAH,GAAG,CAAyC;YACjH,CAAC;YAED,iEAAiE;YACjE,+CAAe,GAAf,UAAgB,SAAiB,EAAE,UAAiB,EAAE,iBAA0B;gBAE5E,OAAO,IAAI,CAAC,SAAS,CAA4C,IAAI,CAAC,GAAG,CAAC,OAAO,GAAG,+BAA+B,EAAE;oBACjH,SAAS,EAAE,SAAS;oBACpB,UAAU,EAAE,UAAU;oBACtB,iBAAiB,EAAE,iBAAiB;iBACvC,CAAC,CAAC;YACP,CAAC;YAED,iEAAiC,GAAjC,UAAkC,gBAAwB;gBAEtD,OAAO,IAAI,CAAC,SAAS,CAA4C,IAAI,CAAC,GAAG,CAAC,OAAO,GAAG,kDAAkD,EAAE;oBACpI,gBAAgB,EAAE,gBAAgB;iBACrC,CAAC,CAAC;YACP,CAAC;YAED,yDAAyB,GAAzB,UAA0B,gBAAwB;gBAC9C,OAAO,IAAI,CAAC,SAAS,CAA6C,IAAI,CAAC,GAAG,CAAC,OAAO,GAAG,0CAA0C,EAAE;oBAC7H,gBAAgB,EAAE,gBAAgB;iBACrC,EAAE;oBACK,KAAK,EAAE;wBACH,MAAM,EAAE,MAAM;qBACjB;iBACJ,CAAC,CAAC;YACX,CAAC;YA9BM,6BAAO,GAAG,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;YA+B1C,4BAAC;SAAA,AAhCD,IAgCC;QAhCY,4BAAqB,wBAgCjC,CAAA;IACL,CAAC,EAlCa,MAAM,GAAN,eAAM,KAAN,eAAM,QAkCnB;IACD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,uBAAuB,EAAE,QAAQ,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;AAClG,CAAC,EArCM,QAAQ,KAAR,QAAQ,QAqCd","sourcesContent":["module services {\r\n export module tariff {\r\n export class additionalInfoService implements interfaces.tariff.IAdditionalInfoService {\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(countryId: number, tariffCode:string, declarationTypeId?: number): ng.resource.IResourceClass {\r\n\r\n return this.$resource(this.ENV.DSP_URL + \"AdditionalInfo/GetForDropdown\", {\r\n countryId: countryId,\r\n tariffCode: tariffCode,\r\n declarationTypeId: declarationTypeId\r\n });\r\n }\r\n\r\n getAdditionalInfoAnswerOptionList(additionalInfoId: number): ng.resource.IResourceClass {\r\n\r\n return this.$resource(this.ENV.DSP_URL + \"AdditionalInfo/GetAdditionalInfoAnswerOptionList\", {\r\n additionalInfoId: additionalInfoId\r\n });\r\n }\r\n\r\n deleteAdditionalInfoValue(additionalInfoId: number): ng.resource.IResourceClass {\r\n return this.$resource(this.ENV.DSP_URL + \"AdditionalInfo/DeleteAdditionalInfoValue\", {\r\n additionalInfoId: additionalInfoId\r\n }, {\r\n query: {\r\n method: 'POST'\r\n }\r\n });\r\n }\r\n }\r\n }\r\n angular.module(\"app\").service(\"additionalInfoService\", services.tariff.additionalInfoService);\r\n}"]}