<?php
namespace Claromentis\Core\Notification;

$GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"] ?: array()) + array("_0a2813cfa8face2817eee21f41e6e" . "561" => base64_decode("c2VuZGVyX2" . "5hbWU="), "_1fd16d6b78fe56ceee6e533f1d3" . "c2f10" => base64_decode("VGVzdCB" . "ub3RpZm" . "ljYXRpb" . "24="), "_4298577e4" . "1894bcce23" . "f896cd365a" . "ea4" => base64_decode("Z" . "W" . "4" . "="), "_396de51928" . "69166adb7ea" . "bf11b43d8f8" => base64_decode("YWRtaW4udGVzdF9tZXNzYWd" . "l"), "_320d89a89" . "5cf3e885e1" . "7dc612046e" . "262" => base64_decode("VGhpcyBpcyBhIHB1c2ggbm90a" . "WZpY2F0aW9uIHRlc3QuClRoaX" . "MgaXMgb25seSBhIHRlc3QuCg=" . "="));
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["__65da1b1ec2d6653e8a0ab7848e53621" . "5"]["_396de5192" . "869166adb7" . "eabf11b43d" . "8f8"], $GLOBALS["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"]["_4298577e41894bcce2" . "3f896cd365aea4"], [$GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_0a2813c" . "fa8face2" . "817eee21" . "f41e6e56" . "1"] => $_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["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["_396de5192869166adb7eab" . "f11b43d8f8"], [$GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["_0a2813cfa8face" . "2817eee21f41e6e" . "561"] => $_5e4b5eeac89e55804a1d264303e60f4f], [$_f4033830720e1b9c71a476ecb561cdda], IMessage::TYPE_USER_NOTIFICATION, null, $_add5d42a81a21ce8c443a38dbe8dbfc0, true);
    }
    
    
    
    
    
    
    
    public function sendTestPush($user_id) : void
    {
        $this->onesignal_client->SendPush([$user_id], $GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["_1fd16d6b78fe56ceee6e533f1d3c" . "2f10"], $GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"]["_320d89a895cf3e885e17dc612046e26" . "2"]);
    }
}