import{b as c}from"./chunk-7R64RXQ7.js";import{h as l}from"./chunk-HQJI5M5I.js";import{a as e}from"./chunk-PTMJTNEU.js";import{$ as s,ea as a,w as i}from"./chunk-PCDQIHDN.js";var k=(()=>{let n=class n{constructor(){this.http=a(l)}getAll(t){return this.http.post(`${e.endpoints.api}/eventlog/page`,t)}count(t,o=!1){return this.http.post(`${e.endpoints.api}/eventlog/count${o?"?unread=true":""}`,t)}get(t){return this.http.get(`${e.endpoints.api}/eventlog/${t}`)}delete(t){return this.http.delete(`${e.endpoints.api}/eventlog/${t}`)}deleteBulk(t){let o=c(t,50),r=[];return o.forEach(h=>{r.push(this.http.delete(`${e.endpoints.api}/eventlog/bulk/?id=${h.join("&id=")}`))}),i(r)}setReadAck(t,o=!0){let r={ids:t,readAcknowledge:o};return this.http.post(`${e.endpoints.api}/eventlog/readack`,r)}clearEventlog(){return this.http.delete(`${e.endpoints.api}/eventlog/clear`)}export(t){return this.http.post(`${e.endpoints.api}/eventlog/export`,t,{responseType:"blob",observe:"response"})}};n.\u0275fac=function(o){return new(o||n)},n.\u0275prov=s({token:n,factory:n.\u0275fac});let p=n;return p})();export{k as a};
