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