import{E as a,Pd as d,Qf as x,Sc as m,Uc as h,Wc as u,Xc as v,ad as S,ea as l,rb as f}from"./chunk-SKPDQO4E.js";var c=class extends v{http;sessionService;configurationService;interactionService;constructor(e,t,i,r){super(e,t,i,r),this.http=e,this.sessionService=t,this.configurationService=i,this.interactionService=r}list(e,t=!0){return this.requestPost(`/${this.sessionService.currentOrganizationId}/credentials/search`,e,"ManagementCredentialListResponse",h.User,u.User,t)}listAsExcel(e){return this.requestPostFileResponse(`/${this.sessionService.currentOrganizationId}/credentials/search/excel`,e,h.User)}};var E=function(o,e,t,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var p=o.length-1;p>=0;p--)(n=o[p])&&(s=(r<3?n(s):r>3?n(e,t,s):n(e,t))||s);return r>3&&s&&Object.defineProperty(e,t,s),s},g=class extends m{http;configurationService;interactionService;sessionService;api;constructor(e,t,i,r){super(i,r),this.http=e,this.configurationService=t,this.interactionService=i,this.sessionService=r,this.api=new c(this.http,this.sessionService,this.configurationService,this.interactionService)}list(e,t=!0){return this.api.list(e,t).pipe(a(i=>this.handleError(i,[])))}listAsExcel(e){return this.api.listAsExcel(e).pipe(a(t=>this.handleError(t,[])))}static ctorParameters=()=>[{type:f},{type:S},{type:x},{type:d}]};g=E([l({providedIn:"root"})],g);export{g as a};
