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
5c15fa05
Commit
5c15fa05
authored
Sep 03, 2021
by
Gabriel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Agrega icono de 'escribiendo' luego de ingresar email
parent
cb2c0abf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
crisp.js
crisp.js
+5
-0
ips_turnos_bajo_demanda.js
handlers/ips_turnos_bajo_demanda.js
+1
-0
No files found.
crisp.js
View file @
5c15fa05
...
@@ -40,6 +40,10 @@ async function composeMessage(website_id, session_id, ms){
...
@@ -40,6 +40,10 @@ async function composeMessage(website_id, session_id, ms){
);
);
}
}
async
function
showWritingIcon
(
website_id
,
session_id
){
await
composeMessage
(
website_id
,
session_id
,
DELAY_MS
);
}
async
function
sendPickerMessage
(
website_id
,
session_id
,
id
,
title
,
choices
)
{
async
function
sendPickerMessage
(
website_id
,
session_id
,
id
,
title
,
choices
)
{
await
composeMessage
(
website_id
,
session_id
,
DELAY_MS
);
await
composeMessage
(
website_id
,
session_id
,
DELAY_MS
);
await
CrispClient
.
websiteConversations
.
sendMessage
(
await
CrispClient
.
websiteConversations
.
sendMessage
(
...
@@ -102,6 +106,7 @@ async function updateUserData(website_id, session_id, data) {
...
@@ -102,6 +106,7 @@ async function updateUserData(website_id, session_id, data) {
module
.
exports
=
module
.
exports
=
{
{
CrispClient
:
CrispClient
,
CrispClient
:
CrispClient
,
showWritingIcon
:
showWritingIcon
,
sendTextMessage
:
sendTextMessage
,
sendTextMessage
:
sendTextMessage
,
sendPickerMessage
:
sendPickerMessage
,
sendPickerMessage
:
sendPickerMessage
,
getSiguientePaso
:
getSiguientePaso
,
getSiguientePaso
:
getSiguientePaso
,
...
...
handlers/ips_turnos_bajo_demanda.js
View file @
5c15fa05
...
@@ -120,6 +120,7 @@ module.exports =
...
@@ -120,6 +120,7 @@ module.exports =
await
crisp
.
sendTextMessage
(
website_id
,
session_id
,
'Ingresá tu correo electrónico'
);
await
crisp
.
sendTextMessage
(
website_id
,
session_id
,
'Ingresá tu correo electrónico'
);
},
},
resp_correo
:
async
function
(
message
,
userData
,
website_id
,
session_id
){
resp_correo
:
async
function
(
message
,
userData
,
website_id
,
session_id
){
await
crisp
.
showWritingIcon
(
website_id
,
session_id
);
userData
[
CORREO
]
=
message
.
content
;
userData
[
CORREO
]
=
message
.
content
;
let
existeUsuario
=
await
is
.
existeUsuario
(
userData
[
TIPO_DOCUMENTO
],
userData
[
NUMERO_DOCUMENTO
],
userData
[
FECHA_NACIMIENTO
],
userData
[
SEXO
]);
let
existeUsuario
=
await
is
.
existeUsuario
(
userData
[
TIPO_DOCUMENTO
],
userData
[
NUMERO_DOCUMENTO
],
userData
[
FECHA_NACIMIENTO
],
userData
[
SEXO
]);
if
(
existeUsuario
.
existe
){
if
(
existeUsuario
.
existe
){
...
...
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