Commit c496995e authored by Gabriel's avatar Gabriel

Edita parametro para mostrar link a videoconsulta

parent 0c2b831f
......@@ -5,6 +5,7 @@ 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 LINK_VIDEOSONSULTA_BASE = 'https://www.integrandosalud.com/src-v2/public/videoconsulta?token=';
const ID_AGENDA_IPS = config.get('idAgendaIPS');
const ID_DOMINIO_IPS = config.get('idDominioIPS');
......@@ -152,7 +153,8 @@ module.exports =
else {
//Turno reservado exitosamente
await crisp.sendTextMessage(website_id, session_id,`Hacé click sobre "Iniciar consulta" para iniciar tu consulta`);
await crisp.sendTextMessage(website_id, session_id,`[Iniciar consulta](${turnoDemandaResp.link_vc})`);
const turnoLink = `${LINK_VIDEOSONSULTA_BASE}${turnoDemandaResp.token_vc}`
await crisp.sendTextMessage(website_id, session_id,`[Iniciar consulta](${turnoLink})`);
await limpiarDatos(message, userData, website_id, session_id);
}
},
......
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