1buscarMensagensAtendimentoHTML(); 2buscarAtendimentoHTML(); 3novoAtendimento(); 4 5var funcoes_atendimento = { 6 enviarMensagem(id_atendimento, nova_mensagem) { 7 router.history.current.matched[0].instances.default.enviar_mensagem = true; 8 var hs_web = new HotsiteWeb(); 9 if (!nova_mensagem) { 10 hs_web.criarToast(3000, 'Erro', 'Por favor, preencha o campo de mensagem!', 'fas fa-exclamation-circle', 'red', 'id_erro'); 11 } 12 hs_web.enviarMensagem(id_atendimento, nova_mensagem); 13 }, 14 confirmarFinalizarAtendimento(id_atendimento) { 15 var hs_web = new HotsiteWeb(); 16 hs_web.criarToastFinalizar(id_atendimento); 17 }, 18 enviarNovoAtendimento(titulo, prioridade, id_ticket_setor, mensagem, status, assunto, protocolo) { 19 var hs_web = new HotsiteWeb(); 20 if (id_ticket_setor === 'Escolha um departamento') { 21 hs_web.criarToast(3000, 'Erro', 'Por favor, escolha o departamento!', 'fas fa-exclamation-circle', 'red', 'id_erro'); 22 } 23 24 if (!titulo) { 25 hs_web.criarToast(3000, 'Erro', 'Por favor, preencha o tÃtulo!', 'fas fa-exclamation-circle', 'red', 'id_erro'); 26 } 27 28 if (!mensagem) { 29 hs_web.criarToast(3000, 'Erro', 'Por favor, preencha a mensagem!', 'fas fa-exclamation-circle', 'red', 'id_erro'); 30 } 31 32 hs_web.enviarNovoAtendimento(titulo, prioridade, id_ticket_setor, mensagem, status, assunto, protocolo); 33 }, 34 carregarMaisAtendimentos() { 35 SLICE_ATENDIMENTO = SLICE_ATENDIMENTO + 5; 36 app.loading = true; 37 var hs_web = new HotsiteWeb(); 38 hs_web.buscarAtendimentos(SLICE_ATENDIMENTO, false, [], '', true); 39 }, 40 carregarCincoAtendimentos() { 41 SLICE_ATENDIMENTO = 5; 42 app.loading = true; 43 var hs_web = new HotsiteWeb(); 44 hs_web.buscarAtendimentos(SLICE_ATENDIMENTO, false, [], '', true); 45 } 46}; 47 48function buscarMensagensAtendimentoHTML() { 49 try { 50 $.get(__SERVER__ + "/view/atendimentos/mensagens.vue", function (resposta) { 51 __ROTAS__.push({ 52 path: '/central_assinante_web/atendimentos/mensagens/:protocolo', 53 name: 'mensagens', 54 component: { 55 template: resposta, 56 data() { 57 return { 58 loading: true, 59 nova_mensagem: '', 60 enviar_mensagem: false, 61 tamanho: $(window).width(), 62 atendimentos: { 63 atendimento: {}, 64 mensagens: [] 65 } 66 }; 67 }, 68 methods: funcoes_atendimento 69 } 70 }); 71 PAGE_MENSAGENS_ATENDIMENTO = true; 72 verificaPages(); 73 }); 74 } catch (e) { 75 console.log("Error Message -> " + e); 76 } 77} 78 79function buscarAtendimentoHTML() { 80 try { 81 $.ajax({ 82 url: __SERVER__ + "/view/atendimentos/atendimentos.vue", 83 type: "GET", 84 data: "", 85 dataType: 'html' 86 }).done(function (resposta) { 87 __ROTAS__.push({ 88 path: '/central_assinante_web/atendimentos', 89 name: 'atendimentos', 90 component: { 91 template: resposta, 92 data() { 93 return { 94 mostrar_cinco_atendimentos: false, 95 loading: true, 96 is_safari: false, 97 atendimentos: { 98 atendimentos: [], 99 atendimentos_abertos: [], 100 atendimentos_finalizados: [], 101 atendimentos_dash:[], 102 num_atendimentos: 0, 103 total_registros:0 104 } 105 } 106 }, 107 methods: funcoes_atendimento 108 } 109 }); 110 PAGE_ATENDIMENTOS = true; 111 verificaPages(); 112 }); 113 } catch (e) { 114 console.log("Error message ->" + e); 115 } 116} 117 118function novoAtendimento() { 119 try { 120 $.ajax({ 121 url: __SERVER__ + "/view/atendimentos/novo_atendimento.vue", 122 type: "GET", 123 data: "", 124 dataType: 'html' 125 }).done(function (resposta) { 126 __ROTAS__.push({ 127 path: '/central_assinante_web/atendimentos/novo_atendimento', 128 name: 'novo_atendimento', 129 component: { 130 template: resposta, 131 data() { 132 return { 133 loading: true, 134 atendimentos: { 135 protocolo_novo_atendimento: 0, 136 departamento_novo_atendimento: [], 137 assunto_novo_atendimento: [], 138 }, 139 titulo: '', 140 prioridade: 'M', 141 departamento_id: 'Escolha um departamento', 142 mensagem: '', 143 status: 'T', 144 assunto_id: 'Escolha um assunto', 145 } 146 }, 147 methods: funcoes_atendimento 148 } 149 }); 150 PAGE_NOVO_ATENDIMENTO = true; 151 verificaPages(); 152 }) 153 } catch (e) { 154 console.log("Error message ->" + e); 155 } 156}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.