'', "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()); $hub = new HubSoft( CONF_URL_API, CONF_USERID_API, CONF_TOKEN_API, CONF_USER_API, CONF_PASSWORD_API, CONF_LOGGER_ATIVO ); $hub->db()->setRegistros($registros); if (CONF_AUDIO_ERROR) { $hub->db()->setIdAudioError(CONF_AUDIO_ERROR); } $id_cliente_servico = $hub->agi()->get_variable('IDCLIENTESERVICO', true); $retorno = $hub->desbloqueioConfianca($id_cliente_servico); if (strpos($retorno['msg'], 'Habilitado') !== false && $retorno['status'] == 'error') { $hub->agi()->exec_goto($hub->db()->getAnuncio('INT_SEM_DESBLOQ')); // Sucesso } else { if ($retorno['status'] == 'success') { $hub->agi()->exec_goto($hub->db()->getURA('INT_DESBLOQ_SUCESSO')); // Sucesso } else { $hub->agi()->exec_goto($hub->db()->getURA('INT_DESBLOQ_FALHA')); // Falha } } $hub->db()->atualizaIntegracao(); ?>