<?php
/*   __________________________________________________
    |  Obfuscated by YAK Pro - Php Obfuscator  2.0.17  |
    |              on 2026-01-30 06:01:16              |
    |    GitHub: https://github.com/pk-fr/yakpro-po    |
    |__________________________________________________|
*/
 require_once 'PerfilVicidial.php'; class PerfilVicidialDatos { public static function getPerfilVicidialByLeadId(string $lead) : ?PerfilVicidial { goto pwWxp; aIto3: yKeMr: goto NScBm; Qnkb9: return $ret; goto Ljpv4; ct7zv: fQn1h: goto aIto3; GiTmi: if (!($result = sv_mysqli_query($con, $query))) { goto yKeMr; } goto Rbwjm; heITq: $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 ct7zv; sxYQl: $con = getConnection(); goto o3j0K; Rbwjm: if (!($row = sv_mysqli_fetch_array($result))) { goto fQn1h; } goto heITq; o3j0K: $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 GiTmi; NScBm: sv_mysqli_close($con); goto Qnkb9; pwWxp: $ret = null; goto sxYQl; Ljpv4: } public static function getPerfilesVicidialByTelefonoAndListas(string $telefono, array $listas) : ?array { goto ntB9f; OcZjN: $strListas = ""; goto L3srR; wWYEO: $con = getConnection(); goto lqi1V; UZOe4: xqgqZ: goto Fv10A; vt_c5: goto OTHuV; goto FpCOb; g71gS: W6MOT: goto qBscA; zQlJe: $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 vt_c5; e2uO1: $arrListas[] = $listas[$i]->getId(); goto UZOe4; L3srR: $i = 0; goto TWiOS; vrIEl: if (!($i < count($listas))) { goto W6MOT; } goto e2uO1; FpCOb: uBni2: goto qphuo; pasPR: sv_mysqli_close($con); goto DlRhT; z77j_: $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 I6wFI; qBscA: $strListas = implode(',', $arrListas); goto z77j_; DlRhT: return $ret; goto ZM1Z5; Fv10A: $i++; goto ZtuiB; ntB9f: $ret = array(); goto wWYEO; GuKNH: if (!($row = sv_mysqli_fetch_array($result))) { goto uBni2; } goto zQlJe; zYNq3: OTHuV: goto GuKNH; lqi1V: $arrListas = array(); goto OcZjN; I6wFI: if (!($result = sv_mysqli_query($con, $query))) { goto BThoV; } goto zYNq3; TWiOS: Z10RH: goto vrIEl; ZtuiB: goto Z10RH; goto g71gS; qphuo: BThoV: goto pasPR; ZM1Z5: } public static function insertPerfilVicidial(PerfilVicidial $perfilVicidial) : int { goto H6vSK; XM06C: FUn3x: goto jvALN; XQxSb: goto FUn3x; goto Bm4Zd; ugJGQ: if (sv_mysqli_query($con, $query)) { goto PwnNk; } goto sPjv3; sPjv3: $resp = abs(mysqli_errno($con)) * -1; goto XQxSb; lrqIE: return $resp; goto hK9zt; SSB9w: $con = getConnection(); goto tuhrr; Bm4Zd: PwnNk: goto WAoAb; H6vSK: $resp = 0; goto SSB9w; jvALN: sv_mysqli_close($con); goto lrqIE; tuhrr: $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 ugJGQ; WAoAb: $resp = mysqli_insert_id($con); goto XM06C; hK9zt: } }