<?php
namespace Claromentis\Projects\Subscribers;

$GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"] ?: array()) + array("_b5e3d5c368f01f5ffdb" . "a265200514c52" => base64_decode("QXVkaXRUYXNrRGVs" . "ZXRlZA=="), "_68680c984182bf7876b2bb0ab77eb" . "e01" => base64_decode("cHJvamVjd" . "HM="), "_5f60eed1f7bc495327b9a7c357a8290" . "d" => base64_decode("cHJvamVjdF9kZWxldGV" . "k"), "_44d2a84a50d20bd189" . "2bde713b07b5b7" => base64_decode("VG" . "Fz" . "ay" . "Ai"), "_02bb9f7da9" . "659769fe776" . "46e2750b60f" => base64_decode("dGFz" . "a19k" . "ZWxl" . "dGVk"), "_32139cda909fb87e402a845e7d638" . "51c" => base64_decode("IiB" . "kZW" . "xld" . "GVk"), "_18929f0" . "41c73324" . "d411c326" . "7cd21c23" . "6" => base64_decode("QXVkaXRQcm9q" . "ZWN0RGVsZXRl" . "ZA=="), "_2b69a6d" . "0f5e02fc" . "b1ecbb68" . "39acc31b" . "c" => base64_decode("UHJvamV" . "jdCAi"));
use Claromentis\Core\Audit\Audit;
use Claromentis\Core\Event\EventSubscriberInterface;
use Claromentis\Projects\Event\ProjectEvent;
use Claromentis\Projects\Event\ProjectPostDeletedEvent;
use Claromentis\Projects\Event\TaskEvent;
class AuditSubscriber implements EventSubscriberInterface
{
    
    
    
    
    private $audit;
    
    
    
    
    
    
    public function __construct(Audit $audit)
    {
        $this->audit = $audit;
    }
    
    
    
    
    public static function getSubscribedEvents()
    {
        return [
            
            
            
            
            ProjectPostDeletedEvent::NAME => $GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["_18929f041c7" . "3324d411c326" . "7cd21c236"],
            
            
            
            
            TaskEvent::POST_DELETE_EVENT => $GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_b5e3d5c368f01f5ffdba" . "265200514c52"],
        ];
    }
    
    
    
    
    
    
    public function AuditProjectDeleted(ProjectEvent $_e62ca7bbb93b52cafc82da1c2aefe9ec) : void
    {
        $project = $_e62ca7bbb93b52cafc82da1c2aefe9ec->GetProject();
        $this->audit->Store(Audit::AUDIT_SUCCESS, $GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_68680c98418" . "2bf7876b2bb0" . "ab77ebe01"], $GLOBALS["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"]["_5f60eed1f7bc495327b9a7c" . "357a8290d"], (int) $project->GetId(), $GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["_2b69a6d0f5e02" . "fcb1ecbb6839ac" . "c31bc"] . $project->GetName() . $GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"]["_32139cda909fb87e" . "402a845e7d63851c"]);
    }
    
    
    
    
    
    
    public function AuditTaskDeleted(TaskEvent $_e62ca7bbb93b52cafc82da1c2aefe9ec)
    {
        $_696b535739055ed7d827709916d07dea = $_e62ca7bbb93b52cafc82da1c2aefe9ec->GetTask();
        $this->audit->Store(Audit::AUDIT_SUCCESS, $GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["_68680c984182bf7876" . "b2bb0ab77ebe01"], $GLOBALS["__65da1b1ec2d6653e8a0ab784" . "8e536215"]["_02bb9f7da9659769fe776" . "46e2750b60f"], (int) $_696b535739055ed7d827709916d07dea->GetId(), $GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["_44d2a84a50d20bd1892b" . "de713b07b5b7"] . $_696b535739055ed7d827709916d07dea->GetTitle() . $GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"]["_32139cda909fb8" . "7e402a845e7d638" . "51c"]);
    }
}