Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
node_crisp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
web
node_crisp
Commits
d504ddc4
Commit
d504ddc4
authored
Sep 01, 2021
by
Gabriel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Agrega config para agenda IPS
parent
35d483f1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
default.json
config/default.json
+3
-1
ips_turnos_bajo_demanda.js
handlers/ips_turnos_bajo_demanda.js
+5
-3
No files found.
config/default.json
View file @
d504ddc4
...
...
@@ -13,5 +13,7 @@
"sendingbluBaseUrl"
:
""
,
"sendingblueListId"
:
54
,
"crispWebsiteIdIpsTurnosBajoDemanda"
:
""
,
"crispWebsiteIdIsTurnosProgramados"
:
""
"crispWebsiteIdIsTurnosProgramados"
:
""
,
"idAgendaIPS"
:
""
,
"idDominioIPS"
:
""
}
\ No newline at end of file
handlers/ips_turnos_bajo_demanda.js
View file @
d504ddc4
...
...
@@ -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'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment