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
968768ef
Commit
968768ef
authored
Jun 28, 2021
by
Sebastián Long
Browse files
Options
Browse Files
Download
Plain Diff
Finish quitar-filtro
parents
93f41562
5af09325
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
is.js
endpoints/is.js
+1
-1
handlers.js
handlers.js
+3
-2
No files found.
endpoints/is.js
View file @
968768ef
...
...
@@ -43,7 +43,7 @@ module.exports =
});
},
getMedicosByName
:
async
function
(
nombreMedico
,
idProvincia
)
{
return
await
axios
.
get
(
`/medicos/atencion?id_provincia=
${
idProvincia
}
&nombre=
${
nombreMedico
}
&solo_videoconsultas
`
)
return
await
axios
.
get
(
`/medicos/atencion?id_provincia=
${
idProvincia
}
&nombre=
${
nombreMedico
}
`
)
.
then
(
async
function
(
response
)
{
return
response
.
data
.
data
;
})
...
...
handlers.js
View file @
968768ef
...
...
@@ -2,6 +2,7 @@ const crisp = require('./crisp.js');
const
utils
=
require
(
'./utils.js'
);
const
pasos
=
require
(
'./pasos.js'
);
const
is
=
require
(
'./endpoints/is.js'
)
const
UserData
=
require
(
'./data/UserData'
);
let
LINK_SOLICITAR_ACCESO_POR_EMAIL
=
'https://www.integrandosalud.com/es-ar/integrando-pacientes-solicitar-acceso-por-email/'
;
...
...
@@ -233,8 +234,8 @@ module.exports =
}
else
{
await
crisp
.
sendTextMessage
(
website_id
,
session_id
,
`No encuentro médicos con el nombre
${
nombreMedico
}
en la provincia`
);
await
crisp
.
sendTextMessage
(
website_id
,
session_id
,
"Por favor, reintente ingresar el
nombre
"
);
await
crisp
.
sendTextMessage
(
website_id
,
session_id
,
"¿C
ómo se llama el
médico?"
);
await
crisp
.
sendTextMessage
(
website_id
,
session_id
,
"Por favor, reintente ingresar el
apellido
"
);
await
crisp
.
sendTextMessage
(
website_id
,
session_id
,
"¿C
uál es el apellido de tu
médico?"
);
}
},
ask_medico_especialidad
:
async
function
(
message
,
userData
,
website_id
,
session_id
){
...
...
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