import{a as m}from"./chunk-KXX3UDJ3.js";import{f as a,j as n}from"./chunk-GQAU5ACB.js";import{S as p,la as r,pa as o}from"./chunk-ISMRT7VU.js";var l=(()=>{class i{constructor(t){this._http=t}getTemplate(t){let e=new a().set("companyId",t);return this._http.get("/api/ticket-template",{params:e})}updateTemplate(t,e){let c=new a().set("companyId",t);return this._http.put("/api/ticket-template",e,{params:c})}uploadLogo(t,e){let c=new a().set("companyId",t),s=new FormData;return s.append("logo",e),this._http.post("/api/ticket-template/logo",s,{params:c})}deleteLogo(t){let e=new a().set("companyId",t);return this._http.delete("/api/ticket-template/logo",{params:e})}sync(){return this._http.post("/api/ticket-template/sync",{},{headers:m})}static{this.\u0275fac=function(e){return new(e||i)(o(n))}}static{this.\u0275prov=r({token:i,factory:i.\u0275fac})}}return i})();var g=(()=>{class i{constructor(t){this._ticketTemplatesServiceApi=t}getTemplate(t){return this._ticketTemplatesServiceApi.getTemplate(t).pipe(p(1))}updateTemplate(t,e){return this._ticketTemplatesServiceApi.updateTemplate(t,e).pipe(p(1))}uploadLogo(t,e){return this._ticketTemplatesServiceApi.uploadLogo(t,e).pipe(p(1))}deleteLogo(t){return this._ticketTemplatesServiceApi.deleteLogo(t).pipe(p(1))}sync(){return this._ticketTemplatesServiceApi.sync().pipe(p(1))}static{this.\u0275fac=function(e){return new(e||i)(o(l))}}static{this.\u0275prov=r({token:i,factory:i.\u0275fac})}}return i})();export{l as a,g as b};
//# sourceMappingURL=chunk-FIX5MGRP.js.map
