<?php
namespace Claromentis\Mailgun;

$GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"] ?: array()) + array("_92b9ae7815960caefa1" . "b42b16a599ea5" => base64_decode("bWFpbGd1bi51c2VfY2FzZS52YWxpZGF0ZV9pbmNv" . "bWluZw=="), "_4d4b52c0d63f25377012a294ff" . "3e52e3" => base64_decode("L3JlY" . "2Vpdm" . "U="), "_ebb0fc48c5044fcd" . "f4ff11de1b3abe07" => base64_decode("bWFpbGd1bi5sb2d" . "nZXI="), "_bdade8544d16a83f1bc9c4121" . "e6d64de" => base64_decode("L21haWxnd" . "W4vdjE="), "_04c851ced65682f1411090dee7" . "ada43b" => base64_decode("cmVz" . "dA=="), "_2036db3c016e1792df64c51e9" . "c8c2bca" => base64_decode("OjpPblJlY2VpdmVkV2ViaG9vaw" . "=="), "_0995370913cd" . "44391d39fdba6" . "ce206c0" => base64_decode("bG9jYWxpemF0aW" . "9uLmRvbWFpbl9m" . "cm9tX2ZpbGVzX2" . "ZhY3Rvcnk="), "_89b48cb97d07bb" . "a6095d1f1399d7e" . "c96" => base64_decode("L21haWxn" . "dW4vdjA="), "_12dc001a9ad" . "5eec9b02198f" . "903676641" => base64_decode("bG9jYWxp" . "emF0aW9u" . "LmRvbWFp" . "bi4="), "_c7a35cdd86375" . "3e83240fbb3e73" . "2a6b7" => base64_decode("bm9" . "uZQ" . "=="), "_fc12f2ed65e8a7c" . "eac29e167ce5b683" . "0" => base64_decode("bWFp" . "bGd1" . "bg=="), "_c056775f03d6e2a" . "eeb0388312dc4170" . "e" => base64_decode("bWFpbGd1bi5yZXBv" . "c2l0b3J5"));
use Claromentis\Core\Application;
use Claromentis\Core\REST\RestServiceInterface;
use Claromentis\Mailgun\Controller\RestV1;
use Claromentis\Mailgun\Repository\MailgunRepository;
use Pimple\Container;
use Pimple\ServiceProviderInterface;




class MailgunApplication implements ServiceProviderInterface, RestServiceInterface
{
    public const NAME = 'mailgun';
    
    
    
    
    
    
    
    
    
    public function register(\Pimple\Container $app)
    {
        $app[$GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["_ebb0fc48c504" . "4fcdf4ff11de1" . "b3abe07"]] = function ($app) {
            
            
            return $app->GetLogger($GLOBALS["__65da1b1ec2d6653e8a0ab7848" . "e536215"]["_fc12f2ed65e8a7ceac29e167ce" . "5b6830"]);
        };
        $app[$GLOBALS["__65da1b1ec2d6653e8a0ab784" . "8e536215"]["_c056775f03d6" . "e2aeeb0388312" . "dc4170e"]] = function ($app) {
            return new Repository\MailgunRepository($app->db);
        };
        $app[$GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"]["_92b9ae7815960caefa1b" . "42b16a599ea5"]] = function ($app) {
            
            
            $repository = $app[$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"]["_c056775f03" . "d6e2aeeb038" . "8312dc4170e"]];
            return new UseCase\ValidateIncomingMessage($repository, $repository->GetApiKey());
        };
        $app[$GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["_12dc001a9ad5eec9b021" . "98f903676641"] . self::NAME] = function ($app) {
            return $app[$GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["_0995370913cd44391d39fdba6c" . "e206c0"]](self::NAME);
        };
    }
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    public function GetRestRoutes(Application $app)
    {
        return [
            $GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["_89b48cb97d07bba6095" . "d1f1399d7ec96"] => $GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"]["_bdade8544d16a83f1bc" . "9c4121e6d64de"],
            
            
            $GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["_bdade8544d16a83f1bc9c412" . "1e6d64de"] => function (\Claromentis\Core\ControllerCollection $_6c20f4873f12c6bcced6c1dda9a06b86) {
                $_6c20f4873f12c6bcced6c1dda9a06b86->post($GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"]["_4d4b52c0d63f2537701" . "2a294ff3e52e3"], RestV1::class . $GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_2036db3c016e1792df64c51e9c8" . "c2bca"])->secure($GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"]["_04c851c" . "ed65682f" . "1411090d" . "ee7ada43" . "b"], $GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["_c7a35cdd8" . "63753e8324" . "0fbb3e732a" . "6b7"]);
            },
        ];
    }
}