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-EADZOFDB.js
import{a as f}from"./chunk-NR52ONHB.js";import{a}from"./chunk-J5MNQ3LA.js";import{A as n,Ab as d,h as o,x as m,yb as l}from"./chunk-MDSVL5BJ.js";var s=class i{static fromApiToDomain(e){return{data:Array.isArray(e.data)?e.data.map(c=>i.dataMapper(c)):i.dataMapper(e.data),message:e.message,summary:e.summary,totalRecords:e.totalRecords,rows:e.rows}}static dataMapper(e){return{_id:e._id,tipoIdentificacion:e.tipoIdentificacion,identificacion:e.identificacion,nombres:e.nombres,apellidos:e.apellidos,email:e.email,roles:e.roles,createdAt:e.createdAt}}static fromDomainToApi(e){return{_id:e._id,tipoIdentificacion:e.tipoIdentificacion,identificacion:e.identificacion,nombres:e.nombres,apellidos:e.apellidos,roles:e.roles,email:e.email,createdAt:e.createdAt}}};var p=class i{static fromApiToDomain(e){return{data:Array.isArray(e.data)?e.data.map(c=>i.dataMapper(c)):i.dataMapper(e.data),message:e.message,summary:e.summary,totalRecords:e.totalRecords,rows:e.rows}}static dataMapper(e){return{label:e.label,items:e.items}}static fromDomainToApi(e){return{label:e.label,items:e.items}}};var h=(()=>{let e=class e{constructor(r){this.http=r}addUser(r){let t=s.fromDomainToApi(r);return this.http.post(`${a.apiDevManagement}users`,t).pipe(o(s.fromApiToDomain))}getUsers(r,t){let u=new l().set("page",r.toString()).set("pageSize",t.toString());return this.http.get(`${a.apiDevManagement}users`,{params:u}).pipe(o(s.fromApiToDomain))}getUser(r){return this.http.get(`${a.apiDevManagement}users/${r}`).pipe(o(s.fromApiToDomain))}updateUser(r,t){let u=s.fromDomainToApi(r);return this.http.put(`${a.apiDevManagement}users/${t}`,u).pipe(o(s.fromApiToDomain))}deleteOneUser(r){return this.http.delete(`${a.apiDevManagement}users/${r}`).pipe(o(s.fromApiToDomain))}deleteMultiUsers(r){return this.http.post(`${a.apiDevManagement}users/eliminar-varios`,r).pipe(o(s.fromApiToDomain))}menu(r){return this.http.get(`${a.apiDevManagement}users/menu/${r}`).pipe(o(p.fromApiToDomain))}validarPermiso(r,t){return this.http.get(`${a.apiDevManagement}users/validar-permiso/${r}/${t}`)}};e.\u0275fac=function(t){return new(t||e)(n(d))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var I=(()=>{let e=class e{constructor(r,t){this.userService=r,this.roleService=t}addUser(r){return this.userService.addUser(r)}getUsers(r,t){return this.userService.getUsers(r,t)}getUser(r){return this.userService.getUser(r)}updateUser(r,t){return this.userService.updateUser(r,t)}deleteOneUser(r){return this.userService.deleteOneUser(r)}deleteMultiUsers(r){return this.userService.deleteMultiUsers(r)}findSelectRoles(){return this.roleService.findSelectRoles()}menu(r){return this.userService.menu(r)}validarPermiso(r,t){return this.userService.validarPermiso(r,t)}};e.\u0275fac=function(t){return new(t||e)(n(h),n(f))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();export{I as a};