import{b as a}from"./chunk-R5GBW5HQ.js";import{S as r,md as p,pd as l,va as n,ya as s}from"./chunk-3NIPUOIR.js";var f=(()=>{class i{constructor(t,e){this.httpClient=t,this.commonHttpErrorService=e}getFileRequests(t){let e="file-request",o=new p().set("fields",t.fields).set("orderBy",t.orderBy).set("pageSize",t.pageSize.toString()).set("skip",t.skip.toString()).set("searchQuery",t.searchQuery).set("id",t.id.toString()).set("email","").set("subject",t.subject.toString());return this.httpClient.get(e,{params:o,observe:"response"}).pipe(r(this.commonHttpErrorService.handleError))}verifyPassword(t,e){let o=`file-request/${t}/verify-password`;return this.httpClient.post(o,{},{params:{password:e}}).pipe(r(this.commonHttpErrorService.handleError))}getFileRequestData(t){let e=`file-request/${t}/data`;return this.httpClient.get(e).pipe(r(this.commonHttpErrorService.handleError))}getFileRequest(t){let e=`file-request/${t}`;return this.httpClient.get(e).pipe(r(this.commonHttpErrorService.handleError))}addFileRequest(t){return this.httpClient.post("file-request",t).pipe(r(this.commonHttpErrorService.handleError))}updateFileRequest(t){let e=`file-request/${t.id}`;return this.httpClient.put(e,t).pipe(r(this.commonHttpErrorService.handleError))}deleteFileRequest(t){let e=`file-request/${t}`;return this.httpClient.delete(e).pipe(r(this.commonHttpErrorService.handleError))}static{this.\u0275fac=function(e){return new(e||i)(s(l),s(a))}}static{this.\u0275prov=n({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();export{f as a};
