<?php
namespace Claromentis\Core\Notification;

$GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"] = (@$GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"] ?: array()) + array("_1fd16d6b78fe56ceee6" . "e533f1d3c2f10" => base64_decode("VGVzdC" . "Bub3Rp" . "ZmljYX" . "Rpb24="), "_396de5192869166ad" . "b7eabf11b43d8f8" => base64_decode("YWRtaW4ud" . "GVzdF9tZX" . "NzYWdl"), "_320d89a895c" . "f3e885e17dc6" . "12046e262" => base64_decode("VGhpcyBpcyBhIHB1c2ggbm90aWZpY2F0aW9uIHRlc3QuClRoaXMgaXMgb25seSBhIHR" . "lc3QuCg=="), "_4298577e4189" . "4bcce23f896cd" . "365aea4" => base64_decode("ZW" . "4="), "_0a2813cfa8face2817eee21f4" . "1e6e561" => base64_decode("c2VuZGVyX" . "25hbWU="));
use Claromentis\Core\Config;
use Claromentis\Core\Mail;
use Claromentis\Onesignal\OnesignalClient;
use Exception;
use IMessage;
use NotificationMessage;








class Api
{
    private Mail\Api $mailApi;
    private OnesignalClient $onesignal_client;
    public function __construct(Mail\Api $mailApi, OnesignalClient $onesignal_client)
    {
        $this->mailApi = $mailApi;
        $this->onesignal_client = $onesignal_client;
    }
    
    
    
    
    
    
    
    
    
    
    
    
    public function sendTestEmail(string $_4defe7be81f86ea1db6af4de0d32c046, ?string $_5e4b5eeac89e55804a1d264303e60f4f = null) : void
    {
        [$_f656816961e8573806141c558b184fe2, $_f50e845669e7cd06bbc643eeb57aa01d] = NotificationMessage::ProcessTemplate($GLOBALS["__65da1b1ec2d6653e8a0ab7848" . "e536215"]["_396de519" . "2869166ad" . "b7eabf11b" . "43d8f8"], $GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["_4298577e4" . "1894bcce23" . "f896cd365a" . "ea4"], [$GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"]["_0a2813cfa8face2817eee21f41e6e5" . "61"] => $_5e4b5eeac89e55804a1d264303e60f4f]);
        $this->mailApi->sendEmail($this->mailApi->createEmail($this->mailApi->createSystemAddress(), $this->mailApi->createAddress($_4defe7be81f86ea1db6af4de0d32c046), $_f656816961e8573806141c558b184fe2, $_f50e845669e7cd06bbc643eeb57aa01d), $this->mailApi->getDefaultTransport());
    }
    
    
    
    
    
    
    
    public function sendTestInstantMessage(int $_f4033830720e1b9c71a476ecb561cdda, ?string $_5e4b5eeac89e55804a1d264303e60f4f = null, ?int $_add5d42a81a21ce8c443a38dbe8dbfc0 = null) : void
    {
        NotificationMessage::Send($GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["_396de5192869166adb7eabf11b43d8" . "f8"], [$GLOBALS["__65da1b1ec2d6653e8a0ab784" . "8e536215"]["_0a2813cfa8face281" . "7eee21f41e6e561"] => $_5e4b5eeac89e55804a1d264303e60f4f], [$_f4033830720e1b9c71a476ecb561cdda], IMessage::TYPE_USER_NOTIFICATION, null, $_add5d42a81a21ce8c443a38dbe8dbfc0, true);
    }
    
    
    
    
    
    
    
    public function sendTestPush($user_id) : void
    {
        $this->onesignal_client->SendPush([$user_id], $GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["_1fd16d6" . "b78fe56c" . "eee6e533" . "f1d3c2f1" . "0"], $GLOBALS["__65da1b1ec2d6" . "653e8a0ab7848e" . "536215"]["_320d89a895cf3e885e17dc" . "612046e262"]);
    }
}