<?php
/*   __________________________________________________
    |  Obfuscated by YAK Pro - Php Obfuscator  2.0.17  |
    |              on 2026-02-13 06:00:55              |
    |    GitHub: https://github.com/pk-fr/yakpro-po    |
    |__________________________________________________|
*/
 require_once 'PerfilVicidial.php'; class PerfilVicidialDatos { public static function getPerfilVicidialByLeadId(string $lead) : ?PerfilVicidial { goto Dge6H; kAWLZ: T32PI: goto hyfjE; JE0GU: if (!($result = sv_mysqli_query($con, $query))) { goto rS5Kl; } goto vw0xR; mG2rB: return $ret; goto G9JsI; KmgCx: $con = getConnection(); goto FWsZn; RFZE7: sv_mysqli_close($con); goto mG2rB; Dge6H: $ret = null; goto KmgCx; WYOi3: $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 kAWLZ; FWsZn: $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 JE0GU; vw0xR: if (!($row = sv_mysqli_fetch_array($result))) { goto T32PI; } goto WYOi3; hyfjE: rS5Kl: goto RFZE7; G9JsI: } public static function getPerfilesVicidialByTelefonoAndListas(string $telefono, array $listas) : ?array { goto l_94H; QTEvA: goto OrINF; goto vDqXI; y6k2f: yz7Go: goto UefgN; Qd50Q: $con = getConnection(); goto L_ONI; WjcSq: d6Sh3: goto Mw12I; KHgyL: aHnVY: goto WjcSq; gvVy6: $strListas = ""; goto BphGS; UefgN: if (!($row = sv_mysqli_fetch_array($result))) { goto aHnVY; } goto rqxKm; l_94H: $ret = array(); goto Qd50Q; LcSGa: $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 t3DZB; vDqXI: RZ37E: goto CCqwC; sdGO0: OrINF: goto THqOj; V1L3I: return $ret; goto wrqoV; kkgNG: goto yz7Go; goto KHgyL; uBSGZ: $arrListas[] = $listas[$i]->getId(); goto iNr7n; L_ONI: $arrListas = array(); goto gvVy6; THqOj: if (!($i < count($listas))) { goto RZ37E; } goto uBSGZ; iNr7n: N3qdV: goto KAzXl; rqxKm: $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 kkgNG; BphGS: $i = 0; goto sdGO0; Mw12I: sv_mysqli_close($con); goto V1L3I; t3DZB: if (!($result = sv_mysqli_query($con, $query))) { goto d6Sh3; } goto y6k2f; KAzXl: $i++; goto QTEvA; CCqwC: $strListas = implode(',', $arrListas); goto LcSGa; wrqoV: } public static function insertPerfilVicidial(PerfilVicidial $perfilVicidial) : int { goto Me1Vg; L241q: return $resp; goto Z404g; ipb0_: if (sv_mysqli_query($con, $query)) { goto aiFFy; } goto DIuZt; Me1Vg: $resp = 0; goto C7daQ; dDe6E: $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 ipb0_; C7daQ: $con = getConnection(); goto dDe6E; DuGX0: goto BcLbF; goto hCuJw; k2zyr: BcLbF: goto S9MES; fBvtO: $resp = mysqli_insert_id($con); goto k2zyr; DIuZt: $resp = abs(mysqli_errno($con)) * -1; goto DuGX0; S9MES: sv_mysqli_close($con); goto L241q; hCuJw: aiFFy: goto fBvtO; Z404g: } }