<?php

 namespace Informunity\Rest\App\Handlers; class HandlerRegistered { var $REST; var $data; public function __construct($REST, $data = array()) { $this->REST = $REST; $this->data = $data; } public static function load($REST, $data = array()) { return new HandlerRegistered($REST, $data); } public function Run() { goto t9RFH; PlkTt: if (empty($res["\162\x65\x73\x75\x6c\x74"])) { goto F3CAm; } goto JCO6N; Js_1z: $eventsList = array(); goto CYZDf; JCO6N: $moduleConfig = \Informunity\Config::load()->get(); goto kAK4y; t9RFH: $res = null; goto GkpRl; wyYGp: F3CAm: goto MixP_; GkpRl: $eventsFind = array(); goto Js_1z; OZ3T5: p20jt: goto wyYGp; MixP_: return array("\x66\x69\x6e\x64" => $eventsFind, "\145\x76\x65\156\x74\163" => $eventsList); goto DkK2J; CYZDf: $res = $this->REST->query("\x65\x76\x65\156\164\x2e\x67\x65\x74", array()); goto PlkTt; kAK4y: foreach ($res["\x72\145\x73\x75\154\x74"] as $event) { goto Lj1eF; Lj1eF: if (!(in_array($event["\145\x76\x65\156\x74"], $this->data["\110\x61\156\144\x6c\x65\x72\163"]) && $event["\x68\x61\x6e\x64\x6c\145\x72"] == $moduleConfig["\154\x69\x63\145\156\x73\145"]["\163\x65\162\x76\145\x72"] . $moduleConfig["\x6c\x69\x63\145\x6e\x73\x65"]["\162\157\x75\164\x65"]["\x63\154\x69\143\x6b\x62\x61\x63\x6b"])) { goto LoLxb; } goto suAW5; MhEAd: if (!in_array($event["\145\166\x65\x6e\x74"], $this->data["\110\x61\156\144\154\145\x72\163"])) { goto S0LMf; } goto bG5eo; bG5eo: $eventsList[$event["\x65\x76\x65\156\x74"]][] = $event; goto ZArhL; ZArhL: S0LMf: goto ssKoQ; hgLq5: LoLxb: goto MhEAd; suAW5: $eventsFind[$event["\x65\166\145\156\164"]] = true; goto b75Yv; b75Yv: $event["\x72\145\147\x69\163\164\x65\162"] = true; goto hgLq5; ssKoQ: lNwvp: goto Jhg98; Jhg98: } goto OZ3T5; DkK2J: } }
