HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux ip-172-31-4-197 6.8.0-1036-aws #38~22.04.1-Ubuntu SMP Fri Aug 22 15:44:33 UTC 2025 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/web.enelar.com.co/dist/browser/chunk-XUHCJNFY.js
import{a as o}from"./chunk-J5MNQ3LA.js";import{A as m,Ab as u,h as s,x as c,yb as a}from"./chunk-MDSVL5BJ.js";var t=class p{static fromApiToDomain(e){return{data:Array.isArray(e.data)?e.data.map(f=>p.dataMapper(f)):p.dataMapper(e.data),message:e.message,summary:e.summary,totalRecords:e.totalRecords,rows:e.rows}}static dataMapper(e){return{_id:e._id,municipio:e.municipio,inicio:e.inicio,finalizacion:e.finalizacion,duracion:e.duracion,sectoresAfectados:e.sectoresAfectados,circuito:e.circuito,afectacionUsuarios:e.afectacionUsuarios,descripcion:e.descripcion,compartido:e.compartido,createdAt:e.createdAt}}static fromDomainToApi(e){return{_id:e._id,municipio:e.municipio,inicio:e.inicio,finalizacion:e.finalizacion,duracion:e.duracion,sectoresAfectados:e.sectoresAfectados,circuito:e.circuito,afectacionUsuarios:e.afectacionUsuarios,descripcion:e.descripcion,compartido:e.compartido,createdAt:e.createdAt}}};var $=(()=>{let e=class e{constructor(i){this.http=i}addDesconexion(i){let r=t.fromDomainToApi(i);return this.http.post(`${o.apiDevWeb}desconexiones`,r).pipe(s(t.fromApiToDomain))}getDesconexiones(i,r,n=!1){let d=new a().set("page",i.toString()).set("pageSize",r.toString());return this.http.get(`${o.apiDevWeb}${n?"public/":""}desconexiones`,{params:d}).pipe(s(t.fromApiToDomain))}getDesconexion(i){return this.http.get(`${o.apiDevWeb}desconexiones/${i}`).pipe(s(t.fromApiToDomain))}updateDesconexion(i,r){let n=t.fromDomainToApi(i);return this.http.put(`${o.apiDevWeb}desconexiones/${r}`,n).pipe(s(t.fromApiToDomain))}deleteOneDesconexion(i){return this.http.delete(`${o.apiDevWeb}desconexiones/${i}`).pipe(s(t.fromApiToDomain))}deleteMultiDesconexiones(i){return this.http.post(`${o.apiDevWeb}desconexiones/eliminar-varios`,i).pipe(s(t.fromApiToDomain))}addBoletin(i){return this.http.post(`${o.apiDevWeb}desconexiones/enviar-boletin`,i).pipe(s(t.fromApiToDomain))}getBoletines(i,r){let n=new a().set("page",i.toString()).set("pageSize",r.toString());return this.http.get(`${o.apiDevWeb}boletines`,{params:n})}generarPdf(i){return this.http.post(`${o.apiDevWeb}boletines/generar-pdf`,i,{responseType:"blob",observe:"response"})}enviarInforme(i){return this.http.get(`${o.apiDevWeb}boletines/enviar-boletin/${i}`)}};e.\u0275fac=function(r){return new(r||e)(m(u))},e.\u0275prov=c({token:e,factory:e.\u0275fac,providedIn:"root"});let p=e;return p})();export{$ as a};