repositório com os arquivos utilizados para integração entre o sistema SimplesIP e diversos sistemas.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

49 lines
1.3 KiB

#!/usr/bin/php -q
<?php
error_reporting(E_ERRO);
ini_set('display_errors', 1);
include 'IntegracaoDataBase.php';
include 'config.php';
$db = new IntegracaoDataBase(CONF_LOGGER_ATIVO);
$uraAtendimentoFluxo = array_reverse($db->getAtendimentoLastURA("1613590354.6"));
$itgcTela = array(
"OPCAO_URA" => utf8_decode($uraAtendimentoFluxo[0]['umv_ura_opcao'])
);
$db->integracaoAgente($itgcTela, array('OPCAO_URA'));
$db->agi()->exec_goto($db->getURA('INT_ATENDIMENTO_CPGNET'));
//
//foreach ($uraAtendimentoFluxo as $item) {
// $nomeSelecao = '';
// switch ($item['umv_opcao']) {
// case 'anuncios':
// $nomeSelecao = $db->getAnuncioById($item['umv_acao']);
// break;
// case 'filas':
// $nomeSelecao = $db->getFilaById($item['umv_acao']);
// break;
// case 'ura':
// $nomeSelecao = $item['umv_acao'];
// break;
// case 'horarios':
// $nomeSelecao = $db->getHorariosById($item['umv_acao']);
// break;
// case 'integativa':
// $nomeSelecao = $db->getIntegracaoById($item['umv_acao']);
// break;
// }
// $historicoFluxo = $item['umv_ura_nome']. "; " . $nomeSelecao;
//}
//
//$itgcTela['HISTORICO'] = $historicoFluxo;
//array_push($params, 'HISTORICO');
//$db->atualizaDadosAgente($uid, $historicoFluxo);