import{Bc as a,Dc as i,ba as n,ga as s,wd as p}from"./chunk-QBQIXSUA.js";var c=class o{constructor(r){this.http=r}url=p.urlApi;login_operators(r){let t=`${this.url}/auth/login/operators`;return this.http.post(`${t}`,r)}reset_password(r){let t=`${this.url}/auth/reset/password`,e=new a({"x-type":"OPERATOR"});return this.http.post(`${t}`,r,{headers:e})}decodeJwtPayload(r){try{let t=r.split(".");if(t.length!==3)throw new Error("Invalid JWT token");let e=t[1],l=atob(e);return JSON.parse(l)}catch(t){return console.error("Error decoding JWT token:",t),null}}static \u0275fac=function(t){return new(t||o)(s(i))};static \u0275prov=n({token:o,factory:o.\u0275fac,providedIn:"root"})};export{c as a};
