Commit d504ddc4 authored by Gabriel's avatar Gabriel

Agrega config para agenda IPS

parent 35d483f1
......@@ -13,5 +13,7 @@
"sendingbluBaseUrl": "",
"sendingblueListId": 54,
"crispWebsiteIdIpsTurnosBajoDemanda": "",
"crispWebsiteIdIsTurnosProgramados": ""
"crispWebsiteIdIsTurnosProgramados": "",
"idAgendaIPS": "",
"idDominioIPS": ""
}
\ No newline at end of file
......@@ -2,10 +2,12 @@ const crisp = require('../crisp.js');
const utils = require('../utils.js');
const pasos = require('./pasos_ips_turnos_bajo_demanda.js');
const is = require('../endpoints/is.js')
const config = require('config');
const LINK_CONDICIONES_DE_USO = 'https://www.integrandosalud.com/es-ar/ip-condiciones-de-uso/';
const ID_AGENDA = '';
const ID_PERSONA_FEDERADA = '';
const ID_AGENDA_IPS = config.get('idAgendaIPS');
const ID_DOMINIO_IPS = config.get('idDominioIPS');
let ID_PERSONA_FEDERADA;
const SI = 'SI';
const NO = 'NO';
......@@ -120,7 +122,7 @@ module.exports =
await this.ask_tipo_documento(message, userData, website_id, session_id);
}
else{
let turnoDemandaResp = await is.crearTurnoBajoDemanda(ID_AGENDA, ID_PERSONA_FEDERADA);
let turnoDemandaResp = await is.crearTurnoBajoDemanda(ID_AGENDA_IPS, ID_PERSONA_FEDERADA);
if(!turnoDemandaResp.success){
//Error al crear turno
await crisp.sendTextMessage(website_id, session_id,'Disculpame, en este momento no puedo contactarte con un profesional');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment