<?php
namespace Claromentis\Documents\Subscriber;

$GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"] ?: array()) + array("_7f628626dd1d55c" . "71b1fc0932ffd1d2" . "c" => base64_decode("aXNfYXJyYXk" . "="), "_147160a" . "2e585c18" . "2c1b1349" . "779a20ca" . "3" => base64_decode("dGFnZ2Vk" . "c19hZmZl" . "Y3RlZA=="), "_2ddb0d638f8b0800ac1e6783" . "85d1d13f" => base64_decode("dGFnZ" . "2Vkcw" . "=="), "_cc13a0811453f376ca3d9bf4073f66" . "b6" => base64_decode("UmVpbmRleERvY3VtZW50" . "cw=="));
use Claromentis\Core\Event\GenericEvent;
use Claromentis\Search\Indexing\IndexingQueue;
use ERMSObject;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
class TagsSubscriber implements EventSubscriberInterface
{
    
    
    
    
    public static function getSubscribedEvents()
    {
        return [$GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"]["_147160a2e585" . "c182c1b134977" . "9a20ca3"] => $GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_cc13a0811453f376ca3d9b" . "f4073f66b6"]];
    }
    
    
    
    
    
    
    public function ReindexDocuments(GenericEvent $event)
    {
        $arguments = $event->getArguments();
        if (!isset($arguments[$GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["_2ddb0d63" . "8f8b0800a" . "c1e678385" . "d1d13f"]][AGGREGATION_DATA])) {
            return;
        }
        $_54a4e641f6b0a82e03c3b14120cbf5f0 = $arguments[$GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["_2ddb0d638f8b0800ac1e67" . "8385d1d13f"]][AGGREGATION_DATA];
        if (!$GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["_7f628626" . "dd1d55c71" . "b1fc0932f" . "fd1d2c"]($_54a4e641f6b0a82e03c3b14120cbf5f0)) {
            return;
        }
        foreach ($_54a4e641f6b0a82e03c3b14120cbf5f0 as $_f0abe7892aa8bbbd0c1198602164aa17) {
            IndexingQueue::Reindex(ERMSObject::GetSearchTypeFromAggregation(AGGREGATION_DATA), $_f0abe7892aa8bbbd0c1198602164aa17);
        }
    }
}