<?php
//Obfuscated by YAK Pro - Php Obfuscator 2.0.13 at 2025-05-27 11:22:22
 namespace App\Jobs; use App\Product; use App\ProductDetail; use App\ProductDetailOptionDetail; use App\ProductOption; use App\ProductOptionDetail; use Illuminate\Bus\Queueable; use Illuminate\Bus\Batchable; use Illuminate\Contracts\Queue\ShouldBeUnique; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Queue\SerializesModels; class ProcessProductDetail implements ShouldQueue { use Batchable, Dispatchable, InteractsWithQueue, Queueable, SerializesModels; protected $product; public $timeout = 3600; public $failOnTimeout = false; public function __construct(Product $Cmx6Z) { $this->onQueue(config("\x71\165\x65\165\145\56\143\x6f\156\x6e\145\x63\164\x69\x6f\156\x73\x2e\162\x65\x64\x69\163\56\161\x75\145\x75\145")); $this->product = $Cmx6Z->withoutRelations(); } public function isFailOnTimeout() : bool { return $this->failOnTimeout; } public function handle() { try { goto bcFdu; GOFXB: x81vI: $KDb1Z = []; $iahQo = $this->combinations($O3PjD); goto O2PYJ; bcFdu: $O3PjD = []; $J5Ahx = ProductOption::select("\x69\x64")->where("\x70\162\x6f\x64\x75\x63\164\x5f\x69\x64", $this->product->id)->get(); foreach ($J5Ahx as $FKv53) { $wwSNz = ProductOptionDetail::select("\x69\x64")->where("\x70\162\x6f\144\x75\x63\x74\x5f\157\x70\x74\x69\x6f\156\x5f\151\x64", $FKv53->id)->pluck("\151\144")->toArray(); if (!(count($wwSNz) > 0)) { goto cKpGL; } $O3PjD[] = $wwSNz; cKpGL: daRCi: } goto GOFXB; v5QTA: LWkT1: goto fguVF; O2PYJ: foreach ($iahQo as $lmGxZ => $DUarg) { $KDb1Z[] = ["\x73\153\165" => $lmGxZ + 1, "\x63\157\144\145" => implode("\137", $DUarg), "\157\x70\x74\151\x6f\156\x73" => $DUarg]; i3kXp: } Ph7Go: foreach ($KDb1Z as $oghh5) { $imZYn = ProductDetail::create(["\x70\162\x6f\144\x75\143\164\x5f\151\144" => $this->product->id, "\163\x6b\165" => $this->product->sku . "\137" . $oghh5["\163\x6b\x75"], "\163\154\165\147" => $this->product->sku . "\x5f" . $oghh5["\x73\x6b\165"], "\143\157\x64\x65" => md5($this->product->sku . "\137" . $oghh5["\x63\x6f\x64\145"]), "\x70\x72\151\143\x65" => $this->product->default_price, "\x70\157\163\151\164\x69\157\x6e" => 0, "\151\x73\x5f\141\143\164\151\166\x61\x74\145\x64" => 1, "\x63\x72\145\x61\164\x65\x64\137\x61\x74" => date("\131\55\x6d\x2d\x64\x20\110\72\151\x3a\163"), "\x75\160\x64\141\x74\145\x64\x5f\141\x74" => date("\131\55\x6d\x2d\144\x20\110\x3a\x69\x3a\163")]); foreach ($oghh5["\x6f\x70\x74\x69\157\156\x73"] as $VBr1e) { ProductDetailOptionDetail::create(["\160\x72\x6f\x64\165\143\164\x5f\144\145\x74\141\151\x6c\x5f\151\x64" => $imZYn->id, "\x70\162\157\144\165\143\x74\137\x6f\160\x74\151\157\156\x5f\144\x65\x74\x61\x69\154\x5f\x69\x64" => $VBr1e, "\x63\x72\x65\141\164\145\144\x5f\141\x74" => date("\x59\x2d\x6d\x2d\x64\x20\x48\72\x69\72\x73"), "\x75\x70\x64\x61\x74\145\144\x5f\141\164" => date("\131\55\155\55\144\40\110\72\x69\72\x73")]); Fynuo: } mgAbg: VKH24: } goto v5QTA; fguVF: } catch (\Exception $Q71lx) { logger("\125\160\x64\x61\x74\x65\x20\160\x72\x6f\x64\165\x63\164\40\x64\x65\164\x61\x69\x6c\x20\145\x72\162\157\x72\72\40" . $Q71lx->getMessage()); } } private function combinations($pKbuh, $S1Y1F = 0) { goto Q1U9h; Z5fey: AU8xV: return $zo0PG; goto RDh02; iv2Q_: if (!($S1Y1F == count($pKbuh) - 1)) { goto Qacdy; } return $pKbuh[$S1Y1F]; Qacdy: goto i59yJ; Q1U9h: if (isset($pKbuh[$S1Y1F])) { goto CONcR; } return array(); CONcR: goto iv2Q_; i59yJ: $IJb_L = $this->combinations($pKbuh, $S1Y1F + 1); $zo0PG = array(); foreach ($pKbuh[$S1Y1F] as $j2yuB) { foreach ($IJb_L as $kEpwz) { $zo0PG[] = is_array($kEpwz) ? array_merge(array($j2yuB), $kEpwz) : array($j2yuB, $kEpwz); qO6mO: } QmuP2: FcT9q: } goto Z5fey; RDh02: } }