visorus-erp-core 10.1.2 → 11.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/bundles/visorus-erp-core.umd.js +4928 -5330
  2. package/bundles/visorus-erp-core.umd.js.map +1 -1
  3. package/bundles/visorus-erp-core.umd.min.js +1 -1
  4. package/bundles/visorus-erp-core.umd.min.js.map +1 -1
  5. package/esm2015/lib/app.module.js +4 -3
  6. package/esm2015/lib/components/acreedor/select/select-acreedor.component.js +2 -2
  7. package/esm2015/lib/components/acreedor/services/acreedor.service.js +11 -25
  8. package/esm2015/lib/components/acreedor/services/acreedorCuentaContable.js +13 -11
  9. package/esm2015/lib/components/agente/models/Agente.js +1 -1
  10. package/esm2015/lib/components/agente/services/agente.service.js +17 -25
  11. package/esm2015/lib/components/almacen/models/Almacen.js +1 -1
  12. package/esm2015/lib/components/almacen/services/almacen.service.js +13 -26
  13. package/esm2015/lib/components/banco/models/Banco.js +1 -1
  14. package/esm2015/lib/components/banco/services/banco.service.js +10 -25
  15. package/esm2015/lib/components/caja/session-create/session-create.component.js +2 -2
  16. package/esm2015/lib/components/caja/sessionCaja.service.js +11 -25
  17. package/esm2015/lib/components/catalogoTipo/models/CatalogoTipo.js +1 -1
  18. package/esm2015/lib/components/catalogoTipo/services/catalogoTipo.service.js +10 -25
  19. package/esm2015/lib/components/clasificadorTipo/models/ClasificadorTipo.js +1 -1
  20. package/esm2015/lib/components/clasificadorTipo/services/clasificadorTipo.service.js +10 -25
  21. package/esm2015/lib/components/claveAumentoDisminucion/services/clave-aumento-disminucion.service.js +10 -25
  22. package/esm2015/lib/components/claveMovimiento/models/ClaveMovimiento.js +1 -1
  23. package/esm2015/lib/components/claveMovimiento/services/claveMovimiento.service.js +10 -25
  24. package/esm2015/lib/components/cliente/models/Cliente.js +1 -1
  25. package/esm2015/lib/components/cliente/models/ClienteCuentaBanco.js +1 -1
  26. package/esm2015/lib/components/cliente/models/ClienteFlete.js +1 -1
  27. package/esm2015/lib/components/cliente/select/select-cliente.component.js +2 -2
  28. package/esm2015/lib/components/cliente/services/cliente.service.js +11 -26
  29. package/esm2015/lib/components/cliente/services/clienteCuentaBanco.service.js +12 -26
  30. package/esm2015/lib/components/cliente/services/clienteFlete.service.js +12 -26
  31. package/esm2015/lib/components/contacto/models/DatoContacto.js +1 -1
  32. package/esm2015/lib/components/contacto/services/datoContacto.service.js +10 -25
  33. package/esm2015/lib/components/dato-direccion/models/DatoDireccion.js +1 -1
  34. package/esm2015/lib/components/dato-direccion/services/datoDireccion.service.js +10 -25
  35. package/esm2015/lib/components/departamento/models/Departamento.js +1 -1
  36. package/esm2015/lib/components/departamento/services/departamento.service.js +10 -25
  37. package/esm2015/lib/components/empresa/models/ConfiguracionEmpresaAdministrativa.js +1 -1
  38. package/esm2015/lib/components/empresa/models/Empresa.js +1 -1
  39. package/esm2015/lib/components/empresa/services/empresa.service.js +13 -26
  40. package/esm2015/lib/components/error404/error404.component.js +2 -2
  41. package/esm2015/lib/components/flete/models/Flete.js +1 -1
  42. package/esm2015/lib/components/flete/services/flete.service.js +11 -25
  43. package/esm2015/lib/components/formaPago/models/FormaPago.js +1 -1
  44. package/esm2015/lib/components/formaPago/services/FormaPago.service.js +10 -25
  45. package/esm2015/lib/components/loading/loading.component.js +3 -3
  46. package/esm2015/lib/components/loading/loading.service.js +2 -2
  47. package/esm2015/lib/components/loading-screen/loading-screen.component.js +3 -3
  48. package/esm2015/lib/components/loading-screen/loading-screen.service.js +2 -2
  49. package/esm2015/lib/components/login-modal/login-modal.component.js +3 -3
  50. package/esm2015/lib/components/login-modal/login-modal.service.js +2 -2
  51. package/esm2015/lib/components/moneda/models/Moneda.js +1 -1
  52. package/esm2015/lib/components/moneda/services/moneda.service.js +11 -25
  53. package/esm2015/lib/components/pdfModal/pdf-modal.component.js +2 -2
  54. package/esm2015/lib/components/pdfModal/pdf-modal.service.js +2 -2
  55. package/esm2015/lib/components/persona-fisica/models/EstadoCivil.js +1 -1
  56. package/esm2015/lib/components/persona-fisica/models/Genero.js +1 -1
  57. package/esm2015/lib/components/persona-fisica/models/Persona.js +1 -1
  58. package/esm2015/lib/components/persona-fisica/models/PersonaFisica.js +1 -1
  59. package/esm2015/lib/components/persona-fisica/services/personaFisica.service.js +13 -12
  60. package/esm2015/lib/components/proveedor/models/Proveedor.js +1 -1
  61. package/esm2015/lib/components/proveedor/models/ProveedorCuentaBanco.js +1 -1
  62. package/esm2015/lib/components/proveedor/models/ProveedorFlete.js +1 -1
  63. package/esm2015/lib/components/proveedor/select/select-proveedor.component.js +2 -2
  64. package/esm2015/lib/components/proveedor/services/proveedor.service.js +11 -25
  65. package/esm2015/lib/components/proveedor/services/proveedorCuentaBanco.service.js +12 -26
  66. package/esm2015/lib/components/proveedor/services/proveedorFlete.service.js +11 -22
  67. package/esm2015/lib/components/seleccion-articulo-informacion/seleccion-articulo-informacion.component.js +2 -2
  68. package/esm2015/lib/components/seleccion-articulo-informacion/services/articulo-informacion.service.js +12 -26
  69. package/esm2015/lib/components/selecciona-articulo/selecciona-articulo.component.js +3 -3
  70. package/esm2015/lib/components/selecciona-articulo/stock.service.js +13 -15
  71. package/esm2015/lib/components/serieDocumento/models/SerieDocumento.js +1 -1
  72. package/esm2015/lib/components/serieDocumento/services/serieDocumento.service.js +13 -24
  73. package/esm2015/lib/components/tipo-contacto/models/TipoContacto.js +1 -1
  74. package/esm2015/lib/components/tipo-contacto/services/tipoContacto.service.js +10 -25
  75. package/esm2015/lib/components/ubicacion/models/Ubicacion.js +1 -1
  76. package/esm2015/lib/components/ubicacion/services/ubicacion.service.js +10 -25
  77. package/esm2015/lib/contabilidad/componentes/cclista/cclista.component.js +2 -2
  78. package/esm2015/lib/contabilidad/componentes/ccseleccion-dialog/ccseleccion-dialog.component.js +4 -4
  79. package/esm2015/lib/contabilidad/modelos/cuentaContable.model.js +1 -1
  80. package/esm2015/lib/contabilidad/modelos/normaInfoFinanciera.model.js +1 -1
  81. package/esm2015/lib/contabilidad/servicios/cuentacontable.service.js +12 -26
  82. package/esm2015/lib/globalPrimeNg.js +1 -1
  83. package/esm2015/lib/httpInterceptor/httpInterceptor.js +2 -2
  84. package/esm2015/lib/importComponents.js +1 -1
  85. package/esm2015/lib/importComponetsConta.js +1 -1
  86. package/esm2015/lib/models/PersonaMoral.js +1 -1
  87. package/esm2015/lib/models/Usuario.js +1 -1
  88. package/esm2015/lib/models/auth.js +1 -1
  89. package/esm2015/lib/services/auth.service.js +23 -2
  90. package/esm2015/lib/services/authenticated.service.js +2 -2
  91. package/esm2015/lib/services/canActivateGuard.service.ts.js +2 -2
  92. package/esm2015/lib/services/catalogo-adicional.service.js +11 -25
  93. package/esm2015/lib/services/controlAcceso.service.js +2 -2
  94. package/esm2015/lib/services/crud.service.js +46 -0
  95. package/esm2015/lib/services/file.service.js +2 -2
  96. package/esm2015/lib/services/global.service.js +2 -13
  97. package/esm2015/lib/services/init.service.js +2 -2
  98. package/esm2015/lib/services/message.service.js +2 -2
  99. package/esm2015/lib/services/paginate.service.js +2 -2
  100. package/esm2015/lib/services/personaMoral.service.js +10 -25
  101. package/esm2015/lib/services/versionCheck.service.js +2 -2
  102. package/esm2015/lib/utils/tipo_catalogo.ts.js +1 -1
  103. package/esm2015/public_api.js +3 -3
  104. package/esm2015/visorus-erp-core.js +1 -1
  105. package/fesm2015/visorus-erp-core.js +332 -783
  106. package/fesm2015/visorus-erp-core.js.map +1 -1
  107. package/lib/app.module.d.ts +1 -0
  108. package/lib/components/acreedor/services/acreedor.service.d.ts +5 -12
  109. package/lib/components/acreedor/services/acreedorCuentaContable.d.ts +6 -6
  110. package/lib/components/agente/services/agente.service.d.ts +8 -14
  111. package/lib/components/almacen/services/almacen.service.d.ts +6 -13
  112. package/lib/components/banco/services/banco.service.d.ts +4 -12
  113. package/lib/components/caja/sessionCaja.service.d.ts +5 -11
  114. package/lib/components/catalogoTipo/services/catalogoTipo.service.d.ts +4 -12
  115. package/lib/components/clasificadorTipo/services/clasificadorTipo.service.d.ts +4 -12
  116. package/lib/components/claveAumentoDisminucion/services/clave-aumento-disminucion.service.d.ts +4 -11
  117. package/lib/components/claveMovimiento/services/claveMovimiento.service.d.ts +4 -12
  118. package/lib/components/cliente/services/cliente.service.d.ts +5 -13
  119. package/lib/components/cliente/services/clienteCuentaBanco.service.d.ts +6 -13
  120. package/lib/components/cliente/services/clienteFlete.service.d.ts +6 -12
  121. package/lib/components/contacto/services/datoContacto.service.d.ts +4 -11
  122. package/lib/components/dato-direccion/services/datoDireccion.service.d.ts +4 -11
  123. package/lib/components/departamento/services/departamento.service.d.ts +4 -11
  124. package/lib/components/empresa/services/empresa.service.d.ts +6 -12
  125. package/lib/components/flete/services/flete.service.d.ts +5 -11
  126. package/lib/components/formaPago/services/FormaPago.service.d.ts +4 -12
  127. package/lib/components/moneda/services/moneda.service.d.ts +5 -11
  128. package/lib/components/persona-fisica/services/personaFisica.service.d.ts +7 -8
  129. package/lib/components/proveedor/services/proveedor.service.d.ts +5 -11
  130. package/lib/components/proveedor/services/proveedorCuentaBanco.service.d.ts +6 -12
  131. package/lib/components/proveedor/services/proveedorFlete.service.d.ts +6 -11
  132. package/lib/components/seleccion-articulo-informacion/services/articulo-informacion.service.d.ts +6 -12
  133. package/lib/components/selecciona-articulo/stock.service.d.ts +5 -7
  134. package/lib/components/serieDocumento/services/serieDocumento.service.d.ts +7 -12
  135. package/lib/components/tipo-contacto/services/tipoContacto.service.d.ts +4 -11
  136. package/lib/components/ubicacion/services/ubicacion.service.d.ts +4 -11
  137. package/lib/contabilidad/servicios/cuentacontable.service.d.ts +6 -12
  138. package/lib/services/auth.service.d.ts +1 -0
  139. package/lib/services/catalogo-adicional.service.d.ts +5 -11
  140. package/lib/services/crud.service.d.ts +20 -0
  141. package/lib/services/global.service.d.ts +2 -4
  142. package/lib/services/personaMoral.service.d.ts +4 -11
  143. package/package.json +8 -8
  144. package/public_api.d.ts +2 -2
  145. package/esm2015/lib/services/api.service.js +0 -80
  146. package/lib/services/api.service.d.ts +0 -45
@@ -1,6 +1,6 @@
1
- import { HttpHeaders, HttpClient, HttpParams, HTTP_INTERCEPTORS } from '@angular/common/http';
2
- import { ɵɵinject, ɵɵdefineInjectable, ɵsetClassMetadata, Injectable, ɵɵelementStart, ɵɵtext, ɵɵelementEnd, ɵɵgetCurrentView, ɵɵlistener, ɵɵrestoreView, ɵɵnextContext, ɵɵelement, ɵɵtemplate, ɵɵadvance, ɵɵproperty, ɵɵtextInterpolate1, EventEmitter, ɵɵdirectiveInject, ɵɵdefineComponent, ɵɵstyleMap, ɵɵpureFunction0, Component, Input, Output, ɵɵstaticViewQuery, ɵɵqueryRefresh, ɵɵloadQuery, ɵɵpureFunction1, ViewChild, ɵɵpipe, ɵɵpropertyInterpolate, ɵɵsanitizeUrl, ɵɵpipeBind1, ElementRef, ChangeDetectorRef, ɵɵsanitizeResourceUrl, ɵɵtextInterpolate, ɵɵreference, ɵɵpropertyInterpolate1, ɵɵstyleProp, ɵɵresolveWindow, ɵɵpipeBind2, ɵɵattribute, ɵɵdefineNgModule, ɵɵdefineInjector, ɵɵsetNgModuleScope, NgModule } from '@angular/core';
3
- import { DefaultValueAccessor, NgControlStatus, NgModel, ɵangular_packages_forms_forms_y, NgControlStatusGroup, NgForm, RequiredValidator, NumberValueAccessor, SelectControlValueAccessor, NgSelectOption, ɵangular_packages_forms_forms_x, FormsModule } from '@angular/forms';
1
+ import { ɵɵinject, ɵɵdefineInjectable, ɵsetClassMetadata, Injectable, ɵɵelementStart, ɵɵtext, ɵɵelementEnd, ɵɵgetCurrentView, ɵɵlistener, ɵɵrestoreView, ɵɵnextContext, ɵɵelement, ɵɵtemplate, ɵɵadvance, ɵɵproperty, ɵɵtextInterpolate1, EventEmitter, ɵɵdirectiveInject, ɵɵdefineComponent, ɵɵstyleMap, ɵɵpureFunction0, Component, Input, Output, ɵɵviewQuery, ɵɵqueryRefresh, ɵɵloadQuery, ɵɵpureFunction1, ViewChild, ɵɵpipe, ɵɵpropertyInterpolate, ɵɵsanitizeUrl, ɵɵpipeBind1, ElementRef, ChangeDetectorRef, ɵɵsanitizeResourceUrl, ɵɵtextInterpolate, ɵɵreference, ɵɵpropertyInterpolate1, ɵɵstyleProp, ɵɵresolveWindow, ɵɵpipeBind2, ɵɵattribute, ɵɵdefineNgModule, ɵɵdefineInjector, ɵɵsetNgModuleScope, NgModule } from '@angular/core';
2
+ import { HttpHeaders, HttpClient, HTTP_INTERCEPTORS } from '@angular/common/http';
3
+ import { DefaultValueAccessor, NgControlStatus, NgModel, ɵangular_packages_forms_forms_ba, NgControlStatusGroup, NgForm, RequiredValidator, NumberValueAccessor, SelectControlValueAccessor, NgSelectOption, ɵangular_packages_forms_forms_z, FormsModule } from '@angular/forms';
4
4
  import { InputText, InputTextModule } from 'primeng/inputtext';
5
5
  import { TreeTable, TreeTableToggler, TreeTableModule } from 'primeng/treetable';
6
6
  import { PrimeTemplate, Footer, ConfirmationService } from 'primeng/api';
@@ -95,121 +95,69 @@ class GlobalService {
95
95
  return this.http.post(this.getUrl() + '/usuario/setModulo', modulo, this.buildAuth());
96
96
  }
97
97
  }
98
- /** @nocollapse */ GlobalService.ɵfac = function GlobalService_Factory(t) { return new (t || GlobalService)(ɵɵinject(HttpClient)); };
99
- /** @nocollapse */ GlobalService.ɵprov = ɵɵdefineInjectable({ token: GlobalService, factory: GlobalService.ɵfac, providedIn: 'root' });
100
- /*@__PURE__*/ (function () { ɵsetClassMetadata(GlobalService, [{
101
- type: Injectable,
102
- args: [{
103
- providedIn: 'root'
104
- }]
105
- }], function () { return [{ type: HttpClient }]; }, null); })();
106
98
 
107
- // projects/erp-core/src/lib/services/api.service.ts
108
- class ApiService {
109
- constructor(http,
110
- // Inyectamos GlobalService para usar sus métodos de ayuda (construir URL y cabeceras)
111
- global) {
112
- this.http = http;
113
- this.global = global;
114
- }
115
- /**
116
- * Realiza una petición GET genérica y autenticada usando HttpParams.
117
- * @param endpoint El endpoint del API (ej. '/FormaDePago')
118
- * @param queryParams Un objeto clave-valor para los parámetros de la URL.
119
- */
120
- get(endpoint, queryParams) {
121
- // 1. Construye HttpParams de forma segura. Se encarga del URL encoding.
122
- const params = new HttpParams({ fromObject: queryParams });
123
- // 2. Combina las opciones: cabeceras de GlobalService y los nuevos params.
124
- const options = Object.assign(Object.assign({}, this.global.buildAuth()), { params: params // Añade los HttpParams
125
- });
126
- const url = this.global.getUrl(endpoint);
127
- return this.http.get(url, options);
128
- }
129
- /**
130
- * Realiza una petición POST genérica y autenticada.
131
- * @param endpoint El endpoint del API
132
- * @param body El cuerpo de la petición
133
- */
134
- post(endpoint, body) {
135
- const url = this.global.getUrl(endpoint);
136
- const options = this.global.buildAuth();
137
- return this.http.post(url, body, options);
138
- }
139
- /**
140
- * Realiza una petición PUT genérica y autenticada.
141
- * @param endpoint El endpoint del API
142
- * @param id El ID del recurso a actualizar
143
- * @param body El cuerpo de la petición
144
- */
145
- put(endpoint, id, body) {
146
- const url = `<span class="math-inline">\{this\.global\.getUrl\(endpoint\)\}/</span>{id}`;
147
- const options = this.global.buildAuth();
148
- return this.http.put(url, body, options);
149
- }
150
- /**
151
- * Realiza una petición DELETE genérica y autenticada.
152
- * @param endpoint El endpoint del API
153
- * @param id El ID del recurso a eliminar
154
- */
155
- delete(endpoint, id) {
156
- const url = `<span class="math-inline">\{this\.global\.getUrl\(endpoint\)\}/</span>{id}`;
157
- const options = this.global.buildAuth();
158
- return this.http.delete(url, options);
159
- }
160
- /**
161
- * Realiza una petición PATCH genérica y autenticada.
162
- * @param endpoint El endpoint del API
163
- * @param id El ID del recurso a actualizar parcialmente
164
- * @param body El cuerpo con los campos a actualizar
165
- */
166
- patch(endpoint, id, body) {
167
- const url = `<span class="math-inline">\{this\.global\.getUrl\(endpoint\)\}/</span>{id}`;
168
- const options = this.global.buildAuth();
169
- return this.http.patch(url, body, options);
99
+ class CrudService extends GlobalService {
100
+ constructor(httpCliente, url) {
101
+ super(httpCliente);
102
+ this.httpCliente = httpCliente;
103
+ this.url = url;
104
+ this.urlComponente = this.url;
170
105
  }
171
- }
172
- /** @nocollapse */ ApiService.ɵfac = function ApiService_Factory(t) { return new (t || ApiService)(ɵɵinject(HttpClient), ɵɵinject(GlobalService)); };
173
- /** @nocollapse */ ApiService.ɵprov = ɵɵdefineInjectable({ token: ApiService, factory: ApiService.ɵfac, providedIn: 'root' });
174
- /*@__PURE__*/ (function () { ɵsetClassMetadata(ApiService, [{
175
- type: Injectable,
176
- args: [{
177
- providedIn: 'root'
178
- }]
179
- }], function () { return [{ type: HttpClient }, { type: GlobalService }]; }, null); })();
180
-
181
- class CuentaContableService {
182
- constructor(api) {
183
- this.api = api;
184
- this.endpoint = 'cuentaContable';
106
+ //Functions for ResourcesCrud [{ param: "max", value: 10}]
107
+ serializeParams(params) {
108
+ let serializeString = '';
109
+ params.map((e, index) => {
110
+ if (e.value !== undefined)
111
+ serializeString += ((index == 0) ? '?' : '&') + e.param + '=' + e.value;
112
+ });
113
+ return serializeString;
185
114
  }
186
- getAll(params) {
187
- return this.api.get(this.endpoint, params);
115
+ getHttp() {
116
+ return this.httpCliente;
188
117
  }
189
- obtieneCuentasContablesRecursivo() {
190
- return this.api.get(`${this.endpoint}/obtieneCuentasContablesRecursivo`);
118
+ geturl() {
119
+ return this.getUrl(this.urlComponente);
120
+ }
121
+ getBaseUrl() {
122
+ return this.getUrl('');
123
+ }
124
+ getByUrl(url, params) {
125
+ return this.httpCliente.get(this.getUrl(url) + this.serializeParams(params), this.buildAuth());
126
+ }
127
+ getAll(params) {
128
+ return this.httpCliente.get(this.getUrl(this.urlComponente) + (params ? (this.serializeParams(params)) : ('')), this.buildAuth());
191
129
  }
192
130
  get(id) {
193
- return this.api.get(`${this.endpoint}/${id}`);
131
+ return this.httpCliente.get(this.getUrl(this.urlComponente) + '/' + id, this.buildAuth());
194
132
  }
195
133
  save(obj) {
196
- return this.api.post(this.endpoint, obj);
134
+ return this.httpCliente.post(this.getUrl(this.urlComponente), obj, this.buildAuth());
197
135
  }
198
136
  update(obj) {
199
- return this.api.put(this.endpoint, obj.id, obj);
137
+ return this.httpCliente.put(this.getUrl(this.urlComponente) + '/' + obj.id, obj, this.buildAuth());
200
138
  }
201
139
  delete(id) {
202
- return this.api.delete(this.endpoint, id);
140
+ return this.httpCliente.delete(this.getUrl(this.urlComponente) + '/' + id, this.buildAuth());
141
+ }
142
+ }
143
+
144
+ class CuentaContableService extends CrudService {
145
+ constructor(httpClient) {
146
+ super(httpClient, 'cuentaContable');
147
+ this.httpClient = httpClient;
148
+ }
149
+ obtieneCuentasContablesRecursivo() {
150
+ return this.httpClient.get(this.getUrl('cuentaContable') + '/obtieneCuentasContablesRecursivo', this.buildAuth());
203
151
  }
204
152
  }
205
- /** @nocollapse */ CuentaContableService.ɵfac = function CuentaContableService_Factory(t) { return new (t || CuentaContableService)(ɵɵinject(ApiService)); };
153
+ /** @nocollapse */ CuentaContableService.ɵfac = function CuentaContableService_Factory(t) { return new (t || CuentaContableService)(ɵɵinject(HttpClient)); };
206
154
  /** @nocollapse */ CuentaContableService.ɵprov = ɵɵdefineInjectable({ token: CuentaContableService, factory: CuentaContableService.ɵfac, providedIn: 'root' });
207
- /*@__PURE__*/ (function () { ɵsetClassMetadata(CuentaContableService, [{
155
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(CuentaContableService, [{
208
156
  type: Injectable,
209
157
  args: [{
210
158
  providedIn: 'root'
211
159
  }]
212
- }], function () { return [{ type: ApiService }]; }, null); })();
160
+ }], function () { return [{ type: HttpClient }]; }, null); })();
213
161
 
214
162
  function CclistaComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
215
163
  ɵɵelementStart(0, "tr");
@@ -460,7 +408,7 @@ class CclistaComponent {
460
408
  ɵɵstyleMap(ɵɵpureFunction0(7, _c0));
461
409
  ɵɵproperty("value", ctx.cuentasContables ? ctx.cuentasContables : ctx.tempAccounts)("scrollable", true)("scrollHeight", ctx.maxH + "px")("resizableColumns", true);
462
410
  } }, directives: [DefaultValueAccessor, InputText, NgControlStatus, NgModel, TreeTable, PrimeTemplate, TreeTableToggler, NgIf, ButtonDirective], styles: [""] });
463
- /*@__PURE__*/ (function () { ɵsetClassMetadata(CclistaComponent, [{
411
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(CclistaComponent, [{
464
412
  type: Component,
465
413
  args: [{
466
414
  selector: 'lib-cclista',
@@ -501,9 +449,9 @@ class CcseleccionDialogComponent {
501
449
  }
502
450
  /** @nocollapse */ CcseleccionDialogComponent.ɵfac = function CcseleccionDialogComponent_Factory(t) { return new (t || CcseleccionDialogComponent)(); };
503
451
  /** @nocollapse */ CcseleccionDialogComponent.ɵcmp = ɵɵdefineComponent({ type: CcseleccionDialogComponent, selectors: [["lib-ccseleccion-dialog"]], viewQuery: function CcseleccionDialogComponent_Query(rf, ctx) { if (rf & 1) {
504
- ɵɵstaticViewQuery(_c0$1, true);
452
+ ɵɵviewQuery(_c0$1, 3);
505
453
  } if (rf & 2) {
506
- var _t;
454
+ let _t;
507
455
  ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx.dialog = _t.first);
508
456
  } }, inputs: { tipoCuenta: "tipoCuenta", displayShowCuentas: "displayShowCuentas" }, outputs: { evSelectedAccount: "evSelectedAccount" }, decls: 3, vars: 17, consts: [["header", "Selecciona cuenta contable", 3, "visible", "modal", "minY", "baseZIndex", "blockScroll", "draggable", "maximizable", "visibleChange", "onHide"], [1, "padding10", 3, "ngStyle"], [3, "isShared", "typeAccount", "evSelectedAccount"]], template: function CcseleccionDialogComponent_Template(rf, ctx) { if (rf & 1) {
509
457
  ɵɵelementStart(0, "p-dialog", 0);
@@ -522,7 +470,7 @@ class CcseleccionDialogComponent {
522
470
  ɵɵadvance(1);
523
471
  ɵɵproperty("isShared", true)("typeAccount", ctx.tipoCuenta);
524
472
  } }, directives: [Dialog, NgStyle, CclistaComponent], styles: [""] });
525
- /*@__PURE__*/ (function () { ɵsetClassMetadata(CcseleccionDialogComponent, [{
473
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(CcseleccionDialogComponent, [{
526
474
  type: Component,
527
475
  args: [{
528
476
  selector: 'lib-ccseleccion-dialog',
@@ -555,7 +503,7 @@ class LoginModalService {
555
503
  }
556
504
  /** @nocollapse */ LoginModalService.ɵfac = function LoginModalService_Factory(t) { return new (t || LoginModalService)(); };
557
505
  /** @nocollapse */ LoginModalService.ɵprov = ɵɵdefineInjectable({ token: LoginModalService, factory: LoginModalService.ɵfac, providedIn: 'root' });
558
- /*@__PURE__*/ (function () { ɵsetClassMetadata(LoginModalService, [{
506
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(LoginModalService, [{
559
507
  type: Injectable,
560
508
  args: [{
561
509
  providedIn: 'root'
@@ -585,7 +533,7 @@ class LoadingScreenService {
585
533
  }
586
534
  /** @nocollapse */ LoadingScreenService.ɵfac = function LoadingScreenService_Factory(t) { return new (t || LoadingScreenService)(); };
587
535
  /** @nocollapse */ LoadingScreenService.ɵprov = ɵɵdefineInjectable({ token: LoadingScreenService, factory: LoadingScreenService.ɵfac, providedIn: 'root' });
588
- /*@__PURE__*/ (function () { ɵsetClassMetadata(LoadingScreenService, [{
536
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(LoadingScreenService, [{
589
537
  type: Injectable,
590
538
  args: [{
591
539
  providedIn: 'root'
@@ -668,7 +616,7 @@ class httpInterceptor {
668
616
  }
669
617
  /** @nocollapse */ httpInterceptor.ɵfac = function httpInterceptor_Factory(t) { return new (t || httpInterceptor)(ɵɵinject(LoginModalService), ɵɵinject(ToastrService), ɵɵinject(LoadingScreenService)); };
670
618
  /** @nocollapse */ httpInterceptor.ɵprov = ɵɵdefineInjectable({ token: httpInterceptor, factory: httpInterceptor.ɵfac });
671
- /*@__PURE__*/ (function () { ɵsetClassMetadata(httpInterceptor, [{
619
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(httpInterceptor, [{
672
620
  type: Injectable
673
621
  }], function () { return [{ type: LoginModalService }, { type: ToastrService }, { type: LoadingScreenService }]; }, null); })();
674
622
 
@@ -696,7 +644,7 @@ class Error404Component {
696
644
  ɵɵelementEnd();
697
645
  ɵɵelementEnd();
698
646
  } }, styles: [".error[_ngcontent-%COMP%]{font-size:70px}"] });
699
- /*@__PURE__*/ (function () { ɵsetClassMetadata(Error404Component, [{
647
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(Error404Component, [{
700
648
  type: Component,
701
649
  args: [{
702
650
  selector: 'app-error404',
@@ -724,7 +672,7 @@ class LoadingService {
724
672
  }
725
673
  /** @nocollapse */ LoadingService.ɵfac = function LoadingService_Factory(t) { return new (t || LoadingService)(); };
726
674
  /** @nocollapse */ LoadingService.ɵprov = ɵɵdefineInjectable({ token: LoadingService, factory: LoadingService.ɵfac, providedIn: 'root' });
727
- /*@__PURE__*/ (function () { ɵsetClassMetadata(LoadingService, [{
675
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(LoadingService, [{
728
676
  type: Injectable,
729
677
  args: [{
730
678
  providedIn: 'root'
@@ -782,8 +730,8 @@ class LoadingComponent {
782
730
  ɵɵpropertyInterpolate("src", ctx.logo_loading, ɵɵsanitizeUrl);
783
731
  ɵɵadvance(2);
784
732
  ɵɵtextInterpolate1("", ɵɵpipeBind1(13, 2, "cargando"), "...");
785
- } }, pipes: [TranslatePipe], styles: [".loader[_ngcontent-%COMP%]{height:170px;position:relative;width:130px}.loader[_ngcontent-%COMP%]:after, .loader[_ngcontent-%COMP%]:before{bottom:30px;content:\"\";height:0;left:15px;position:absolute;transform:scale(0);transition:all .2s ease;width:0;z-index:1}.loader[_ngcontent-%COMP%] .txt[_ngcontent-%COMP%]{bottom:-30px;color:#fff;font-family:Abel,sans-serif;font-size:12px;left:-7%;letter-spacing:2px;position:absolute;text-align:center;width:120%}.loader[_ngcontent-%COMP%] .code[_ngcontent-%COMP%]{-webkit-animation-duration:.8s;-webkit-animation-iteration-count:infinite;-webkit-animation-name:spaceboots;-webkit-animation-timing-function:linear;-webkit-transform-origin:50% 50%;bottom:-3px;position:absolute;z-index:99}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]{color:#fff;display:block;height:140px;left:28px;overflow:hidden;position:absolute;width:100%;z-index:2}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:after, .loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;left:0;opacity:0;position:absolute;text-rendering:auto;top:0}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:first-child:before{animation:a 1.1s linear infinite;content:\"\\f13b\";font-size:20px}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:first-child:after{animation:b 1.3s linear infinite;content:\"\\f13c\"}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(2):before{animation:c .9s linear infinite;content:\"\\f121\";font-size:25px}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(2):after{animation:d .7s linear infinite;content:\"\\f19a \"}.loader.amit[_ngcontent-%COMP%]:after, .loader.amit[_ngcontent-%COMP%]:before{transform:scale(1)}@keyframes a{0%{opacity:0;transform:translate(30px) rotate(30deg)}to{opacity:1;transform:translate(30px,150px) rotate(-50deg)}}@keyframes b{0%{opacity:0;transform:translate(50px) rotate(-40deg)}to{opacity:1;transform:translate(40px,150px) rotate(80deg)}}@keyframes c{0%{opacity:0;transform:translate(70px) rotate(10deg)}to{opacity:1;transform:translate(60px,150px) rotate(70deg)}}@keyframes d{0%{opacity:0;transform:translate(30px) rotate(-50deg)}to{opacity:1;transform:translate(45px,150px) rotate(30deg)}}.modal[_ngcontent-%COMP%]{z-index:2050!important}.modal-content[_ngcontent-%COMP%]{background-color:hsla(0,0%,100%,0)!important;border:0!important;height:350px!important}.modal-body[_ngcontent-%COMP%]{margin-left:-7%!important}"] });
786
- /*@__PURE__*/ (function () { ɵsetClassMetadata(LoadingComponent, [{
733
+ } }, pipes: [TranslatePipe], styles: [".loader[_ngcontent-%COMP%]{width:130px;height:170px;position:relative}.loader[_ngcontent-%COMP%]:after, .loader[_ngcontent-%COMP%]:before{content:\"\";width:0;height:0;position:absolute;bottom:30px;left:15px;z-index:1;transform:scale(0);transition:all .2s ease}.loader[_ngcontent-%COMP%] .txt[_ngcontent-%COMP%]{width:120%;text-align:center;position:absolute;bottom:-30px;left:-7%;font-family:Abel,sans-serif;font-size:12px;letter-spacing:2px;color:#fff}.loader[_ngcontent-%COMP%] .code[_ngcontent-%COMP%]{position:absolute;z-index:99;bottom:-3px;-webkit-animation-name:spaceboots;-webkit-animation-duration:.8s;-webkit-transform-origin:50% 50%;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]{width:100%;height:140px;display:block;color:#fff;position:absolute;left:28px;z-index:2;overflow:hidden}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:after, .loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:before{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:absolute;top:0;left:0;opacity:0}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:first-child:before{font-size:20px;content:\"\\f13b\";animation:a 1.1s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:first-child:after{content:\"\\f13c\";animation:b 1.3s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(2):before{content:\"\\f121\";font-size:25px;animation:c .9s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(2):after{content:\"\\f19a \";animation:d .7s linear infinite}.loader.amit[_ngcontent-%COMP%]:after, .loader.amit[_ngcontent-%COMP%]:before{transform:scale(1)}@keyframes a{0%{transform:translate(30px) rotate(30deg);opacity:0}to{transform:translate(30px,150px) rotate(-50deg);opacity:1}}@keyframes b{0%{transform:translate(50px) rotate(-40deg);opacity:0}to{transform:translate(40px,150px) rotate(80deg);opacity:1}}@keyframes c{0%{transform:translate(70px) rotate(10deg);opacity:0}to{transform:translate(60px,150px) rotate(70deg);opacity:1}}@keyframes d{0%{transform:translate(30px) rotate(-50deg);opacity:0}to{transform:translate(45px,150px) rotate(30deg);opacity:1}}.modal[_ngcontent-%COMP%]{z-index:2050!important}.modal-content[_ngcontent-%COMP%]{border:0!important;background-color:hsla(0,0%,100%,0)!important;height:350px!important}.modal-body[_ngcontent-%COMP%]{margin-left:-7%!important}"] });
734
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(LoadingComponent, [{
787
735
  type: Component,
788
736
  args: [{
789
737
  selector: 'loading',
@@ -833,8 +781,8 @@ class LoadingScreenComponent {
833
781
  ɵɵelementEnd();
834
782
  ɵɵelementEnd();
835
783
  ɵɵelementEnd();
836
- } }, styles: [".loading-screen-wrapper[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.384);display:block;height:100%;position:fixed;width:100%;z-index:100000}.loading-screen-icon[_ngcontent-%COMP%]{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}svg[_ngcontent-%COMP%]{display:none}.blobs[_ngcontent-%COMP%]{border-radius:70px;filter:url(#goo);height:300px;overflow:hidden;position:relative;transform-style:preserve-3d;width:300px}.blobs[_ngcontent-%COMP%] .blob-center[_ngcontent-%COMP%]{animation:blob-grow 3.4s linear infinite;box-shadow:0 -10px 40px -5px #475158;transform-origin:left top;transform-style:preserve-3d}.blob[_ngcontent-%COMP%], .blobs[_ngcontent-%COMP%] .blob-center[_ngcontent-%COMP%]{background:#475158;border-radius:50%;height:30px;left:50%;position:absolute;top:50%;transform:scale(.9) translate(-50%,-50%);width:30px}.blob[_ngcontent-%COMP%]{animation:blobs 3.4s ease-out infinite;opacity:0;transform-origin:center top}.blob[_ngcontent-%COMP%]:first-child{animation-delay:.2s}.blob[_ngcontent-%COMP%]:nth-child(2){animation-delay:.4s}.blob[_ngcontent-%COMP%]:nth-child(3){animation-delay:.6s}.blob[_ngcontent-%COMP%]:nth-child(4){animation-delay:.8s}.blob[_ngcontent-%COMP%]:nth-child(5){animation-delay:1s}@keyframes blobs{0%{opacity:0;transform:scale(0) translate(calc(-330px - 50%),-50%)}1%{opacity:1}35%,65%{opacity:1;transform:scale(.9) translate(-50%,-50%)}99%{opacity:1}to{opacity:0;transform:scale(0) translate(calc(330px - 50%),-50%)}}@keyframes blob-grow{0%,39%{transform:scale(0) translate(-50%,-50%)}40%,42%{transform:scaleY(.9) translate(-50%,-50%)}43%,44%{transform:scale(1.2,1.1) translate(-50%,-50%)}45%,46%{transform:scale(1.3,1.2) translate(-50%,-50%)}47%,48%{transform:scale(1.4,1.3) translate(-50%,-50%)}52%{transform:scale(1.5,1.4) translate(-50%,-50%)}54%{transform:scale(1.7,1.6) translate(-50%,-50%)}58%{transform:scale(1.8,1.7) translate(-50%,-50%)}68%,70%{transform:scale(1.7,1.5) translate(-50%,-50%)}78%{transform:scale(1.6,1.4) translate(-50%,-50%)}80%,81%{transform:scale(1.5,1.4) translate(-50%,-50%)}82%,83%{transform:scale(1.4,1.3) translate(-50%,-50%)}84%,85%{transform:scale(1.3,1.2) translate(-50%,-50%)}86%,87%{transform:scale(1.2,1.1) translate(-50%,-50%)}90%,91%{transform:scaleY(.9) translate(-50%,-50%)}92%,to{transform:scale(0) translate(-50%,-50%)}}"] });
837
- /*@__PURE__*/ (function () { ɵsetClassMetadata(LoadingScreenComponent, [{
784
+ } }, styles: [".loading-screen-wrapper[_ngcontent-%COMP%]{z-index:100000;position:fixed;background-color:rgba(0,0,0,.384);width:100%;height:100%;display:block}.loading-screen-icon[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}svg[_ngcontent-%COMP%]{display:none}.blobs[_ngcontent-%COMP%]{filter:url(#goo);width:300px;height:300px;position:relative;overflow:hidden;border-radius:70px;transform-style:preserve-3d}.blobs[_ngcontent-%COMP%] .blob-center[_ngcontent-%COMP%]{transform-style:preserve-3d;transform-origin:left top;animation:blob-grow 3.4s linear infinite;box-shadow:0 -10px 40px -5px #475158}.blob[_ngcontent-%COMP%], .blobs[_ngcontent-%COMP%] .blob-center[_ngcontent-%COMP%]{position:absolute;background:#475158;top:50%;left:50%;width:30px;height:30px;transform:scale(.9) translate(-50%,-50%);border-radius:50%}.blob[_ngcontent-%COMP%]{animation:blobs 3.4s ease-out infinite;transform-origin:center top;opacity:0}.blob[_ngcontent-%COMP%]:first-child{animation-delay:.2s}.blob[_ngcontent-%COMP%]:nth-child(2){animation-delay:.4s}.blob[_ngcontent-%COMP%]:nth-child(3){animation-delay:.6s}.blob[_ngcontent-%COMP%]:nth-child(4){animation-delay:.8s}.blob[_ngcontent-%COMP%]:nth-child(5){animation-delay:1s}@keyframes blobs{0%{opacity:0;transform:scale(0) translate(calc(-330px - 50%),-50%)}1%{opacity:1}35%,65%{opacity:1;transform:scale(.9) translate(-50%,-50%)}99%{opacity:1}to{opacity:0;transform:scale(0) translate(calc(330px - 50%),-50%)}}@keyframes blob-grow{0%,39%{transform:scale(0) translate(-50%,-50%)}40%,42%{transform:scaleY(.9) translate(-50%,-50%)}43%,44%{transform:scale(1.2,1.1) translate(-50%,-50%)}45%,46%{transform:scale(1.3,1.2) translate(-50%,-50%)}47%,48%{transform:scale(1.4,1.3) translate(-50%,-50%)}52%{transform:scale(1.5,1.4) translate(-50%,-50%)}54%{transform:scale(1.7,1.6) translate(-50%,-50%)}58%{transform:scale(1.8,1.7) translate(-50%,-50%)}68%,70%{transform:scale(1.7,1.5) translate(-50%,-50%)}78%{transform:scale(1.6,1.4) translate(-50%,-50%)}80%,81%{transform:scale(1.5,1.4) translate(-50%,-50%)}82%,83%{transform:scale(1.4,1.3) translate(-50%,-50%)}84%,85%{transform:scale(1.3,1.2) translate(-50%,-50%)}86%,87%{transform:scale(1.2,1.1) translate(-50%,-50%)}90%,91%{transform:scaleY(.9) translate(-50%,-50%)}92%,to{transform:scale(0) translate(-50%,-50%)}}"] });
785
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(LoadingScreenComponent, [{
838
786
  type: Component,
839
787
  args: [{
840
788
  selector: 'app-loading-screen',
@@ -861,7 +809,7 @@ class PdfModalService {
861
809
  }
862
810
  /** @nocollapse */ PdfModalService.ɵfac = function PdfModalService_Factory(t) { return new (t || PdfModalService)(); };
863
811
  /** @nocollapse */ PdfModalService.ɵprov = ɵɵdefineInjectable({ token: PdfModalService, factory: PdfModalService.ɵfac, providedIn: 'root' });
864
- /*@__PURE__*/ (function () { ɵsetClassMetadata(PdfModalService, [{
812
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(PdfModalService, [{
865
813
  type: Injectable,
866
814
  args: [{
867
815
  providedIn: 'root'
@@ -927,7 +875,7 @@ class FileService {
927
875
  }
928
876
  /** @nocollapse */ FileService.ɵfac = function FileService_Factory(t) { return new (t || FileService)(ɵɵinject(ToastrService), ɵɵinject(TranslateService)); };
929
877
  /** @nocollapse */ FileService.ɵprov = ɵɵdefineInjectable({ token: FileService, factory: FileService.ɵfac, providedIn: 'root' });
930
- /*@__PURE__*/ (function () { ɵsetClassMetadata(FileService, [{
878
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(FileService, [{
931
879
  type: Injectable,
932
880
  args: [{
933
881
  providedIn: 'root'
@@ -1021,7 +969,7 @@ class PdfModalComponent {
1021
969
  ɵɵadvance(1);
1022
970
  ɵɵproperty("ngIf", ctx.pdfBase64);
1023
971
  } }, directives: [Dialog, NgIf], styles: [".down[_ngcontent-%COMP%]{display:block}"] });
1024
- /*@__PURE__*/ (function () { ɵsetClassMetadata(PdfModalComponent, [{
972
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(PdfModalComponent, [{
1025
973
  type: Component,
1026
974
  args: [{
1027
975
  selector: 'pdf-modal',
@@ -1219,10 +1167,31 @@ class AuthService {
1219
1167
  this.url_host = config.url;
1220
1168
  return this.httpClient.get(this.url_host + '/usuario/obtieneUsuarioActual', httpOptions);
1221
1169
  }
1170
+ obtieneUsuarioConfiguracion() {
1171
+ let usuario;
1172
+ let token_type = '';
1173
+ let access_token = '';
1174
+ usuario = JSON.parse(localStorage.getItem("usuario"));
1175
+ if (usuario) {
1176
+ token_type = usuario.token_type,
1177
+ access_token = usuario.access_token;
1178
+ }
1179
+ let httpOptions = {
1180
+ headers: new HttpHeaders({
1181
+ 'Accept-type': 'application/json',
1182
+ 'Authorization': token_type + ' ' + access_token
1183
+ })
1184
+ };
1185
+ let config = JSON.parse(localStorage.getItem("config"));
1186
+ if (config)
1187
+ if (config.url)
1188
+ this.url_host = config.url;
1189
+ return this.httpClient.get(this.url_host + '/usuario/obtieneUsuarioConfiguracion', httpOptions);
1190
+ }
1222
1191
  }
1223
1192
  /** @nocollapse */ AuthService.ɵfac = function AuthService_Factory(t) { return new (t || AuthService)(ɵɵinject(HttpClient)); };
1224
1193
  /** @nocollapse */ AuthService.ɵprov = ɵɵdefineInjectable({ token: AuthService, factory: AuthService.ɵfac, providedIn: 'root' });
1225
- /*@__PURE__*/ (function () { ɵsetClassMetadata(AuthService, [{
1194
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(AuthService, [{
1226
1195
  type: Injectable,
1227
1196
  args: [{
1228
1197
  providedIn: 'root'
@@ -1394,8 +1363,8 @@ class LoginModalComponent {
1394
1363
  ɵɵproperty("ngIf", ctx.empresas.length == 0);
1395
1364
  ɵɵadvance(1);
1396
1365
  ɵɵproperty("ngIf", ctx.empresas.length);
1397
- } }, directives: [NgIf, ɵangular_packages_forms_forms_y, NgControlStatusGroup, NgForm, DefaultValueAccessor, RequiredValidator, NgControlStatus, NgModel, TranslateDirective, NgForOf], pipes: [TranslatePipe], styles: [".modal[_ngcontent-%COMP%]{z-index:2050!important}.btn-primary_low[_ngcontent-%COMP%]{background:#133659!important}.ng-invalid[_ngcontent-%COMP%]:not(form), .ng-valid[_ngcontent-%COMP%]:not(form){border-left:1px solid #ced4da!important}.card[_ngcontent-%COMP%]{background:#26baed;color:#fff}.card-body[_ngcontent-%COMP%]{padding:10px}"] });
1398
- /*@__PURE__*/ (function () { ɵsetClassMetadata(LoginModalComponent, [{
1366
+ } }, directives: [NgIf, ɵangular_packages_forms_forms_ba, NgControlStatusGroup, NgForm, DefaultValueAccessor, RequiredValidator, NgControlStatus, NgModel, TranslateDirective, NgForOf], pipes: [TranslatePipe], styles: [".modal[_ngcontent-%COMP%]{z-index:2050!important}.btn-primary_low[_ngcontent-%COMP%]{background:#133659!important}.ng-invalid[_ngcontent-%COMP%]:not(form), .ng-valid[_ngcontent-%COMP%]:not(form){border-left:1px solid #ced4da!important}.card[_ngcontent-%COMP%]{background:#26baed;color:#fff}.card-body[_ngcontent-%COMP%]{padding:10px}"] });
1367
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(LoginModalComponent, [{
1399
1368
  type: Component,
1400
1369
  args: [{
1401
1370
  selector: 'app-login-modal',
@@ -1404,35 +1373,20 @@ class LoginModalComponent {
1404
1373
  }]
1405
1374
  }], function () { return [{ type: LoginModalService }, { type: AuthService }]; }, null); })();
1406
1375
 
1407
- class SessionCajaService {
1408
- constructor(api) {
1409
- this.api = api;
1410
- this.endpoint = 'sessionCaja';
1411
- }
1412
- getAll(params) {
1413
- return this.api.get(this.endpoint, params);
1414
- }
1415
- get(id) {
1416
- return this.api.get(`${this.endpoint}/${id}`);
1417
- }
1418
- save(obj) {
1419
- return this.api.post(this.endpoint, obj);
1420
- }
1421
- update(obj) {
1422
- return this.api.put(this.endpoint, obj.id, obj);
1423
- }
1424
- delete(id) {
1425
- return this.api.delete(this.endpoint, id);
1376
+ class SessionCajaService extends CrudService {
1377
+ constructor(httpClient) {
1378
+ super(httpClient, 'sessionCaja');
1379
+ this.httpClient = httpClient;
1426
1380
  }
1427
1381
  }
1428
- /** @nocollapse */ SessionCajaService.ɵfac = function SessionCajaService_Factory(t) { return new (t || SessionCajaService)(ɵɵinject(ApiService)); };
1382
+ /** @nocollapse */ SessionCajaService.ɵfac = function SessionCajaService_Factory(t) { return new (t || SessionCajaService)(ɵɵinject(HttpClient)); };
1429
1383
  /** @nocollapse */ SessionCajaService.ɵprov = ɵɵdefineInjectable({ token: SessionCajaService, factory: SessionCajaService.ɵfac, providedIn: 'root' });
1430
- /*@__PURE__*/ (function () { ɵsetClassMetadata(SessionCajaService, [{
1384
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(SessionCajaService, [{
1431
1385
  type: Injectable,
1432
1386
  args: [{
1433
1387
  providedIn: 'root'
1434
1388
  }]
1435
- }], function () { return [{ type: ApiService }]; }, null); })();
1389
+ }], function () { return [{ type: HttpClient }]; }, null); })();
1436
1390
 
1437
1391
  function SessionCreateComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
1438
1392
  ɵɵelementStart(0, "a", 4);
@@ -1596,7 +1550,7 @@ class SessionCreateComponent {
1596
1550
  ɵɵadvance(2);
1597
1551
  ɵɵproperty("ngIf", ctx.caja);
1598
1552
  } }, directives: [Dialog, PrimeTemplate, NgIf, DefaultValueAccessor, InputText, NgControlStatus, NgModel, NumberValueAccessor, ButtonDirective], styles: [""] });
1599
- /*@__PURE__*/ (function () { ɵsetClassMetadata(SessionCreateComponent, [{
1553
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(SessionCreateComponent, [{
1600
1554
  type: Component,
1601
1555
  args: [{
1602
1556
  selector: 'session-create',
@@ -1656,38 +1610,22 @@ class Cliente {
1656
1610
  }
1657
1611
  }
1658
1612
 
1659
- class ClienteService {
1660
- constructor(api) {
1661
- this.api = api;
1662
- this.endpoint = 'cliente';
1663
- }
1664
- getAll(params) {
1665
- return this.api.get(this.endpoint, params);
1666
- }
1667
- get(id) {
1668
- return this.api.get(`${this.endpoint}/${id}`);
1669
- }
1670
- save(obj) {
1671
- return this.api.post(this.endpoint, obj);
1672
- }
1673
- update(obj) {
1674
- return this.api.put(this.endpoint, obj.id, obj);
1675
- }
1676
- delete(id) {
1677
- return this.api.delete(this.endpoint, id);
1613
+ class ClienteService extends CrudService {
1614
+ constructor(httpCliente) {
1615
+ super(httpCliente, '/cliente');
1678
1616
  }
1679
1617
  validar_archivos_bss(id) {
1680
- return this.api.get(`${this.endpoint}/validarClienteBss/${id}`);
1618
+ return this.getHttp().get(this.getUrl('/cliente/validarClienteBss/') + id, this.buildAuth());
1681
1619
  }
1682
1620
  }
1683
- /** @nocollapse */ ClienteService.ɵfac = function ClienteService_Factory(t) { return new (t || ClienteService)(ɵɵinject(ApiService)); };
1621
+ /** @nocollapse */ ClienteService.ɵfac = function ClienteService_Factory(t) { return new (t || ClienteService)(ɵɵinject(HttpClient)); };
1684
1622
  /** @nocollapse */ ClienteService.ɵprov = ɵɵdefineInjectable({ token: ClienteService, factory: ClienteService.ɵfac, providedIn: 'root' });
1685
- /*@__PURE__*/ (function () { ɵsetClassMetadata(ClienteService, [{
1623
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(ClienteService, [{
1686
1624
  type: Injectable,
1687
1625
  args: [{
1688
1626
  providedIn: 'root'
1689
1627
  }]
1690
- }], function () { return [{ type: ApiService }]; }, null); })();
1628
+ }], function () { return [{ type: HttpClient }]; }, null); })();
1691
1629
 
1692
1630
  class PaginateService {
1693
1631
  constructor(translate) {
@@ -1736,7 +1674,7 @@ class PaginateService {
1736
1674
  }
1737
1675
  /** @nocollapse */ PaginateService.ɵfac = function PaginateService_Factory(t) { return new (t || PaginateService)(ɵɵinject(TranslateService)); };
1738
1676
  /** @nocollapse */ PaginateService.ɵprov = ɵɵdefineInjectable({ token: PaginateService, factory: PaginateService.ɵfac, providedIn: "root" });
1739
- /*@__PURE__*/ (function () { ɵsetClassMetadata(PaginateService, [{
1677
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(PaginateService, [{
1740
1678
  type: Injectable,
1741
1679
  args: [{
1742
1680
  providedIn: "root"
@@ -1939,7 +1877,7 @@ class SelectClienteComponent {
1939
1877
  ɵɵpropertyInterpolate("selectionMode", ctx.selectMode);
1940
1878
  ɵɵproperty("value", ctx.clientes)("lazy", true)("paginator", true)("rows", ctx.page.rows)("totalRecords", ctx.page.total)("selection", ctx.clienteSeleccionado)("scrollable", true)("loading", ctx.loading);
1941
1879
  } }, directives: [Dialog, DefaultValueAccessor, InputText, NgControlStatus, NgModel, ButtonDirective, Table, PrimeTemplate, SelectableRow, NgIf], pipes: [TranslatePipe], encapsulation: 2 });
1942
- /*@__PURE__*/ (function () { ɵsetClassMetadata(SelectClienteComponent, [{
1880
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(SelectClienteComponent, [{
1943
1881
  type: Component,
1944
1882
  args: [{
1945
1883
  selector: 'select-cliente',
@@ -1968,35 +1906,20 @@ class Proveedor {
1968
1906
  }
1969
1907
  }
1970
1908
 
1971
- class ProveedorService {
1972
- constructor(api) {
1973
- this.api = api;
1974
- this.endpoint = 'proveedor';
1975
- }
1976
- getAll(params) {
1977
- return this.api.get(this.endpoint, params);
1978
- }
1979
- get(id) {
1980
- return this.api.get(`${this.endpoint}/${id}`);
1981
- }
1982
- save(obj) {
1983
- return this.api.post(this.endpoint, obj);
1984
- }
1985
- update(obj) {
1986
- return this.api.put(this.endpoint, obj.id, obj);
1987
- }
1988
- delete(id) {
1989
- return this.api.delete(this.endpoint, id);
1909
+ class ProveedorService extends CrudService {
1910
+ constructor(httpClient) {
1911
+ super(httpClient, '/proveedor');
1912
+ this.httpClient = httpClient;
1990
1913
  }
1991
1914
  }
1992
- /** @nocollapse */ ProveedorService.ɵfac = function ProveedorService_Factory(t) { return new (t || ProveedorService)(ɵɵinject(ApiService)); };
1915
+ /** @nocollapse */ ProveedorService.ɵfac = function ProveedorService_Factory(t) { return new (t || ProveedorService)(ɵɵinject(HttpClient)); };
1993
1916
  /** @nocollapse */ ProveedorService.ɵprov = ɵɵdefineInjectable({ token: ProveedorService, factory: ProveedorService.ɵfac, providedIn: 'root' });
1994
- /*@__PURE__*/ (function () { ɵsetClassMetadata(ProveedorService, [{
1917
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(ProveedorService, [{
1995
1918
  type: Injectable,
1996
1919
  args: [{
1997
1920
  providedIn: 'root'
1998
1921
  }]
1999
- }], function () { return [{ type: ApiService }]; }, null); })();
1922
+ }], function () { return [{ type: HttpClient }]; }, null); })();
2000
1923
 
2001
1924
  function SelectProveedorComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
2002
1925
  ɵɵelementStart(0, "tr");
@@ -2116,7 +2039,7 @@ class SelectProveedorComponent {
2116
2039
  ɵɵadvance(3);
2117
2040
  ɵɵproperty("rows", ctx.page.rows)("totalRecords", ctx.page.total)("pageLinkSize", 5)("rowsPerPageOptions", ɵɵpureFunction0(15, _c0$4));
2118
2041
  } }, directives: [Dialog, DefaultValueAccessor, InputText, NgControlStatus, NgModel, ButtonDirective, Table, PrimeTemplate, Paginator], pipes: [TranslatePipe], encapsulation: 2 });
2119
- /*@__PURE__*/ (function () { ɵsetClassMetadata(SelectProveedorComponent, [{
2042
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(SelectProveedorComponent, [{
2120
2043
  type: Component,
2121
2044
  args: [{
2122
2045
  templateUrl: 'select-proveedor.component.html',
@@ -2130,51 +2053,34 @@ class SelectProveedorComponent {
2130
2053
  type: Output
2131
2054
  }] }); })();
2132
2055
 
2133
- class AlmacenService {
2134
- constructor(api) {
2135
- this.api = api;
2136
- this.endpoint = 'almacen';
2137
- }
2138
- getAll(params) {
2139
- return this.api.get(this.endpoint, params);
2056
+ class AlmacenService extends CrudService {
2057
+ constructor(httpClient) {
2058
+ super(httpClient, '/almacen');
2059
+ this.httpClient = httpClient;
2140
2060
  }
2141
2061
  obtenerAlmacenEmpresa() {
2142
- return this.api.get(`${this.endpoint}/obtenerAlmacenEmpresa`);
2143
- }
2144
- get(id) {
2145
- return this.api.get(`${this.endpoint}/${id}`);
2146
- }
2147
- save(obj) {
2148
- return this.api.post(this.endpoint, obj);
2149
- }
2150
- update(obj) {
2151
- return this.api.put(this.endpoint, obj.id, obj);
2152
- }
2153
- delete(id) {
2154
- return this.api.delete(this.endpoint, id);
2062
+ let url = this.geturl() + '/obtenerAlmacenEmpresa';
2063
+ return this.getHttp().get(url, this.buildAuth());
2155
2064
  }
2156
2065
  }
2157
- /** @nocollapse */ AlmacenService.ɵfac = function AlmacenService_Factory(t) { return new (t || AlmacenService)(ɵɵinject(ApiService)); };
2066
+ /** @nocollapse */ AlmacenService.ɵfac = function AlmacenService_Factory(t) { return new (t || AlmacenService)(ɵɵinject(HttpClient)); };
2158
2067
  /** @nocollapse */ AlmacenService.ɵprov = ɵɵdefineInjectable({ token: AlmacenService, factory: AlmacenService.ɵfac, providedIn: 'root' });
2159
- /*@__PURE__*/ (function () { ɵsetClassMetadata(AlmacenService, [{
2068
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(AlmacenService, [{
2160
2069
  type: Injectable,
2161
2070
  args: [{
2162
2071
  providedIn: 'root'
2163
2072
  }]
2164
- }], function () { return [{ type: ApiService }]; }, null); })();
2073
+ }], function () { return [{ type: HttpClient }]; }, null); })();
2165
2074
 
2166
- class StockService {
2167
- constructor(api) {
2168
- this.api = api;
2169
- this.endpoint = 'stock';
2170
- }
2171
- getAll(params) {
2172
- return this.api.get(this.endpoint, params);
2075
+ class StockService extends CrudService {
2076
+ constructor(httpClient) {
2077
+ super(httpClient, 'stock');
2078
+ this.httpClient = httpClient;
2173
2079
  }
2174
2080
  obtenerExistenciasArticulosDescripcion(parametros, params) {
2175
- const url = `${this.endpoint}/obtenerExistenciasArticulos`;
2081
+ const url = this.getBaseUrl() + '/stock/obtenerExistenciasArticulos';
2176
2082
  let promesa = new Promise((resolve, reject) => {
2177
- this.api.post(url, parametros).subscribe((data) => {
2083
+ this.httpClient.post(url + this.serializeParams(params), parametros, this.buildAuth()).subscribe((data) => {
2178
2084
  resolve(data);
2179
2085
  }, (err) => {
2180
2086
  reject(err);
@@ -2183,48 +2089,33 @@ class StockService {
2183
2089
  return promesa;
2184
2090
  }
2185
2091
  }
2186
- /** @nocollapse */ StockService.ɵfac = function StockService_Factory(t) { return new (t || StockService)(ɵɵinject(ApiService)); };
2092
+ /** @nocollapse */ StockService.ɵfac = function StockService_Factory(t) { return new (t || StockService)(ɵɵinject(HttpClient)); };
2187
2093
  /** @nocollapse */ StockService.ɵprov = ɵɵdefineInjectable({ token: StockService, factory: StockService.ɵfac, providedIn: 'root' });
2188
- /*@__PURE__*/ (function () { ɵsetClassMetadata(StockService, [{
2094
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(StockService, [{
2189
2095
  type: Injectable,
2190
2096
  args: [{
2191
2097
  providedIn: 'root'
2192
2098
  }]
2193
- }], function () { return [{ type: ApiService }]; }, null); })();
2099
+ }], function () { return [{ type: HttpClient }]; }, null); })();
2194
2100
 
2195
- class ArticuloInformacionService {
2196
- constructor(api) {
2197
- this.api = api;
2198
- this.endpoint = 'articulo';
2199
- }
2200
- getAll(params) {
2201
- return this.api.get(this.endpoint, params);
2101
+ class ArticuloInformacionService extends CrudService {
2102
+ constructor(httpClient) {
2103
+ super(httpClient, 'articulo');
2104
+ this.httpClient = httpClient;
2202
2105
  }
2203
2106
  obtenerExistencias(articulo) {
2204
2107
  let uRL = "/existenciasArticulo/" + articulo;
2205
- return this.api.get(`${this.endpoint}${uRL}`);
2206
- }
2207
- get(id) {
2208
- return this.api.get(`${this.endpoint}/${id}`);
2209
- }
2210
- save(obj) {
2211
- return this.api.post(this.endpoint, obj);
2212
- }
2213
- update(obj) {
2214
- return this.api.put(this.endpoint, obj.id, obj);
2215
- }
2216
- delete(id) {
2217
- return this.api.delete(this.endpoint, id);
2108
+ return this.httpClient.get(this.geturl() + uRL, this.buildAuth());
2218
2109
  }
2219
2110
  }
2220
- /** @nocollapse */ ArticuloInformacionService.ɵfac = function ArticuloInformacionService_Factory(t) { return new (t || ArticuloInformacionService)(ɵɵinject(ApiService)); };
2111
+ /** @nocollapse */ ArticuloInformacionService.ɵfac = function ArticuloInformacionService_Factory(t) { return new (t || ArticuloInformacionService)(ɵɵinject(HttpClient)); };
2221
2112
  /** @nocollapse */ ArticuloInformacionService.ɵprov = ɵɵdefineInjectable({ token: ArticuloInformacionService, factory: ArticuloInformacionService.ɵfac, providedIn: 'root' });
2222
- /*@__PURE__*/ (function () { ɵsetClassMetadata(ArticuloInformacionService, [{
2113
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(ArticuloInformacionService, [{
2223
2114
  type: Injectable,
2224
2115
  args: [{
2225
2116
  providedIn: 'root'
2226
2117
  }]
2227
- }], function () { return [{ type: ApiService }]; }, null); })();
2118
+ }], function () { return [{ type: HttpClient }]; }, null); })();
2228
2119
 
2229
2120
  function SeleccionArticuloInformacionComponent_ng_template_2_col_1_Template(rf, ctx) { if (rf & 1) {
2230
2121
  ɵɵelement(0, "col");
@@ -2356,7 +2247,7 @@ class SeleccionArticuloInformacionComponent {
2356
2247
  ɵɵstyleMap(ɵɵpureFunction0(19, _c1$2));
2357
2248
  ɵɵproperty("columns", ctx.columnsData)("value", ctx.existenciasList)("scrollable", true)("responsive", true);
2358
2249
  } }, directives: [Dialog, Table, PrimeTemplate, Footer, ButtonDirective, NgForOf, ResizableColumn], styles: [""] });
2359
- /*@__PURE__*/ (function () { ɵsetClassMetadata(SeleccionArticuloInformacionComponent, [{
2250
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(SeleccionArticuloInformacionComponent, [{
2360
2251
  type: Component,
2361
2252
  args: [{
2362
2253
  selector: 'lib-seleccion-articulo-informacion',
@@ -2853,8 +2744,8 @@ class SeleccionaArticuloComponent {
2853
2744
  ɵɵproperty("rows", ctx.page.rows)("totalRecords", ctx.page.total)("pageLinkSize", 5)("rowsPerPageOptions", ɵɵpureFunction0(24, _c1$3));
2854
2745
  ɵɵadvance(1);
2855
2746
  ɵɵproperty("ngIf", ctx.showModalInformacion);
2856
- } }, directives: [Dialog, SelectControlValueAccessor, InputText, NgControlStatus, NgModel, NgSelectOption, ɵangular_packages_forms_forms_x, DefaultValueAccessor, ButtonDirective, NgForOf, Table, PrimeTemplate, Paginator, NgIf, TranslateDirective, SelectableRow, SeleccionArticuloInformacionComponent], pipes: [TranslatePipe, CurrencyPipe, DecimalPipe], styles: ["tr[_ngcontent-%COMP%]:hover{background-color:#34a835!important;color:#fff!important}table[_ngcontent-%COMP%]{position:absolute}"] });
2857
- /*@__PURE__*/ (function () { ɵsetClassMetadata(SeleccionaArticuloComponent, [{
2747
+ } }, directives: [Dialog, SelectControlValueAccessor, InputText, NgControlStatus, NgModel, NgSelectOption, ɵangular_packages_forms_forms_z, DefaultValueAccessor, ButtonDirective, NgForOf, Table, PrimeTemplate, Paginator, NgIf, TranslateDirective, SelectableRow, SeleccionArticuloInformacionComponent], pipes: [TranslatePipe, CurrencyPipe, DecimalPipe], styles: ["tr[_ngcontent-%COMP%]:hover{background-color:#34a835!important;color:#fff!important}table[_ngcontent-%COMP%]{position:absolute}"] });
2748
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(SeleccionaArticuloComponent, [{
2858
2749
  type: Component,
2859
2750
  args: [{
2860
2751
  selector: 'app-selecciona-articulo',
@@ -2875,35 +2766,20 @@ class SeleccionaArticuloComponent {
2875
2766
  type: Output
2876
2767
  }] }); })();
2877
2768
 
2878
- class AcreedorService {
2879
- constructor(api) {
2880
- this.api = api;
2881
- this.endpoint = 'acreedor';
2882
- }
2883
- getAll(params) {
2884
- return this.api.get(this.endpoint, params);
2885
- }
2886
- get(id) {
2887
- return this.api.get(`${this.endpoint}/${id}`);
2888
- }
2889
- save(obj) {
2890
- return this.api.post(this.endpoint, obj);
2891
- }
2892
- update(obj) {
2893
- return this.api.put(this.endpoint, obj.id, obj);
2894
- }
2895
- delete(id) {
2896
- return this.api.delete(this.endpoint, id);
2769
+ class AcreedorService extends CrudService {
2770
+ constructor(httpClient) {
2771
+ super(httpClient, 'acreedor');
2772
+ this.httpClient = httpClient;
2897
2773
  }
2898
2774
  }
2899
- /** @nocollapse */ AcreedorService.ɵfac = function AcreedorService_Factory(t) { return new (t || AcreedorService)(ɵɵinject(ApiService)); };
2775
+ /** @nocollapse */ AcreedorService.ɵfac = function AcreedorService_Factory(t) { return new (t || AcreedorService)(ɵɵinject(HttpClient)); };
2900
2776
  /** @nocollapse */ AcreedorService.ɵprov = ɵɵdefineInjectable({ token: AcreedorService, factory: AcreedorService.ɵfac, providedIn: 'root' });
2901
- /*@__PURE__*/ (function () { ɵsetClassMetadata(AcreedorService, [{
2777
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(AcreedorService, [{
2902
2778
  type: Injectable,
2903
2779
  args: [{
2904
2780
  providedIn: 'root'
2905
2781
  }]
2906
- }], function () { return [{ type: ApiService }]; }, null); })();
2782
+ }], function () { return [{ type: HttpClient }]; }, null); })();
2907
2783
 
2908
2784
  function SelectAcreedorComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
2909
2785
  ɵɵelementStart(0, "tr");
@@ -3091,7 +2967,7 @@ class SelectAcreedorComponent {
3091
2967
  ɵɵadvance(4);
3092
2968
  ɵɵproperty("rows", ctx.page.rows)("totalRecords", ctx.page.total)("pageLinkSize", 5)("rowsPerPageOptions", ɵɵpureFunction0(13, _c0$7));
3093
2969
  } }, directives: [Dialog, DefaultValueAccessor, InputText, NgControlStatus, NgModel, ButtonDirective, Table, PrimeTemplate, Paginator, SelectableRow, NgIf], pipes: [TranslatePipe, DatePipe], encapsulation: 2 });
3094
- /*@__PURE__*/ (function () { ɵsetClassMetadata(SelectAcreedorComponent, [{
2970
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(SelectAcreedorComponent, [{
3095
2971
  type: Component,
3096
2972
  args: [{
3097
2973
  templateUrl: 'select-acreedor.component.html',
@@ -3160,8 +3036,9 @@ function HttpLoaderFactory(http) {
3160
3036
  }
3161
3037
  class CoreLibModule {
3162
3038
  }
3039
+ /** @nocollapse */ CoreLibModule.ɵfac = function CoreLibModule_Factory(t) { return new (t || CoreLibModule)(); };
3163
3040
  /** @nocollapse */ CoreLibModule.ɵmod = ɵɵdefineNgModule({ type: CoreLibModule });
3164
- /** @nocollapse */ CoreLibModule.ɵinj = ɵɵdefineInjector({ factory: function CoreLibModule_Factory(t) { return new (t || CoreLibModule)(); }, providers: [
3041
+ /** @nocollapse */ CoreLibModule.ɵinj = ɵɵdefineInjector({ providers: [
3165
3042
  primeNgServices,
3166
3043
  { provide: HTTP_INTERCEPTORS, useClass: httpInterceptor, multi: true }
3167
3044
  ], imports: [[
@@ -3178,7 +3055,7 @@ class CoreLibModule {
3178
3055
  })
3179
3056
  ]] });
3180
3057
  (function () { (typeof ngJitMode === "undefined" || ngJitMode) && ɵɵsetNgModuleScope(CoreLibModule, { declarations: [Error404Component, LoadingComponent, LoadingScreenComponent, LoginModalComponent, PdfModalComponent, SessionCreateComponent, SelectClienteComponent, SelectProveedorComponent, SeleccionaArticuloComponent, SelectAcreedorComponent, CclistaComponent, CcseleccionDialogComponent, SeleccionArticuloInformacionComponent], imports: [CommonModule, CardModule, TooltipModule, OverlayPanelModule, RadioButtonModule, CheckboxModule, AutoCompleteModule, TableModule, TreeTableModule, CalendarModule, TableModule, ButtonModule, InputTextModule, DropdownModule, InputMaskModule, MessagesModule, MessageModule, PaginatorModule, ConfirmDialogModule, ProgressBarModule, TriStateCheckboxModule, KeyFilterModule, InputSwitchModule, DialogModule, TabViewModule, PanelModule, ToolbarModule, SplitButtonModule, FieldsetModule, TreeModule, TabMenuModule, MenubarModule, FormsModule, ToastrModule, TranslateModule], exports: [LoadingComponent, LoadingScreenComponent, LoginModalComponent, PdfModalComponent, SessionCreateComponent, SelectClienteComponent, SelectProveedorComponent, SeleccionaArticuloComponent, SelectAcreedorComponent, CclistaComponent, CcseleccionDialogComponent] }); })();
3181
- /*@__PURE__*/ (function () { ɵsetClassMetadata(CoreLibModule, [{
3058
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(CoreLibModule, [{
3182
3059
  type: NgModule,
3183
3060
  args: [{
3184
3061
  declarations: [
@@ -3236,7 +3113,7 @@ class ControlAccesoService {
3236
3113
  }
3237
3114
  /** @nocollapse */ ControlAccesoService.ɵfac = function ControlAccesoService_Factory(t) { return new (t || ControlAccesoService)(ɵɵinject(AuthService)); };
3238
3115
  /** @nocollapse */ ControlAccesoService.ɵprov = ɵɵdefineInjectable({ token: ControlAccesoService, factory: ControlAccesoService.ɵfac, providedIn: 'root' });
3239
- /*@__PURE__*/ (function () { ɵsetClassMetadata(ControlAccesoService, [{
3116
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(ControlAccesoService, [{
3240
3117
  type: Injectable,
3241
3118
  args: [{
3242
3119
  providedIn: 'root'
@@ -3285,7 +3162,7 @@ class InitService {
3285
3162
  }
3286
3163
  /** @nocollapse */ InitService.ɵfac = function InitService_Factory(t) { return new (t || InitService)(ɵɵinject(HttpClient), ɵɵinject(AuthService)); };
3287
3164
  /** @nocollapse */ InitService.ɵprov = ɵɵdefineInjectable({ token: InitService, factory: InitService.ɵfac, providedIn: 'root' });
3288
- /*@__PURE__*/ (function () { ɵsetClassMetadata(InitService, [{
3165
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(InitService, [{
3289
3166
  type: Injectable,
3290
3167
  args: [{
3291
3168
  providedIn: 'root'
@@ -3360,42 +3237,26 @@ class MessageService {
3360
3237
  }
3361
3238
  /** @nocollapse */ MessageService.ɵfac = function MessageService_Factory(t) { return new (t || MessageService)(ɵɵinject(ToastrService)); };
3362
3239
  /** @nocollapse */ MessageService.ɵprov = ɵɵdefineInjectable({ token: MessageService, factory: MessageService.ɵfac, providedIn: 'root' });
3363
- /*@__PURE__*/ (function () { ɵsetClassMetadata(MessageService, [{
3240
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(MessageService, [{
3364
3241
  type: Injectable,
3365
3242
  args: [{
3366
3243
  providedIn: 'root'
3367
3244
  }]
3368
3245
  }], function () { return [{ type: ToastrService }]; }, null); })();
3369
3246
 
3370
- class PersonaMoralService {
3371
- constructor(api) {
3372
- this.api = api;
3373
- this.endpoint = 'personaMoral';
3374
- }
3375
- getAll(params) {
3376
- return this.api.get(this.endpoint, params);
3377
- }
3378
- get(id) {
3379
- return this.api.get(`${this.endpoint}/${id}`);
3380
- }
3381
- save(obj) {
3382
- return this.api.post(this.endpoint, obj);
3383
- }
3384
- update(obj) {
3385
- return this.api.put(this.endpoint, obj.id, obj);
3386
- }
3387
- delete(id) {
3388
- return this.api.delete(this.endpoint, id);
3247
+ class PersonaMoralService extends CrudService {
3248
+ constructor(http) {
3249
+ super(http, '/personaMoral');
3389
3250
  }
3390
3251
  }
3391
- /** @nocollapse */ PersonaMoralService.ɵfac = function PersonaMoralService_Factory(t) { return new (t || PersonaMoralService)(ɵɵinject(ApiService)); };
3252
+ /** @nocollapse */ PersonaMoralService.ɵfac = function PersonaMoralService_Factory(t) { return new (t || PersonaMoralService)(ɵɵinject(HttpClient)); };
3392
3253
  /** @nocollapse */ PersonaMoralService.ɵprov = ɵɵdefineInjectable({ token: PersonaMoralService, factory: PersonaMoralService.ɵfac, providedIn: 'root' });
3393
- /*@__PURE__*/ (function () { ɵsetClassMetadata(PersonaMoralService, [{
3254
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(PersonaMoralService, [{
3394
3255
  type: Injectable,
3395
3256
  args: [{
3396
3257
  providedIn: 'root'
3397
3258
  }]
3398
- }], function () { return [{ type: ApiService }]; }, null); })();
3259
+ }], function () { return [{ type: HttpClient }]; }, null); })();
3399
3260
 
3400
3261
  class CanActivateGuard {
3401
3262
  constructor(controlAccesoService) {
@@ -3412,42 +3273,27 @@ class CanActivateGuard {
3412
3273
  }
3413
3274
  /** @nocollapse */ CanActivateGuard.ɵfac = function CanActivateGuard_Factory(t) { return new (t || CanActivateGuard)(ɵɵinject(ControlAccesoService)); };
3414
3275
  /** @nocollapse */ CanActivateGuard.ɵprov = ɵɵdefineInjectable({ token: CanActivateGuard, factory: CanActivateGuard.ɵfac, providedIn: 'root' });
3415
- /*@__PURE__*/ (function () { ɵsetClassMetadata(CanActivateGuard, [{
3276
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(CanActivateGuard, [{
3416
3277
  type: Injectable,
3417
3278
  args: [{
3418
3279
  providedIn: 'root'
3419
3280
  }]
3420
3281
  }], function () { return [{ type: ControlAccesoService }]; }, null); })();
3421
3282
 
3422
- class CatalogoAdicionalService {
3423
- constructor(api) {
3424
- this.api = api;
3425
- this.endpoint = 'catalogoAdicional';
3426
- }
3427
- getAll(params) {
3428
- return this.api.get(this.endpoint, params);
3429
- }
3430
- get(id) {
3431
- return this.api.get(`${this.endpoint}/${id}`);
3432
- }
3433
- save(obj) {
3434
- return this.api.post(this.endpoint, obj);
3435
- }
3436
- update(obj) {
3437
- return this.api.put(this.endpoint, obj.id, obj);
3438
- }
3439
- delete(id) {
3440
- return this.api.delete(this.endpoint, id);
3283
+ class CatalogoAdicionalService extends CrudService {
3284
+ constructor(httpClient) {
3285
+ super(httpClient, 'catalogoAdicional');
3286
+ this.httpClient = httpClient;
3441
3287
  }
3442
3288
  }
3443
- /** @nocollapse */ CatalogoAdicionalService.ɵfac = function CatalogoAdicionalService_Factory(t) { return new (t || CatalogoAdicionalService)(ɵɵinject(ApiService)); };
3289
+ /** @nocollapse */ CatalogoAdicionalService.ɵfac = function CatalogoAdicionalService_Factory(t) { return new (t || CatalogoAdicionalService)(ɵɵinject(HttpClient)); };
3444
3290
  /** @nocollapse */ CatalogoAdicionalService.ɵprov = ɵɵdefineInjectable({ token: CatalogoAdicionalService, factory: CatalogoAdicionalService.ɵfac, providedIn: 'root' });
3445
- /*@__PURE__*/ (function () { ɵsetClassMetadata(CatalogoAdicionalService, [{
3291
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(CatalogoAdicionalService, [{
3446
3292
  type: Injectable,
3447
3293
  args: [{
3448
3294
  providedIn: 'root'
3449
3295
  }]
3450
- }], function () { return [{ type: ApiService }]; }, null); })();
3296
+ }], function () { return [{ type: HttpClient }]; }, null); })();
3451
3297
 
3452
3298
  class Authenticated {
3453
3299
  constructor(authService, controlAccesoService, router) {
@@ -3511,7 +3357,7 @@ class Authenticated {
3511
3357
  }
3512
3358
  /** @nocollapse */ Authenticated.ɵfac = function Authenticated_Factory(t) { return new (t || Authenticated)(ɵɵinject(AuthService), ɵɵinject(ControlAccesoService), ɵɵinject(Router)); };
3513
3359
  /** @nocollapse */ Authenticated.ɵprov = ɵɵdefineInjectable({ token: Authenticated, factory: Authenticated.ɵfac, providedIn: 'root' });
3514
- /*@__PURE__*/ (function () { ɵsetClassMetadata(Authenticated, [{
3360
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(Authenticated, [{
3515
3361
  type: Injectable,
3516
3362
  args: [{
3517
3363
  providedIn: 'root'
@@ -3559,48 +3405,39 @@ class VersionCheckService {
3559
3405
  }
3560
3406
  /** @nocollapse */ VersionCheckService.ɵfac = function VersionCheckService_Factory(t) { return new (t || VersionCheckService)(ɵɵinject(HttpClient)); };
3561
3407
  /** @nocollapse */ VersionCheckService.ɵprov = ɵɵdefineInjectable({ token: VersionCheckService, factory: VersionCheckService.ɵfac, providedIn: 'root' });
3562
- /*@__PURE__*/ (function () { ɵsetClassMetadata(VersionCheckService, [{
3408
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(VersionCheckService, [{
3563
3409
  type: Injectable,
3564
3410
  args: [{
3565
3411
  providedIn: 'root'
3566
3412
  }]
3567
3413
  }], function () { return [{ type: HttpClient }]; }, null); })();
3568
3414
 
3569
- class AgenteService {
3570
- constructor(api) {
3571
- this.api = api;
3572
- this.endpoint = 'agente';
3415
+ class AgenteService extends CrudService {
3416
+ constructor(httpClient) {
3417
+ super(httpClient, 'agente');
3418
+ this.httpClient = httpClient;
3573
3419
  }
3574
3420
  saveUsuarioAgente(usuario) {
3575
- return this.api.post(`${this.endpoint}/usuario`, usuario);
3421
+ let url = this.getUrl('agente') + '/usuario';
3422
+ return this.getHttp().post(url, usuario, this.buildAuth());
3576
3423
  }
3577
3424
  getUsuarioAgente(id) {
3578
- return this.api.get(`${this.endpoint}/usuario/${id}`);
3425
+ let url = this.getUrl('agente') + '/usuario/' + id;
3426
+ return this.getHttp().get(url, this.buildAuth());
3579
3427
  }
3580
3428
  obtenerAgenteEmpresa() {
3581
- return this.api.get(`${this.endpoint}/obtenerAgenteEmpresa`);
3582
- }
3583
- get(id) {
3584
- return this.api.get(`${this.endpoint}/${id}`);
3585
- }
3586
- save(obj) {
3587
- return this.api.post(this.endpoint, obj);
3588
- }
3589
- update(obj) {
3590
- return this.api.put(this.endpoint, obj.id, obj);
3591
- }
3592
- delete(id) {
3593
- return this.api.delete(this.endpoint, id);
3429
+ let url = this.geturl() + '/obtenerAgenteEmpresa';
3430
+ return this.getHttp().get(url, this.buildAuth());
3594
3431
  }
3595
3432
  }
3596
- /** @nocollapse */ AgenteService.ɵfac = function AgenteService_Factory(t) { return new (t || AgenteService)(ɵɵinject(ApiService)); };
3433
+ /** @nocollapse */ AgenteService.ɵfac = function AgenteService_Factory(t) { return new (t || AgenteService)(ɵɵinject(HttpClient)); };
3597
3434
  /** @nocollapse */ AgenteService.ɵprov = ɵɵdefineInjectable({ token: AgenteService, factory: AgenteService.ɵfac, providedIn: 'root' });
3598
- /*@__PURE__*/ (function () { ɵsetClassMetadata(AgenteService, [{
3435
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(AgenteService, [{
3599
3436
  type: Injectable,
3600
3437
  args: [{
3601
3438
  providedIn: 'root'
3602
3439
  }]
3603
- }], function () { return [{ type: ApiService }]; }, null); })();
3440
+ }], function () { return [{ type: HttpClient }]; }, null); })();
3604
3441
 
3605
3442
  class Almacen {
3606
3443
  constructor() { }
@@ -3617,133 +3454,69 @@ class Banco {
3617
3454
  }
3618
3455
  }
3619
3456
 
3620
- class BancoService {
3621
- constructor(api) {
3622
- this.api = api;
3623
- this.endpoint = 'banco';
3624
- }
3625
- getAll(params) {
3626
- return this.api.get(this.endpoint, params);
3627
- }
3628
- get(id) {
3629
- return this.api.get(`${this.endpoint}/${id}`);
3630
- }
3631
- save(obj) {
3632
- return this.api.post(this.endpoint, obj);
3633
- }
3634
- update(obj) {
3635
- return this.api.put(this.endpoint, obj.id, obj);
3636
- }
3637
- delete(id) {
3638
- return this.api.delete(this.endpoint, id);
3457
+ class BancoService extends CrudService {
3458
+ constructor(http) {
3459
+ super(http, '/banco');
3639
3460
  }
3640
3461
  }
3641
- /** @nocollapse */ BancoService.ɵfac = function BancoService_Factory(t) { return new (t || BancoService)(ɵɵinject(ApiService)); };
3462
+ /** @nocollapse */ BancoService.ɵfac = function BancoService_Factory(t) { return new (t || BancoService)(ɵɵinject(HttpClient)); };
3642
3463
  /** @nocollapse */ BancoService.ɵprov = ɵɵdefineInjectable({ token: BancoService, factory: BancoService.ɵfac, providedIn: 'root' });
3643
- /*@__PURE__*/ (function () { ɵsetClassMetadata(BancoService, [{
3464
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(BancoService, [{
3644
3465
  type: Injectable,
3645
3466
  args: [{
3646
3467
  providedIn: 'root'
3647
3468
  }]
3648
- }], function () { return [{ type: ApiService }]; }, null); })();
3469
+ }], function () { return [{ type: HttpClient }]; }, null); })();
3649
3470
 
3650
3471
  class CatalogoTipo {
3651
3472
  constructor() { }
3652
3473
  }
3653
3474
 
3654
- class CatalogoTipoService {
3655
- constructor(api) {
3656
- this.api = api;
3657
- this.endpoint = 'catalogoTipo';
3658
- }
3659
- getAll(params) {
3660
- return this.api.get(this.endpoint, params);
3661
- }
3662
- get(id) {
3663
- return this.api.get(`${this.endpoint}/${id}`);
3664
- }
3665
- save(obj) {
3666
- return this.api.post(this.endpoint, obj);
3667
- }
3668
- update(obj) {
3669
- return this.api.put(this.endpoint, obj.id, obj);
3670
- }
3671
- delete(id) {
3672
- return this.api.delete(this.endpoint, id);
3475
+ class CatalogoTipoService extends CrudService {
3476
+ constructor(htt) {
3477
+ super(htt, '/catalogoTipo');
3673
3478
  }
3674
3479
  }
3675
- /** @nocollapse */ CatalogoTipoService.ɵfac = function CatalogoTipoService_Factory(t) { return new (t || CatalogoTipoService)(ɵɵinject(ApiService)); };
3480
+ /** @nocollapse */ CatalogoTipoService.ɵfac = function CatalogoTipoService_Factory(t) { return new (t || CatalogoTipoService)(ɵɵinject(HttpClient)); };
3676
3481
  /** @nocollapse */ CatalogoTipoService.ɵprov = ɵɵdefineInjectable({ token: CatalogoTipoService, factory: CatalogoTipoService.ɵfac, providedIn: 'root' });
3677
- /*@__PURE__*/ (function () { ɵsetClassMetadata(CatalogoTipoService, [{
3482
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(CatalogoTipoService, [{
3678
3483
  type: Injectable,
3679
3484
  args: [{
3680
3485
  providedIn: 'root'
3681
3486
  }]
3682
- }], function () { return [{ type: ApiService }]; }, null); })();
3487
+ }], function () { return [{ type: HttpClient }]; }, null); })();
3683
3488
 
3684
- class ClasificadorTipoService {
3685
- constructor(api) {
3686
- this.api = api;
3687
- this.endpoint = 'clasificadorTipo';
3688
- }
3689
- getAll(params) {
3690
- return this.api.get(this.endpoint, params);
3691
- }
3692
- get(id) {
3693
- return this.api.get(`${this.endpoint}/${id}`);
3694
- }
3695
- save(obj) {
3696
- return this.api.post(this.endpoint, obj);
3697
- }
3698
- update(obj) {
3699
- return this.api.put(this.endpoint, obj.id, obj);
3700
- }
3701
- delete(id) {
3702
- return this.api.delete(this.endpoint, id);
3489
+ class ClasificadorTipoService extends CrudService {
3490
+ constructor(http) {
3491
+ super(http, '/clasificadorTipo');
3703
3492
  }
3704
3493
  }
3705
- /** @nocollapse */ ClasificadorTipoService.ɵfac = function ClasificadorTipoService_Factory(t) { return new (t || ClasificadorTipoService)(ɵɵinject(ApiService)); };
3494
+ /** @nocollapse */ ClasificadorTipoService.ɵfac = function ClasificadorTipoService_Factory(t) { return new (t || ClasificadorTipoService)(ɵɵinject(HttpClient)); };
3706
3495
  /** @nocollapse */ ClasificadorTipoService.ɵprov = ɵɵdefineInjectable({ token: ClasificadorTipoService, factory: ClasificadorTipoService.ɵfac, providedIn: 'root' });
3707
- /*@__PURE__*/ (function () { ɵsetClassMetadata(ClasificadorTipoService, [{
3496
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(ClasificadorTipoService, [{
3708
3497
  type: Injectable,
3709
3498
  args: [{
3710
3499
  providedIn: 'root'
3711
3500
  }]
3712
- }], function () { return [{ type: ApiService }]; }, null); })();
3501
+ }], function () { return [{ type: HttpClient }]; }, null); })();
3713
3502
 
3714
3503
  class ClaveMovimiento {
3715
3504
  constructor() { }
3716
3505
  }
3717
3506
 
3718
- class ClaveMovimientoService {
3719
- constructor(api) {
3720
- this.api = api;
3721
- this.endpoint = 'claveMovimiento';
3722
- }
3723
- getAll(params) {
3724
- return this.api.get(this.endpoint, params);
3725
- }
3726
- get(id) {
3727
- return this.api.get(`${this.endpoint}/${id}`);
3728
- }
3729
- save(obj) {
3730
- return this.api.post(this.endpoint, obj);
3731
- }
3732
- update(obj) {
3733
- return this.api.put(this.endpoint, obj.id, obj);
3734
- }
3735
- delete(id) {
3736
- return this.api.delete(this.endpoint, id);
3507
+ class ClaveMovimientoService extends CrudService {
3508
+ constructor(http) {
3509
+ super(http, 'claveMovimiento');
3737
3510
  }
3738
3511
  }
3739
- /** @nocollapse */ ClaveMovimientoService.ɵfac = function ClaveMovimientoService_Factory(t) { return new (t || ClaveMovimientoService)(ɵɵinject(ApiService)); };
3512
+ /** @nocollapse */ ClaveMovimientoService.ɵfac = function ClaveMovimientoService_Factory(t) { return new (t || ClaveMovimientoService)(ɵɵinject(HttpClient)); };
3740
3513
  /** @nocollapse */ ClaveMovimientoService.ɵprov = ɵɵdefineInjectable({ token: ClaveMovimientoService, factory: ClaveMovimientoService.ɵfac, providedIn: 'root' });
3741
- /*@__PURE__*/ (function () { ɵsetClassMetadata(ClaveMovimientoService, [{
3514
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(ClaveMovimientoService, [{
3742
3515
  type: Injectable,
3743
3516
  args: [{
3744
3517
  providedIn: 'root'
3745
3518
  }]
3746
- }], function () { return [{ type: ApiService }]; }, null); })();
3519
+ }], function () { return [{ type: HttpClient }]; }, null); })();
3747
3520
 
3748
3521
  class ClienteCuentaBanco {
3749
3522
  constructor() {
@@ -3764,73 +3537,43 @@ class ClienteFlete {
3764
3537
  }
3765
3538
  }
3766
3539
 
3767
- class ClienteCuentaBancoService {
3768
- constructor(api) {
3769
- this.api = api;
3770
- this.endpoint = 'clienteCuentaBanco';
3540
+ class ClienteCuentaBancoService extends CrudService {
3541
+ constructor(httpClient) {
3542
+ super(httpClient, '/clienteCuentaBanco');
3543
+ this.httpClient = httpClient;
3771
3544
  }
3772
3545
  saveAll(params) {
3773
3546
  let p = { 'cuentas': params };
3774
- return this.api.post(this.endpoint, p);
3775
- }
3776
- get(id) {
3777
- return this.api.get(`${this.endpoint}/${id}`);
3778
- }
3779
- delete(id) {
3780
- return this.api.delete(this.endpoint, id);
3781
- }
3782
- getAll(params) {
3783
- return this.api.get(this.endpoint, params);
3784
- }
3785
- save(obj) {
3786
- return this.api.post(this.endpoint, obj);
3787
- }
3788
- update(obj) {
3789
- return this.api.put(this.endpoint, obj.id, obj);
3547
+ return this.httpClient.post(this.geturl(), p, this.buildAuth());
3790
3548
  }
3791
3549
  }
3792
- /** @nocollapse */ ClienteCuentaBancoService.ɵfac = function ClienteCuentaBancoService_Factory(t) { return new (t || ClienteCuentaBancoService)(ɵɵinject(ApiService)); };
3550
+ /** @nocollapse */ ClienteCuentaBancoService.ɵfac = function ClienteCuentaBancoService_Factory(t) { return new (t || ClienteCuentaBancoService)(ɵɵinject(HttpClient)); };
3793
3551
  /** @nocollapse */ ClienteCuentaBancoService.ɵprov = ɵɵdefineInjectable({ token: ClienteCuentaBancoService, factory: ClienteCuentaBancoService.ɵfac, providedIn: 'root' });
3794
- /*@__PURE__*/ (function () { ɵsetClassMetadata(ClienteCuentaBancoService, [{
3552
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(ClienteCuentaBancoService, [{
3795
3553
  type: Injectable,
3796
3554
  args: [{
3797
3555
  providedIn: 'root'
3798
3556
  }]
3799
- }], function () { return [{ type: ApiService }]; }, null); })();
3557
+ }], function () { return [{ type: HttpClient }]; }, null); })();
3800
3558
 
3801
- class ClienteFleteService {
3802
- constructor(api) {
3803
- this.api = api;
3804
- this.endpoint = 'clienteFlete';
3559
+ class ClienteFleteService extends CrudService {
3560
+ constructor(httpClient) {
3561
+ super(httpClient, '/clienteFlete');
3562
+ this.httpClient = httpClient;
3805
3563
  }
3806
3564
  saveAll(p) {
3807
3565
  let params = { fletes: p };
3808
- return this.api.post(this.endpoint, params);
3809
- }
3810
- get(id) {
3811
- return this.api.get(`${this.endpoint}/${id}`);
3812
- }
3813
- delete(id) {
3814
- return this.api.delete(this.endpoint, id);
3815
- }
3816
- getAll(params) {
3817
- return this.api.get(this.endpoint, params);
3818
- }
3819
- save(obj) {
3820
- return this.api.post(this.endpoint, obj);
3821
- }
3822
- update(obj) {
3823
- return this.api.put(this.endpoint, obj.id, obj);
3566
+ return this.save(params);
3824
3567
  }
3825
3568
  }
3826
- /** @nocollapse */ ClienteFleteService.ɵfac = function ClienteFleteService_Factory(t) { return new (t || ClienteFleteService)(ɵɵinject(ApiService)); };
3569
+ /** @nocollapse */ ClienteFleteService.ɵfac = function ClienteFleteService_Factory(t) { return new (t || ClienteFleteService)(ɵɵinject(HttpClient)); };
3827
3570
  /** @nocollapse */ ClienteFleteService.ɵprov = ɵɵdefineInjectable({ token: ClienteFleteService, factory: ClienteFleteService.ɵfac, providedIn: 'root' });
3828
- /*@__PURE__*/ (function () { ɵsetClassMetadata(ClienteFleteService, [{
3571
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(ClienteFleteService, [{
3829
3572
  type: Injectable,
3830
3573
  args: [{
3831
3574
  providedIn: 'root'
3832
3575
  }]
3833
- }], function () { return [{ type: ApiService }]; }, null); })();
3576
+ }], function () { return [{ type: HttpClient }]; }, null); })();
3834
3577
 
3835
3578
  class TipoContacto {
3836
3579
  constructor() {
@@ -3844,100 +3587,52 @@ class DatoContacto {
3844
3587
  }
3845
3588
  }
3846
3589
 
3847
- class DatoContactoService {
3848
- constructor(api) {
3849
- this.api = api;
3850
- this.endpoint = 'contacto';
3851
- }
3852
- getAll(params) {
3853
- return this.api.get(this.endpoint, params);
3854
- }
3855
- get(id) {
3856
- return this.api.get(`${this.endpoint}/${id}`);
3857
- }
3858
- save(obj) {
3859
- return this.api.post(this.endpoint, obj);
3860
- }
3861
- update(obj) {
3862
- return this.api.put(this.endpoint, obj.id, obj);
3863
- }
3864
- delete(id) {
3865
- return this.api.delete(this.endpoint, id);
3590
+ class DatoContactoService extends CrudService {
3591
+ constructor(http) {
3592
+ super(http, '/contacto');
3866
3593
  }
3867
3594
  }
3868
- /** @nocollapse */ DatoContactoService.ɵfac = function DatoContactoService_Factory(t) { return new (t || DatoContactoService)(ɵɵinject(ApiService)); };
3595
+ /** @nocollapse */ DatoContactoService.ɵfac = function DatoContactoService_Factory(t) { return new (t || DatoContactoService)(ɵɵinject(HttpClient)); };
3869
3596
  /** @nocollapse */ DatoContactoService.ɵprov = ɵɵdefineInjectable({ token: DatoContactoService, factory: DatoContactoService.ɵfac, providedIn: 'root' });
3870
- /*@__PURE__*/ (function () { ɵsetClassMetadata(DatoContactoService, [{
3597
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(DatoContactoService, [{
3871
3598
  type: Injectable,
3872
3599
  args: [{
3873
3600
  providedIn: 'root'
3874
3601
  }]
3875
- }], function () { return [{ type: ApiService }]; }, null); })();
3602
+ }], function () { return [{ type: HttpClient }]; }, null); })();
3876
3603
 
3877
- class DatoDireccionService {
3878
- constructor(api) {
3879
- this.api = api;
3880
- this.endpoint = 'datoDireccion';
3881
- }
3882
- getAll(params) {
3883
- return this.api.get(this.endpoint, params);
3884
- }
3885
- get(id) {
3886
- return this.api.get(`${this.endpoint}/${id}`);
3887
- }
3888
- save(obj) {
3889
- return this.api.post(this.endpoint, obj);
3890
- }
3891
- update(obj) {
3892
- return this.api.put(this.endpoint, obj.id, obj);
3893
- }
3894
- delete(id) {
3895
- return this.api.delete(this.endpoint, id);
3604
+ class DatoDireccionService extends CrudService {
3605
+ constructor(http) {
3606
+ super(http, '/datoDireccion');
3896
3607
  }
3897
3608
  }
3898
- /** @nocollapse */ DatoDireccionService.ɵfac = function DatoDireccionService_Factory(t) { return new (t || DatoDireccionService)(ɵɵinject(ApiService)); };
3609
+ /** @nocollapse */ DatoDireccionService.ɵfac = function DatoDireccionService_Factory(t) { return new (t || DatoDireccionService)(ɵɵinject(HttpClient)); };
3899
3610
  /** @nocollapse */ DatoDireccionService.ɵprov = ɵɵdefineInjectable({ token: DatoDireccionService, factory: DatoDireccionService.ɵfac, providedIn: 'root' });
3900
- /*@__PURE__*/ (function () { ɵsetClassMetadata(DatoDireccionService, [{
3611
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(DatoDireccionService, [{
3901
3612
  type: Injectable,
3902
3613
  args: [{
3903
3614
  providedIn: 'root'
3904
3615
  }]
3905
- }], function () { return [{ type: ApiService }]; }, null); })();
3616
+ }], function () { return [{ type: HttpClient }]; }, null); })();
3906
3617
 
3907
3618
  class Departamento {
3908
3619
  constructor() {
3909
3620
  }
3910
3621
  }
3911
3622
 
3912
- class DepartamentoService {
3913
- constructor(api) {
3914
- this.api = api;
3915
- this.endpoint = 'departamento';
3916
- }
3917
- getAll(params) {
3918
- return this.api.get(this.endpoint, params);
3919
- }
3920
- get(id) {
3921
- return this.api.get(`${this.endpoint}/${id}`);
3922
- }
3923
- save(obj) {
3924
- return this.api.post(this.endpoint, obj);
3925
- }
3926
- update(obj) {
3927
- return this.api.put(this.endpoint, obj.id, obj);
3928
- }
3929
- delete(id) {
3930
- return this.api.delete(this.endpoint, id);
3623
+ class DepartamentoService extends CrudService {
3624
+ constructor(http) {
3625
+ super(http, '/departamento');
3931
3626
  }
3932
3627
  }
3933
- /** @nocollapse */ DepartamentoService.ɵfac = function DepartamentoService_Factory(t) { return new (t || DepartamentoService)(ɵɵinject(ApiService)); };
3628
+ /** @nocollapse */ DepartamentoService.ɵfac = function DepartamentoService_Factory(t) { return new (t || DepartamentoService)(ɵɵinject(HttpClient)); };
3934
3629
  /** @nocollapse */ DepartamentoService.ɵprov = ɵɵdefineInjectable({ token: DepartamentoService, factory: DepartamentoService.ɵfac, providedIn: 'root' });
3935
- /*@__PURE__*/ (function () { ɵsetClassMetadata(DepartamentoService, [{
3630
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(DepartamentoService, [{
3936
3631
  type: Injectable,
3937
3632
  args: [{
3938
3633
  providedIn: 'root'
3939
3634
  }]
3940
- }], function () { return [{ type: ApiService }]; }, null); })();
3635
+ }], function () { return [{ type: HttpClient }]; }, null); })();
3941
3636
 
3942
3637
  class FormaPago {
3943
3638
  constructor() { }
@@ -3957,132 +3652,72 @@ class ConfiguracionEmpresaAdministrativa {
3957
3652
  }
3958
3653
  }
3959
3654
 
3960
- class EmpresaService {
3961
- constructor(api) {
3962
- this.api = api;
3963
- this.endpoint = 'empresa';
3964
- }
3965
- getAll(params) {
3966
- return this.api.get(this.endpoint, params);
3655
+ class EmpresaService extends CrudService {
3656
+ constructor(httpClient) {
3657
+ super(httpClient, '/empresa');
3658
+ this.httpClient = httpClient;
3967
3659
  }
3968
3660
  get() {
3969
- return this.api.get(`${this.endpoint}/configuracionEmpresaAdministrativo/configuracionUsuario`);
3970
- }
3971
- getByEmpresa(id) {
3972
- return this.api.get(`${this.endpoint}/configuracionEmpresaAdministrativo/configuracionUsuario/${id}`);
3973
- }
3974
- save(obj) {
3975
- return this.api.post(this.endpoint, obj);
3976
- }
3977
- update(obj) {
3978
- return this.api.put(this.endpoint, obj.id, obj);
3979
- }
3980
- delete(id) {
3981
- return this.api.delete(this.endpoint, id);
3661
+ // return super.get(1);
3662
+ return this.httpClient.get(this.getBaseUrl() + '/configuracionEmpresaAdministrativo/configuracionUsuario', this.buildAuth());
3982
3663
  }
3983
3664
  }
3984
- /** @nocollapse */ EmpresaService.ɵfac = function EmpresaService_Factory(t) { return new (t || EmpresaService)(ɵɵinject(ApiService)); };
3665
+ /** @nocollapse */ EmpresaService.ɵfac = function EmpresaService_Factory(t) { return new (t || EmpresaService)(ɵɵinject(HttpClient)); };
3985
3666
  /** @nocollapse */ EmpresaService.ɵprov = ɵɵdefineInjectable({ token: EmpresaService, factory: EmpresaService.ɵfac, providedIn: 'root' });
3986
- /*@__PURE__*/ (function () { ɵsetClassMetadata(EmpresaService, [{
3667
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(EmpresaService, [{
3987
3668
  type: Injectable,
3988
3669
  args: [{
3989
3670
  providedIn: 'root'
3990
3671
  }]
3991
- }], function () { return [{ type: ApiService }]; }, null); })();
3672
+ }], function () { return [{ type: HttpClient }]; }, null); })();
3992
3673
 
3993
- class FleteService {
3994
- constructor(api) {
3995
- this.api = api;
3996
- this.endpoint = 'flete';
3997
- }
3998
- getAll(params) {
3999
- return this.api.get(this.endpoint, params);
4000
- }
4001
- get(id) {
4002
- return this.api.get(`${this.endpoint}/${id}`);
4003
- }
4004
- save(obj) {
4005
- return this.api.post(this.endpoint, obj);
4006
- }
4007
- update(obj) {
4008
- return this.api.put(this.endpoint, obj.id, obj);
4009
- }
4010
- delete(id) {
4011
- return this.api.delete(this.endpoint, id);
3674
+ class FleteService extends CrudService {
3675
+ constructor(httpClient) {
3676
+ super(httpClient, '/flete');
3677
+ this.httpClient = httpClient;
4012
3678
  }
4013
3679
  }
4014
- /** @nocollapse */ FleteService.ɵfac = function FleteService_Factory(t) { return new (t || FleteService)(ɵɵinject(ApiService)); };
3680
+ /** @nocollapse */ FleteService.ɵfac = function FleteService_Factory(t) { return new (t || FleteService)(ɵɵinject(HttpClient)); };
4015
3681
  /** @nocollapse */ FleteService.ɵprov = ɵɵdefineInjectable({ token: FleteService, factory: FleteService.ɵfac, providedIn: 'root' });
4016
- /*@__PURE__*/ (function () { ɵsetClassMetadata(FleteService, [{
3682
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(FleteService, [{
4017
3683
  type: Injectable,
4018
3684
  args: [{
4019
3685
  providedIn: 'root'
4020
3686
  }]
4021
- }], function () { return [{ type: ApiService }]; }, null); })();
3687
+ }], function () { return [{ type: HttpClient }]; }, null); })();
4022
3688
 
4023
- class FormaPagoService {
4024
- constructor(api) {
4025
- this.api = api;
4026
- this.endpoint = 'FormaDePago';
4027
- }
4028
- getAll(params) {
4029
- return this.api.get(this.endpoint, params);
4030
- }
4031
- get(id) {
4032
- return this.api.get(`${this.endpoint}/${id}`);
4033
- }
4034
- save(obj) {
4035
- return this.api.post(this.endpoint, obj);
4036
- }
4037
- update(obj) {
4038
- return this.api.put(this.endpoint, obj.id, obj);
4039
- }
4040
- delete(id) {
4041
- return this.api.delete(this.endpoint, id);
3689
+ class FormaPagoService extends CrudService {
3690
+ constructor(http) {
3691
+ super(http, '/FormaDePago');
4042
3692
  }
4043
3693
  }
4044
- /** @nocollapse */ FormaPagoService.ɵfac = function FormaPagoService_Factory(t) { return new (t || FormaPagoService)(ɵɵinject(ApiService)); };
3694
+ /** @nocollapse */ FormaPagoService.ɵfac = function FormaPagoService_Factory(t) { return new (t || FormaPagoService)(ɵɵinject(HttpClient)); };
4045
3695
  /** @nocollapse */ FormaPagoService.ɵprov = ɵɵdefineInjectable({ token: FormaPagoService, factory: FormaPagoService.ɵfac, providedIn: "root" });
4046
- /*@__PURE__*/ (function () { ɵsetClassMetadata(FormaPagoService, [{
3696
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(FormaPagoService, [{
4047
3697
  type: Injectable,
4048
3698
  args: [{
4049
3699
  providedIn: "root"
4050
3700
  }]
4051
- }], function () { return [{ type: ApiService }]; }, null); })();
3701
+ }], function () { return [{ type: HttpClient }]; }, null); })();
4052
3702
 
4053
3703
  class Moneda {
4054
3704
  constructor() { }
4055
3705
  }
4056
3706
 
4057
- class MonedaService {
4058
- constructor(api) {
4059
- this.api = api;
4060
- this.endpoint = 'moneda';
4061
- }
4062
- getAll(params) {
4063
- return this.api.get(this.endpoint, params);
4064
- }
4065
- get(id) {
4066
- return this.api.get(`${this.endpoint}/${id}`);
4067
- }
4068
- save(obj) {
4069
- return this.api.post(this.endpoint, obj);
4070
- }
4071
- update(obj) {
4072
- return this.api.put(this.endpoint, obj.id, obj);
4073
- }
4074
- delete(id) {
4075
- return this.api.delete(this.endpoint, id);
3707
+ class MonedaService extends CrudService {
3708
+ constructor(httpClient) {
3709
+ super(httpClient, '/moneda');
3710
+ this.httpClient = httpClient;
4076
3711
  }
4077
3712
  }
4078
- /** @nocollapse */ MonedaService.ɵfac = function MonedaService_Factory(t) { return new (t || MonedaService)(ɵɵinject(ApiService)); };
3713
+ /** @nocollapse */ MonedaService.ɵfac = function MonedaService_Factory(t) { return new (t || MonedaService)(ɵɵinject(HttpClient)); };
4079
3714
  /** @nocollapse */ MonedaService.ɵprov = ɵɵdefineInjectable({ token: MonedaService, factory: MonedaService.ɵfac, providedIn: 'root' });
4080
- /*@__PURE__*/ (function () { ɵsetClassMetadata(MonedaService, [{
3715
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(MonedaService, [{
4081
3716
  type: Injectable,
4082
3717
  args: [{
4083
3718
  providedIn: 'root'
4084
3719
  }]
4085
- }], function () { return [{ type: ApiService }]; }, null); })();
3720
+ }], function () { return [{ type: HttpClient }]; }, null); })();
4086
3721
 
4087
3722
  class EstadoCivil {
4088
3723
  constructor() { }
@@ -4092,26 +3727,26 @@ class Genero {
4092
3727
  constructor() { }
4093
3728
  }
4094
3729
 
4095
- class PersonaFisicaService {
4096
- constructor(api) {
4097
- this.api = api;
4098
- this.endpoint = 'PersonaFisica';
3730
+ class PersonaFisicaService extends CrudService {
3731
+ constructor(httpClient) {
3732
+ super(httpClient, '/PersonaFisica');
3733
+ this.httpClient = httpClient;
4099
3734
  }
4100
3735
  getGeneros() {
4101
- return this.api.get(`${this.endpoint}/genero`);
3736
+ return this.httpClient.get(this.getBaseUrl() + '/genero', this.buildAuth());
4102
3737
  }
4103
3738
  getEstadoCivil() {
4104
- return this.api.get(`${this.endpoint}/estadoCivil`);
3739
+ return this.httpClient.get(this.getBaseUrl() + '/estadoCivil', this.buildAuth());
4105
3740
  }
4106
3741
  }
4107
- /** @nocollapse */ PersonaFisicaService.ɵfac = function PersonaFisicaService_Factory(t) { return new (t || PersonaFisicaService)(ɵɵinject(ApiService)); };
3742
+ /** @nocollapse */ PersonaFisicaService.ɵfac = function PersonaFisicaService_Factory(t) { return new (t || PersonaFisicaService)(ɵɵinject(HttpClient)); };
4108
3743
  /** @nocollapse */ PersonaFisicaService.ɵprov = ɵɵdefineInjectable({ token: PersonaFisicaService, factory: PersonaFisicaService.ɵfac, providedIn: "root" });
4109
- /*@__PURE__*/ (function () { ɵsetClassMetadata(PersonaFisicaService, [{
3744
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(PersonaFisicaService, [{
4110
3745
  type: Injectable,
4111
3746
  args: [{
4112
3747
  providedIn: "root"
4113
3748
  }]
4114
- }], function () { return [{ type: ApiService }]; }, null); })();
3749
+ }], function () { return [{ type: HttpClient }]; }, null); })();
4115
3750
 
4116
3751
  class ProveedorCuentaBanco {
4117
3752
  constructor() {
@@ -4128,224 +3763,138 @@ class ProveedorFlete {
4128
3763
  }
4129
3764
  }
4130
3765
 
4131
- class ProveedorCuentaBancoService {
4132
- constructor(api) {
4133
- this.api = api;
4134
- this.endpoint = 'proveedorCuentaBanco';
4135
- }
4136
- getAll(params) {
4137
- return this.api.get(this.endpoint, params);
3766
+ class ProveedorCuentaBancoService extends CrudService {
3767
+ constructor(httpClient) {
3768
+ super(httpClient, '/proveedorCuentaBanco');
3769
+ this.httpClient = httpClient;
4138
3770
  }
4139
3771
  saveAll(params) {
4140
3772
  let p = { 'cuentas': params };
4141
- return this.api.post(this.endpoint, p);
4142
- }
4143
- get(id) {
4144
- return this.api.get(`${this.endpoint}/${id}`);
4145
- }
4146
- delete(id) {
4147
- return this.api.delete(this.endpoint, id);
4148
- }
4149
- update(obj) {
4150
- return this.api.put(this.endpoint, obj.id, obj);
4151
- }
4152
- save(obj) {
4153
- return this.api.post(this.endpoint, obj);
3773
+ return this.httpClient.post(this.geturl(), p, this.buildAuth());
4154
3774
  }
4155
3775
  }
4156
- /** @nocollapse */ ProveedorCuentaBancoService.ɵfac = function ProveedorCuentaBancoService_Factory(t) { return new (t || ProveedorCuentaBancoService)(ɵɵinject(ApiService)); };
3776
+ /** @nocollapse */ ProveedorCuentaBancoService.ɵfac = function ProveedorCuentaBancoService_Factory(t) { return new (t || ProveedorCuentaBancoService)(ɵɵinject(HttpClient)); };
4157
3777
  /** @nocollapse */ ProveedorCuentaBancoService.ɵprov = ɵɵdefineInjectable({ token: ProveedorCuentaBancoService, factory: ProveedorCuentaBancoService.ɵfac, providedIn: 'root' });
4158
- /*@__PURE__*/ (function () { ɵsetClassMetadata(ProveedorCuentaBancoService, [{
3778
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(ProveedorCuentaBancoService, [{
4159
3779
  type: Injectable,
4160
3780
  args: [{
4161
3781
  providedIn: 'root'
4162
3782
  }]
4163
- }], function () { return [{ type: ApiService }]; }, null); })();
3783
+ }], function () { return [{ type: HttpClient }]; }, null); })();
4164
3784
 
4165
- class ProveedorFleteService {
4166
- constructor(api) {
4167
- this.api = api;
4168
- this.endpoint = 'proveedorFlete';
4169
- }
4170
- getAll(params) {
4171
- return this.api.get(this.endpoint, params);
3785
+ class ProveedorFleteService extends CrudService {
3786
+ constructor(httpClient) {
3787
+ super(httpClient, '/proveedorFlete');
3788
+ this.httpClient = httpClient;
4172
3789
  }
4173
3790
  saveAll(p) {
4174
3791
  let params = { fletes: p };
4175
3792
  return this.save(params);
4176
3793
  }
4177
- save(obj) {
4178
- return this.api.post(this.endpoint, obj);
4179
- }
4180
- update(obj) {
4181
- return this.api.put(this.endpoint, obj.id, obj);
4182
- }
4183
- delete(id) {
4184
- return this.api.delete(this.endpoint, id);
4185
- }
4186
3794
  }
4187
- /** @nocollapse */ ProveedorFleteService.ɵfac = function ProveedorFleteService_Factory(t) { return new (t || ProveedorFleteService)(ɵɵinject(ApiService)); };
3795
+ /** @nocollapse */ ProveedorFleteService.ɵfac = function ProveedorFleteService_Factory(t) { return new (t || ProveedorFleteService)(ɵɵinject(HttpClient)); };
4188
3796
  /** @nocollapse */ ProveedorFleteService.ɵprov = ɵɵdefineInjectable({ token: ProveedorFleteService, factory: ProveedorFleteService.ɵfac, providedIn: 'root' });
4189
- /*@__PURE__*/ (function () { ɵsetClassMetadata(ProveedorFleteService, [{
3797
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(ProveedorFleteService, [{
4190
3798
  type: Injectable,
4191
3799
  args: [{
4192
3800
  providedIn: 'root'
4193
3801
  }]
4194
- }], function () { return [{ type: ApiService }]; }, null); })();
3802
+ }], function () { return [{ type: HttpClient }]; }, null); })();
4195
3803
 
4196
- class ClaveAumentoDisminucionService {
4197
- constructor(api) {
4198
- this.api = api;
4199
- this.endpoint = 'claveAumentoDisminucion';
4200
- }
4201
- getAll(params) {
4202
- return this.api.get(this.endpoint, params);
4203
- }
4204
- get(id) {
4205
- return this.api.get(`${this.endpoint}/${id}`);
4206
- }
4207
- save(obj) {
4208
- return this.api.post(this.endpoint, obj);
4209
- }
4210
- update(obj) {
4211
- return this.api.put(this.endpoint, obj.id, obj);
4212
- }
4213
- delete(id) {
4214
- return this.api.delete(this.endpoint, id);
3804
+ class ClaveAumentoDisminucionService extends CrudService {
3805
+ constructor(http) {
3806
+ super(http, 'claveAumentoDisminucion');
4215
3807
  }
4216
3808
  }
4217
- /** @nocollapse */ ClaveAumentoDisminucionService.ɵfac = function ClaveAumentoDisminucionService_Factory(t) { return new (t || ClaveAumentoDisminucionService)(ɵɵinject(ApiService)); };
3809
+ /** @nocollapse */ ClaveAumentoDisminucionService.ɵfac = function ClaveAumentoDisminucionService_Factory(t) { return new (t || ClaveAumentoDisminucionService)(ɵɵinject(HttpClient)); };
4218
3810
  /** @nocollapse */ ClaveAumentoDisminucionService.ɵprov = ɵɵdefineInjectable({ token: ClaveAumentoDisminucionService, factory: ClaveAumentoDisminucionService.ɵfac, providedIn: 'root' });
4219
- /*@__PURE__*/ (function () { ɵsetClassMetadata(ClaveAumentoDisminucionService, [{
3811
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(ClaveAumentoDisminucionService, [{
4220
3812
  type: Injectable,
4221
3813
  args: [{
4222
3814
  providedIn: 'root'
4223
3815
  }]
4224
- }], function () { return [{ type: ApiService }]; }, null); })();
3816
+ }], function () { return [{ type: HttpClient }]; }, null); })();
4225
3817
 
4226
- class SerieDocumentoService {
4227
- constructor(api) {
4228
- this.api = api;
4229
- this.endpoint = 'serieDocumento';
3818
+ class SerieDocumentoService extends CrudService {
3819
+ constructor(httpClient) {
3820
+ super(httpClient, 'serieDocumento');
3821
+ this.httpClient = httpClient;
4230
3822
  }
4231
3823
  getTipos() {
4232
- return this.api.get(`${this.endpoint}/tipoSerie`);
3824
+ return this.httpClient.get(this.getUrl('serieDocumento') + '/tipoSerie', this.buildAuth());
4233
3825
  }
4234
3826
  getReporte(params) {
4235
- return this.api.get(`${this.endpoint}/descargaFormatoReporte`, params);
4236
- }
4237
- get(id) {
4238
- return this.api.get(`${this.endpoint}/${id}`);
4239
- }
4240
- save(obj) {
4241
- return this.api.post(this.endpoint, obj);
4242
- }
4243
- update(obj) {
4244
- return this.api.put(this.endpoint, obj.id, obj);
4245
- }
4246
- delete(id) {
4247
- return this.api.delete(this.endpoint, id);
3827
+ return this.httpClient.get(this.getUrl('serieDocumento') + '/descargaFormatoReporte' + this.serializeParams(params), this.buildAuth());
4248
3828
  }
4249
3829
  }
4250
- /** @nocollapse */ SerieDocumentoService.ɵfac = function SerieDocumentoService_Factory(t) { return new (t || SerieDocumentoService)(ɵɵinject(ApiService)); };
3830
+ /** @nocollapse */ SerieDocumentoService.ɵfac = function SerieDocumentoService_Factory(t) { return new (t || SerieDocumentoService)(ɵɵinject(HttpClient)); };
4251
3831
  /** @nocollapse */ SerieDocumentoService.ɵprov = ɵɵdefineInjectable({ token: SerieDocumentoService, factory: SerieDocumentoService.ɵfac, providedIn: 'root' });
4252
- /*@__PURE__*/ (function () { ɵsetClassMetadata(SerieDocumentoService, [{
3832
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(SerieDocumentoService, [{
4253
3833
  type: Injectable,
4254
3834
  args: [{
4255
3835
  providedIn: 'root'
4256
3836
  }]
4257
- }], function () { return [{ type: ApiService }]; }, null); })();
3837
+ }], function () { return [{ type: HttpClient }]; }, null); })();
4258
3838
 
4259
3839
  class SerieDocumento {
4260
3840
  constructor() { }
4261
3841
  }
4262
3842
 
4263
- class TipoContactoService {
4264
- constructor(api) {
4265
- this.api = api;
4266
- this.endpoint = 'tipoContacto';
4267
- }
4268
- getAll(params) {
4269
- return this.api.get(this.endpoint, params);
4270
- }
4271
- get(id) {
4272
- return this.api.get(`${this.endpoint}/${id}`);
4273
- }
4274
- save(obj) {
4275
- return this.api.post(this.endpoint, obj);
4276
- }
4277
- update(obj) {
4278
- return this.api.put(this.endpoint, obj.id, obj);
4279
- }
4280
- delete(id) {
4281
- return this.api.delete(this.endpoint, id);
3843
+ class TipoContactoService extends CrudService {
3844
+ constructor(http) {
3845
+ super(http, '/tipoContacto');
4282
3846
  }
4283
3847
  }
4284
- /** @nocollapse */ TipoContactoService.ɵfac = function TipoContactoService_Factory(t) { return new (t || TipoContactoService)(ɵɵinject(ApiService)); };
3848
+ /** @nocollapse */ TipoContactoService.ɵfac = function TipoContactoService_Factory(t) { return new (t || TipoContactoService)(ɵɵinject(HttpClient)); };
4285
3849
  /** @nocollapse */ TipoContactoService.ɵprov = ɵɵdefineInjectable({ token: TipoContactoService, factory: TipoContactoService.ɵfac, providedIn: 'root' });
4286
- /*@__PURE__*/ (function () { ɵsetClassMetadata(TipoContactoService, [{
3850
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(TipoContactoService, [{
4287
3851
  type: Injectable,
4288
3852
  args: [{
4289
3853
  providedIn: 'root'
4290
3854
  }]
4291
- }], function () { return [{ type: ApiService }]; }, null); })();
3855
+ }], function () { return [{ type: HttpClient }]; }, null); })();
4292
3856
 
4293
3857
  class Ubicacion {
4294
3858
  constructor() { }
4295
3859
  }
4296
3860
 
4297
- class UbicacionService {
4298
- constructor(api) {
4299
- this.api = api;
4300
- this.endpoint = 'ubicacion';
4301
- }
4302
- getAll(params) {
4303
- return this.api.get(this.endpoint, params);
4304
- }
4305
- get(id) {
4306
- return this.api.get(`${this.endpoint}/${id}`);
4307
- }
4308
- save(obj) {
4309
- return this.api.post(this.endpoint, obj);
4310
- }
4311
- update(obj) {
4312
- return this.api.put(this.endpoint, obj.id, obj);
4313
- }
4314
- delete(id) {
4315
- return this.api.delete(this.endpoint, id);
3861
+ class UbicacionService extends CrudService {
3862
+ constructor(http) {
3863
+ super(http, 'ubicacion');
4316
3864
  }
4317
3865
  }
4318
- /** @nocollapse */ UbicacionService.ɵfac = function UbicacionService_Factory(t) { return new (t || UbicacionService)(ɵɵinject(ApiService)); };
3866
+ /** @nocollapse */ UbicacionService.ɵfac = function UbicacionService_Factory(t) { return new (t || UbicacionService)(ɵɵinject(HttpClient)); };
4319
3867
  /** @nocollapse */ UbicacionService.ɵprov = ɵɵdefineInjectable({ token: UbicacionService, factory: UbicacionService.ɵfac, providedIn: 'root' });
4320
- /*@__PURE__*/ (function () { ɵsetClassMetadata(UbicacionService, [{
3868
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(UbicacionService, [{
4321
3869
  type: Injectable,
4322
3870
  args: [{
4323
3871
  providedIn: 'root'
4324
3872
  }]
4325
- }], function () { return [{ type: ApiService }]; }, null); })();
3873
+ }], function () { return [{ type: HttpClient }]; }, null); })();
4326
3874
 
4327
3875
  class TipoCatalogo {
4328
3876
  }
4329
3877
  TipoCatalogo.ARTICULO = 2;
4330
3878
  TipoCatalogo.USO_CFDI = 11;
4331
3879
 
4332
- class AcreedorCuentaContableService {
4333
- constructor(api) {
4334
- this.api = api;
4335
- this.endpoint = 'acreedorCuentaContable';
3880
+ class AcreedorCuentaContableService extends CrudService {
3881
+ constructor(httpClient) {
3882
+ super(httpClient, 'acreedorCuentaContable');
3883
+ this.httpClient = httpClient;
4336
3884
  }
4337
3885
  cuentasContables() {
4338
- return this.api.get(`${this.endpoint}/obtieneCuentasContablesRecursivo`);
3886
+ let uRL = "/cuentaContable/obtieneCuentasContablesRecursivo/";
3887
+ return this.httpClient.get(this.getUrl() + uRL, this.buildAuth());
4339
3888
  }
4340
3889
  }
4341
- /** @nocollapse */ AcreedorCuentaContableService.ɵfac = function AcreedorCuentaContableService_Factory(t) { return new (t || AcreedorCuentaContableService)(ɵɵinject(ApiService)); };
3890
+ /** @nocollapse */ AcreedorCuentaContableService.ɵfac = function AcreedorCuentaContableService_Factory(t) { return new (t || AcreedorCuentaContableService)(ɵɵinject(HttpClient)); };
4342
3891
  /** @nocollapse */ AcreedorCuentaContableService.ɵprov = ɵɵdefineInjectable({ token: AcreedorCuentaContableService, factory: AcreedorCuentaContableService.ɵfac, providedIn: 'root' });
4343
- /*@__PURE__*/ (function () { ɵsetClassMetadata(AcreedorCuentaContableService, [{
3892
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(AcreedorCuentaContableService, [{
4344
3893
  type: Injectable,
4345
3894
  args: [{
4346
3895
  providedIn: 'root'
4347
3896
  }]
4348
- }], function () { return [{ type: ApiService }]; }, null); })();
3897
+ }], function () { return [{ type: HttpClient }]; }, null); })();
4349
3898
 
4350
3899
  class CuentaContableModel {
4351
3900
  constructor() {
@@ -4366,5 +3915,5 @@ class NormaInformacionFinancieraModel {
4366
3915
  * Generated bundle index. Do not edit.
4367
3916
  */
4368
3917
 
4369
- export { AcreedorCuentaContableService, AcreedorService, Agente, AgenteService, Almacen, AlmacenService, ApiService, Auth, AuthService, Authenticated, Banco, BancoService, CanActivateGuard, CatalogoAdicionalService, CatalogoTipo, CatalogoTipoService, CclistaComponent, CcseleccionDialogComponent, ClasificadorTipo, ClasificadorTipoService, ClaveAumentoDisminucionService, ClaveMovimiento, ClaveMovimientoService, Cliente, ClienteCuentaBanco, ClienteCuentaBancoService, ClienteFlete, ClienteFleteService, ClienteService, ConfiguracionEmpresaAdministrativa, ControlAccesoService, CoreLibModule, CuentaContableModel, DatoContacto, DatoContactoService, DatoDireccion, DatoDireccionService, Departamento, DepartamentoService, Empresa, EmpresaService, Error404Component, EstadoCivil, FileService, Flete, FleteService, FormaPago, FormaPagoService, Genero, GlobalService, HttpLoaderFactory, InitService, LoadingComponent, LoadingScreenComponent, LoadingScreenService, LoadingService, LoginModalComponent, LoginModalService, MessageService, Moneda, MonedaService, NormaInformacionFinancieraModel, PaginateService, PdfModalComponent, PdfModalService, Persona, PersonaFisica, PersonaFisicaService, PersonaMoral, PersonaMoralService, Proveedor, ProveedorCuentaBanco, ProveedorCuentaBancoService, ProveedorFlete, ProveedorFleteService, ProveedorService, SeleccionaArticuloComponent, SelectAcreedorComponent, SelectClienteComponent, SelectProveedorComponent, SerieDocumento, SerieDocumentoService, SessionCajaService, SessionCreateComponent, StockService, TipoCatalogo, TipoContacto, TipoContactoService, Ubicacion, UbicacionService, Usuario, VersionCheckService, httpInterceptor };
3918
+ export { AcreedorCuentaContableService, AcreedorService, Agente, AgenteService, Almacen, AlmacenService, Auth, AuthService, Authenticated, Banco, BancoService, CanActivateGuard, CatalogoAdicionalService, CatalogoTipo, CatalogoTipoService, CclistaComponent, CcseleccionDialogComponent, ClasificadorTipo, ClasificadorTipoService, ClaveAumentoDisminucionService, ClaveMovimiento, ClaveMovimientoService, Cliente, ClienteCuentaBanco, ClienteCuentaBancoService, ClienteFlete, ClienteFleteService, ClienteService, ConfiguracionEmpresaAdministrativa, ControlAccesoService, CoreLibModule, CrudService, CuentaContableModel, DatoContacto, DatoContactoService, DatoDireccion, DatoDireccionService, Departamento, DepartamentoService, Empresa, EmpresaService, Error404Component, EstadoCivil, FileService, Flete, FleteService, FormaPago, FormaPagoService, Genero, GlobalService, HttpLoaderFactory, InitService, LoadingComponent, LoadingScreenComponent, LoadingScreenService, LoadingService, LoginModalComponent, LoginModalService, MessageService, Moneda, MonedaService, NormaInformacionFinancieraModel, PaginateService, PdfModalComponent, PdfModalService, Persona, PersonaFisica, PersonaFisicaService, PersonaMoral, PersonaMoralService, Proveedor, ProveedorCuentaBanco, ProveedorCuentaBancoService, ProveedorFlete, ProveedorFleteService, ProveedorService, SeleccionaArticuloComponent, SelectAcreedorComponent, SelectClienteComponent, SelectProveedorComponent, SerieDocumento, SerieDocumentoService, SessionCajaService, SessionCreateComponent, StockService, TipoCatalogo, TipoContacto, TipoContactoService, Ubicacion, UbicacionService, Usuario, VersionCheckService, httpInterceptor };
4370
3919
  //# sourceMappingURL=visorus-erp-core.js.map