|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
/** ROLAGEM DO SCROLL ATÉ NO FINAL DO CHAT */ |
|
|
|
|
/** ROLAGEM DO SCROLL AT<EFBFBD> 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<EFBFBD><EFBFBD>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<EFBFBD><EFBFBD>O DA IMAGEM SELECIONADA |
|
|
|
|
*/ |
|
|
|
|
const openImgModal = (link) => { |
|
|
|
|
modalStart() |
|
|
|
@ -193,7 +193,7 @@ const startTransfer = () => {
|
|
|
|
|
return `<select id="selectranfer">${optAgent}</select>` |
|
|
|
|
} |
|
|
|
|
$('#transfersend').hide() |
|
|
|
|
return `<h3>Nenhum agente disponível no momento!</h3>` |
|
|
|
|
return `<h3>Nenhum agente disponível no momento!</h3>` |
|
|
|
|
}); |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
@ -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<EFBFBD>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() |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|