import{b as h}from"./chunk-7R64RXQ7.js";import{a as r,h as d}from"./chunk-HQJI5M5I.js";import{a as s}from"./chunk-PTMJTNEU.js";import{$ as a,ea as c,w as p}from"./chunk-PCDQIHDN.js";var g=(()=>{let e=class e{constructor(){this.http=c(d)}getAll(){return this.http.get(`${s.endpoints.api}/scheduledtask`)}get(t){return this.http.get(`${s.endpoints.api}/scheduledtask/${t}`)}create(t){let n=new r().set("content-type","application/json");return this.http.post(`${s.endpoints.api}/scheduledtask`,t,{headers:n})}update(t){let n=new r().set("content-type","application/json");return this.http.put(`${s.endpoints.api}/scheduledtask/${t.id}`,t,{headers:n})}delete(t){return this.http.delete(`${s.endpoints.api}/scheduledtask/${t}`)}deleteBulk(t){let n=h(t,50),o=[];return n.forEach(u=>{o.push(this.http.delete(`${s.endpoints.api}/scheduledtask/bulk/?id=${u.join("&id=")}`))}),p(o)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=a({token:e,factory:e.\u0275fac});let i=e;return i})();export{g as a};
