<?php
namespace Claromentis\Search\ItemType;

$GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"] ?: array()) + array("_3429a564" . "f3319bcce" . "4277c92b5" . "66301a" => base64_decode("aW50cmFuZXR1c" . "2Vy"), "_900d48ade" . "8c2df0520b" . "76de5ee405" . "224" => base64_decode("dG" . "Vy" . "bX" . "M="), "_fa0ea3ff84d62d9e" . "b5c8e215ce912e57" => base64_decode("YW5" . "k"), "_9aa1db89206e80c571adeb0f95" . "f475a9" => base64_decode("ZXh0cmFu" . "ZXRfYXJl" . "YV9pZA=="), "_3c260f3beb2f533c7abcfe6f9793aa" . "e3" => base64_decode("e" . "W" . "V" . "z"));
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["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["_fa0ea3ff84d62d9eb5c8e" . "215ce912e57"] => [[$GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["_900d48ade8c2df0520" . "b76de5ee405224"] => [$GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"]["_9aa1db89206" . "e80c571adeb0" . "f95f475a9"] => [$context->GetExtranetAreaId(), \UserExtranetArea::GetPrimaryId()]]], [$GLOBALS["__65da1b1ec2d6653e8a0ab7848" . "e536215"]["_900d48ade8c2df0520" . "b76de5ee405224"] => [$GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"]["_3429a564f3319bcce427" . "7c92b566301a"] => [$GLOBALS["__65da1b1ec2d6653e8a0ab7848e" . "536215"]["_3c260f3beb2f5" . "33c7abcfe6f979" . "3aae3"]]]]]];
            return $filter;
        } else {
            $filter = [$GLOBALS["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"]["_900d48ade8c2df0520b76de5ee" . "405224"] => [$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["_3429a564f3319bcce4277c" . "92b566301a"] => [$GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"]["_3c260f3beb2f533c7abcfe6f9793aae" . "3"]]]];
            return $filter;
        }
    }
    
    
    
    
    public function GetView()
    {
        return new View\User();
    }
}