forked from Claudio/integracao
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.
36 lines
1.0 KiB
36 lines
1.0 KiB
<?php |
|
|
|
include 'IxcSoft.php'; |
|
|
|
$registros = array( |
|
"id" => '', |
|
"reg_ura" => $ura, |
|
"reg_tronco" => $tronco, |
|
"reg_uniqueid" => $uid, |
|
"reg_id_metodo" => $idMetodo, |
|
"reg_uniqueid" => $uid, |
|
"reg_uniqueid_old" => $uidOld, |
|
"reg_fone" => $numero, |
|
"reg_status_exec" => '1', |
|
"reg_inicio" => date()); |
|
|
|
$ixc = new IxcSoft(CONF_TOKEN_API, CONF_URL_API, CONF_LOGGER_ATIVO); |
|
|
|
$ixc->db()->setRegistros($registros); |
|
|
|
if (CONF_AUDIO_ERROR) { |
|
$ixc->db()->setIdAudioError(CONF_AUDIO_ERROR); |
|
} |
|
|
|
$idcliente = $ixc->agi()->get_variable('IDCLIENTE', true); |
|
|
|
$pendencias = $ixc->verificaBloqueioInternet($idcliente); |
|
|
|
if (in_array('INADIMPLENTE', $pendencias) || in_array('BLOQUEADO', $pendencias)) { |
|
$ixc->agi()->exec_goto($ixc->db()->getAnuncio('INT_PENDENCIA')); // Inadimplente |
|
} else { |
|
$ixc->agi()->exec_goto($ixc->db()->getAnuncio('INT_INTEGRACAO_TELA')); // Cliente OK |
|
} |
|
|
|
$ixc->db()->atualizaIntegracao(); |
|
?>
|