<?php
//Obfuscated by YAK Pro - Php Obfuscator 2.0.13 at 2025-05-27 11:22:22
 namespace App\Jobs; use App\EmailTemplate; use App\Mail\SystemEmail; 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 Mail; class ProcessAdminEmail implements ShouldQueue { use Batchable, Dispatchable, InteractsWithQueue, Queueable, SerializesModels; private $_emailType; private $_emailData; public $timeout = 3600; public $failOnTimeout = false; public function __construct($qISdg, $wzR71) { $this->onQueue(config("\161\165\x65\165\145\56\143\157\156\x6e\x65\143\x74\x69\157\x6e\163\x2e\162\145\144\151\163\x2e\161\x75\x65\x75\145")); $this->_emailType = $qISdg; $this->_emailData = $wzR71; } public function isFailOnTimeout() : bool { return $this->failOnTimeout; } public function handle() { try { goto vcT5C; vk6ff: try { $tQunF = new SystemEmail($Cjc9o, $QFNJe, $ZUUig); Mail::to(config("\x73\145\164\x74\151\x6e\x67\x73\x2e\141\144\155\151\156\137\x65\x6d\141\151\154"))->send($tQunF); } catch (\Exception $MXKbL) { logger("\x5b\x45\x6d\141\x69\x6c\x5d\40\x45\x72\162\157\162\72\x20" . $MXKbL->getMessage()); } wbgjs: g9r13: goto GUo8J; pQ_E4: if (!($X53RO->attachments != null)) { goto amHH8; } foreach ($X53RO->attachments as $KE6s4) { $ZWgcx = public_path("\165\x70\x6c\157\141\144\x73\57\x66\151\x6c\x65\x73\57" . $KE6s4->file_name); if (file_exists($ZWgcx)) { goto VnZ0J; } goto BM0ye; VnZ0J: $ZUUig[] = ["\156\x61\155\145" => $KE6s4->title, "\146\151\x6c\x65" => $ZWgcx, "\x6d\151\x6d\145" => $KE6s4->file_type]; BM0ye: } sl_sf: goto sw3Vy; luk_L: logger("\133\x45\x6d\141\x69\x6c\x5d\x20\103\141\x6e\40\156\157\164\40\163\145\x6e\144\x20\x62\154\141\156\153\40\145\155\x61\x69\x6c\x20\143\157\156\x74\145\156\x74\x3a\x20" . config("\163\x65\x74\x74\x69\156\147\163\56\x61\144\x6d\151\156\x5f\145\155\141\151\x6c") . "\40\x7c\40" . $this->_emailType); goto wbgjs; ZiIhV: goto vk6ff; QA8yc: $Cjc9o = ''; $QFNJe = ''; $ZUUig = []; goto S_5c_; vcT5C: $R4mi2 = config("\x73\145\x74\x74\151\156\x67\x73\56" . $this->_emailType); if (!($R4mi2 != null && $R4mi2 != '')) { goto g9r13; } $X53RO = EmailTemplate::where("\151\163\137\144\x65\x6c\x65\164\x65\144", false)->where("\151\163\137\x61\x63\164\151\x76\x61\164\145\x64", true)->where("\x67\x72\x6f\x75\160", 1)->where("\x69\144", $R4mi2)->first(); goto QA8yc; S_5c_: if (!($X53RO && $X53RO->id != null && $X53RO->title != '' && $X53RO->content != '')) { goto BVJju; } $Cjc9o = str_replace("\173\173\x20\x6f\162\144\145\162\137\x63\x6f\144\145\40\175\x7d", $this->_emailData["\143\x6f\x64\145"], $X53RO->title); $QFNJe = str_replace("\173\x7b\x20\157\x72\144\x65\162\x5f\x63\x6f\x64\x65\40\x7d\175", $this->_emailData["\x63\x6f\x64\145"], $X53RO->content); goto pQ_E4; sw3Vy: amHH8: BVJju: if ($Cjc9o != '' && $QFNJe != '') { goto ZiIhV; } goto luk_L; GUo8J: } catch (\Exception $MXKbL) { logger("\123\145\x6e\x74\40\145\x6d\x61\151\154\x20\x65\162\x72\157\x72\x3a\40" . $MXKbL->getMessage()); } } }