import{b as n}from"./chunk-R5GBW5HQ.js";import{S as e,pd as m,va as p,ya as i}from"./chunk-3NIPUOIR.js";var h=(()=>{class o{constructor(t,r){this.httpClient=t,this.commonHttpErrorService=r}getAIPromptTemplates(){return this.httpClient.get("aIPromptTemplate").pipe(e(this.commonHttpErrorService.handleError))}getAIPromptTemplate(t){let r=`aIPromptTemplate/${t}`;return this.httpClient.get(r).pipe(e(this.commonHttpErrorService.handleError))}addAIPromptTemplate(t){return this.httpClient.post("aIPromptTemplate",t).pipe(e(this.commonHttpErrorService.handleError))}updateAIPromptTemplate(t){let r=`aIPromptTemplate/${t.id}`;return this.httpClient.put(r,t).pipe(e(this.commonHttpErrorService.handleError))}deleteAIPromptTemplate(t){let r=`aIPromptTemplate/${t}`;return this.httpClient.delete(r).pipe(e(this.commonHttpErrorService.handleError))}static{this.\u0275fac=function(r){return new(r||o)(i(m),i(n))}}static{this.\u0275prov=p({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();export{h as a};
