Correção do menu

adriano 2023-05-04 18:17:27 -03:00
parent 1989ba5702
commit 012baea21e
1 changed files with 8 additions and 2 deletions

View File

@ -601,8 +601,11 @@ const sendDialogflowAwswer = async (
startDialog: boolean = false startDialog: boolean = false
) => { ) => {
if (startDialog) if (startDialog){
msg.body = 'menu' msg.body = 'menu'
console.log('<--------------------- VOLTOU AO MENU ---------------->')
}
console.log('uuuuuuuuuuuuuuuuuuuuuuuuuuu 04') console.log('uuuuuuuuuuuuuuuuuuuuuuuuuuu 04')
@ -674,6 +677,7 @@ const verifyQueue = async (
let selectedOption = null; let selectedOption = null;
let choosenQueue = null let choosenQueue = null
let aceppt = false
//Habilitar esse caso queira usar o bot //Habilitar esse caso queira usar o bot
let botInfo = await BotIsOnQueue('botqueue', contact.accept) let botInfo = await BotIsOnQueue('botqueue', contact.accept)
@ -712,6 +716,8 @@ const verifyQueue = async (
await contact.update({ accept: true }); await contact.update({ accept: true });
aceppt = true
botInfo = await BotIsOnQueue('botqueue') botInfo = await BotIsOnQueue('botqueue')
choosenQueue = await ShowQueueService(botInfo.botQueueId); choosenQueue = await ShowQueueService(botInfo.botQueueId);
@ -766,7 +772,7 @@ const verifyQueue = async (
console.log('uuuuuuuuuuuuuuuuuuuuuuuuuuu 3') console.log('uuuuuuuuuuuuuuuuuuuuuuuuuuu 3')
const chat = wbot.chat const chat = wbot.chat
await sendDialogflowAwswer(wbot, _ticket, msg, contact, chat, true); await sendDialogflowAwswer(wbot, _ticket, msg, contact, chat, aceppt);
console.log('uuuuuuuuuuuuuuuuuuuuuuuuuuu 03') console.log('uuuuuuuuuuuuuuuuuuuuuuuuuuu 03')
return return