<?php
namespace Claromentis\Projects\Subscribers;

$GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"] = (@$GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"] ?: array()) + array("_32139cda90" . "9fb87e402a8" . "45e7d63851c" => base64_decode("IiBk" . "ZWxl" . "dGVk"), "_68680c984182bf7876b" . "2bb0ab77ebe01" => base64_decode("cHJvam" . "VjdHM="), "_2b69a6d0f5e02fcb1ecb" . "b6839acc31bc" => base64_decode("UHJvam" . "VjdCAi"), "_18929f041c73" . "324d411c3267c" . "d21c236" => base64_decode("QXVkaXRQcm9qZWN0RGVs" . "ZXRlZA=="), "_5f60eed1f7bc495327b9a7c357a8290" . "d" => base64_decode("cHJvamVjdF9kZWxldG" . "Vk"), "_44d2a84a" . "50d20bd18" . "92bde713b" . "07b5b7" => base64_decode("VGFz" . "ayAi"), "_02bb9f7da96" . "59769fe77646" . "e2750b60f" => base64_decode("dGFza19" . "kZWxldG" . "Vk"), "_b5e3d5c368f01" . "f5ffdba2652005" . "14c52" => base64_decode("QXVkaXRUYXNrRGVsZXRl" . "ZA=="));
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["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["_18929f041c73324d411c3267cd21c" . "236"],
            
            
            
            
            TaskEvent::POST_DELETE_EVENT => $GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"]["_b5e3d5c368f01f" . "5ffdba265200514" . "c52"],
        ];
    }
    
    
    
    
    
    
    public function AuditProjectDeleted(ProjectEvent $_e62ca7bbb93b52cafc82da1c2aefe9ec) : void
    {
        $project = $_e62ca7bbb93b52cafc82da1c2aefe9ec->GetProject();
        $this->audit->Store(Audit::AUDIT_SUCCESS, $GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["_68680c984182bf7" . "876b2bb0ab77ebe0" . "1"], $GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["_5f60eed1f7bc4" . "95327b9a7c357a" . "8290d"], (int) $project->GetId(), $GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["_2b69a6d0f5e02fcb1ecbb6" . "839acc31bc"] . $project->GetName() . $GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"]["_32139cd" . "a909fb87" . "e402a845" . "e7d63851" . "c"]);
    }
    
    
    
    
    
    
    public function AuditTaskDeleted(TaskEvent $_e62ca7bbb93b52cafc82da1c2aefe9ec)
    {
        $_696b535739055ed7d827709916d07dea = $_e62ca7bbb93b52cafc82da1c2aefe9ec->GetTask();
        $this->audit->Store(Audit::AUDIT_SUCCESS, $GLOBALS["__65da1b1ec2d6" . "653e8a0ab7848e" . "536215"]["_68680c98418" . "2bf7876b2bb0" . "ab77ebe01"], $GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"]["_02bb9f7da9659769fe77646e2750b" . "60f"], (int) $_696b535739055ed7d827709916d07dea->GetId(), $GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"]["_44d2a84" . "a50d20bd" . "1892bde7" . "13b07b5b" . "7"] . $_696b535739055ed7d827709916d07dea->GetTitle() . $GLOBALS["__65da1b1ec2d6653e8a0ab7848e" . "536215"]["_32139cda9" . "09fb87e402" . "a845e7d638" . "51c"]);
    }
}