import{a as e}from"./chunk-7L7QKXDE.js";import{a as n}from"./chunk-VUFRXBL5.js";import{j as l}from"./chunk-72CHOCZD.js";import{S as i,X as c}from"./chunk-56X5LYJH.js";var p=class o{constructor(t){this.http=t}getListOfAccounts(){return this.http.get(e.accounting.listOfAccounts)}getFilteredListOfAccounts(t){return this.http.request("GET",e.accounting.listOfAccounts,{body:{filters:t}})}getListOfArchieveAccounts(){return this.http.get(e.accounting.listOfArchievedAccounts)}getAccountDetails(t){return this.http.get(`${e.accounting.AccountById}${t}`)}deleteAccount(t){return this.http.delete(`${e.accounting.AccountById}${t}`)}archieveAccount(t){return this.http.patch(`${e.accounting.AccountById}${t}/archive`,null)}restoreAccount(t){return this.http.patch(`${e.accounting.AccountById}${t}/restore`,null)}getAllCurrencies(){return this.http.get(e.currency.getAllCurrencies)}getAllFacilities(){return this.http.get(e.facility.getAllFacilities)}getBranchByFacility(t){return this.http.get(`${e.branch.getBranchByFacility}/${t}`)}getCurrencyByFacility(t){return this.http.get(`${e.facility.getAllFacilities}/${t}`)}exportFile(t,r,s=!1){let a={filters:r,export_type:t},u=s?e.accounting.exportFileArchieved:e.accounting.exportFile;return this.http.post(u,a,{responseType:"blob"})}downloadImportTemplate(t){let r=n.apiBaseUrl+"journals/export-template";return this.http.get(r,{responseType:"blob"})}uploadImportAccounts(t,r){let s=n.apiBaseUrl+"journals/import";return this.http.post(s,t)}static \u0275fac=function(r){return new(r||o)(c(l))};static \u0275prov=i({token:o,factory:o.\u0275fac,providedIn:"root"})};export{p as a};
