<?php
/*   __________________________________________________
    |  Obfuscated by YAK Pro - Php Obfuscator  2.0.17  |
    |              on 2026-04-17 05:58:44              |
    |    GitHub: https://github.com/pk-fr/yakpro-po    |
    |__________________________________________________|
*/
 require_once 'PerfilVicidial.php'; class PerfilVicidialDatos { public static function getPerfilVicidialByLeadId(string $lead) : ?PerfilVicidial { goto FvxAA; aR5Hx: if (!($result = sv_mysqli_query($con, $query))) { goto Kj9UK; } goto CLwRv; gsViU: $ret = new PerfilVicidial($row["lead_id"], $row["status"], ListaDatos::getListaById($row["list_id"]), $row["vendor_lead_code"], $row["first_name"], $row["last_name"], $row["email"], $row["address1"], $row["postal_code"], $row["phone_number"], $row["alt_phone"], $row["address3"], $row["source_id"]); goto tEyAx; CLwRv: if (!($row = sv_mysqli_fetch_array($result))) { goto Scs29; } goto gsViU; FgZ2j: $query = "SELECT lead_id,IFNULL(status,'') as status,list_id,IFNULL(vendor_lead_code,'') as vendor_lead_code,IFNULL(first_name,'') as first_name, IFNULL(last_name,'') as last_name, IFNULL(email,'') as email, IFNULL(address1,'') as address1, IFNULL(postal_code,'') as postal_code,IFNULL(phone_number,'') as phone_number,IFNULL(alt_phone,'') as alt_phone,IFNULL(address3, '') as address3,IFNULL(source_id, '') as source_id FROM vicidial_list WHERE lead_id = '" . limpia($lead) . "' LIMIT 1"; goto aR5Hx; zfkUi: Kj9UK: goto orqD8; tEyAx: Scs29: goto zfkUi; sBt2T: return $ret; goto P2A3k; FvxAA: $ret = null; goto f46Al; orqD8: sv_mysqli_close($con); goto sBt2T; f46Al: $con = getConnection(); goto FgZ2j; P2A3k: } public static function getPerfilesVicidialByTelefonoAndListas(string $telefono, array $listas) : ?array { goto ybe3L; fIvPb: $i = 0; goto K6eiG; iQHnC: $con = getConnection(); goto NBPJH; HJ9gE: if (!($result = sv_mysqli_query($con, $query))) { goto xMLHW; } goto fojvY; NBPJH: $arrListas = array(); goto UgzcO; UgzcO: $strListas = ""; goto fIvPb; x1i2K: sv_mysqli_close($con); goto qJFie; lh0mZ: if (!($i < count($listas))) { goto Q3w7c; } goto UV26T; OkJZF: Q3w7c: goto ulDRr; qJFie: return $ret; goto m7W0S; hyJr2: ISdj4: goto LFk83; buJim: $query = "SELECT lead_id,IFNULL(status,'') as status,list_id,IFNULL(vendor_lead_code,'') as vendor_lead_code,IFNULL(first_name,'') as first_name, IFNULL(last_name,'') as last_name, IFNULL(email,'') as email, IFNULL(address1,'') as address1, IFNULL(postal_code,'') as postal_code,IFNULL(phone_number,'') as phone_number,IFNULL(alt_phone,'') as alt_phone,IFNULL(address3, '') as address3,IFNULL(source_id, '') as source_id FROM vicidial_list WHERE list_id IN ({$strListas}) AND (phone_number = '" . limpia($telefono) . "' OR alt_phone = '" . limpia($telefono) . "' OR address3 = '" . limpia($telefono) . "') LIMIT 1000"; goto HJ9gE; LFk83: xMLHW: goto x1i2K; cN8hZ: if (!($row = sv_mysqli_fetch_array($result))) { goto ISdj4; } goto r5Dcq; ywntN: lTndB: goto KnHk1; ulDRr: $strListas = implode(',', $arrListas); goto buJim; u04eR: goto wD9KU; goto OkJZF; fojvY: I12W8: goto cN8hZ; Ir_Fr: goto I12W8; goto hyJr2; ybe3L: $ret = array(); goto iQHnC; K6eiG: wD9KU: goto lh0mZ; UV26T: $arrListas[] = $listas[$i]->getId(); goto ywntN; KnHk1: $i++; goto u04eR; r5Dcq: $ret[] = new PerfilVicidial($row["lead_id"], $row["status"], ListaDatos::getListaById($row["list_id"]), $row["vendor_lead_code"], $row["first_name"], $row["last_name"], $row["email"], $row["address1"], $row["postal_code"], $row["phone_number"], $row["alt_phone"], $row["address3"], $row["source_id"]); goto Ir_Fr; m7W0S: } public static function insertPerfilVicidial(PerfilVicidial $perfilVicidial) : int { goto POdS6; Wvr7j: sv_mysqli_close($con); goto PgCpb; g6USC: $con = getConnection(); goto HRaH7; YVCt1: toH11: goto vBcm8; SPIcV: wGMc0: goto Wvr7j; PgCpb: return $resp; goto kNlc2; HRaH7: $query = "INSERT INTO vicidial_list (list_id,vendor_lead_code,first_name,last_name,email,address1,postal_code,phone_number,alt_phone,address3,status,source_id) VALUES ('" . limpia($perfilVicidial->getLista()->getId()) . "','" . limpia($perfilVicidial->getClave()) . "','" . limpia($perfilVicidial->getNombre()) . "','" . limpia($perfilVicidial->getApellidos()) . "','" . limpia($perfilVicidial->getCorreo()) . "','" . limpia($perfilVicidial->getDireccion()) . "','" . limpia($perfilVicidial->getCP()) . "','" . limpia($perfilVicidial->getTelefono1()) . "','" . limpia($perfilVicidial->getTelefono2()) . "','" . limpia($perfilVicidial->getTelefono3()) . "','" . limpia($perfilVicidial->getEstado()) . "','" . limpia($perfilVicidial->getSourceId()) . "')"; goto yuGvF; J87Sp: $resp = abs(mysqli_errno($con)) * -1; goto Ezabd; Ezabd: goto wGMc0; goto YVCt1; POdS6: $resp = 0; goto g6USC; vBcm8: $resp = mysqli_insert_id($con); goto SPIcV; yuGvF: if (sv_mysqli_query($con, $query)) { goto toH11; } goto J87Sp; kNlc2: } }