<?php
namespace Claromentis\Documents\Subscriber;

$GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"] = (@$GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"] ?: array()) + array("_147160a2e585c182c1b" . "1349779a20ca3" => base64_decode("dGFnZ2Vkc19h" . "ZmZlY3RlZA=="), "_7f628626dd1d55c" . "71b1fc0932ffd1d2" . "c" => base64_decode("aXNf" . "YXJy" . "YXk="), "_cc13a0811" . "453f376ca3" . "d9bf4073f6" . "6b6" => base64_decode("UmVpbmRl" . "eERvY3Vt" . "ZW50cw=="), "_2ddb0d638f8b0800ac1e67" . "8385d1d13f" => base64_decode("dGFnZ2Vkc" . "w=="));
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["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["_147160a2e585c182c1b1349779" . "a20ca3"] => $GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"]["_cc13a08114" . "53f376ca3d9" . "bf4073f66b6"]];
    }
    
    
    
    
    
    
    public function ReindexDocuments(GenericEvent $event)
    {
        $arguments = $event->getArguments();
        if (!isset($arguments[$GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_2ddb0d6" . "38f8b080" . "0ac1e678" . "385d1d13" . "f"]][AGGREGATION_DATA])) {
            return;
        }
        $_54a4e641f6b0a82e03c3b14120cbf5f0 = $arguments[$GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"]["_2ddb0d638f8b0800ac1e678385d1d1" . "3f"]][AGGREGATION_DATA];
        if (!$GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"]["_7f628626dd1d55c71" . "b1fc0932ffd1d2c"]($_54a4e641f6b0a82e03c3b14120cbf5f0)) {
            return;
        }
        foreach ($_54a4e641f6b0a82e03c3b14120cbf5f0 as $_f0abe7892aa8bbbd0c1198602164aa17) {
            IndexingQueue::Reindex(ERMSObject::GetSearchTypeFromAggregation(AGGREGATION_DATA), $_f0abe7892aa8bbbd0c1198602164aa17);
        }
    }
}