<?php
namespace Claromentis\Onesignal\Repository;

$GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"] = (@$GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"] ?: array()) + array("user_" . "id" => base64_decode("dXN" . "lcl" . "9pZ" . "A=="), "_4d046d5121cfe3d589b901f2642dfc8" . "e" => base64_decode("cGxhe" . "WVyX2" . "lk"));
use Claromentis\Core\ORM\Repository;
use Claromentis\Onesignal\Entity\OnesignalUser;
use Illuminate\Support\Collection;









class OnesignalRepository extends Repository
{
    public function __construct($_dabd1eb8030f2c29327a192cddfd85a9, $_7bf14ccb9bebab3964c83c16c77505c6 = null)
    {
        parent::__construct($_dabd1eb8030f2c29327a192cddfd85a9, $_7bf14ccb9bebab3964c83c16c77505c6);
    }
    public function findByUserIds(array $_17247f55ce15f647f57c3ef8bb3a474a) : Collection
    {
        return $this->query()->select($GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["_4d046d5121cfe3d589b901f2642dfc8" . "e"])->whereIn($GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["us" . "er" . "_i" . "d"], $_17247f55ce15f647f57c3ef8bb3a474a)->get();
    }
    
    
    
    
    
    
    
    public function findPlayerIds(array $_8ac06e0ea7a87ff69facc6abbec46ad0) : array
    {
        return $this->findByUserIds($_8ac06e0ea7a87ff69facc6abbec46ad0)->pluck($GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["_4d046d5" . "121cfe3d" . "589b901f" . "2642dfc8" . "e"])->toArray();
    }
    public function deleteByPlayerIds(array $_edcced657b1c15fbd72d2e95bd015967)
    {
        if (!empty($_edcced657b1c15fbd72d2e95bd015967)) {
            $this->query()->whereIn($GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["_4d046d5121cfe3d589b901f" . "2642dfc8e"], $_edcced657b1c15fbd72d2e95bd015967)->delete();
        }
    }
}