<?php
namespace Claromentis\Search\ItemType;

$GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"] ?: array()) + array("_fa0ea3ff84d62" . "d9eb5c8e215ce9" . "12e57" => base64_decode("YW5" . "k"), "_900d48a" . "de8c2df0" . "520b76de" . "5ee40522" . "4" => base64_decode("dG" . "Vy" . "bX" . "M="), "_3429a564f" . "3319bcce42" . "77c92b5663" . "01a" => base64_decode("aW50c" . "mFuZX" . "R1c2V" . "y"), "_9aa1db89206e80" . "c571adeb0f95f47" . "5a9" => base64_decode("ZXh0cmFuZXRfYX" . "JlYV9pZA=="), "_3c260f3beb2f533c7abcfe6f9793a" . "ae3" => 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["__65da1b1ec2d6653e8a" . "0ab7848e536215"]["_fa0ea3ff84d" . "62d9eb5c8e21" . "5ce912e57"] => [[$GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"]["_900d48ade8c2df052" . "0b76de5ee405224"] => [$GLOBALS["__65da1b1ec2d6653e8a0ab784" . "8e536215"]["_9aa1db89206e80c571adeb0f95f475" . "a9"] => [$context->GetExtranetAreaId(), \UserExtranetArea::GetPrimaryId()]]], [$GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["_900d48a" . "de8c2df0" . "520b76de" . "5ee40522" . "4"] => [$GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"]["_3429a564f3319bcce4277c9" . "2b566301a"] => [$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["_3c260f3b" . "eb2f533c7" . "abcfe6f97" . "93aae3"]]]]]];
            return $filter;
        } else {
            $filter = [$GLOBALS["__65da1b1ec2d6653e8a0ab784" . "8e536215"]["_900d48ade8c2df0520b76de5ee" . "405224"] => [$GLOBALS["__65da1b1ec2d6" . "653e8a0ab7848e" . "536215"]["_3429a564" . "f3319bcce" . "4277c92b5" . "66301a"] => [$GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["_3c260f3beb2f533c7abcfe6f" . "9793aae3"]]]];
            return $filter;
        }
    }
    
    
    
    
    public function GetView()
    {
        return new View\User();
    }
}