From ce9498642ca785e0ceb9bf9a03c5028f6656ddb1 Mon Sep 17 00:00:00 2001 From: Simples IP Desenvolvimento Date: Fri, 26 Aug 2022 14:27:32 -0400 Subject: [PATCH] new configs --- public/js/requests.js | 4 ++-- public/js/util.js | 15 +++++++-------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/public/js/requests.js b/public/js/requests.js index 6a19fca..a5d2a51 100644 --- a/public/js/requests.js +++ b/public/js/requests.js @@ -122,7 +122,7 @@ const sairPausa = (matricula) => new Promise((resolve) => { const entrar = (matricula, queue, empresa) => new Promise((resolve) => { $.ajax({ - url: `${server_api}/auth/entrar-supervisor`, + url: `${server_api}/auth/conectar-chat`, type: "POST", data: JSON.stringify({ id_fila: queue, @@ -140,7 +140,7 @@ const entrar = (matricula, queue, empresa) => new Promise((resolve) => { const sair = (matricula) => { $.ajax({ - url: `${server_api}/auth/sair`, + url: `${server_api}/auth/desconectar-chat`, type: "POST", data: JSON.stringify({ matricula diff --git a/public/js/util.js b/public/js/util.js index 20a95ed..bad884a 100644 --- a/public/js/util.js +++ b/public/js/util.js @@ -1,4 +1,4 @@ -/** ROLAGEM DO SCROLL ATÉ NO FINAL DO CHAT */ +/** ROLAGEM DO SCROLL AT� NO FINAL DO CHAT */ const scrollDown = () => { $(".chat-window").animate({scrollTop: 99999 * $(this).height() }, 1); } @@ -64,7 +64,7 @@ const alertModal = (title, message) => { } /** - * HABILITA O ENVIO DE ARQUIVO DE IMAGENS E APRESENTA UMA MODAL PARA APRESENTAÇÃO DA IMAGEM SELECIONADA + * HABILITA O ENVIO DE ARQUIVO DE IMAGENS E APRESENTA UMA MODAL PARA APRESENTA��O DA IMAGEM SELECIONADA */ const startSendImage = () => { modalStart() @@ -87,7 +87,7 @@ const startSendImage = () => { } /** - * HABILITA O ENVIO DE ARQUIVO DE IMAGENS E APRESENTA UMA MODAL PARA APRESENTAÇÃO DA IMAGEM SELECIONADA + * HABILITA O ENVIO DE ARQUIVO DE IMAGENS E APRESENTA UMA MODAL PARA APRESENTA��O DA IMAGEM SELECIONADA */ const openImgModal = (link) => { modalStart() @@ -193,7 +193,7 @@ const startTransfer = () => { return `` } $('#transfersend').hide() - return `

Nenhum agente disponível no momento!

` + return `

Nenhum agente disponível no momento!

` }); }) @@ -221,7 +221,6 @@ const exitSystem = () => { }) } - const startFinalizar = () => { $("#finalizaratendimento").on('click', function(){ if(confirm('Deseja realmente finalizar o atendimento?')){ @@ -231,7 +230,7 @@ const startFinalizar = () => { } /** - * FUNÇÃO PARA RECUPERAR O AUDIO DO MICROFONE + * FUNCAO PARA RECUPERAR O AUDIO DO MICROFONE */ function recorderVoice () { $('#modalselect').show() @@ -451,7 +450,7 @@ const notifications = (obj = {}) => { if(el.uniqueid == obj.uniqueid){ /** MARCA ATENDIMENTO COMO FINALIZADO */ obj.action == "finish" ? el.status = 0 : null - /** REMOVE OS BOTÕES E CAIXA DE TEXTO DEPOIS DA FINALIZACAO */ + /** REMOVE OS BOT�ES E CAIXA DE TEXTO DEPOIS DA FINALIZACAO */ if(el.uniqueid == localStorage.getItem('session_uniqueid')){ hideButtons(true) } @@ -510,7 +509,7 @@ const supervisorAgente = () => { /** MONITORA AS CONFIGURACOES */ setInterval(() => { statusAgente(localStorage.getItem('my_uniqueid')).then((agente) => { - if (agente.status == 'error' && agente.message == 'Agente não encontrado') { + if (agente.status == 'error' && agente.message == 'Agente não encontrado') { window.close() } })