<?php
//Obfuscated by YAK Pro - Php Obfuscator 2.0.13 at 2025-05-27 11:22:22
 namespace App\Jobs; use App\Employee; use App\Payout; use App\PointTable; use App\ReportJob; use App\Services\EmployeeService; use App\SeveranceCalculationHistory; use Carbon\Carbon; 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; use Illuminate\Support\Facades\Log; class ProcessSeveranceHistoryJob implements ShouldQueue { use Batchable, Dispatchable, InteractsWithQueue, Queueable, SerializesModels; protected $reportJob; protected $fiscalYear; protected $currentEmployeeId; public $timeout = 3600; public $failOnTimeout = false; public function __construct(ReportJob $TJ8iK, $StzVO) { $this->onQueue(config("\x71\165\x65\x75\x65\56\x63\x6f\x6e\156\145\x63\x74\151\x6f\156\163\56\162\x65\144\x69\163\56\161\x75\x65\165\145")); $this->reportJob = $TJ8iK; $this->fiscalYear = $StzVO; } public function isFailOnTimeout() : bool { return $this->failOnTimeout; } public function handle() { try { goto ueVMJ; SCHec: $this->reportJob->update(["\x66\151\154\145" => "\x53\x65\166\x65\162\x61\156\143\x65\103\141\x6c\x63\x75\x6c\141\164\151\x6f\x6e\x48\x69\x73\164\157\x72\x79", "\x74\157\164\141\x6c\137\x73\150\x65\x65\x74" => $tWrJX->count(), "\163\164\x61\x74\165\x73" => "\163\165\143\143\x65\163\163", "\x75\160\x64\x61\164\145\144\137\141\164" => Carbon::now()]); goto ekQDw; X9SB9: $tWrJX = SeveranceCalculationHistory::with("\x65\x6d\x70\154\157\171\145\145")->where("\143\157\x64\145", $this->reportJob->code)->get(); foreach ($tWrJX as $JsrOm) { $this->currentEmployeeId = $JsrOm->employee->id; $DseXg = $KLWqD->calculateSeverancePayment($JsrOm->employee, $PBlMl, $VHzjt, $this->fiscalYear); $JsrOm->update(["\x74\x65\x6e\165\x72\145\x5f\x79\145\141\x72" => $DseXg["\x74\x65\x6e\x75\x72\145\x5f\x79\145\141\x72"], "\x74\145\156\165\x72\x65\137\160\x6f\151\156\164\163" => $DseXg["\x74\x65\156\165\162\145\x5f\x70\x6f\x69\156\164"], "\x6c\x65\x76\145\x6c\137\x70\157\151\x6e\x74\163" => $DseXg["\x6c\145\x76\x65\x6c\x5f\160\157\x69\x6e\164"], "\160\157\x73\151\x74\x69\157\x6e\137\x70\157\151\x6e\x74\163" => $DseXg["\160\157\163\151\164\151\157\x6e\x5f\160\157\151\x6e\x74"], "\x74\145\156\165\162\145\x5f\164\x72\x61\156\163\x69\164\151\x6f\x6e\137\160\x6f\151\156\164\x73" => $DseXg["\164\145\x6e\x75\x72\x65"]["\x74\x72\x61\x6e\163\151\164\x69\157\156\137\x70\x6f\x69\156\164\163"], "\154\145\166\x65\x6c\x5f\164\162\141\156\x73\x69\164\151\x6f\156\137\x70\x6f\x69\x6e\x74\163" => $DseXg["\x6c\145\x76\145\154"]["\x74\162\141\x6e\x73\151\x74\x69\x6f\x6e\x5f\x70\x6f\x69\156\164\163"], "\x70\x6f\x73\x69\164\x69\157\x6e\137\x74\162\141\x6e\163\x69\x74\151\x6f\156\137\160\x6f\151\156\x74\x73" => $DseXg["\160\x6f\163\x69\164\x69\x6f\156"]["\164\x72\141\156\163\151\164\x69\157\156\137\160\x6f\151\x6e\x74\x73"], "\164\x6f\164\141\x6c\137\160\157\x69\x6e\x74\163" => $DseXg["\x74\157\x74\141\154\x5f\160\x6f\x69\156\164"], "\x70\x6f\x69\156\164\x5f\x72\x61\164\x65" => $DseXg["\160\x6f\151\x6e\164\137\x72\141\x74\145"], "\164\145\156\x75\x72\145\137\x61\x6d\x6f\x75\156\164" => $DseXg["\x74\x65\156\x75\162\x65\137\141\155\157\165\156\x74"], "\154\x65\166\x65\154\x5f\141\155\x6f\165\156\x74" => $DseXg["\x6c\145\166\x65\x6c\137\x61\155\157\165\156\164"], "\x70\x6f\163\151\x74\151\157\156\137\x61\155\x6f\x75\x6e\x74" => $DseXg["\160\157\x73\151\164\151\157\156\x5f\141\155\x6f\165\x6e\164"], "\164\157\x74\141\154\x5f\x61\x6d\x6f\x75\x6e\x74" => $DseXg["\x74\x6f\x74\141\x6c\137\141\155\x6f\x75\x6e\164"], "\160\x61\171\155\x65\x6e\164\137\x70\x65\x72\x63\x65\x6e\164" => $DseXg["\160\141\171\155\145\x6e\164\137\160\145\162\x63\145\156\x74"], "\146\x69\156\x61\154\137\x61\x6d\157\165\x6e\164" => $DseXg["\146\151\x6e\141\x6c\137\141\155\x6f\165\156\x74"], "\x72\145\x74\x69\162\x65\155\x65\156\164\137\146\x75\x6e\144\137\x61\x6d\x6f\165\x6e\x74" => $DseXg["\162\145\x74\x69\162\x65\155\x65\x6e\x74\137\x66\x75\x6e\x64\137\x61\x6d\x6f\x75\156\164"], "\x73\x65\x76\x65\162\141\156\143\x65\137\141\x6d\x6f\165\x6e\x74" => $DseXg["\x73\145\x76\x65\x72\x61\156\143\x65\x5f\x61\x6d\157\165\156\164"], "\x63\x61\x6c\143\165\x6c\141\164\x69\157\156\x5f\x64\x65\164\141\151\x6c" => $DseXg, "\x73\164\141\164\x75\x73" => 2]); koD2I: } NKP9u: goto SCHec; ZXrGB: $KLWqD = new EmployeeService(); $PBlMl = Payout::select("\171\145\141\x72\x73", "\162\141\x74\x65")->orderBy("\171\x65\141\x72\163")->get()->toArray(); $VHzjt = PointTable::select("\x79\x65\x61\x72\163", "\x70\x6f\x69\x6e\x74\x73")->pluck("\x70\x6f\x69\156\x74\163", "\x79\145\x61\x72\x73")->toArray(); goto X9SB9; ueVMJ: ini_set("\x6d\x61\x78\x5f\145\x78\145\x63\165\x74\x69\x6f\x6e\x5f\164\x69\155\x65", 300); ini_set("\x6d\x65\155\157\162\171\x5f\x6c\151\155\x69\x74", "\65\61\62\115"); $this->reportJob->update(["\163\164\x61\x74\165\x73" => "\x70\x72\157\143\x65\163\x73\x69\x6e\147", "\x75\160\x64\141\x74\x65\x64\137\x61\x74" => Carbon::now()]); goto ZXrGB; ekQDw: } catch (\Exception $IAsGE) { $this->reportJob->update(["\x73\x74\x61\x74\165\x73" => "\x66\x61\x69\x6c\x65\x64", "\x75\x70\x64\141\x74\145\x64\x5f\x61\164" => Carbon::now()]); Log::error("\x5b\x50\162\x6f\143\145\163\163\123\x65\166\x65\x72\x61\x6e\x63\145\110\151\163\x74\157\x72\x79\112\157\142\x5d\40\120\162\x6f\x63\145\163\163\x20\123\x65\x76\x65\162\x61\156\x63\145\40\x43\141\154\x63\165\x6c\x61\x74\x69\157\x6e\x20\x48\151\163\164\x6f\x72\x79\40\x65\x72\x72\x6f\162\40\133\111\x44\x3a\x20{$this->currentEmployeeId}\135\x3a\x20" . $IAsGE->getMessage()); } } }