utn-cli 2.0.10 → 2.0.12
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.
- package/commands/frontend.js +1 -1
- package/package.json +1 -1
- package/templates/backend/rutas/API.js +2 -2
- package/templates/backend/rutas/ConsentimientoInformado.js +2 -2
- package/templates/backend/rutas/Servicio1.js +10 -10
- package/templates/backend/rutas/misc.js +32 -32
- package/templates/backend/servicios/Nucleo/Miscelaneas.js +1 -1
- package/templates/frontend/src/app/Paginas/Nucleo/contenedor-componentes/contenedor-componentes.component.ts +2 -1
package/commands/frontend.js
CHANGED
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ const { moitoreo } = require('../servicios/Nucleo/Monitoreo.js');
|
|
|
6
6
|
|
|
7
7
|
Router.post('/monitoreo/', async (solicitud, respuesta, next) => {
|
|
8
8
|
try {
|
|
9
|
-
if (await Miscelaneo.
|
|
9
|
+
if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
10
10
|
if (await moitoreo()) {
|
|
11
11
|
return respuesta.status(200).json({ 'Estado:': 'Ok' });
|
|
12
12
|
} else {
|
|
@@ -20,7 +20,7 @@ Router.post('/monitoreo/', async (solicitud, respuesta, next) => {
|
|
|
20
20
|
|
|
21
21
|
Router.get('/monitoreoV2', async (solicitud, respuesta, next) => {
|
|
22
22
|
try {
|
|
23
|
-
if (await Miscelaneo.
|
|
23
|
+
if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
24
24
|
try {
|
|
25
25
|
if (await moitoreo()) {
|
|
26
26
|
return respuesta.status(200).json({ 'Estado:': 'Ok' });
|
|
@@ -7,7 +7,7 @@ const ManejadorDeErrores = require('../servicios/Nucleo/ManejadorDeErrores.js');
|
|
|
7
7
|
|
|
8
8
|
Router.post("/AceptarConsentimientoInformado", async (solicitud, respuesta, next) => {
|
|
9
9
|
try {
|
|
10
|
-
if (await Miscelaneo.
|
|
10
|
+
if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
11
11
|
try {
|
|
12
12
|
const Datos = solicitud.body;
|
|
13
13
|
Datos.LastUser = await Miscelaneo.generarLastUser(solicitud);
|
|
@@ -26,7 +26,7 @@ Router.post("/AceptarConsentimientoInformado", async (solicitud, respuesta, next
|
|
|
26
26
|
|
|
27
27
|
Router.get("/ConsentimientoInformado", async (solicitud, respuesta, next) => {
|
|
28
28
|
try {
|
|
29
|
-
if (await Miscelaneo.
|
|
29
|
+
if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
30
30
|
try {
|
|
31
31
|
const Datos = {};
|
|
32
32
|
Datos.LastUser = await Miscelaneo.generarLastUser(solicitud);
|
|
@@ -7,7 +7,7 @@ const ManejadorDeErrores = require('../servicios/Nucleo/ManejadorDeErrores.js');
|
|
|
7
7
|
|
|
8
8
|
Router.get('/funcionDeEjemplo', async (solicitud, respuesta, next) => {
|
|
9
9
|
try {
|
|
10
|
-
if (await Miscelaneo.
|
|
10
|
+
if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
11
11
|
try {
|
|
12
12
|
return respuesta.json({ body: await Servicio1.funcionDeEjemplo(), error: undefined });
|
|
13
13
|
} catch (error) {
|
|
@@ -24,7 +24,7 @@ Router.get('/funcionDeEjemplo', async (solicitud, respuesta, next) => {
|
|
|
24
24
|
|
|
25
25
|
// Router.get("/listar/:PaginadorAccion/:PaginadorIndice/:PaginadorTamanio/:PaginadorFiltro/:PaginadorColumnaParaFiltrar/:PaginadorColumnasParaFiltrar/:ColumnaParaOrdenar/:TipoDeOrden", async (solicitud, respuesta, next) => {
|
|
26
26
|
// try {
|
|
27
|
-
// if (await Miscelaneo.
|
|
27
|
+
// if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
28
28
|
// try {
|
|
29
29
|
// return respuesta.json({ body: await CorreosPersona.listar(solicitud.params), error: undefined });
|
|
30
30
|
// } catch (error) {
|
|
@@ -41,7 +41,7 @@ Router.get('/funcionDeEjemplo', async (solicitud, respuesta, next) => {
|
|
|
41
41
|
|
|
42
42
|
// Router.get('/Estados', async (solicitud, respuesta, next) => {
|
|
43
43
|
// try {
|
|
44
|
-
// if (await Miscelaneo.
|
|
44
|
+
// if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
45
45
|
// try {
|
|
46
46
|
// return respuesta.json({ body: await BeneficiosEstudiantiles.Estados(), error: undefined });
|
|
47
47
|
// } catch (error) {
|
|
@@ -58,7 +58,7 @@ Router.get('/funcionDeEjemplo', async (solicitud, respuesta, next) => {
|
|
|
58
58
|
|
|
59
59
|
// Router.get('/tipos', async (solicitud, respuesta, next) => {
|
|
60
60
|
// try {
|
|
61
|
-
// if (await Miscelaneo.
|
|
61
|
+
// if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
62
62
|
// try {
|
|
63
63
|
// return respuesta.json({ body: await BeneficiosEstudiantiles.tipos(), error: undefined });
|
|
64
64
|
// } catch (error) {
|
|
@@ -75,7 +75,7 @@ Router.get('/funcionDeEjemplo', async (solicitud, respuesta, next) => {
|
|
|
75
75
|
|
|
76
76
|
// Router.get('/reporte', async (solicitud, respuesta, next) => {
|
|
77
77
|
// try {
|
|
78
|
-
// if (await Miscelaneo.
|
|
78
|
+
// if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
79
79
|
// try {
|
|
80
80
|
// respuesta.header('Content-Type', 'text/csv; charset=utf-8');
|
|
81
81
|
// respuesta.attachment('Datos.csv');
|
|
@@ -94,7 +94,7 @@ Router.get('/funcionDeEjemplo', async (solicitud, respuesta, next) => {
|
|
|
94
94
|
|
|
95
95
|
// Router.get('/detalle/:BeneficioId', async (solicitud, respuesta, next) => {
|
|
96
96
|
// try {
|
|
97
|
-
// if (await Miscelaneo.
|
|
97
|
+
// if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
98
98
|
// try {
|
|
99
99
|
// return respuesta.json({ body: await BeneficiosEstudiantiles.detalle(solicitud.params.BeneficioId), error: undefined });
|
|
100
100
|
// } catch (error) {
|
|
@@ -111,7 +111,7 @@ Router.get('/funcionDeEjemplo', async (solicitud, respuesta, next) => {
|
|
|
111
111
|
|
|
112
112
|
// Router.post('/actualizar', async (solicitud, respuesta, next) => {
|
|
113
113
|
// try {
|
|
114
|
-
// if (await Miscelaneo.
|
|
114
|
+
// if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
115
115
|
// try {
|
|
116
116
|
// const Datos = solicitud.body;
|
|
117
117
|
// Datos.LastUser = await Miscelaneo.generarLastUser(solicitud);
|
|
@@ -130,7 +130,7 @@ Router.get('/funcionDeEjemplo', async (solicitud, respuesta, next) => {
|
|
|
130
130
|
|
|
131
131
|
// Router.post('/borrar', async (solicitud, respuesta, next) => {
|
|
132
132
|
// try {
|
|
133
|
-
// if (await Miscelaneo.
|
|
133
|
+
// if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
134
134
|
// try {
|
|
135
135
|
// return respuesta.json({ body: await BeneficiosEstudiantiles.borrar(solicitud.body), error: undefined });
|
|
136
136
|
// } catch (error) {
|
|
@@ -147,7 +147,7 @@ Router.get('/funcionDeEjemplo', async (solicitud, respuesta, next) => {
|
|
|
147
147
|
|
|
148
148
|
// Router.post('/agregar', async (solicitud, respuesta, next) => {
|
|
149
149
|
// try {
|
|
150
|
-
// if (await Miscelaneo.
|
|
150
|
+
// if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
151
151
|
// try {
|
|
152
152
|
// const Datos = solicitud.body;
|
|
153
153
|
// Datos.LastUser = await Miscelaneo.generarLastUser(solicitud);
|
|
@@ -166,7 +166,7 @@ Router.get('/funcionDeEjemplo', async (solicitud, respuesta, next) => {
|
|
|
166
166
|
|
|
167
167
|
// Router.get('/listar', async (solicitud, respuesta, next) => {
|
|
168
168
|
// try {
|
|
169
|
-
// if (await Miscelaneo.
|
|
169
|
+
// if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
170
170
|
// try {
|
|
171
171
|
// return respuesta.json({ body: await BeneficiosEstudiantiles.listar(), error: undefined });
|
|
172
172
|
// } catch (error) {
|
|
@@ -6,7 +6,7 @@ const ManejadorDeErrores = require('../servicios/Nucleo/ManejadorDeErrores.js');
|
|
|
6
6
|
|
|
7
7
|
Router.get('/DatosParaReporteCSV', async (solicitud, respuesta, next) => {
|
|
8
8
|
try {
|
|
9
|
-
if (await Miscelaneo.
|
|
9
|
+
if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
10
10
|
try {
|
|
11
11
|
respuesta.header('Content-Type', 'text/csv; charset=utf-8');
|
|
12
12
|
respuesta.attachment('Datos.csv');
|
|
@@ -25,7 +25,7 @@ Router.get('/DatosParaReporteCSV', async (solicitud, respuesta, next) => {
|
|
|
25
25
|
|
|
26
26
|
Router.get('/DatosParaGraficoDeBarras', async (solicitud, respuesta, next) => {
|
|
27
27
|
try {
|
|
28
|
-
if (await Miscelaneo.
|
|
28
|
+
if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
29
29
|
try {
|
|
30
30
|
return respuesta.json({ body: await Miscelaneo.DatosParaGraficoDeBarras(), error: undefined });
|
|
31
31
|
} catch (error) {
|
|
@@ -42,7 +42,7 @@ Router.get('/DatosParaGraficoDeBarras', async (solicitud, respuesta, next) => {
|
|
|
42
42
|
|
|
43
43
|
Router.get('/DatosParaGraficoDePie', async (solicitud, respuesta, next) => {
|
|
44
44
|
try {
|
|
45
|
-
if (await Miscelaneo.
|
|
45
|
+
if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
46
46
|
try {
|
|
47
47
|
return respuesta.json({ body: await Miscelaneo.DatosParaGraficoDePie(), error: undefined });
|
|
48
48
|
} catch (error) {
|
|
@@ -136,7 +136,7 @@ Router.get('/configurarFrontend2', async (solicitud, respuesta, next) => {
|
|
|
136
136
|
|
|
137
137
|
Router.get('/obtenerDetalleDelModulo', async (solicitud, respuesta, next) => {
|
|
138
138
|
try {
|
|
139
|
-
if (await Miscelaneo.
|
|
139
|
+
if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
140
140
|
try {
|
|
141
141
|
return respuesta.json({ body: await Miscelaneo.obtenerDetalleDelModulo(), error: undefined });
|
|
142
142
|
} catch (error) {
|
|
@@ -153,7 +153,7 @@ Router.get('/obtenerDetalleDelModulo', async (solicitud, respuesta, next) => {
|
|
|
153
153
|
|
|
154
154
|
Router.get('/obtenerDatosDelUsuario', async (solicitud, respuesta, next) => {
|
|
155
155
|
try {
|
|
156
|
-
if (await Miscelaneo.
|
|
156
|
+
if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
157
157
|
try {
|
|
158
158
|
return respuesta.json({ body: await Miscelaneo.obtenerDatosDelUsuario(solicitud.headers.authorization), error: undefined });
|
|
159
159
|
} catch (error) {
|
|
@@ -170,7 +170,7 @@ Router.get('/obtenerDatosDelUsuario', async (solicitud, respuesta, next) => {
|
|
|
170
170
|
|
|
171
171
|
Router.get('/obtenerMensajesInstitucionales', async (solicitud, respuesta, next) => {
|
|
172
172
|
try {
|
|
173
|
-
if (await Miscelaneo.
|
|
173
|
+
if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
174
174
|
try {
|
|
175
175
|
return respuesta.json({ body: await Miscelaneo.obtenerMensajesInstitucionales(), error: undefined });
|
|
176
176
|
} catch (error) {
|
|
@@ -191,7 +191,7 @@ Router.get('/iniciarSesion', async (solicitud, respuesta, next) => {
|
|
|
191
191
|
|
|
192
192
|
Router.get('/obtenerModulos/:Padre/:ModulosFavoritos', async (solicitud, respuesta, next) => {
|
|
193
193
|
try {
|
|
194
|
-
if (await Miscelaneo.
|
|
194
|
+
if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
195
195
|
try {
|
|
196
196
|
return respuesta.json({
|
|
197
197
|
body: await Miscelaneo.obtenerModulos(solicitud.headers.authorization
|
|
@@ -211,7 +211,7 @@ Router.get('/obtenerModulos/:Padre/:ModulosFavoritos', async (solicitud, respues
|
|
|
211
211
|
|
|
212
212
|
Router.post('/actualizarNotificacion', async (solicitud, respuesta, next) => {
|
|
213
213
|
try {
|
|
214
|
-
if (await Miscelaneo.
|
|
214
|
+
if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
215
215
|
try {
|
|
216
216
|
return respuesta.json({ body: await Miscelaneo.actualizarNotificacion(solicitud.headers.authorization, solicitud.body.FechaYHoraDeCreacion), error: undefined });
|
|
217
217
|
} catch (error) {
|
|
@@ -228,7 +228,7 @@ Router.post('/actualizarNotificacion', async (solicitud, respuesta, next) => {
|
|
|
228
228
|
|
|
229
229
|
Router.get('/obtenerNotificaciones', async (solicitud, respuesta, next) => {
|
|
230
230
|
try {
|
|
231
|
-
if (await Miscelaneo.
|
|
231
|
+
if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
232
232
|
try {
|
|
233
233
|
return respuesta.json({ body: await Miscelaneo.obtenerNotificaciones(solicitud.headers.authorization), error: undefined });
|
|
234
234
|
} catch (error) {
|
|
@@ -245,7 +245,7 @@ Router.get('/obtenerNotificaciones', async (solicitud, respuesta, next) => {
|
|
|
245
245
|
|
|
246
246
|
Router.post('/reporteDeIncidencia/:Datos', async (solicitud, respuesta, next) => {
|
|
247
247
|
try {
|
|
248
|
-
if (await Miscelaneo.
|
|
248
|
+
if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
249
249
|
try {
|
|
250
250
|
return respuesta.json({ body: await Miscelaneo.reporteDeIncidencia(solicitud, solicitud.params.Datos), error: undefined });
|
|
251
251
|
} catch (error) {
|
|
@@ -262,7 +262,7 @@ Router.post('/reporteDeIncidencia/:Datos', async (solicitud, respuesta, next) =>
|
|
|
262
262
|
|
|
263
263
|
Router.get('/cerrarSesion', async (solicitud, respuesta, next) => {
|
|
264
264
|
try {
|
|
265
|
-
if (await Miscelaneo.
|
|
265
|
+
if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
266
266
|
try {
|
|
267
267
|
return respuesta.json({ body: await Miscelaneo.cerrarSesion(solicitud.headers.authorization), error: undefined });
|
|
268
268
|
} catch (error) {
|
|
@@ -279,7 +279,7 @@ Router.get('/cerrarSesion', async (solicitud, respuesta, next) => {
|
|
|
279
279
|
|
|
280
280
|
Router.get('/obtenerEnlaceDePerfil', async (solicitud, respuesta, next) => {
|
|
281
281
|
try {
|
|
282
|
-
if (await Miscelaneo.
|
|
282
|
+
if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
283
283
|
try {
|
|
284
284
|
return respuesta.json({ body: await Miscelaneo.obtenerEnlaceDePerfil(), error: undefined });
|
|
285
285
|
} catch (error) {
|
|
@@ -296,7 +296,7 @@ Router.get('/obtenerEnlaceDePerfil', async (solicitud, respuesta, next) => {
|
|
|
296
296
|
|
|
297
297
|
Router.get('/obtenerPersonasFuncionarias', async (solicitud, respuesta, next) => {
|
|
298
298
|
try {
|
|
299
|
-
if (await Miscelaneo.
|
|
299
|
+
if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
300
300
|
try {
|
|
301
301
|
return respuesta.json({ body: await Miscelaneo.obtenerPersonasFuncionarias(), error: undefined });
|
|
302
302
|
} catch (error) {
|
|
@@ -313,7 +313,7 @@ Router.get('/obtenerPersonasFuncionarias', async (solicitud, respuesta, next) =>
|
|
|
313
313
|
|
|
314
314
|
Router.get('/obtenerEnlaceDePortal', async (solicitud, respuesta, next) => {
|
|
315
315
|
try {
|
|
316
|
-
if (await Miscelaneo.
|
|
316
|
+
if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
317
317
|
try {
|
|
318
318
|
return respuesta.json({ body: await Miscelaneo.obtenerEnlaceDePortal(), error: undefined });
|
|
319
319
|
} catch (error) {
|
|
@@ -330,7 +330,7 @@ Router.get('/obtenerEnlaceDePortal', async (solicitud, respuesta, next) => {
|
|
|
330
330
|
|
|
331
331
|
Router.get('/obtenerEnlaceDelModuloPadre', async (solicitud, respuesta, next) => {
|
|
332
332
|
try {
|
|
333
|
-
if (await Miscelaneo.
|
|
333
|
+
if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
334
334
|
try {
|
|
335
335
|
return respuesta.json({ body: await Miscelaneo.obtenerEnlaceDelModuloPadre(), error: undefined });
|
|
336
336
|
} catch (error) {
|
|
@@ -347,7 +347,7 @@ Router.get('/obtenerEnlaceDelModuloPadre', async (solicitud, respuesta, next) =>
|
|
|
347
347
|
|
|
348
348
|
Router.get('/configurarFrontend', async (solicitud, respuesta, next) => {
|
|
349
349
|
try {
|
|
350
|
-
if (await Miscelaneo.
|
|
350
|
+
if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
351
351
|
try {
|
|
352
352
|
return respuesta.json({ body: await Miscelaneo.configurarFrontend(), error: undefined });
|
|
353
353
|
} catch (error) {
|
|
@@ -374,12 +374,12 @@ Router.get('/configurarFrontend', async (solicitud, respuesta, next) => {
|
|
|
374
374
|
});
|
|
375
375
|
|
|
376
376
|
Router.get('/validarToken', async (solicitud, respuesta, next) => {
|
|
377
|
-
return respuesta.json({ body: await Miscelaneo.
|
|
377
|
+
return respuesta.json({ body: await Miscelaneo.validarTokenV2(solicitud.headers.authorization), error: undefined });
|
|
378
378
|
});
|
|
379
379
|
|
|
380
380
|
Router.get('/descargarArchivo/:ArchivoId', async (solicitud, respuesta, next) => {
|
|
381
381
|
try {
|
|
382
|
-
if (await Miscelaneo.
|
|
382
|
+
if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
383
383
|
try {
|
|
384
384
|
const Datos = { ArchivoId: solicitud.params.ArchivoId };
|
|
385
385
|
Datos.Token = solicitud.headers.authorization;
|
|
@@ -398,7 +398,7 @@ Router.get('/descargarArchivo/:ArchivoId', async (solicitud, respuesta, next) =>
|
|
|
398
398
|
|
|
399
399
|
Router.delete('/borrarArchivo/:ArchivoId', async (solicitud, respuesta, next) => {
|
|
400
400
|
try {
|
|
401
|
-
if (await Miscelaneo.
|
|
401
|
+
if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
402
402
|
try {
|
|
403
403
|
const Datos = { ArchivoId: solicitud.params.ArchivoId };
|
|
404
404
|
Datos.Token = solicitud.headers.authorization;
|
|
@@ -417,7 +417,7 @@ Router.delete('/borrarArchivo/:ArchivoId', async (solicitud, respuesta, next) =>
|
|
|
417
417
|
|
|
418
418
|
Router.get('/listarArchivos/:Etiquetas', async (solicitud, respuesta, next) => {
|
|
419
419
|
try {
|
|
420
|
-
if (await Miscelaneo.
|
|
420
|
+
if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
421
421
|
try {
|
|
422
422
|
const Datos = { Etiquetas: solicitud.params.Etiquetas };
|
|
423
423
|
Datos.Token = solicitud.headers.authorization;
|
|
@@ -436,7 +436,7 @@ Router.get('/listarArchivos/:Etiquetas', async (solicitud, respuesta, next) => {
|
|
|
436
436
|
|
|
437
437
|
Router.post('/cargarArchivo/:Etiquetas', async (solicitud, respuesta, next) => {
|
|
438
438
|
try {
|
|
439
|
-
if (await Miscelaneo.
|
|
439
|
+
if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
440
440
|
try {
|
|
441
441
|
return respuesta.json({ body: await Miscelaneo.cargarArchivo(solicitud, solicitud.params.Etiquetas), error: undefined });
|
|
442
442
|
} catch (error) {
|
|
@@ -477,7 +477,7 @@ Router.post('/verificarToken', async (solicitud, respuesta, next) => {
|
|
|
477
477
|
|
|
478
478
|
Router.post('/almacenarCuentaIBAN', async (solicitud, respuesta, next) => {
|
|
479
479
|
try {
|
|
480
|
-
if (await Miscelaneo.
|
|
480
|
+
if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
481
481
|
try {
|
|
482
482
|
const Datos = solicitud.body;
|
|
483
483
|
Datos.LastUser = await Miscelaneo.generarLastUser(solicitud);
|
|
@@ -496,7 +496,7 @@ Router.post('/almacenarCuentaIBAN', async (solicitud, respuesta, next) => {
|
|
|
496
496
|
|
|
497
497
|
Router.get('/reportePDFDeEjemplo/', async (solicitud, respuesta, next) => {
|
|
498
498
|
try {
|
|
499
|
-
if (await Miscelaneo.
|
|
499
|
+
if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
500
500
|
try {
|
|
501
501
|
return Miscelaneo.reportePDFDeEjemplo(respuesta);
|
|
502
502
|
} catch (error) {
|
|
@@ -517,7 +517,7 @@ Router.get('/versionDelNucleo', async (solicitud, respuesta, next) => {
|
|
|
517
517
|
|
|
518
518
|
Router.get('/obtenerDatosDeLaPersonaPorIdentificacion/:Identificacion', async (solicitud, respuesta, next) => {
|
|
519
519
|
try {
|
|
520
|
-
if (await Miscelaneo.
|
|
520
|
+
if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
521
521
|
try {
|
|
522
522
|
return respuesta.json({ body: await Miscelaneo.obtenerDatosDeLaPersonaPorIdentificacion(solicitud.params.Identificacion), error: undefined });
|
|
523
523
|
} catch (error) {
|
|
@@ -534,7 +534,7 @@ Router.get('/obtenerDatosDeLaPersonaPorIdentificacion/:Identificacion', async (s
|
|
|
534
534
|
|
|
535
535
|
Router.post('/obtenerDatosDeLaPersona', async (solicitud, respuesta, next) => {
|
|
536
536
|
try {
|
|
537
|
-
if (await Miscelaneo.
|
|
537
|
+
if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
538
538
|
try {
|
|
539
539
|
return respuesta.json({ body: await Miscelaneo.obtenerDatosDeLaPersona(solicitud.headers.authorization), error: undefined });
|
|
540
540
|
} catch (error) {
|
|
@@ -551,7 +551,7 @@ Router.post('/obtenerDatosDeLaPersona', async (solicitud, respuesta, next) => {
|
|
|
551
551
|
|
|
552
552
|
Router.get('/obtenerEstudiantes', async (solicitud, respuesta, next) => {
|
|
553
553
|
try {
|
|
554
|
-
if (await Miscelaneo.
|
|
554
|
+
if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
555
555
|
try {
|
|
556
556
|
return respuesta.json({ body: await Miscelaneo.obtenerEstudiantes(), error: undefined });
|
|
557
557
|
} catch (error) {
|
|
@@ -568,7 +568,7 @@ Router.get('/obtenerEstudiantes', async (solicitud, respuesta, next) => {
|
|
|
568
568
|
|
|
569
569
|
Router.get('/obtenerBeneficios', async (solicitud, respuesta, next) => {
|
|
570
570
|
try {
|
|
571
|
-
if (await Miscelaneo.
|
|
571
|
+
if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
572
572
|
try {
|
|
573
573
|
return respuesta.json({ body: await Miscelaneo.obtenerBeneficios(), error: undefined });
|
|
574
574
|
} catch (error) {
|
|
@@ -585,7 +585,7 @@ Router.get('/obtenerBeneficios', async (solicitud, respuesta, next) => {
|
|
|
585
585
|
|
|
586
586
|
Router.get('/obtenerPeriodos', async (solicitud, respuesta, next) => {
|
|
587
587
|
try {
|
|
588
|
-
if (await Miscelaneo.
|
|
588
|
+
if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
589
589
|
try {
|
|
590
590
|
return respuesta.json({ body: await Miscelaneo.obtenerPeriodos(), error: undefined });
|
|
591
591
|
} catch (error) {
|
|
@@ -602,7 +602,7 @@ Router.get('/obtenerPeriodos', async (solicitud, respuesta, next) => {
|
|
|
602
602
|
|
|
603
603
|
Router.get('/obtenerAnios', async (solicitud, respuesta, next) => {
|
|
604
604
|
try {
|
|
605
|
-
if (await Miscelaneo.
|
|
605
|
+
if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
606
606
|
try {
|
|
607
607
|
return respuesta.json({ body: await Miscelaneo.obtenerAnios(), error: undefined });
|
|
608
608
|
} catch (error) {
|
|
@@ -619,7 +619,7 @@ Router.get('/obtenerAnios', async (solicitud, respuesta, next) => {
|
|
|
619
619
|
|
|
620
620
|
Router.get('/obtenerRecintos', async (solicitud, respuesta, next) => {
|
|
621
621
|
try {
|
|
622
|
-
if (await Miscelaneo.
|
|
622
|
+
if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
623
623
|
try {
|
|
624
624
|
return respuesta.json({ body: await Miscelaneo.obtenerRecintos(), error: undefined });
|
|
625
625
|
} catch (error) {
|
|
@@ -636,7 +636,7 @@ Router.get('/obtenerRecintos', async (solicitud, respuesta, next) => {
|
|
|
636
636
|
|
|
637
637
|
Router.get('/obtenerSedes', async (solicitud, respuesta, next) => {
|
|
638
638
|
try {
|
|
639
|
-
if (await Miscelaneo.
|
|
639
|
+
if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
640
640
|
try {
|
|
641
641
|
return respuesta.json({ body: await Miscelaneo.obtenerSedes(), error: undefined });
|
|
642
642
|
} catch (error) {
|
|
@@ -653,7 +653,7 @@ Router.get('/obtenerSedes', async (solicitud, respuesta, next) => {
|
|
|
653
653
|
|
|
654
654
|
Router.get('/obtenerIdentificacion/:Identificador', async (solicitud, respuesta, next) => {
|
|
655
655
|
try {
|
|
656
|
-
if (await Miscelaneo.
|
|
656
|
+
if (await Miscelaneo.validarTokenV2(solicitud.headers.authorization) && await Miscelaneo.validarAccesoDelOrigen(solicitud)) {
|
|
657
657
|
try {
|
|
658
658
|
return respuesta.json({ body: await Miscelaneo.obtenerIdentificacion(solicitud.params.Identificador), error: undefined });
|
|
659
659
|
} catch (error) {
|
|
@@ -1087,7 +1087,7 @@ class Miscelaneo {
|
|
|
1087
1087
|
return false;
|
|
1088
1088
|
}
|
|
1089
1089
|
|
|
1090
|
-
async
|
|
1090
|
+
async validarTokenV2(encabezadoDeAutorizacion) {
|
|
1091
1091
|
return await this.validarTokenV2(encabezadoDeAutorizacion);
|
|
1092
1092
|
// const Resultado = undefined;
|
|
1093
1093
|
// try {
|
|
@@ -7,7 +7,8 @@ import { MatIconModule } from '@angular/material/icon';
|
|
|
7
7
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
8
8
|
import { MatDialog } from '@angular/material/dialog';
|
|
9
9
|
import { ReporteDeIncidenciasComponent } from '../../../Componentes/Nucleo/reporte-de-incidencias/reporte-de-incidencias.component'
|
|
10
|
-
import { MensajesComponent } from '../../../Componentes/Nucleo/mensajes/mensajes.component'
|
|
10
|
+
import { MensajesComponent } from '../../../Componentes/Nucleo/mensajes/mensajes.component';
|
|
11
|
+
import { MensajeConfirmacionHTMLComponent } from '../../../Componentes/Nucleo/mensaje-confirmacion-html/mensaje-confirmacion-html';
|
|
11
12
|
|
|
12
13
|
@Component({
|
|
13
14
|
selector: 'app-contenedor-componentes',
|