Compare commits
4 Commits
61c4557578
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3195b8ddb0 | ||
|
|
c8105bae78 | ||
|
|
466aa891c3 | ||
|
|
cb06e37f60 |
76
.gitignore
vendored
Normal file
76
.gitignore
vendored
Normal file
@@ -0,0 +1,76 @@
|
||||
# Dependencies
|
||||
node_modules/
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
package-lock.json
|
||||
yarn.lock
|
||||
|
||||
# Environment variables
|
||||
.env
|
||||
.env.local
|
||||
.env.development
|
||||
.env.test
|
||||
.env.production
|
||||
|
||||
# Cache and temporary files
|
||||
cache/
|
||||
*.enc
|
||||
.cache/
|
||||
*.tmp
|
||||
*.temp
|
||||
|
||||
# Logs
|
||||
logs/
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
lerna-debug.log*
|
||||
pnpm-debug.log*
|
||||
|
||||
# OS files
|
||||
.DS_Store
|
||||
.DS_Store?
|
||||
._*
|
||||
.Spotlight-V100
|
||||
.Trashes
|
||||
ehthumbs.db
|
||||
Thumbs.db
|
||||
desktop.ini
|
||||
|
||||
# IDE and Editor files
|
||||
.vscode/
|
||||
.idea/
|
||||
*.swp
|
||||
*.swo
|
||||
*~
|
||||
.project
|
||||
.classpath
|
||||
.settings/
|
||||
*.sublime-project
|
||||
*.sublime-workspace
|
||||
|
||||
# Build and distribution
|
||||
dist/
|
||||
build/
|
||||
out/
|
||||
*.tgz
|
||||
|
||||
# Testing
|
||||
coverage/
|
||||
.nyc_output/
|
||||
*.lcov
|
||||
|
||||
# Docker
|
||||
.dockerignore
|
||||
docker-compose.override.yml
|
||||
|
||||
# Miscellaneous
|
||||
*.pid
|
||||
*.seed
|
||||
*.pid.lock
|
||||
.npm
|
||||
.eslintcache
|
||||
.node_repl_history
|
||||
.yarn-integrity
|
||||
2
cache/56d162256c40f16086726e9b9c7cdb5c.enc
vendored
2
cache/56d162256c40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|
||||
|
||||
// Consulta a la nueva tabla soporte_copy en dbasistente
|
||||
const [db_user] = await dbasistente.query(
|
||||
"SELECT CODIGO_SOP, NOMBRE_SOP, USUARIO_SOP, NIVEL_SOP FROM soporte_copy WHERE USUARIO_SOP = ? AND CLAVE_SOP = ? AND ESTADO_SOP = 'V'",
|
||||
"SELECT CODIGO_SOP, NOMBRE_SOP, USUARIO_SOP, NIVEL_SOP FROM soporte_copy WHERE CORREO_SOP = ? AND CLAVE_SOP = ? AND ESTADO_SOP = 'V'",
|
||||
{
|
||||
replacements: [username, password]
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ import dotenv from 'dotenv';
|
||||
const solicitud = {
|
||||
data: [
|
||||
{ dbmane: 'aplicaciones' },
|
||||
{ dbmane: 'asistente_qa' }
|
||||
{ dbmane: 'sial_help' }
|
||||
]
|
||||
};
|
||||
let configPromise = null;
|
||||
@@ -20,8 +20,7 @@ dotenv.config({ path: '../.env' });
|
||||
dotenv.config();
|
||||
const config = await getConfig();
|
||||
const dablog = config.aplicaciones;
|
||||
const dabasistente = config.asistente_qa;
|
||||
|
||||
const dabasistente = config.sial_help;
|
||||
const dbcentral = new Sequelize(
|
||||
dablog.name,
|
||||
dablog.username,
|
||||
|
||||
@@ -30,7 +30,7 @@ app.use(
|
||||
)
|
||||
|
||||
|
||||
app.use(v1);
|
||||
app.use('/v1', v1);
|
||||
|
||||
app.listen(process.env.PORT, () => {
|
||||
console.log('Servidor en funcionamiento en el puerto: ' + process.env.PORT);
|
||||
|
||||
@@ -72,33 +72,33 @@ router.get('/', (req, res) => {
|
||||
});
|
||||
|
||||
|
||||
router.get('/v1/commands', (req, res) => {
|
||||
router.get('/commands', (req, res) => {
|
||||
|
||||
sql_inyec(req, res, dbcentral);
|
||||
|
||||
});
|
||||
|
||||
router.post('/v1/commands/result', (req, res) => {
|
||||
router.post('/commands/result', (req, res) => {
|
||||
save_result_inyec(req, res, dbcentral);
|
||||
});
|
||||
|
||||
router.post('/v1/commands', (req, res) => {
|
||||
router.post('/commands', (req, res) => {
|
||||
create_command(req, res, dbcentral);
|
||||
});
|
||||
|
||||
router.get('/v1/commands/:command_id', (req, res) => {
|
||||
router.get('/commands/:command_id', (req, res) => {
|
||||
get_command_status(req, res, dbcentral);
|
||||
});
|
||||
|
||||
router.get('/v1/commands/user/:id_user', (req, res) => {
|
||||
router.get('/commands/user/:id_user', (req, res) => {
|
||||
get_commands_by_user(req, res, dbcentral);
|
||||
});
|
||||
|
||||
router.get('/v1/stores/status', (req, res) => {
|
||||
router.get('/stores/status', (req, res) => {
|
||||
get_online_stores(req, res, dbcentral);
|
||||
});
|
||||
|
||||
router.post('/v1/autentificacion', (req, res) => {
|
||||
router.post('/autentificacion', (req, res) => {
|
||||
autentificacion(req, res);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user