<?php
namespace Claromentis\Search\ItemType;

$GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"] = (@$GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"] ?: array()) + array("_3c260f3beb2f533c7abcfe" . "6f9793aae3" => base64_decode("eW" . "Vz"), "_3429a564f3319bcce4277c92b56" . "6301a" => base64_decode("aW50cmFuZXR" . "1c2Vy"), "_fa0ea3ff84d62d9eb5c8e215ce912e5" . "7" => base64_decode("YW" . "5k"), "_9aa1db89206e80c571adeb0f9" . "5f475a9" => base64_decode("ZXh0cmF" . "uZXRfYX" . "JlYV9pZ" . "A=="), "_900d48ade8" . "c2df0520b76" . "de5ee405224" => base64_decode("dGVybXM" . "="));
use Claromentis\Core\Security\SecurityContext;
use Claromentis\Search\GlobalSearchItemInterface;
use Claromentis\Search\QueryBuildUtil;






class User implements GlobalSearchItemInterface
{
    
    
    
    
    public function GetIndexingObject()
    {
        return new Indexing\User();
    }
    public function GetPermissionsSearchFilter(SecurityContext $context)
    {
        if ($context->GetUserId() < 1) {
            return QueryBuildUtil::MatchNone();
        }
        if (!$context->IsPrimaryExtranet()) {
            $filter = [$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["_fa0ea3f" . "f84d62d9" . "eb5c8e21" . "5ce912e5" . "7"] => [[$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["_900d48ade8c2df0" . "520b76de5ee40522" . "4"] => [$GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["_9aa1db89206e80c571adeb0f" . "95f475a9"] => [$context->GetExtranetAreaId(), \UserExtranetArea::GetPrimaryId()]]], [$GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"]["_900d48ade8c2df0520b7" . "6de5ee405224"] => [$GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"]["_3429a564f3319bcce4277c92b56630" . "1a"] => [$GLOBALS["__65da1b1ec2d6653e8a0ab784" . "8e536215"]["_3c260f3beb2f5" . "33c7abcfe6f979" . "3aae3"]]]]]];
            return $filter;
        } else {
            $filter = [$GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["_900d48ade8c2df0520b76de5e" . "e405224"] => [$GLOBALS["__65da1b1ec2d6" . "653e8a0ab7848e" . "536215"]["_3429a564f3319bc" . "ce4277c92b566301" . "a"] => [$GLOBALS["__65da1b1ec2d6653e8a0ab7848e" . "536215"]["_3c260f3be" . "b2f533c7ab" . "cfe6f9793a" . "ae3"]]]];
            return $filter;
        }
    }
    
    
    
    
    public function GetView()
    {
        return new View\User();
    }
}