Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php /* __________________________________________________ | Obfuscated by YAK P..

Decoded Output download

<?php 
/*   __________________________________________________ 
    |  Obfuscated by YAK Pro - Php Obfuscator  2.0.14  | 
    |              on 2024-07-02 10:34:19              | 
    |    GitHub: https://github.com/pk-fr/yakpro-po    | 
    |__________________________________________________| 
*/ 
 use Worldfone4x\Scripts\Library\Portal4x\CustomField\Field; use Worldfone4x\Scripts\Library\Portal4x\Tags\ModuleTags; use Worldfone4x\Scripts\Library\CollectionDB\CollectionModel; use Worldfone4x\Scripts\Library\Notification\SocketIO\ClientSend; class view extends WF4X_Controller { private $module = "tickets"; public function __construct() { parent::__construct(); } private function _detectBrowserMobileRoutingSetupPage() { goto y971M; soa5t: ltoen: goto g9njK; zz0XK: FV0fQ: goto iLeFV; y971M: $url_ios = "https://apps.apple.com/vn/app/omnicxm/id1604320279"; goto Kqqr1; FQqo2: goto ltoen; goto vIPkq; i1wTB: goto PgT2I; goto ZC9jM; WW_co: EqVdg: goto ojt5Q; AoT17: echo "<script>window.location.href = '{$url_ios}';</script>"; goto soa5t; iLeFV: goto EqVdg; goto Zq_SR; DjLoL: if ($iPod || $iPhone || $iPad) { goto sqrle; } goto ErM0d; EV2z2: echo "<script>window.location.href = '{$url_android}';</script>"; goto Exukm; vIPkq: JLxXz: goto AoT17; PaWLs: $iPhone = stripos($_SERVER["HTTP_USER_AGENT"], "iPhone"); goto ASi9w; Kqqr1: $url_android = "https://play.google.com/store/apps/details?id=com.omni_android_app"; goto zvkiv; ZKFX7: if ($this->input->is_ajax_request()) { goto JLxXz; } goto obrbe; eDb3T: $Android = stripos($_SERVER["HTTP_USER_AGENT"], "Android"); goto xx_uI; ojt5Q: obbgz: goto X0R_C; zvkiv: if (!(preg_match("/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i", $_SERVER["HTTP_USER_AGENT"]) || preg_match("/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i", substr($_SERVER["HTTP_USER_AGENT"], 0, 4)))) { goto obbgz; } goto IHqyL; X0R_C: return false; goto gS8MZ; g9njK: return true; goto WW_co; IHqyL: $iPod = stripos($_SERVER["HTTP_USER_AGENT"], "iPod"); goto PaWLs; Dzlw9: header("Location: " . $url_android); goto i1wTB; ZC9jM: kTwcJ: goto EV2z2; Zq_SR: sqrle: goto ZKFX7; xEkHl: if ($this->input->is_ajax_request()) { goto kTwcJ; } goto Dzlw9; hx1wv: return true; goto zz0XK; ErM0d: if (!$Android) { goto FV0fQ; } goto xEkHl; ASi9w: $iPad = stripos($_SERVER["HTTP_USER_AGENT"], "iPad"); goto eDb3T; Exukm: PgT2I: goto hx1wv; obrbe: header("Location: " . $url_ios); goto FQqo2; xx_uI: $webOS = stripos($_SERVER["HTTP_USER_AGENT"], "webOS"); goto DjLoL; gS8MZ: } public function index() { goto ppjb5; RH4Mh: B2muc: goto hSYDI; crloz: if (!($this->_detectBrowserMobileRoutingSetupPage() === true)) { goto oMhFm; } goto SeIGO; rqCdS: if (!empty($_GET["id"])) { goto AaiBc; } goto VEc2W; km3uk: if ($_GET["id"] === "undefined") { goto ej7Fk; } goto pGi8I; ppjb5: if (!(isset($this->wf4xconfig["options"]["mobileapp"]["must_setup"]) && $this->wf4xconfig["options"]["mobileapp"]["must_setup"] === true)) { goto K7e3U; } goto crloz; VEc2W: $this->data["customFilter"] = false; goto p2cCn; p2cCn: goto mLXpn; goto Tdg5M; JYnDt: $this->data["fieldAdd"] = $this->returnGroupAddTicket(); goto U354V; nI9GT: iD07w: goto c724D; pGi8I: $this->load->model("services/tickets/requesters_m"); goto um24Z; ho7gn: cNQzx: goto IATek; um24Z: $requester = $this->requesters_m->db_oneoptions([], ["where" => ["idmodule" => $_GET["id"]]]); goto masv4; w2wPS: goto iD07w; goto qDvlY; qDvlY: VMQRq: goto rx3uP; mUtjV: return; goto aquCc; c724D: goto B2muc; goto wY9ri; U354V: $this->data["fieldAddSortID"] = $this->returnGroupAddSortIDTicket(); goto p70OL; KcfLQ: $this->data["title"] = "Tickets"; goto luhXH; rx3uP: $this->data["customFilter"] = $requester["_id"]; goto nI9GT; Tdg5M: AaiBc: goto km3uk; wY9ri: ej7Fk: goto WcsGj; eGMg1: goto rcWRD; goto WidW7; masv4: if (!empty($requester)) { goto VMQRq; } goto LoMam; luhXH: $this->data["fieldGrid"] = $this->fieldGrid(); goto JYnDt; Rc_pE: $this->loadViewContentTemplatePanel($this->module, "services/tickets/v_left", "services/tickets/v_right", $this->data, ["before" => "services/tickets/tk_view"]); goto IJHw2; WidW7: wDVSV: goto eFKCI; LoMam: $this->data["customFilter"] = "Undefined"; goto w2wPS; WcsGj: $this->data["customFilter"] = "Undefined"; goto RH4Mh; eFKCI: foreach ($config["user_config"] as $value) { goto B1pgV; oa7ci: Q1Q2P: goto fq41e; wd1F1: GgTKq: goto hKe3l; B1pgV: if ($this->data["userid"] == $value) { goto Q1Q2P; } goto WC0Sp; WC0Sp: $this->data["configFilter"] = false; goto nh_hK; p25wK: goto cNQzx; goto PYn3T; nh_hK: goto s7Khl; goto oa7ci; fq41e: $this->data["configFilter"] = true; goto p25wK; PYn3T: s7Khl: goto wd1F1; hKe3l: } goto ho7gn; hSYDI: mLXpn: goto Rc_pE; o6KBT: K7e3U: goto KcfLQ; aquCc: oMhFm: goto o6KBT; SeIGO: $this->loadView("error/custom", array_merge($this->data, ["title" => "Mobile App Required", "titleTab" => '', "titleErr" => "You must use mobile app for this function", "message" => "Thanks you!"])); goto mUtjV; KmRjV: $this->data["configFilter"] = false; goto eGMg1; IATek: rcWRD: goto rqCdS; p70OL: $config = $this->mongo_db->where("module", $this->module)->getOne($this->session->userdata("pbx_customer_code") . "_configfiltermodule"); goto iD4mQ; iD4mQ: if (!empty($config)) { goto wDVSV; } goto KmRjV; IJHw2: } public function fieldGrid() { goto Ip1PO; iKlaI: return $field; goto XCDC4; HasEq: foreach ($field as &$data) { goto ndW0h; HWW7d: if (!($data["created_username"] === false)) { goto Y3x9j; } goto CElET; rjYNE: $data["groupfield"] = $groupfield; goto LlyTh; CElET: $data["created_username"] = $data["created"]["byid"]; goto Si1wx; jwWah: $data["nameLang"] = langJS("module_customfield.name_lang." . $data["alias"]) !== "module_customfield.name_lang." . $data["alias"] ? langJS("module_customfield.name_lang." . $data["alias"]) : $data["name"]; goto FGJHj; rOgiL: goto lp0nG; goto dS93f; vuWDi: $fieldall = $this->fieldall_m->db_oneoptions([], $optionFieldAll); goto uRVCS; O2H9I: MM0Kg: goto znOBr; mzXhN: $data["choosefieldall"] = 1; goto UC743; uoou3: $data["created_username"] = searchnameuser($data["created"]["byid"]); goto HWW7d; u9XX8: $data["groupname"] = @$group["alias"]; goto tBOXp; drcae: $data["last_modified_username"] = searchnameuser($data["last_modified"]["byid"]); goto RPoNJ; UqIrW: $data["choosefieldall"] = 0; goto rOgiL; bhPXk: gx9mV: goto XTngh; bLv5X: $groupfield = $data["groupfield"]; goto bOqhb; rO3wT: $optionFieldAll = ["where" => ["_id" => new \MongoDB\BSON\ObjectID($data["fieldall"])], "sort" => ["position" => 1]]; goto vuWDi; gzOGW: $data["nameLang"] = $data["name"]; goto uMXY9; OOdLd: RQr99: goto u9XX8; tBOXp: $data["created_username"] = ''; goto ustiV; uRVCS: $idFieldAll = $data["_id"]; goto AedYY; uMXY9: OJRae: goto UqIrW; znOBr: $data["owner_username"] = searchnameuser($id); goto V0KQu; zvozz: prc2P: goto gzOGW; AedYY: unset($fieldall["_id"]); goto bLv5X; ustiV: if (!array_key_exists("created", $data)) { goto X2ssD; } goto uoou3; UC743: $data["idFieldAll"] = $idFieldAll; goto I21X6; ft2n3: QhmKS: goto reYbE; hn6Fn: if (isset($data["editdefault"]) || !(isset($data["system"]) && $data["system"] == 1 || isset($data["default"]) && $data["default"] == 1)) { goto prc2P; } goto jwWah; VvqU6: lp0nG: goto kbkIh; sjjzC: if ($name == "user") { goto MM0Kg; } goto AHU2s; AHU2s: $owner_username = searchbu($id); goto gQbIF; rm7ZN: if (!$this->mongo_db->isValidObjectID($data["groupfield"])) { goto RQr99; } goto XsSx5; XsSx5: $group = $this->fieldgroup_m->db_onebyid_withcache($data["groupfield"], $this->data["pbx_customer_code"] . "_fieldgroup_gridtickets_" . $data["_id"], 300); goto OOdLd; uVmhX: $id = substr($data["owner"], $index + 1); goto A81C3; FsEGL: X2ssD: goto A9RBi; V0KQu: rISUB: goto uATUY; XTngh: if (!array_key_exists("owner", $data)) { goto DmUqz; } goto vfU3g; Si1wx: Y3x9j: goto FsEGL; xquC2: goto rISUB; goto O2H9I; uATUY: DmUqz: goto ft2n3; gQbIF: $data["owner_username"] = $owner_username["text"]; goto xquC2; RPoNJ: if (!($data["last_modified_username"] === false)) { goto uwfvj; } goto mrJ1L; mrJ1L: $data["last_modified_username"] = $data["last_modified"]["byid"]; goto WQo5s; I21X6: $data["_id"] = $idFieldAll; goto VvqU6; FGJHj: goto OJRae; goto zvozz; kbkIh: $group = []; goto rm7ZN; vfU3g: $index = strpos($data["owner"], "_"); goto uVmhX; xNum4: if (!array_key_exists("last_modified", $data)) { goto gx9mV; } goto drcae; WQo5s: uwfvj: goto bhPXk; bOqhb: $data = $fieldall; goto rjYNE; A81C3: $name = substr($data["owner"], 0, $index); goto sjjzC; ndW0h: if (isset($data["fieldall"])) { goto sX0ku; } goto hn6Fn; LlyTh: $data["nameLang"] = langJS("module_customfield.name_lang." . $data["alias"]) !== "module_customfield.name_lang." . $data["alias"] ? langJS("module_customfield.name_lang." . $data["alias"]) : $data["name"]; goto mzXhN; A9RBi: $data["last_modified_username"] = ''; goto xNum4; dS93f: sX0ku: goto rO3wT; reYbE: } goto ChtE1; jnfH4: $this->load->model("settings/customfield/field_m"); goto MFMgE; MFMgE: $field = $this->field_m->db_get_withcache_custom($option, $this->data["pbx_customer_code"] . "_field_gridtickets", 300); goto HasEq; ks5Qt: $this->load->model("settings/customfield/fieldgroup_m"); goto UW0p3; ChtE1: MgZQs: goto iKlaI; UW0p3: $option = ["where" => ["module" => "tickets", "pageShow.showgrid" => 1, "show" => 1], "sort" => ["positiongrid" => 1]]; goto jnfH4; Ip1PO: $this->load->model("settings/customfield/fieldall_m"); goto ks5Qt; XCDC4: } public function returnGroupAddTicket() { goto XEeTy; EIQ5t: $group = $this->fieldgroup_m->db_get_withcache_custom($optionSort, $this->data["pbx_customer_code"] . "_fieldgroup_addtickets", 600); goto f8mjA; nnNM5: n8vMM: goto Pc0Vg; lJ3FM: $optionSort = ["where" => ["module" => "tickets", "show" => 1], "sort" => ["position" => 1]]; goto EIQ5t; XEeTy: $this->load->model("settings/customfield/fieldgroup_m"); goto ty2Lw; ty2Lw: $this->load->model("settings/customfield/fieldall_m"); goto F_MrM; Pc0Vg: return $group; goto Ftssn; F_MrM: $this->load->model("settings/customfield/field_m"); goto lJ3FM; f8mjA: foreach ($group as &$valgroup) { goto NEBr5; ZdS6R: if ($valgroup["coladd"] == "onecolumn") { goto gYLQI; } goto bqJHm; MmDeS: QSRKm: goto U9mAh; N1I9F: hvWjY: goto OsOzv; fLpT0: $valgroup["check_cate"] = 0; goto i3PR4; zu684: $option = ["where" => ["groupfield" => $valgroup["_id"], "pageShow.viewadd" => 1], "or_where" => ["show" => 1, "default" => 1], "sort" => ["positionadd" => 1]]; goto omVgd; U9mAh: MQODS: goto tnyz5; AHgfo: $valgroup["category_string"] = implode(",", $valgroup["category"]); goto h3toL; bqJHm: $option = ["where" => ["groupfield" => $valgroup["_id"], "pageShow.viewadd" => 1], "or_where" => ["show" => 1, "default" => 1], "sort" => ["col" => 1, "poscol1" => 1, "poscol2" => 1]]; goto urZGe; wFPzl: if (!empty($valgroup["category"])) { goto QSRKm; } goto gpSuI; twCbt: RpfOf: goto w6H_r; urZGe: goto RpfOf; goto seS06; gFjeE: if (isset($valgroup["category"])) { goto g7PGM; } goto R7UGx; XAxfM: if (isset($valgroup["editdefault"])) { goto DHtt_; } goto KcO8D; JIW0C: JVi5r: goto X7z92; CVs9w: foreach ($field as &$data) { goto lPmyM; CwcKc: $data["owner_username"] = $owner_username["text"]; goto eSXmq; SJuWV: $data["note"] = $notetemp; goto KXOdK; OwI7g: $data["last_modified_username"] = searchnameuser($data["last_modified"]["byid"]); goto KuEEx; djwOO: xz0uX: goto HBQVc; KuEEx: if (!($data["last_modified_username"] === false)) { goto HaE0b; } goto zRdGP; NBvbv: if (!array_key_exists("created", $data)) { goto GHfml; } goto g5apb; lPmyM: if (isset($data["fieldall"])) { goto NeKbB; } goto Hqr43; aGDPu: GHfml: goto nOfm_; wi7Gd: $idFieldAll = $data["_id"]; goto mt0rR; xC6z_: HaE0b: goto Uw9PX; Zc_a2: PlH5o: goto djwOO; ut6NE: zCZSM: goto PftNL; FK4oP: if ($name == "user") { goto zCZSM; } goto A_Z1U; KSISf: NeKbB: goto wjlxz; g5apb: $data["created_username"] = searchnameuser($data["created"]["byid"]); goto wsTNc; MGpde: $index = strpos($data["owner"], "_"); goto x9LM2; Z1ekD: $fieldall = $this->fieldall_m->db_oneoptions([], $optionFieldAll); goto LGS_D; A_Z1U: $owner_username = searchbu($id); goto CwcKc; x9LM2: $id = substr($data["owner"], $index + 1); goto ZAi6L; TQ_yV: $data["choosefieldall"] = 1; goto qrIXV; PftNL: $data["owner_username"] = searchnameuser($id); goto kZ4j1; FkrmK: $tooltiptemp = $data["tooltip"]; goto PoBnd; eSXmq: goto AQa9a; goto ut6NE; sSjl0: $data["groupname"] = $valgroup["alias"]; goto f0izn; TTbUP: $coltemp = $data["col"]; goto FkrmK; qgXbB: $data["choosefieldall"] = 0; goto IVcEf; Hqr43: if (isset($data["editdefault"]) || !(isset($data["system"]) && $data["system"] == 1 || isset($data["default"]) && $data["default"] == 1)) { goto gPLwE; } goto kRmER; PoBnd: $notetemp = $data["note"]; goto Ca7g8; EayJ6: yJQnW: goto sSjl0; RYhfe: gPLwE: goto vY8lu; qrIXV: $data["idFieldAll"] = $idFieldAll; goto QtHmF; vBkdQ: unset($fieldall["tooltip"]); goto zdXME; Ca7g8: unset($fieldall["show"]); goto vBkdQ; NkbVi: $data = $fieldall; goto g2G0C; f0izn: $data["created_username"] = ''; goto NBvbv; g2G0C: $data["show"] = $showtemp; goto HsWzF; HsWzF: $data["col"] = $coltemp; goto ZBy8_; KXOdK: $data["nameLang"] = langJS("module_customfield.name_lang." . $data["alias"]) !== "module_customfield.name_lang." . $data["alias"] ? langJS("module_customfield.name_lang." . $data["alias"]) : $data["name"]; goto TQ_yV; zRdGP: $data["last_modified_username"] = $data["last_modified"]["byid"]; goto xC6z_; Komat: UvYdh: goto qgXbB; nOfm_: $data["last_modified_username"] = ''; goto SMGng; ZAi6L: $name = substr($data["owner"], 0, $index); goto FK4oP; wjlxz: $optionFieldAll = ["where" => ["_id" => new \MongoDB\BSON\ObjectID($data["fieldall"]), "show" => 1], "sort" => ["position" => 1]]; goto Z1ekD; IVcEf: goto yJQnW; goto KSISf; zdXME: unset($fieldall["note"]); goto wi7Gd; BTD3m: XLFkv: goto aGDPu; TBlnF: $data["created_username"] = $data["created"]["byid"]; goto BTD3m; zTFQa: if (!array_key_exists("owner", $data)) { goto PlH5o; } goto MGpde; Uw9PX: wXv3N: goto zTFQa; QtHmF: $data["_id"] = $idFieldAll; goto EayJ6; LGS_D: $showtemp = $data["show"]; goto TTbUP; nijyn: goto UvYdh; goto RYhfe; kZ4j1: AQa9a: goto Zc_a2; mt0rR: unset($fieldall["_id"]); goto NkbVi; wsTNc: if (!($data["created_username"] === false)) { goto XLFkv; } goto TBlnF; ZBy8_: $data["tooltip"] = $tooltiptemp; goto SJuWV; vY8lu: $data["nameLang"] = $data["name"]; goto Komat; SMGng: if (!array_key_exists("last_modified", $data)) { goto wXv3N; } goto OwI7g; kRmER: $data["nameLang"] = langJS("module_customfield.name_lang." . $data["alias"]) !== "module_customfield.name_lang." . $data["alias"] ? langJS("module_customfield.name_lang." . $data["alias"]) : $data["name"]; goto nijyn; HBQVc: } goto JIW0C; OsOzv: SY3kW: goto LStcs; tnyz5: $field = $this->field_m->db_get_withcache_custom($option, $this->data["pbx_customer_code"] . "_field_addtickets_" . $valgroup["_id"], 600); goto CVs9w; X7z92: $valgroup["fields"] = $field; goto XAxfM; KcO8D: $valgroup["nameLang"] = langJS("module_customfield.name_lang." . $valgroup["alias"]) !== "module_customfield.name_lang." . $valgroup["alias"] ? langJS("module_customfield.name_lang." . $valgroup["alias"]) : $valgroup["name"]; goto dK6ht; ojaaJ: $valgroup["nameLang"] = $valgroup["name"]; goto N1I9F; i3PR4: goto MQODS; goto G4HK_; h3toL: $valgroup["check_cate"] = 1; goto wFPzl; G4HK_: g7PGM: goto AHgfo; w6H_r: b6Nwo: goto gFjeE; dK6ht: goto hvWjY; goto s1Xbm; seS06: gYLQI: goto Z7T23; s1Xbm: DHtt_: goto ojaaJ; R7UGx: $valgroup["category_string"] = ''; goto fLpT0; OsDm1: VaYFF: goto ZdS6R; omVgd: goto b6Nwo; goto OsDm1; gpSuI: $valgroup["check_cate"] = 0; goto MmDeS; NEBr5: if (isset($valgroup["coladd"])) { goto VaYFF; } goto zu684; Z7T23: $option = ["where" => ["groupfield" => $valgroup["_id"], "pageShow.viewadd" => 1], "or_where" => ["show" => 1, "default" => 1], "sort" => ["positionadd" => 1]]; goto twCbt; LStcs: } goto nnNM5; Ftssn: } public function returnGroupAddSortIDTicket() { goto x2kru; AKxt7: $optionSort = ["where" => ["module" => "tickets", "show" => 1], "sort" => ["position" => 1]]; goto neDlP; x2kru: $this->load->model("settings/customfield/fieldgroup_m"); goto VSYu_; gP1TV: return $group; goto FAbnt; VSYu_: $this->load->model("settings/customfield/fieldall_m"); goto AKxt7; neDlP: $group = $this->fieldgroup_m->db_get_withcache_custom($optionSort, $this->data["pbx_customer_code"] . "_fieldgroup_addsortidticket", 600); goto R4v_W; WFIlH: Tuny_: goto gP1TV; R4v_W: foreach ($group as &$valgroup) { goto H1aUK; rbmFA: Dk0EG: goto VVeWt; M9fNK: $valgroup["check_cate"] = 0; goto abgE_; pC3n9: goto Dk0EG; goto ZgbCL; kuEKi: if (isset($valgroup["category"])) { goto KeSh9; } goto HZCbC; ogtpD: if (isset($valgroup["editdefault"])) { goto YuMrl; } goto VQ9sN; Kxcac: MZKjg: goto IgIjR; VVeWt: U2nkZ: goto T12lF; HZCbC: $valgroup["category_string"] = ''; goto G4ee4; H1aUK: $option = ["where" => ["groupfield" => $valgroup["_id"], "pageShow.viewadd" => 1], "or_where" => ["show" => 1, "default" => 1], "sort" => ["_id" => 1, "arrDepend" => 1]]; goto kuEKi; G4ee4: $valgroup["check_cate"] = 0; goto LixDv; rzzQR: if (!empty($valgroup["category"])) { goto jEzpZ; } goto M9fNK; gMHj7: foreach ($field as $key => &$data) { goto fA196; kteWw: $data["nameLang"] = $data["name"]; goto d1QOk; QBexg: $data["_id"] = $idFieldAll; goto DhQHE; PSbiL: $data["created_username"] = searchnameuser($data["created"]["byid"]); goto GHbMW; fA196: if (isset($data["fieldall"])) { goto Z91lO; } goto lYqZp; Kc6hk: $data["tooltip"] = $tooltiptemp; goto aIa4Q; SdkSH: pfgtj: goto dlU5N; cneKy: $data = $fieldall; goto mgrsC; NyuFm: $data["idFieldAll"] = $idFieldAll; goto QBexg; Todo1: unset($fieldall["show"]); goto NZ4wW; kaOD8: $data["created_username"] = $data["created"]["byid"]; goto HfzHb; kHdXL: UKxtw: goto c2DYd; GHbMW: if (!($data["created_username"] === false)) { goto EFtVZ; } goto kaOD8; u7CRI: $data["groupname"] = $valgroup["alias"]; goto i3Csx; z1Sty: $optionFieldAll = ["where" => ["_id" => new \MongoDB\BSON\ObjectID($data["fieldall"]), "show" => 1], "sort" => ["positionadd" => 1]]; goto QXbeE; i3Csx: $data["created_username"] = ''; goto h_IuR; obGHy: unset($fieldall["note"]); goto I3weU; NZ4wW: unset($fieldall["tooltip"]); goto obGHy; dlU5N: BRb6I: goto Y6Ml_; C0sWu: Z91lO: goto z1Sty; A7iPR: $data["last_modified_username"] = $data["last_modified"]["byid"]; goto SdkSH; oR817: vE7e_: goto b0kEN; sm7KC: $data["choosefieldall"] = 0; goto qEQN2; tOvau: $data["col"] = $coltemp; goto svzuQ; I3weU: $idFieldAll = $data["_id"]; goto tak9p; ZPRWW: $data["owner_username"] = searchnameuser($id); goto I3RXq; sM6yM: $coltemp = $data["col"]; goto HU0nU; qEQN2: goto tbzup; goto C0sWu; JgQr5: $owner_username = searchbu($id); goto Ikhhm; b0kEN: VFgv8: goto rjuAZ; svzuQ: $data["nameLang"] = langJS("module_customfield.name_lang." . $data["alias"]) !== "module_customfield.name_lang." . $data["alias"] ? langJS("module_customfield.name_lang." . $data["alias"]) : $data["name"]; goto nBfJf; Ikhhm: $data["owner_username"] = $owner_username["text"]; goto FXtxd; tak9p: unset($fieldall["_id"]); goto cneKy; Y6Ml_: if (!array_key_exists("owner", $data)) { goto vE7e_; } goto yE74y; MT5Ah: $name = substr($data["owner"], 0, $index); goto y710P; FXtxd: goto a99dj; goto vzEXH; zF100: if (!array_key_exists("last_modified", $data)) { goto BRb6I; } goto sguJN; I3RXq: a99dj: goto oR817; HU0nU: $tooltiptemp = $data["tooltip"]; goto yybWK; uWCuw: goto TqzlK; goto fu8fS; QXbeE: $fieldall = $this->fieldall_m->db_oneoptions([], $optionFieldAll); goto yfhcS; HfzHb: EFtVZ: goto kHdXL; JYSDi: $id = substr($data["owner"], $index + 1); goto MT5Ah; c2DYd: $data["last_modified_username"] = ''; goto zF100; y710P: if ($name == "user") { goto ssysb; } goto JgQr5; duApW: $data["nameLang"] = langJS("module_customfield.name_lang." . $data["alias"]) !== "module_customfield.name_lang." . $data["alias"] ? langJS("module_customfield.name_lang." . $data["alias"]) : $data["name"]; goto uWCuw; yfhcS: $showtemp = $data["show"]; goto sM6yM; mgrsC: $data["show"] = $showtemp; goto Kc6hk; DhQHE: tbzup: goto u7CRI; fu8fS: hfQjT: goto kteWw; aIa4Q: $data["note"] = $notetemp; goto tOvau; zFX3S: if (!($data["last_modified_username"] === false)) { goto pfgtj; } goto A7iPR; nBfJf: $data["choosefieldall"] = 1; goto NyuFm; h_IuR: if (!array_key_exists("created", $data)) { goto UKxtw; } goto PSbiL; d1QOk: TqzlK: goto sm7KC; yE74y: $index = strpos($data["owner"], "_"); goto JYSDi; sguJN: $data["last_modified_username"] = searchnameuser($data["last_modified"]["byid"]); goto zFX3S; lYqZp: if (isset($data["editdefault"]) || !(isset($data["system"]) && $data["system"] == 1 || isset($data["default"]) && $data["default"] == 1)) { goto hfQjT; } goto duApW; vzEXH: ssysb: goto ZPRWW; yybWK: $notetemp = $data["note"]; goto Todo1; rjuAZ: } goto Kxcac; abgE_: jEzpZ: goto q3Gsj; LixDv: goto m3I6c; goto FHUxO; IgIjR: $valgroup["fields"] = $field; goto ogtpD; DXnqC: $this->load->model("settings/customfield/field_m"); goto b692y; b692y: $field = $this->field_m->db_get_withcache_custom($option, $this->data["pbx_customer_code"] . "_field_addsortidticket" . $valgroup["_id"], 600); goto gMHj7; FHUxO: KeSh9: goto tvjax; VQ9sN: $valgroup["nameLang"] = langJS("module_customfield.name_lang." . $valgroup["alias"]) !== "module_customfield.name_lang." . $valgroup["alias"] ? langJS("module_customfield.name_lang." . $valgroup["alias"]) : $valgroup["name"]; goto pC3n9; ZgbCL: YuMrl: goto s6_tE; s6_tE: $valgroup["nameLang"] = $valgroup["name"]; goto rbmFA; KV7if: $valgroup["check_cate"] = 1; goto rzzQR; tvjax: $valgroup["category_string"] = implode(",", $valgroup["category"]); goto KV7if; q3Gsj: m3I6c: goto DXnqC; T12lF: } goto WFIlH; FAbnt: } public function read() { goto ZuNvP; hGbkc: K5yoz: goto iAbef; WVQbd: $request_temp = new stdClass(); goto EZEfD; JKnIk: Dc7Ev: goto AXePl; EZEfD: $request_select = new stdClass(); goto krUJW; yGEKU: pp82j: goto nqxxJ; G50xK: $this->load->model("services/tickets/tickets_m"); goto dnu26; yysJi: cHR8v: goto DTUZh; x2eLe: $wf4x_alltickets = $request->wf4x_alltickets; goto beqDu; X5w1D: $listC = $this->mongodatasourceresult->initFilterWithSub("or", [$this->mongodatasourceresult->initFilter("category", "in", $listCategory), $this->mongodatasourceresult->initFilter("ccs", "in", $listbu), $this->mongodatasourceresult->initFilter("watchers", "in", $listbu)]); goto Nk3DQ; sP3Hm: $oldPage = $request->page ?? 1; goto VxPvu; s2M5B: goto BtTzu; goto MI8za; BBVcO: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter($request->timerange, "lte", $request->enddate), $request_temp); goto PfTQy; YxUvb: if (property_exists($request, "module")) { goto cPNk4; } goto nliQl; sHBjv: if (empty($requesters)) { goto rBUtS; } goto w6FdX; gpkdR: if (!(property_exists($request, "wf4x_createdbymeandsubbu") && $request->wf4x_createdbymeandsubbu === true)) { goto vGfhc; } goto yr_58; ErYVM: $result["data"] = array_slice($result["data"], ($oldPage - 1) * $oldTake, $oldTake); goto NTyT3; fOi1n: F4FJa: goto rAQ2I; PfTQy: foreach ($select as $sl) { goto Hqxbh; EEAQI: xfx1b: goto dPSUo; dPSUo: M0LCY: goto vtpYa; Hqxbh: if (!(!empty($sl) && !is_array($sl))) { goto xfx1b; } goto ZE8I0; u71KQ: $request_select->filter->logic = "or"; goto EEAQI; ZE8I0: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter($sl, "notuppercase", (string) $request->searchtext), $request_select); goto u71KQ; vtpYa: } goto tw09s; ObDeW: $filter_fieldstatus = new stdClass(); goto Zp81n; Mzsc3: vGfhc: goto KcUbB; ctExk: $request_temp = (object) array_merge((array) $request_temp, (array) $request_select); goto t0GME; Ey7Qd: $arr_requesterid = array_column($result["data"], "requester_id"); goto wFWb1; p_s1a: vJS_C: goto LSvEo; WaYbE: zbfN2: goto B_q6q; WAcg2: $result = $this->tickets_library->db_read($request, $select); goto tQ150; kmbaT: XPhLk: goto hMU3x; aguAd: $this->load->model("settings/configtickets/configcategoryticket_m"); goto CMz3l; eumyp: $listbu = $this->data["listbu"]; goto n9ZS6; zjVF_: $this->load->model("settings/customfield/fieldgroup_m"); goto UyHSu; dnu26: $this->load->library("tickets_library"); goto XazWh; t0GME: xiIKD: goto ICjhG; Teo2d: if (!(property_exists($request, "wf4x_ticketsnew") && $request->wf4x_ticketsnew === true)) { goto xkJyM; } goto nL6t9; V1ssK: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter($request->timerange, "lte", $request->enddate), $request_temp); goto XjULx; Vqc9X: foreach ($field as $field) { $tempSelect[] = $field["alias"]; FQ3QR: } goto IGuZV; uOVM5: h5ZR8: goto rK2X3; XA1G7: $config = $this->mongo_db->where("module", $this->module)->getOne($this->session->userdata("pbx_customer_code") . "_configfiltermodule"); goto XEHc5; NswaR: $hasFilterTicketEnd = false; goto mW1JV; LvJYB: ugjd8: goto NswaR; S71ww: cPNk4: goto uRk3c; a8CbQ: nHJbE: goto T1n3l; QTEYj: YWYSd: goto fhzWn; wFWb1: $requesters = $this->requesters_m->db_getbylistid($arr_requesterid); goto sHBjv; gJgjt: tq2Ut: goto RXhr8; Bxcu2: ncQiP: goto auIHu; ojQ0e: avzyF: goto V9xID; wMfHO: if (!($countcondition === 0)) { goto bWqKM; } goto rWj5l; beqDu: BtTzu: goto VPTch; JzIXl: if (!($owner != 1)) { goto fy0hz; } goto pBNgw; xbAD0: if (isset($request->wf4x_alltickets)) { goto ViTNW; } goto sf1f3; ZuNvP: header("Content-Type: application/json"); goto gpHSd; Km5IT: $request_temp->sort = $request->sort; goto W9VyA; CMz3l: $dataShared = $this->configcategoryticket_m->db_alloptions(["text", "share", "shareall", "shareonlyme", "hasChildren", "parent_id", "type"], ["or_where" => ["share" => ["$in" => $listbu], "shareall" => 1, "shareonlyme" => $this->data["userid"]], "where_ne" => ["delete" => 1]]); goto zEQE9; T1n3l: if (!(property_exists($request, "wf4x_processingbysameparentbu") && $request->wf4x_processingbysameparentbu === true)) { goto tD2sc; } goto OpCxA; SKFwB: Uda1A: goto lx96H; OmApF: $wf4x_alltickets = false; goto x7dcz; YVbIk: nRAZP: goto u1pIP; tw09s: z9eZC: goto ctExk; WR7BC: $countcondition = $this->mongodatasourceresult->countcondition($this->tickets_m->getSelectKendoGrid(), $request); goto wMfHO; VmDRB: XXWTl: goto LD43N; HYNFO: bWqKM: goto gpkdR; PWHS1: L1HJE: goto EKmIB; ocHMM: g2nHG: goto sWc_r; zavBm: TOS0J: goto BJrVH; q4zKX: UV04m: goto Teo2d; V9xID: foreach ($result["data"] as &$ticket) { goto qonhM; RZT1Q: twsbt: goto t43Gx; gbr34: goto RH_XV; goto TnTWN; Zlb04: $ticket["requester_string"] = !empty($ticket["requester_id"]) && array_key_exists($ticket["requester_id"], $requesters_name) ? $requesters_name[$ticket["requester_id"]] : ''; goto Yarhi; MUnfQ: jCZOX: goto YnRzC; CQBms: goto khgKq; goto rH7t1; PhngM: vBl7j: goto z2cje; W9mYN: goto PJJ3D; goto JM9Gv; EK1nU: goto khgKq; goto AjfIR; tMURB: m9E5f: goto XSGn9; m4BjX: $ticket["assignee_text"] = $ticket["assignee_info"]["id"]; goto tT_bq; qsWNf: KdTzw: goto jCldA; xjr7s: if ($this->mongo_db->isValidObjectID($ticket["last_modified"]["byid"])) { goto PZUzm; } goto kgzVc; BwsCE: if (!(!isset($distribute) || empty($distribute))) { goto S4Rjq; } goto xlaFm; ZRqbY: PZUzm: goto uhru0; oxtVV: uR4jn: goto AoZ45; u6K6x: J2zVV: goto yzcw8; kUZd9: goto uR4jn; goto Ps9I7; ObdaT: if (empty($ticket["bpm"]["currentState"]["extendConfig"]["status"])) { goto ZSWsu; } goto kJn7G; Mamdb: if (!isset($ticket["lastaction"])) { goto twsbt; } goto ReuuE; AoZ45: MNfNm: goto okmdm; Qnle9: $name = substr($ticket["owner"], 0, $index); goto IDoUX; JBV23: JvIAt: goto kvE4I; wFh7T: $getAccount = $this->accounts_m->db_getbyid($ticket["account_related"], ["companyname"]); goto OMIAZ; tT_bq: goto vBl7j; goto IrA0O; Dyj_c: if ($this->mongo_db->isValidObjectID($ticket["created"]["byid"])) { goto VZh_3; } goto Idch0; gP65O: $ticket["created_string"] = $ticket["created"]["byid"]; goto QD3_v; ScAze: if ($index[0] === "user") { goto i6UP_; } goto sFDE6; ujPMq: $this->load->model("settings/generalconfig/tags_m"); goto k3_Lp; nyKxe: $ticket["assignee_textwithname"] = $ticket["assignee_text"]; goto aoPUl; d9qCt: $ticket["userlastactive"] = ''; goto Mamdb; qgYpq: rwn0K: goto MkicF; ucWgi: $ticket["account_related_string"] = ''; goto eQKA9; IFBSF: S4Rjq: goto JSdzP; FFkWN: if ($bu !== false) { goto L4g5v; } goto YXSms; Ps9I7: i6UP_: goto IB4y_; MxbFT: foreach ($ticket["tags"] as $tag) { goto KxUzo; PZlP5: Kcp23: goto j83BT; CZwdH: vJOED: goto Jw_sD; YoYcC: EE0ML: goto PZlP5; JfUfc: $ticket["tags_info"][] = ["name" => $tag]; goto Rilnn; KxUzo: if ($this->mongo_db->isValidObjectID($tag)) { goto vJOED; } goto EhwY2; j83BT: hB2kd: goto DJU7l; WL1Pd: if (is_array($tagFromSetting) && count($tagFromSetting) > 0 && array_key_exists("_id", $tagFromSetting)) { goto iDvb2; } goto JfUfc; Rilnn: goto EE0ML; goto gKoSv; Jw_sD: $tagFromSetting = $this->tags_m->db_getbyid($tag, ["name", "color"]); goto WL1Pd; R2dEY: goto Kcp23; goto CZwdH; XbZ7O: $ticket["tags_info"][] = $tagFromSetting; goto YoYcC; gKoSv: iDvb2: goto XbZ7O; EhwY2: $ticket["tags_info"][] = ["name" => $tag]; goto R2dEY; DJU7l: } goto LqDP0; g3Xe_: iwYhU: goto SrZE4; kgzVc: if ($ticket["last_modified"]["byid"] == '' || $ticket["last_modified"]["byid"] == null || $ticket["last_modified_username"] === false) { goto yhESZ; } goto BnciS; l1Iel: qfyNu: goto qgYpq; TVRgW: $this->load->model("crm/accounts_m"); goto wFh7T; YvmEO: if (!($key !== false)) { goto J2zVV; } goto vZ5wk; qonhM: $ticket["category_text"] = ''; goto Xx3CF; k3_Lp: if (!(isset($ticket["tags"]) && gettype($ticket["tags"]) == "array")) { goto JFnYz; } goto MxbFT; C1zJw: $ticket["priority_text"] = langJS("module_tickets.ticketpriority." . $ticket["priority"]); goto qsWNf; EkdXc: if ($index[0] === "auto") { goto GRGFO; } goto kUZd9; qe_fU: fJ_Vg: goto RaiuP; uFuWK: $index = strpos($ticket["owner"], "_"); goto QnICF; XSGn9: goto Ei42a; goto nMPVN; jCldA: $ticket["createdtime_string"] = date("H:i:s", $ticket["created"]["time"]); goto T94kh; eRrr0: goto qfyNu; goto xdZTZ; mzkpe: rYVmW: goto IR8Ej; S4Go3: $ticket["assignee_text"] = searchnameuserwithstatus($ticket["assignee_info"]["id"]); goto Jqa7V; Jqa7V: $ticket["assignee_textwithname"] = searchnameuserwithstatus($ticket["assignee_info"]["id"], true); goto CQBms; odeUt: XlSFZ: goto eKFMv; z2cje: $ticket["assignee_textwithname"] = $ticket["assignee_text"]; goto EK1nU; DvmiR: $ticket["created_string"] = searchnameuserwithstatus($ticket["created"]["byid"]); goto HUeOY; zKrK6: $ticket["namelastaction"] = ''; goto d9qCt; sv2Y_: if ($ticket["assignee_info"]["type"] === "bu") { goto PLhWG; } goto dQBAn; xlaFm: $distribute["name"] = langJS("module_ruledistributes.distribute_deleted"); goto IFBSF; Ni6Wp: if ($bu !== false) { goto Y51Bu; } goto m4BjX; YXSms: $ticket["assignee"] = $index[1]; goto gbr34; ITbd8: goto WooSJ; goto EcCyO; FTguk: if (!array_key_exists("owner", $ticket)) { goto fJ_Vg; } goto bwGjI; TRTCz: $ticket["status_text"] = "module_configprocessticket.status." . strtolower($ticket["status"]) != langJS("module_configprocessticket.status." . strtolower($ticket["status"])) ? langJS("module_configprocessticket.status." . strtolower($ticket["status"])) : $ticket["status"]; goto IfZIc; YnRzC: $bu = searchbu($index[1]); goto FFkWN; L27Iy: if (!array_key_exists("type", $ticket["assignee_info"])) { goto dPoh7; } goto GrhCv; jFU4U: MNSI9: goto jpmZj; fXWNK: $owner_username = searchbu($id); goto zv33Q; DODRo: if (!array_key_exists("last_modified", $ticket)) { goto nOJpo; } goto xjr7s; MetAC: PJJ3D: goto vqCKy; EcCyO: zleh0: goto VoJD2; uiWjh: zQRh8: goto ucWgi; Bw30y: $index = explode("_", $ticket["assignee"]); goto ScAze; Rx9rU: $ticket["namelastaction"] = $ticket["lastaction"]["name_action"]; goto odeUt; t1YX3: $ticket["owner_username"] = ''; goto FTguk; NPDXn: $ticket["priority_text"] = ''; goto aoP5k; VoJD2: $ticket["created_username"] = ''; goto Ayf4m; IDoUX: if ($name == "user") { goto d8o32; } goto fXWNK; rWRKO: if (!(!isset($distribute) || empty($distribute))) { goto zsc6S; } goto N8ENg; bwGjI: if (!($ticket["owner"] !== '')) { goto OxrU2; } goto uFuWK; FP8Nl: $distribute = $this->ruledistributes_m->db_getbyid($index[1]); goto rWRKO; JCN4r: RH_XV: goto Ux96c; rH7t1: PLhWG: goto Ac0yl; IR8Ej: $ticket["status_text"] = "module_configprocessticket.status." . strtolower($ticket["status"]) != langJS("module_configprocessticket.status." . strtolower($ticket["status"])) ? langJS("module_configprocessticket.status." . strtolower($ticket["status"])) : $ticket["status"]; goto tMURB; MPT7c: dPoh7: goto hhSp_; pkdhg: zsc6S: goto YykSv; IfZIc: Ei42a: goto LKml9; qXUF1: $ticket["status_text"] = $ticket["bpm"]["currentState"]["name"]; goto MetAC; t43Gx: $ticket["assignee_text"] = ''; goto qCUpP; hhSp_: d761B: goto H2ARN; gYR6I: if (!array_key_exists("created", $ticket)) { goto zQRh8; } goto DvmiR; HRJZJ: yhESZ: goto c6Ep5; DIPTH: CXWVt: goto F1guu; KyCWT: $this->load->model("settings/ruledistributes/ruledistributes_m"); goto FP8Nl; N8ENg: $distribute["name"] = langJS("module_ruledistributes.distribute_deleted"); goto pkdhg; T94kh: $ticket["createddate_string"] = date("d/m/Y", $ticket["created"]["time"]); goto Zlb04; zv33Q: $ticket["owner_username"] = $owner_username["text"] ?? ''; goto BJmml; JM9Gv: ZSWsu: goto eHLRt; tk_hk: $this->load->model("settings/ruledistributes/ruledistributes_m"); goto Wv5Of; AjfIR: u25II: goto tk_hk; Xx3CF: if (!(array_key_exists("category", $ticket) && $this->mongo_db->isValidObjectID($ticket["category"]))) { goto mHZ6R; } goto Pcu0d; JSdzP: $ticket["assignee_text"] = $distribute["name"]; goto nyKxe; Pcu0d: $key = array_search($ticket["category"], array_column($listcategory, "_id")); goto YvmEO; ReuuE: if (!isset($ticket["lastaction"]["name_action"])) { goto XlSFZ; } goto Rx9rU; MkicF: $ticket["last_modified_username"] = ''; goto DODRo; Ayf4m: WooSJ: goto eRrr0; eQKA9: if (!isset($ticket["account_related"])) { goto Fp9kH; } goto gl56i; F1guu: if (!isset($ticket["bpm"]) || !isset($ticket["bpm"]["currentState"])) { goto rpWbx; } goto RJELS; eHLRt: $ticket["status"] = $ticket["bpm"]["currentState"]["name"]; goto qXUF1; kvE4I: Fp9kH: goto t1YX3; At7fO: $ticket["created_username"] = searchnameuserwithstatus($ticket["created"]["byid"]); goto l1Iel; c6Ep5: $ticket["last_modified_username"] = ''; goto g3Xe_; Wv5Of: $distribute = $this->ruledistributes_m->db_getbyid($ticket["assignee_info"]["id"]); goto BwsCE; vW3gO: $ticket["created_username"] = ''; goto IPHlq; sFDE6: if ($index[0] === "bu") { goto jCZOX; } goto EkdXc; Ac0yl: $bu = searchbu($ticket["assignee_info"]["id"]); goto Ni6Wp; BnciS: $ticket["last_modified_username"] = $ticket["last_modified"]["byid"]; goto Xvq9Y; YykSv: $ticket["assignee"] = $distribute["name"]; goto oxtVV; eKFMv: if (!isset($ticket["lastaction"]["username"])) { goto U6U2w; } goto FgYCM; EVlzA: $ticket["sourcedisplay"] = "Port"; goto DIPTH; aoPUl: khgKq: goto MPT7c; jpmZj: OxrU2: goto qe_fU; yzcw8: mHZ6R: goto zKrK6; IPHlq: if (!array_key_exists("created", $ticket)) { goto rwn0K; } goto Dyj_c; vZ5wk: $ticket["category_text"] = $listcategory[$key]["text"]; goto u6K6x; cmJsk: d8o32: goto FYFwj; nMPVN: rpWbx: goto TRTCz; nXZuK: $ticket["account_related_string"] = $getAccount["companyname"]; goto LPwD_; RaiuP: if (!(isset($ticket["via"]["type"]) && $ticket["via"]["type"] == "ticketpublicportal")) { goto CXWVt; } goto EVlzA; FaQlc: $ticket["assignee"] = $bu["text"]; goto JCN4r; OegUF: $ticket["created_username"] = $ticket["created"]["byid"]; goto ITbd8; pUMTH: nOJpo: goto NPDXn; TnTWN: L4g5v: goto FaQlc; LKml9: OIkSJ: goto oWzgb; pyCo8: $ticket["assignee_text"] = $bu["text"]; goto PhngM; IrA0O: Y51Bu: goto pyCo8; Idch0: if ($ticket["created"]["byid"] == '' || $ticket["created"]["byid"] == null || $ticket["created_username"] === false) { goto zleh0; } goto OegUF; Xvq9Y: goto iwYhU; goto HRJZJ; qCUpP: if (!array_key_exists("assignee_info", $ticket)) { goto d761B; } goto L27Iy; FJa1g: goto uR4jn; goto MUnfQ; SrZE4: goto SjS8N; goto ZRqbY; HUeOY: if (!($ticket["created_string"] === false)) { goto c_GF0; } goto gP65O; LqDP0: KkpwJ: goto JbbEF; dQBAn: if ($ticket["assignee_info"]["type"] === "auto") { goto u25II; } goto oZzUE; okmdm: $ticket["tags_info"] = []; goto ujPMq; QnICF: $id = substr($ticket["owner"], $index + 1); goto Qnle9; SWb_j: U6U2w: goto RZT1Q; oZzUE: goto khgKq; goto VJF6k; JbbEF: JFnYz: goto vW3gO; kJn7G: $ticket["status_text"] = "module_configprocessticket.status." . strtolower($ticket["status"]) != langJS("module_configprocessticket.status." . strtolower($ticket["status"])) ? langJS("module_configprocessticket.status." . strtolower($ticket["status"])) : $ticket["status"]; goto W9mYN; GrhCv: if ($ticket["assignee_info"]["type"] === "user") { goto qFLZX; } goto sv2Y_; gl56i: if (!($ticket["account_related"] !== '')) { goto JvIAt; } goto TVRgW; Yarhi: $ticket["created_string"] = ''; goto gYR6I; LPwD_: x1A6_: goto JBV23; Ux96c: goto uR4jn; goto Etk3p; H2ARN: if (!array_key_exists("assignee", $ticket)) { goto MNfNm; } goto Bw30y; VJF6k: qFLZX: goto S4Go3; QD3_v: c_GF0: goto uiWjh; YpFrV: SjS8N: goto pUMTH; OMIAZ: if (!isset($getAccount["companyname"])) { goto x1A6_; } goto nXZuK; Etk3p: GRGFO: goto KyCWT; uhru0: $ticket["last_modified_username"] = searchnameuserwithstatus($ticket["last_modified"]["byid"]); goto YpFrV; aoP5k: if (!array_key_exists("priority", $ticket)) { goto KdTzw; } goto C1zJw; xdZTZ: VZh_3: goto At7fO; IB4y_: $ticket["assignee"] = searchnameuserwithstatus($index[1]); goto FJa1g; BJmml: goto MNSI9; goto cmJsk; FYFwj: $ticket["owner_username"] = searchnameuser($id); goto jFU4U; vqCKy: goto m9E5f; goto mzkpe; RJELS: if ($ticket["bpm"]["currentState"] == false) { goto rYVmW; } goto ObdaT; FgYCM: $ticket["userlastactive"] = $ticket["lastaction"]["username"]; goto SWb_j; oWzgb: } goto UYSuo; fSXVE: R9tEN: goto NVzOd; JzWRf: $this->load->model("settings/configtickets/configcategoryticket_m"); goto EpGod; L7S7P: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("sourceid", "eq", $request->idtopic), $request); goto Tx74y; rIJqX: PdtFI: goto XA1G7; Jrds2: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter($request->timerange, "gte", $request->startdate), $request_temp); goto BBVcO; a29ji: $assigned2me = true; goto VmDRB; mW1JV: if (!(property_exists($request, "filter") && property_exists($request->filter, "filters"))) { goto Ka1ak; } goto ObDeW; N7GQO: if (!property_exists($request, "ticket_requester_id")) { goto c4svu; } goto HIRTx; Jyk3Z: if (!(property_exists($request, "wf4x_mineticket") && $request->wf4x_mineticket === true)) { goto jpLrn; } goto o5jU_; IGuZV: VOA03: goto zjVF_; XaDKi: $returntype = "filter_ticketsprocessing"; goto YtJrh; gpHSd: $request = json_decode(file_get_contents("php://input")); goto yiF_v; Dkmk0: $dataShared = $this->configcategoryticket_m->db_alloptions(["text", "share", "shareall", "notshare", "hasChildren", "parent_id", "type"], ["where_nin" => ["notshare" => $listbu], "or_where" => ["share" => ["$in" => $listbu], "shareall" => 1], "where_ne" => ["delete" => 1]]); goto bgS9H; KleA1: buMSt: goto Pwui6; XjULx: goto xiIKD; goto bRmSq; ZE4BB: $listCheck = $this->mongodatasourceresult->initFilterWithSub("or", [$this->mongodatasourceresult->initFilter("account_related", "eq", $request->ticket_requester_id), $this->mongodatasourceresult->initFilter("requester_id", "eq", $request->ticket_requester_id)]); goto XgoCN; LD43N: $activeView = true; goto uOVM5; o5jU_: $returntype = "filter_mineticket"; goto jd7db; XG5U6: foreach ($request->filterAdvance->filters as $value) { goto kuyH9; V88vy: $hasFilterTicketEnd = true; goto mBAKV; mBAKV: dyIYE: goto ZGme7; ZGme7: emDW_: goto yP2Hx; kUKUL: $exist_status = strpos(json_encode($arrayTemp), ""field":"status""); goto PmPix; kuyH9: $arrayTemp = json_decode(json_encode($value), true); goto kUKUL; PmPix: if (!($exist_status !== false)) { goto dyIYE; } goto V88vy; yP2Hx: } goto yysJi; QEcfi: foreach ($requesters as $requester) { $requester_arr[] = $requester["_id"]; nZ_Sn: } goto WnMdo; J0zzo: foreach ($result["data"] as $k => $tk) { goto G3zCK; lQAhh: if (!(!in_array("user_" . $this->data["userid"], $assignee_history) && !in_array("bu_" . $this->data["budefault"], $assignee_history))) { goto JX0NM; } goto xnEcG; G3zCK: $assignee_history = array_slice($tk["assignee_history"], 0, count($tk["assignee_history"]) - 1); goto lQAhh; xnEcG: unset($result["data"][$k]); goto zYvm0; qdX8a: Mv9Vx: goto xxHGb; zYvm0: JX0NM: goto qdX8a; xxHGb: } goto iNAVB; NNJ8K: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter($request->timerange, "gte", $request->startdate), $request_temp); goto V1ssK; iRjHR: $listbu = $this->data["listbu"]; goto Qa_iJ; zEQE9: $listCategory = []; goto LmxIB; TqdKp: uyDh6: goto JzWRf; hMU3x: if (!(!empty($dataShared) && !property_exists($request, "module"))) { goto PeS2z; } goto X5w1D; BJrVH: goto xiIKD; goto Hc0_t; bbuzg: if (empty($request->filter->filters)) { goto poa0z; } goto HB6kt; yAcnO: $listC = $this->mongodatasourceresult->initFilterWithSub("or", [$this->mongodatasourceresult->initFilter("category", "in", $listCategory), $this->mongodatasourceresult->initFilter("parent_category", "in", $listCategory)]); goto wnLvq; EA0HN: KAvVS: goto LvJYB; p0nDg: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("sla", "isnotempty", true), $request); goto yuv3e; TvQyS: foreach ($request->filter->filters as $value) { goto Qb6o2; Qb6o2: $arrayTemp = json_decode(json_encode($value), true); goto CfqkI; JSyEV: $hasFilterTicketEnd = true; goto BxFcT; CfqkI: $exist_status = strpos(json_encode($arrayTemp), ""field":"status""); goto hKqUO; U8iKX: GYxcd: goto OaBM4; hKqUO: if (!($exist_status !== false)) { goto a0yay; } goto JSyEV; BxFcT: a0yay: goto U8iKX; OaBM4: } goto JKnIk; WylZ4: HDayf: goto LyeS0; bfJgc: h52VE: goto hO6nr; w6FdX: foreach ($requesters as $req) { goto f0XYl; G25ee: qU3fv: goto vWtFS; Iru1j: goto Bmv3s; goto G25ee; vwcAF: Bmv3s: goto JVlKK; JVlKK: $requesters_name[$req["_id"]] = $info; goto EMDhl; IgALz: $info = $req["name"] ?? ''; goto Iru1j; vWtFS: $info = !empty($req["name"]) ? $req["name"] : $req["username"]; goto vwcAF; EMDhl: r3lFs: goto G1jKV; f0XYl: $info = ''; goto H8nS8; H8nS8: if (($req["frommodule"] ?? '') === "users") { goto qU3fv; } goto IgALz; G1jKV: } goto x998A; jd7db: jpLrn: goto yQZGZ; UyHSu: $optionSort = ["where" => ["module" => "tickets", "show" => 1], "sort" => ["position" => 1]]; goto gvm6x; HB6kt: foreach ($request->filter->filters as &$fil) { goto BkIdn; IuXPR: if (empty($filter_actions)) { goto F17Pq; } goto q1tTi; sPyqh: foreach ($arrayLanguage as $key => $value) { goto b0Lzr; z_uSF: if ($percent > 70) { goto qceTQ; } goto VQeDA; AdY2H: goto bIAPt; goto DjZ8Q; MSuVN: RCoxM: goto uiC0b; ImaP8: $fil = $this->mongodatasourceresult->initFilter("status", $fil->operator, (string) $arrayLanguage[$key]); goto i5_Lo; DjZ8Q: qceTQ: goto ImaP8; Fp1KU: bIAPt: goto MSuVN; VQeDA: $fil = $this->mongodatasourceresult->initFilter("status", $fil->operator, $fil->value); goto AdY2H; i5_Lo: goto cGw2I; goto Fp1KU; b0Lzr: $similarity = similar_text(mb_strtolower($this->_toStringNoUTF8($key)), mb_strtolower($searchString), $percent); goto z_uSF; uiC0b: } goto W3H3r; q1tTi: $fil = new stdClass(); goto ZHH1e; BkIdn: if (!isset($fil->field)) { goto WzRpJ; } goto tMf2B; MRsOZ: $operator = $fil->operator == "in" ? "eq" : "neq"; goto O1JND; cVnch: WzRpJ: goto fpGlj; utWSQ: $filter_actions[] = $this->mongodatasourceresult->initFilter("link", $operator, true); goto XnJ9d; cCJ0H: ZIlZ8: goto cVnch; XnJ9d: hWtxy: goto IuXPR; tMf2B: if (!($fil->field == "actions")) { goto eAZb1; } goto MRsOZ; MTDzp: wEXze: goto GNjqp; O1JND: $operator_withsub = $fil->operator == "in" ? "or" : "and"; goto BwFqu; B1WFw: F17Pq: goto shWQ1; ZHH1e: $fil = $this->mongodatasourceresult->initFilterWithSub($operator_withsub, $filter_actions); goto B1WFw; W3H3r: cGw2I: goto cCJ0H; FwsGE: $searchString = $this->_toStringNoUTF8($fil->value); goto sPyqh; BwFqu: $filter_actions = []; goto Bz49X; GNjqp: if (!in_array("link", $fil->value)) { goto hWtxy; } goto utWSQ; Bz49X: if (!in_array("merge", $fil->value)) { goto wEXze; } goto o_hch; fpGlj: gj6iT: goto CNVJa; bTpDf: if (!($fil->field == "status")) { goto ZIlZ8; } goto FwsGE; shWQ1: eAZb1: goto bTpDf; o_hch: $filter_actions[] = $this->mongodatasourceresult->initFilter("merge", $operator, true); goto MTDzp; CNVJa: } goto bfJgc; x998A: iBb2x: goto Op9AD; P1z3Y: foreach ($listbu as &$bu) { $bu = "bu_" . $bu; tfQfR: } goto fOi1n; qMYYq: exit; goto uLEKf; UYSuo: dkGQs: goto yktLU; jqaRw: if (!($owner != 1)) { goto oQxB7; } goto P1z3Y; fhzWn: if (!(!empty($dataShared) && !property_exists($request, "module"))) { goto buMSt; } goto yAcnO; B_q6q: $userid = "user_" . $this->data["userid"]; goto eumyp; rsdHR: $or_where = ["idmodule" => $request->objectid]; goto fSXVE; tzZIW: DRfJK: goto Dp0ju; XgoCN: $this->mongodatasourceresult->addFilterRequest($listCheck, $request); goto hGbkc; DTUZh: $this->_updateStatusField($request->filterAdvance->filters, $arrayLanguage); goto tzZIW; HIRTx: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("requester_id", "eq", $request->ticket_requester_id), $request); goto Fa0TW; rPsik: $tempSelect = ["via"]; goto Vqc9X; IvGRL: if (!(isset($request->filter->filters[1]->filters) && $request->searchtext == '')) { goto zbfN2; } goto jBj0X; yV4qw: $filter_fieldstatus->field = "status"; goto LwYtD; zpe5W: if (!($permission["filter"] !== false)) { goto MAete; } goto YxUvb; vr8Kz: tD2sc: goto Jyk3Z; yuv3e: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("sla.solvedtime", "lte", time()), $request); goto E1y_8; YxJIm: if (!(isset($request->wf4x_slaoverdue) && isset($request->wf4x_alltickets) && $request->wf4x_slaoverdue && $request->wf4x_alltickets)) { goto jiqAD; } goto pyIP2; LSvEo: $activeView = false; goto WVQbd; XEHc5: if (!empty($config)) { goto pp82j; } goto OmApF; ICjhG: $request_temp->take = $request->take; goto dBeAW; nliQl: $this->mongodatasourceresult->addFilterRequest($permission["filter"], $request); goto S71ww; KcUbB: if (!(property_exists($request, "wf4x_processingbysubbu") && $request->wf4x_processingbysubbu === true)) { goto nHJbE; } goto CLzw1; c0Jew: if (property_exists($request, "wf4x_noquerypermission") && $request->wf4x_noquerypermission === true) { goto SaANy; } goto XaDKi; y7Hpg: goto p6YDK; goto p_s1a; lw3tk: if (!(property_exists($request, "objectid") || property_exists($request, "phoneobject"))) { goto tq2Ut; } goto swWJ4; zjdib: fy0hz: goto X6rX1; lx96H: array_push($listbu, $userid); goto cnOvv; YPMbu: if (!property_exists($request, "ticket_requester_id")) { goto K5yoz; } goto ZE4BB; sKaRl: foreach ($group as $group) { $tempSelect[] = $group["alias"]; psHY0: } goto PWHS1; rK2X3: if (property_exists($request, "module")) { goto Eif7g; } goto N7GQO; lg5re: goto y6vJj; goto Qup3Q; Op0a3: $or_where["phone"] = ["$in" => [$request->phoneobject]]; goto WylZ4; OpCxA: $returntype = "filter_processingbysameparentbu"; goto vr8Kz; CLzw1: $returntype = "filter_processingbysubbu"; goto a8CbQ; YtJrh: goto h5ZR8; goto mKA59; wnLvq: $this->mongodatasourceresult->addFilterRequest($listC, $request_temp); goto KleA1; bgS9H: $listCategory = []; goto i0J17; iNAVB: M3rua: goto qJdB9; NVzOd: if (!property_exists($request, "phoneobject")) { goto HDayf; } goto Op0a3; woY6L: $request_temp->page = $request->page; goto UqxB5; hTeZi: if (!(property_exists($request, "wf4x_assigned2me") && $request->wf4x_assigned2me === true)) { goto XXWTl; } goto a29ji; DgBPM: if (!is_numeric($request->startdate) && !is_numeric($request->enddate) && !empty($request->searchtext)) { goto fjq0S; } goto V2_MM; EpGod: $listcategory = $this->configcategoryticket_m->db_all_withcache(); goto aP7i_; Dp0ju: if (!property_exists($request, "idtopic")) { goto w53R7; } goto riyyr; krUJW: if (is_numeric($request->startdate) && is_numeric($request->enddate) && empty($request->searchtext)) { goto Pbwf1; } goto DgBPM; Hc0_t: OCXuS: goto Jrds2; yr_58: $returntype = "filter_createdbymeandsubbu"; goto Mzsc3; rWj5l: if (!property_exists($request, "filter")) { goto Amhh1; } goto ChMRP; TMX7q: grrVh: goto uOgs8; E1y_8: jiqAD: goto lw3tk; oWqd0: xkJyM: goto hTeZi; vWvTE: p6YDK: goto gJgjt; UqxB5: $request_temp->pageSize = $request->pageSize; goto Km5IT; E_Dfv: if (empty($requesters)) { goto ncQiP; } goto QEcfi; yktLU: echo json_encode($result); goto VScbs; s1Yu7: exit; goto y7Hpg; nqxxJ: foreach ($config["user_config"] as $value) { goto QIAvm; bziwX: $wf4x_alltickets = false; goto nwBcb; fVXLR: goto MRJ7s; goto SB1Bu; QIAvm: if ($this->data["userid"] == $value) { goto WBOFb; } goto bziwX; Mt0gh: $wf4x_alltickets = true; goto fVXLR; onSeU: cEVaV: goto qqozW; nwBcb: goto aSeFo; goto FUnk3; FUnk3: WBOFb: goto Mt0gh; SB1Bu: aSeFo: goto onSeU; qqozW: } goto NXstZ; tilCG: if (!property_exists($request, "objectid")) { goto R9tEN; } goto rsdHR; x7dcz: goto KAvVS; goto yGEKU; WPSxH: $filter_fieldstatus = json_decode(json_encode($filter_fieldstatus), true); goto TvQyS; N8Jml: Pbwf1: goto NNJ8K; nL6t9: $returntype = "filter_ticketsnew"; goto oWqd0; auIHu: if (!empty($requester_arr)) { goto vJS_C; } goto H6hr3; Zp81n: $filter_fieldstatus->field = "status"; goto WPSxH; yiF_v: $arrayLanguage = [langJS("module_configprocessticket.status.start") => "start", langJS("module_configprocessticket.status.open") => "open", langJS("module_configprocessticket.status.in_progress") => "in_progress", langJS("module_configprocessticket.status.pending") => "pending", langJS("module_configprocessticket.status.on_hold") => "on_hold", langJS("module_configprocessticket.status.solved") => "solved", langJS("module_configprocessticket.status.re_open") => "re_open", langJS("module_configprocessticket.status.finish") => "finish", langJS("module_configprocessticket.status.new") => "New", langJS("module_configprocessticket.status.end") => "End"]; goto bbuzg; mKA59: SaANy: goto WR7BC; riyyr: $hasFilterTicketEnd = true; goto L7S7P; EBr7x: $permission = $this->tickets_library->permission($returntype); goto gySIb; X6rX1: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("delete", "isempty", true), $request); goto YxJIm; dNVCl: if (!(property_exists($request, "filterAdvance") && property_exists($request->filterAdvance, "filters"))) { goto DRfJK; } goto mtMH1; XazWh: $returntype = "filter"; goto x31o7; gySIb: if ($permission["stt"] === false) { goto nRAZP; } goto zpe5W; NTyT3: $result["total"] = count($result["data"]); goto TqdKp; revIs: $returntype = "filter_ticketsprocessing"; goto q4zKX; pBNgw: foreach ($listbu as &$bu) { $bu = "bu_" . $bu; FAYDI: } goto SKFwB; n9ZS6: $owner = $this->data["isOwner"]; goto jqaRw; ChMRP: unset($request->filter); goto acOIO; qJdB9: $result["data"] = array_values($result["data"]); goto ErYVM; yjtPN: goto xiIKD; goto N8Jml; EKmIB: $selectField = $this->tickets_m->getSelectKendoGrid(); goto Q1R1D; aupOr: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("status", "neq", "End"), $request); goto TMX7q; I9hcE: unset($request->page); goto Y_Hf3; LmxIB: foreach ($dataShared as $idc) { $listCategory[] = $idc["_id"]; dZNIW: } goto QTEYj; x3uzg: $field = $this->fieldGrid(); goto rPsik; BjsN8: if (!(!$hasFilterTicketEnd && !$wf4x_alltickets)) { goto grrVh; } goto aupOr; jBj0X: $request_temp->filter->filters = array_merge($request_temp->filter->filters, $request->filter->filters[1]->filters); goto WaYbE; uOgs8: $assigned2me = false; goto c0Jew; bRmSq: fjq0S: goto mdF3f; W9VyA: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("requester_id", "in", $requester_arr), $request_temp); goto njU8U; mdF3f: foreach ($select as $sl) { goto APNBu; xUY6z: $request_temp->filter->logic = "or"; goto NH304; APNBu: if (!(!empty($sl) && !is_array($sl))) { goto FxSwc; } goto ab7rI; gOif8: vFbgO: goto zgsWD; NH304: FxSwc: goto gOif8; ab7rI: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter($sl, "notuppercase", (string) $request->searchtext), $request_temp); goto xUY6z; zgsWD: } goto zavBm; x31o7: $userid = "user_" . $this->data["userid"]; goto iRjHR; gvm6x: $group = $this->fieldgroup_m->db_alloptions(["name", "alias", "groupid", "coladd", "show", "module", "fieldall", "icon", "hasParent", "created", "last_modified"], $optionSort); goto sKaRl; r2t8D: if (empty($result["data"])) { goto avzyF; } goto Ey7Qd; sN5KC: $requester_arr = []; goto E_Dfv; AXePl: Ka1ak: goto dNVCl; Nk3DQ: $this->mongodatasourceresult->addFilterRequest($listC, $request); goto miHEW; njU8U: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("delete", "isempty", true), $request_temp); goto IvGRL; Y_Hf3: $result = $this->tickets_library->db_read($request, $select); goto J0zzo; swWJ4: $this->load->model("services/tickets/requesters_m"); goto tilCG; MI8za: ViTNW: goto x2eLe; u1pIP: echo json_encode(["total" => 0, "data" => [], "errors" => langJS("httpcode.msg_403")]); goto qMYYq; FdpZg: $request = $request_temp; goto vWvTE; aP7i_: $this->load->model("services/tickets/requesters_m"); goto lDCj9; iAbef: y6vJj: goto EBr7x; sf1f3: $wf4x_alltickets = false; goto s2M5B; rAQ2I: array_push($listbu, $userid); goto aguAd; lDCj9: $requesters_name = []; goto r2t8D; LyeS0: $requesters = $this->requesters_m->db_alloptions([], ["or_where" => $or_where]); goto sN5KC; uRk3c: MAete: goto etmg0; Q1R1D: $select = array_merge($tempSelect, $selectField); goto JzIXl; miHEW: PeS2z: goto zjdib; dBeAW: $request_temp->skip = $request->skip; goto woY6L; RXhr8: if ($assigned2me) { goto g2nHG; } goto WAcg2; yQZGZ: if (!(property_exists($request, "wf4x_ticketsprocessing") && $request->wf4x_ticketsprocessing === true)) { goto UV04m; } goto revIs; cnOvv: $this->load->model("settings/configtickets/configcategoryticket_m"); goto Dkmk0; WnMdo: YrH5L: goto Bxcu2; H6hr3: echo json_encode(["total" => 0, "data" => []]); goto s1Yu7; xq41w: if (!isset($request->wf4x_alltickets)) { goto PdtFI; } goto xbAD0; Qup3Q: Eif7g: goto YPMbu; uLEKf: iyQT0: goto x3uzg; pyIP2: $listSLAOver = $this->mongodatasourceresult->initFilterWithSub("or", [$this->mongodatasourceresult->initFilter("sla.response_solvedtime", "isempty", true), $this->mongodatasourceresult->initFilter("sla.response_solvedtime.solvedtime_result", "eq", "fail")]); goto dRV09; LwYtD: $filter_fieldstatus = json_decode(json_encode($filter_fieldstatus), true); goto XG5U6; V2_MM: if (is_numeric($request->startdate) && is_numeric($request->enddate) && !empty($request->searchtext)) { goto OCXuS; } goto yjtPN; Op9AD: rBUtS: goto ojQ0e; Tx74y: w53R7: goto BjsN8; tQ150: goto uyDh6; goto ocHMM; sWc_r: $oldTake = $request->take ?? 10; goto sP3Hm; etmg0: goto iyQT0; goto YVbIk; dRV09: $this->mongodatasourceresult->addFilterRequest($listSLAOver, $request); goto p0nDg; mtMH1: $filter_fieldstatus = new stdClass(); goto yV4qw; Qa_iJ: $owner = $this->data["isOwner"]; goto xq41w; Pwui6: oQxB7: goto FdpZg; VPTch: goto ugjd8; goto rIJqX; hO6nr: poa0z: goto G50xK; Fa0TW: c4svu: goto lg5re; acOIO: Amhh1: goto HYNFO; VxPvu: unset($request->take); goto I9hcE; i0J17: foreach ($dataShared as $idc) { $listCategory[] = $idc["_id"]; zYs6W: } goto kmbaT; NXstZ: MRJ7s: goto EA0HN; VScbs: } public function getcomments($idticket) { try { goto VLXJb; USUwE: if (is_array($ticket) && count($ticket) > 0 && array_key_exists("created", $ticket)) { goto iQt13; } goto c351m; GstVM: ZHgeJ: goto DtRl6; mlhC_: goto plm_w; goto bu7RB; d4pX6: $this->tickets_comments_m->setCollection($collectionComments); goto k9SHg; SmjjC: $collectionModel = new CollectionModel($this->data["pbx_customer_code"], DBMAIN, false, ["timezone" => $this->sessionData["timezone"]]); goto kL9r9; ed8fI: $this->load->library("tickets_library"); goto ftUhJ; dim8U: $hasFilterParent = false; goto D3q4_; VLXJb: header("Content-Type: application/json"); goto Wtlw4; Y6v0a: $result = $this->tickets_comments_m->db_kendogrid_read($request); goto nvwNW; c9F2y: $this->load->model("services/tickets/tickets_m"); goto ed8fI; ftUhJ: $this->tickets_library->db_setcollection($idticket); goto Ln2Ov; rOQGW: echo json_encode($result); goto s8nXj; Vlie4: if (!$this->mongo_db->isValidObjectID($idticket)) { goto Frlt0; } goto c9F2y; GZIQT: INXZM: goto rOQGW; tNN1M: Frlt0: goto ciBtm; BJurV: g1moZ: goto USUwE; k9SHg: if ($hasFilterParent) { goto vMC2l; } goto VLBnL; Eyipk: $filterno_ticketprimary = false; goto Vlie4; vhSZC: if (!($permission["stt"] === false)) { goto ZHgeJ; } goto uQVPx; s8nXj: plm_w: goto tNN1M; DtRl6: $this->load->model("services/tickets/tickets_comments_m"); goto SmjjC; nvwNW: foreach ($result["data"] as &$item) { goto uiJtl; E264b: $item["usersubmit_info"] = searchuser($item["created"]["byid"]); goto cl3mx; cl3mx: Ps_Yx: goto UCQJG; qzr0K: U9Guf: goto BwHbm; uiJtl: if (!array_key_exists("upload_data", $item)) { goto U9Guf; } goto GKqQr; mGM68: j45At: goto qzr0K; GKqQr: foreach ($item["upload_data"] as &$file) { $file["filesize"] = filesize_formatted_samedisk($file["filesize"]); a4oqy: } goto mGM68; BwHbm: $item["timetext"] = time_elapsed_string(date("Y-m-d H:i:s", $item["created"]["time"]), false) . ". " . langJS("time.days_of_week." . strtolower(date("l", $item["created"]["time"]))) . ", " . date("d", $item["created"]["time"]) . " " . strtolower(langJS("time.month_of_year." . strtolower(date("F", $item["created"]["time"])))) . " " . date("h:i", $item["created"]["time"]) . " " . langJS("time." . date("A", $item["created"]["time"])); goto E264b; UCQJG: } goto GZIQT; D3q4_: foreach ($request->filter->filters as $val) { goto z0lng; NUcCg: if (!(isset($val->filters) && $filterno_ticketprimary)) { goto uKoaU; } goto b8NZS; fyyGR: kYpiS: goto NUcCg; CTIdS: $hasFilterParent = true; goto olnzU; ACGbw: foreach ($val->filters as &$child) { goto tGT9c; ijxEk: if (!in_array($idticket, $child->value)) { goto lursh; } goto k3y1b; an2eb: $child->value = new \MongoDB\BSON\ObjectID($child->value); goto MA2ZR; C5FIJ: $filterno_ticketprimary = true; goto a3WvV; E_sqS: $listticket_id = $child->value; goto ijxEk; YxOEw: if (!(isset($child->field) && $child->field === "_id")) { goto D3ELN; } goto an2eb; a3WvV: SQwzJ: goto bfbe5; JEe4O: if (empty($listticket_id)) { goto kMG7Y; } goto egIO0; bfbe5: kMG7Y: goto J4VoW; HpN_X: EevgE: goto iTgCO; N2wft: $listticket_filter = isset($listticket_filter["data"]) ? $listticket_filter["data"] : []; goto LmS_Q; egIO0: $filter = new stdClass(); goto hS3pV; V1sXk: lursh: goto JEe4O; k3y1b: $listticket_id[] = $ticket["ticket_id"]; goto V1sXk; J4VoW: if (!in_array($idticket, $child->value)) { goto hzG6l; } goto L3Pti; XgsZg: $listticket_filter = $this->tickets_library->db_read($filter, ["_id", "mergeprimary", "ticket_id"])["data"]; goto N2wft; rP36r: hzG6l: goto qEf_a; tGT9c: if (!(isset($child->field) && $child->field === "ticket_code_source")) { goto s3lp6; } goto E_sqS; hS3pV: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("ticket_id", "in", $listticket_id), $filter); goto XgsZg; LmS_Q: $temp = array_column($listticket_filter, "mergeprimary"); goto OSKBs; OSKBs: if (!empty($temp)) { goto SQwzJ; } goto C5FIJ; qEf_a: s3lp6: goto YxOEw; MA2ZR: D3ELN: goto HpN_X; L3Pti: $child = $this->mongodatasourceresult->initFilterWithSub("or", [$this->mongodatasourceresult->initFilter("ticket_code_source", "in", $child->value), $this->mongodatasourceresult->initFilterWithSub("and", [$this->mongodatasourceresult->initFilter("ticket_id", "eq", $idticket), $this->mongodatasourceresult->initFilter("merge", "neq", true)])]); goto rP36r; iTgCO: } goto y325h; y325h: djOym: goto fyyGR; z0lng: if (!(isset($val->field) && $val->field === "parentcomment")) { goto fuqcQ; } goto CTIdS; b8NZS: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("mergecomment", "ne", null), $request); goto yvZdC; olnzU: fuqcQ: goto yGwXG; yGwXG: if (!isset($val->filters)) { goto kYpiS; } goto ACGbw; yvZdC: uKoaU: goto vw6Hl; vw6Hl: CL24n: goto ENAWJ; ENAWJ: } goto BJurV; APGKq: exit; goto GstVM; kL9r9: $collectionComments = $collectionModel->NameOneCollection("tickets_comments", $ticket["created"]["time"]); goto d4pX6; Wtlw4: $request = json_decode(file_get_contents("php://input")); goto Eyipk; Ln2Ov: $ticket = $this->tickets_m->db_getbyid($idticket, ["assignee", "assignee_info", "ccs", "created", "ticket_id"]); goto dim8U; uQVPx: echo json_encode(["data" => [], "total" => 0, "errors" => "Permission"]); goto APGKq; bu7RB: iQt13: goto EPmHC; EPmHC: $permission = $this->tickets_library->permission("checkpermission", $ticket); goto vhSZC; c351m: throw new Exception("Ticket not found"); goto mlhC_; fMjhv: vMC2l: goto Y6v0a; VLBnL: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("hasparent", "neq", true), $request); goto fMjhv; ciBtm: } catch (Exception $ex) { http_response_code(500); echo $ex->getMessage() . " ~~ " . $ex->getLine(); } } public function detail($id = '', $avtivetab = "maininfo") { goto KFac3; DVsyD: return; goto LmkT8; KFac3: if (!(isset($this->wf4xconfig["options"]["mobileapp"]["must_setup"]) && $this->wf4xconfig["options"]["mobileapp"]["must_setup"] === true)) { goto x2_s6; } goto Z7KuB; svg2r: try { goto Speqa; Uvs3g: rGu4j: goto Upcpb; ZB0XU: P5JxF: goto hlCvG; psvOt: $this->load->model("crm/contacts_m"); goto qs2P8; NWB2K: if (empty($ticket["bpm"]["currentState"]["extendConfig"]["status"])) { goto CQScU; } goto xiXIL; fqic1: $topic = $this->mailbox_topics_m->db_getbyid($ticket["sourceid"]); goto fJSWj; hylli: if ($topic["currentuser"]["assignee"] === $this->data["userid"]) { goto Uu73D; } goto JZ0XX; F085e: if (!(!empty($ticket["sourcedisplay"]) && $ticket["sourcedisplay"] == "automations")) { goto RvKIq; } goto j0n1B; M891A: if (!array_key_exists("created", $ticket)) { goto W9AWI; } goto T60ja; uudD9: if (is_array($keyObjectAccount)) { goto QX3tZ; } goto Gcm2v; z3UM0: VfZd1: goto CU9_h; pv9BA: if (!(isset($ticket["source"]) && $ticket["source"] == "port" && isset($requesters["link_requester"]))) { goto Ulbgn; } goto usnsP; vNO79: o1qXx: goto pv9BA; GKRT2: if (!array_key_exists("text", $parent_category)) { goto mqxV8; } goto QiNXQ; kkrFr: $customfieldcontact = new Field(false, $this->data["pbx_customer_code"]); goto v3xLJ; RRpmY: $this->loadViewContentTemplatePanel($this->module . "detail" . $ticket["ticket_id"] . $ticket["_id"], "services/tickets/detail/v_left", "services/tickets/detail/v_right", $this->data, ["before" => ["services/tickets/detail/tk_detail", "services/mailbox/detail/tk_view"], "after" => "services/tickets/detail/v_script"]); goto HR3Ls; YG3sa: RvKIq: goto vmqBS; RyBRV: if (!(isset($ticket["via"]["type"]) && $ticket["via"]["type"] == "ticketpublicportal")) { goto GWRcP; } goto K5bA1; Mqz0T: if ($type == "default") { goto W14Jo; } goto HUoG_; escB_: $requesters = $this->requesters_m->db_getbyid($ticket["requester_id"]); goto U2jWD; chMoA: if (!(array_key_exists("category", $ticket) && $ticket["category"] !== '')) { goto xqAAf; } goto TNHNs; giIfQ: if (empty($account)) { goto ajZGj; } goto OoxAZ; FF4us: BJ1HY: goto jjvwm; xiXIL: $ticket["status_text"] = "module_configprocessticket.status." . strtolower($ticket["status"]) != langJS("module_configprocessticket.status." . strtolower($ticket["status"])) ? langJS("module_configprocessticket.status." . strtolower($ticket["status"])) : $ticket["status"]; goto TQ7gH; jQ6_W: n8R3A: goto qx4V_; o5MR5: if ($this->data["isOwner"]) { goto rSsH_; } goto NgNEQ; kKLa_: if (empty($ticket["tags"])) { goto LzwAU; } goto ssaTE; JTuon: if (empty($ticket["requester_id"])) { goto EGGBa; } goto Vh_0K; JbLqd: $name = substr($ticket["assignee"], 0, $index); goto CcT5B; EExO3: $this->load->library("bpm_library"); goto Lh4QO; j8IvG: if (isset($ticket["create_from"])) { goto oE4UH; } goto F085e; Bdd2E: goto ELYl_; goto dNRUx; G7Jii: KXRvy: goto QNSZX; TtIsF: echo json_encode($ticket); goto pJ7HO; w81yx: $config = $this->configmergeticket_m->db_oneoptions([], ["where" => ["status" => "new"]]); goto KX78y; kIIcK: if (!isset($ticket["assignee"])) { goto rGu4j; } goto rq7GF; w01RG: QB6s9: goto bJCW1; S41ns: $resPhone = []; goto hqVhY; mQvC1: $idworkinghour = substr($configslaticket["workinghours"], $index + 1); goto v71Vo; I1Tws: goto dKXeD; goto Kdf3g; is3Bi: foreach ($workinghours["ranges"][$keyofday] as $keyrange => $configrange) { goto Lg_M9; Jmiqz: goto txwAb; goto Wm_tw; rdBXq: $startcheck = strtotime(date("Y-m-d " . $configrange["from"] . ":00")); goto CmD9H; uSuj9: goto Vwwcy; goto gbdSB; gbdSB: yoA7l: goto cfNsk; Lg_M9: $endcheck = strtotime(date("Y-m-d " . $configrange["to"] . ":00")); goto rdBXq; Wm_tw: Vwwcy: goto nARVe; CmD9H: if ($startcheck <= time() && time() <= $endcheck) { goto yoA7l; } goto ajQ04; nARVe: U2b5n: goto PfqdY; ajQ04: $flagWorkingHours = false; goto uSuj9; cfNsk: $flagWorkingHours = true; goto Jmiqz; PfqdY: } goto Rejbr; psS2H: Y0L3r: goto wN1ae; icTiM: if (empty($keyObjectModules_email)) { goto PGCMQ; } goto MY2h3; Xch3Z: lJxfN: goto BMw5z; w4ZfO: $this->load->model("default/notifications_m"); goto YB0Hb; jdPY_: $ticket["tags_string"] = ''; goto HZ1BW; KmY7I: $this->data["inworkinghour"] = $flagWorkingHours; goto otKvG; FuD0N: VAIEU: goto v_x_k; VC9Gc: $account = $this->accounts_m->db_getbyid($ticket["account_related"]); goto giIfQ; C0kKb: if (!isset($topic["currentuser"])) { goto IXpnN; } goto CisZK; bsRhy: ZGqeJ: goto t3cR9; Mkxjd: $this->load->model("settings/generalconfig/tags_m"); goto Hihu2; kI50B: k2vuL: goto Sm8NO; rjZnv: $this->configmergeticket_m->db_insert(["type" => $mergetype, "status" => "new"]); goto rku0M; jB3aO: throw new Exception($this->data["langJS"]["tickets_detail_notfound_msg"], 404); goto iWnoM; C501h: $this->load->model("settings/configtickets/configslaticket_m"); goto kPLFZ; hqVhY: foreach ($listPhone as $phone) { $resPhone[] = ["text" => $phone, "value" => $phone]; qxQ6m: } goto OQND1; TqoCv: foreach ($resultPhoneAccount as $valAccount) { goto G8Bci; nSfM9: Ej2dT: goto rK05g; uZ1NP: $listPhoneAccount[] = $valAccount; goto nSfM9; TQEBt: ZFs_B: goto mf6Et; VYKxa: if (!($valAccount !== '')) { goto Ej2dT; } goto uZ1NP; G8Bci: if (is_array($valAccount)) { goto ZQgy1; } goto VYKxa; rK05g: goto W0ppu; goto ESpeB; ESpeB: ZQgy1: goto Dudib; Dudib: $listPhoneAccount = array_merge($listPhoneAccount, $valAccount); goto vp8eT; vp8eT: W0ppu: goto TQEBt; mf6Et: } goto AMw55; otG0C: oE4UH: goto uMHGk; UHHvf: taOfF: goto nNQdg; p8J5f: Z2Il7: goto m2WAH; u4iMq: Vi9a_: goto sznYz; Ir7PN: rSsH_: goto CHlPZ; EYeaw: $customfieldaccount = new Field(false, $this->data["pbx_customer_code"]); goto vBfcs; KBuar: $checkPermission = true; goto xI3I2; YoQ9O: $topic["linkCRMObject"]["unlinkobject"] = false; goto Xmn5D; UsBxK: IPEt7: goto c5CY3; RNhSf: LfqJu: goto tmLj4; Ry2dk: nE2Gs: goto EvRu1; AkzKU: $pathBPM = @$ticket["bpm"]["flowCDN"]["path"] . @$ticket["bpm"]["flowCDN"]["nameCDN"]; goto zKzdi; EngQF: $this->leads_library->db_setcollection($requesters["idmodule"]); goto e8l2U; j0n1B: if (!(!empty($ticket["addonParams"]) && !empty($ticket["addonParams"]["topic_id"]))) { goto uuSSQ; } goto pKR3e; AMw55: bT42a: goto p2NNX; CnODL: foreach ($listPhoneLead as $phonelead) { $resPhone[] = ["value" => $phonelead, "text" => $phonelead . "_" . $lead["first_name"], "module" => "leads", "objectid" => $requesters["idmodule"]]; emG6r: } goto wU_IF; uMHGk: if (!($ticket["create_from"] == "create_ticket_fromemail")) { goto d3e79; } goto KA061; VXU_Q: if (!($requesters["frommodule"] == "contacts")) { goto o1qXx; } goto psvOt; p3PnK: QX3tZ: goto EMHdC; VF7xl: if (is_array($keyObjectContact)) { goto Pv20y; } goto cQ6q2; m2WAH: goto fiTWv; goto RNhSf; Kdf3g: Pv20y: goto yDEOu; l12ny: $keyUnSeen = array_search($this->data["userid"], $notify["unseen"]); goto V9kaL; ngwa1: JuaW5: goto Znvs1; JVuyd: throw new Exception("permission", 50); goto Qav7M; LrP5O: foreach ($resultPhoneLead as $valLead) { goto zD6e8; Nyn5c: $listPhoneLead[] = $valLead; goto vu7tq; jhqQk: $listPhoneLead = array_merge($listPhoneLead, $valLead); goto rHGcy; F7x3J: if (!($valLead !== '')) { goto lsv5L; } goto Nyn5c; ho3gz: O6J0l: goto jhqQk; JSnW5: goto oj0yU; goto ho3gz; rHGcy: oj0yU: goto y2265; vu7tq: lsv5L: goto JSnW5; y2265: KtT6R: goto pDcxd; zD6e8: if (is_array($valLead)) { goto O6J0l; } goto F7x3J; pDcxd: } goto nqE9P; zJXvR: snNRc: goto kEIDU; iAUnh: $ticket["assignee_string"] = $distribute["name"] . "<img src="" . base_url("public/img/crm/icon/crm/auto_assign.svg") . "" class="svg wff-icon-12 th-ml-2"/>"; goto SFMya; Mzeio: fF7UP: goto vLHvq; iWnoM: CMAhj: goto C501h; TbyQE: LG9IR: goto Hnbd2; o0pp_: $resultPhoneLead = $customfieldlead->getValuesWithObject("leads", $requesters["idmodule"], array_column($keyObjectLead_phone, "_id")); goto LrP5O; HrQBE: if (empty($ticket["ccs"])) { goto nMbIj; } goto k84cQ; g_7XN: $merge_allow = true; goto yT39m; cbZ6n: unset($ticket["bpm"]); goto uQSfd; ArvEG: $year = date("Y"); goto Tddmp; KLuUu: LzwAU: goto Ofa3w; hc69L: foreach ($keyObjectModules_phone as $keyPhone) { goto bq018; ywSnq: if (!($ticket[$name][$idField] !== '')) { goto p21jx; } goto Z9FrK; mz0bN: e__Py: goto W3rs1; W3rs1: Mkebu: goto oCYOd; bq018: $index = strpos($keyPhone["alias"], "."); goto Ydgca; Bt4pJ: p21jx: goto SHbYI; vpgtP: GVQGA: goto GXGtb; oCYOd: ZRI4L: goto X6tqW; e7ifN: $name = substr($keyPhone["alias"], 0, $index); goto Mzi1C; Rcl3Z: if (is_array($ticket[$name][$idField])) { goto GVQGA; } goto ywSnq; Z9FrK: $listPhone[] = $ticket[$name][$idField]; goto Bt4pJ; GXGtb: $listPhone = array_merge($listPhone, $ticket[$name][$idField]); goto mz0bN; Ydgca: $idField = substr($keyPhone["alias"], $index + 1); goto e7ifN; Mzi1C: if (!isset($ticket[$name][$idField])) { goto Mkebu; } goto Rcl3Z; SHbYI: goto e__Py; goto vpgtP; X6tqW: } goto kZci_; ErR41: IhZPf: goto GLWP5; vBfcs: $keyObjectAccount = $customfieldaccount->getKeysObject(["accounts"], ["name", "phone", "email"]); goto uudD9; tEFdp: if (!isset($req["takeNewData"])) { goto Vi9a_; } goto mPWOn; NgNEQ: $checkPermission = false; goto wrg45; mY4mo: if (!(!empty($ticket["mergetype"]) || !empty($ticket["mergeinfo"]) || !empty($ticket["merge"]))) { goto KaFwY; } goto Xfz33; pJ7HO: DUllC: goto vCEAx; StTh3: $id = substr($ticket["owner"], $index + 1); goto INUXf; Mm6DZ: $keyObjectLead = $customfieldlead->getKeysObject(["leads"], ["name", "phone", "email"]); goto hq9qt; y1IMj: $flagday = intval(date("w", time())); goto Fbk1r; lET7h: goto Kgw0a; goto ywRyy; Tddmp: foreach ($workinghours["specialdate"] as $spec) { goto H6VuF; GcE27: $endSpecialDay = "23:59:59" . $spec["date"] . "/" . $year; goto ylShe; C3EiA: $endSpecialDay = str_replace("/", "-", $endSpecialDay); goto jC1k3; BSyvB: $flagWorkingHours = false; goto TqedZ; JsiYh: if (!(time() >= $startSP && time() < $endSP)) { goto IIhQu; } goto BSyvB; ylShe: $startSpecialDay = str_replace("/", "-", $startSpecialDay); goto C3EiA; HHOLe: $endSP = strtotime($endSpecialDay); goto JsiYh; kUWxD: IIhQu: goto wL2Eg; jC1k3: $startSP = strtotime($startSpecialDay); goto HHOLe; wL2Eg: yO_j3: goto nDE5v; TqedZ: goto IPEt7; goto kUWxD; H6VuF: $startSpecialDay = "00:00:00" . $spec["date"] . "/" . $year; goto GcE27; nDE5v: } goto UsBxK; eePhE: $topic["linkobject"] = $this->getlinkobjectcrm(["module" => $topic["link_module"], "id" => $topic["link_id"]]); goto S4psw; CmFVT: $resultPhoneLead = $customfieldlead->getValuesWithObject("leads", $requesters["idmodule"], array_column($keyObjectLead_phone, "_id")); goto E4xZl; hlCvG: PGCMQ: goto T07Uk; F4g0J: $this->data["bpm_isEnded"] = $ticket["bpm"]["isEnded"]; goto dkpiN; Gcm2v: $keyObjectAccount_phone = $customfieldaccount->getFieldsConfigByType("accounts", ["phone"]); goto e_ClA; QiNXQ: $ticket["parent_category_name"] = $parent_category["text"]; goto fijzC; dAc3c: $index = strpos($ticket["owner"], "_"); goto StTh3; xDjMX: if (!isset($ticket["ccs"])) { goto LG9IR; } goto HrQBE; u6Ckf: $updated = $this->notifications_m->db_update($notify["_id"], ["seen" => $notify["seen"], "unseen" => $notify["unseen"]], ["userpermissionmodify" => false]); goto nMV6a; ndq9y: XM9Rn: goto U2AWQ; GLWP5: $ticket["accountrelated_string"] = $account["companyname"]; goto hZfbP; v71Vo: $type = substr($configslaticket["workinghours"], 0, $index); goto W_hm7; KKrYa: $info .= " - " . $getPublicFieldLeads["emailcustom"]; goto zhTos; ePm7L: $topic["currentuser"]["avatar"] = isset($user["avatar"]) && $user["avatar"] !== '' ? CONFIG_URLCDN_V3_1 . $user["avatar"] : ''; goto v_482; yDEOu: $keyObjectContact = isset($keyObjectContact[0]) ? $keyObjectContact[0] : $keyObjectContact; goto szXx3; ECjst: $getPublicFieldLeads = $this->getPublicField($keyObjectLead, $lead); goto xCq8R; UmSZP: $keyObjectModules_phone = $customfield->getFieldsConfigByType($this->module, ["phone"]); goto s46W3; ZSuPe: WzvFp: goto z24r3; Fz4Qu: $getPublicField = $this->getPublicField($keyObjectAccount, $account); goto xw00t; vNBhk: foreach ($groups as $group) { goto HE3rK; QcxBF: Hy_eS: goto pSXOn; pSXOn: L8wqt: goto cIV3w; wmsyb: foreach ($group["fields"] as $field) { goto lIuZd; E25as: kZJTm: goto vX9C9; hQNjt: $city = $this->mongo_db->where(array("code" => $valAddress))->getOne("vnlocation_province"); goto kpHVZ; LLY6R: $valAddress = $ticket[$group["alias"]][$field["alias"]] ?? ''; goto hQNjt; kpHVZ: $ticket[$group["alias"]][$field["alias"] . "_string"] = isset($city["name"]) ? $city["name"] : ''; goto E25as; WsvRN: $ticket[$group["alias"]][$field["alias"] . "_string"] = isset($district["name"]) ? $district["name"] : ''; goto LZBsO; p4009: $ticket[$group["alias"]][$field["alias"] . "_string"] = isset($ward["name"]) ? $ward["name"] : ''; goto DzLNT; DzLNT: B7ik_: goto agfzn; nyVbi: ET92s: goto kX8lu; lIuZd: if ($field["alias"] == "city") { goto DoQAx; } goto Go12U; UHO5j: DoQAx: goto LLY6R; Q736E: if (!($field["alias"] == "ward")) { goto B7ik_; } goto R7q1s; LZBsO: BV8NB: goto XQ8o6; Q7Aip: $ward = $this->mongo_db->where(array("code" => $valAddress))->getOne("vnlocation_commune"); goto p4009; nuh99: $district = $this->mongo_db->where(array("code" => $valAddress))->getOne("vnlocation_district"); goto WsvRN; agfzn: goto BV8NB; goto nyVbi; R7q1s: $valAddress = $ticket[$group["alias"]][$field["alias"]] ?? ''; goto Q7Aip; Go12U: if ($field["alias"] == "district") { goto ET92s; } goto Q736E; kX8lu: $valAddress = $ticket[$group["alias"]][$field["alias"]] ?? ''; goto nuh99; XQ8o6: goto kZJTm; goto UHO5j; vX9C9: ZDo5n: goto UwqyC; UwqyC: } goto QcxBF; cIV3w: p71_2: goto ZaIMd; HE3rK: if (!($group["alias"] !== "basicinfo")) { goto L8wqt; } goto wmsyb; ZaIMd: } goto jUflQ; V9kaL: if (!($keyUnSeen !== false)) { goto JKAM2; } goto i9eOK; N28hY: H0Dcd: goto ATssb; MKxjt: $this->mongo_db->switch_db(DBCONF); goto W3kLW; rIUc9: fDyFE: goto mjDTP; Fbk1r: $keyofday = $array_dayofweek[$flagday]; goto hJ0Id; qRiJQ: if ($takeNewData) { goto cC1dR; } goto RRpmY; e9LZd: $ticket = $this->tickets_m->db_oneoptions([], ["where" => ["_id" => new \MongoDB\BSON\ObjectId($id)]]); goto RyBRV; Znvs1: jXDIJ: goto b2b5X; GFd4d: goto Kgw0a; goto bsRhy; jUflQ: FKrwi: goto nYujI; ReOvZ: $topic["linkobject"] = $topic["linkobject"]["data"]; goto YoQ9O; MY2h3: $resultEmail = $customfield->getValuesWithObject($this->module, $id, array_column($keyObjectModules_email, "_id")); goto jOWwq; ydB3q: EiB2j: goto vsr0I; mPWOn: $takeNewData = $req["takeNewData"]; goto u4iMq; sMHp3: $ticket["assignee_string"] = langJS("module_ruledistributes.distribute_deleted"); goto xkRi1; lVwSI: $this->data["merge_allow"] = $merge_allow; goto WpBJ7; O2rvo: $ticket["accountrelated_string"] .= " - " . $getPublicField["emailcustom"]; goto N28hY; TNHNs: $category = $this->configcategoryticket_m->db_getbyid($ticket["category"], ["text"]); goto IJ8cC; ssaTE: foreach ($ticket["tags"] as $tag) { goto FXsgS; FXsgS: if ($this->mongo_db->isValidObjectID($tag)) { goto CPQbd; } goto OBEDz; ckUIm: wBN17: goto G1fx7; PBfH4: rHr0L: goto sjUHV; G6ewM: goto YlI7S; goto KrChc; KrChc: CPQbd: goto qUUCC; sBu8F: goto SGC35; goto ckUIm; c837B: YlI7S: goto PBfH4; qUUCC: $tagFromSetting = $this->tags_m->db_getbyid($tag, ["name", "color"]); goto Ghdp1; Ghdp1: if (is_array($tagFromSetting) && count($tagFromSetting) > 0 && array_key_exists("_id", $tagFromSetting)) { goto wBN17; } goto tYAsQ; T6V28: SGC35: goto c837B; tYAsQ: $ticket["tags_info"][] = ["name" => $tag]; goto sBu8F; G1fx7: $ticket["tags_info"][] = $tagFromSetting; goto T6V28; OBEDz: $ticket["tags_info"][] = ["name" => $tag]; goto G6ewM; sjUHV: } goto FqAgO; K4ZdA: $ticket["permission"] = $permission; goto EExO3; exviB: $this->load->library("tickets_library"); goto Z1Ax5; v_482: $topic["currentuser"]["name"] = isset($user["name"]) && $user["name"] !== '' ? $user["username"] . "-" . $user["name"] : $user["username"]; goto GFFCE; EvRu1: dKXeD: goto u3P9u; ZVrik: Qx27B: goto S3che; EGUzj: $this->mongo_db->switch_db(DBCONF); goto vNBhk; pLaJa: YwmGc: goto HeBig; iUeJ0: $bu = $this->businessunit_m->db_oneoptions([], ["where" => ["_id" => new \MongoDB\BSON\ObjectID($topic["currentuser"]["assignee"])]]); goto RC3CS; c5CY3: t4KRS: goto rIUc9; nNQdg: $ticket["ccs_string"] = ''; goto xDjMX; tTmGT: if (empty($workinghours)) { goto sKKX5; } goto RbtS4; LKBCm: wOfIM: goto Uvs3g; hRQFT: if (!array_key_exists("text", $category)) { goto JuaW5; } goto zgeaI; INUXf: $name = substr($ticket["owner"], 0, $index); goto hQtgO; VJkc9: EGGBa: goto pxIsL; UB9lp: goto Kgw0a; goto pLaJa; vwwx_: $customfield = new Field(false, $this->data["pbx_customer_code"]); goto UmSZP; zhTos: x9xpv: goto fRqII; c_z5Y: if (!($ticket["created_string"] === false)) { goto EiB2j; } goto aQq4r; Ge721: goto KwDWT; goto ndq9y; fvoDB: $this->load->model("crm/leads_m"); goto PbmMS; L6oOu: $this->data["topic"] = $topic; goto auyq6; d6cmY: $mergetype = $config["type"]; goto s31Pa; GZSYA: $this->data["ticketFlowRoad"] = $this->bpm_library->getFlowRoad($pathBPM, $ticket["bpm"]["token"]); goto F4g0J; VN9lR: $user = $this->wf4x_users_m->getUserById($topic["currentuser"]["assignee"]); goto ePm7L; wCvBx: if (empty($getPublicField["phonecustom"])) { goto fF7UP; } goto HZXDO; b37WJ: d3e79: goto FuD0N; Hnbd2: $ticket["owner_string"] = ''; goto Dpimb; Rejbr: txwAb: goto bRO2u; pKR3e: $topic = $this->mailbox_topics_m->db_getbyid($ticket["addonParams"]["topic_id"]); goto q_2ch; fslMH: $bpmConfig["process_in_db"] = true; goto Wzz3w; RII6i: if (!($permission["permission"] === false)) { goto o9v8z; } goto JVuyd; LV5jC: if (!(isset($datascope["listbu"]) && is_array($datascope["listbu"]))) { goto LtOT1; } goto pgP_3; jFCRR: $ticket["owner_string"] = $bu_username["text"]; goto LwBwF; xI3I2: Tn6WO: goto vrvy5; HUoG_: $workinghours = $this->mongo_db->where("_id", new \MongoDB\BSON\ObjectId($idworkinghour))->getOne($this->data["pbx_customer_code"] . "_workinghours"); goto Bdd2E; E4xZl: foreach ($resultPhoneLead as $valLead) { goto ahRT_; YgMuc: PBdTZ: goto x5kN0; At1K4: rZURa: goto YzpJ8; ahRT_: if (is_array($valLead)) { goto RshRE; } goto lru8L; VnqwK: ZcWad: goto YgMuc; YzpJ8: goto ZcWad; goto zKDuO; ax4nl: $listPhoneLead[] = $valLead; goto At1K4; eQ215: $listPhoneLead = array_merge($listPhoneLead, $valLead); goto VnqwK; lru8L: if (!($valLead !== '')) { goto rZURa; } goto ax4nl; zKDuO: RshRE: goto eQ215; x5kN0: } goto NIIBz; N9LT5: $topic["linkCRMObject"]["avatar"] = $topic["linkobject"]["avatar"]; goto tsC_l; IJ8cC: if (!is_array($category)) { goto jXDIJ; } goto hRQFT; Ofa3w: UCjbA: goto YCiL8; lHwFz: foreach ($listPhoneLead as $phonelead) { $resPhone[] = ["value" => $phonelead, "text" => $phonelead . "_" . $lead["first_name"], "module" => "leads", "objectid" => $requesters["idmodule"]]; ZLLsF: } goto blgO2; q_2ch: uuSSQ: goto YG3sa; pxIsL: $ticket["accountrelated_string"] = ''; goto lezLl; Dpimb: if (!isset($ticket["owner"])) { goto wqIQN; } goto csaHZ; z24r3: nMbIj: goto TbyQE; QNSZX: foreach ($listPhoneAccount as $phoneaccount) { $resPhone[] = ["value" => $phoneaccount, "text" => $phoneaccount . "_" . $account["companyname"], "module" => "accounts", "objectid" => $ticket["account_related"]]; BZcBA: } goto hSyCn; nMeSl: if (!in_array($topic["state"], ["inprocess", "closed", "new"])) { goto QkPgw; } goto TTZp_; SY0_K: if (empty($requesters)) { goto mRW62; } goto m7tfG; tmLj4: $ticket["status_text"] = "module_configprocessticket.status." . strtolower($ticket["status"]) != langJS("module_configprocessticket.status." . strtolower($ticket["status"])) ? langJS("module_configprocessticket.status." . strtolower($ticket["status"])) : $ticket["status"]; goto f6Xe4; GMLqq: $notify["seen"] = array_values(array_unique($notify["seen"])); goto u6Ckf; sY_8U: $id = substr($ticket["assignee"], $index + 1); goto JbLqd; wU_IF: wgHfR: goto ECjst; PnEaL: Ulbgn: goto pO6qZ; knzRU: $takeNewData = false; goto tEFdp; otKvG: $this->bpm_library->settingConfig($bpmConfig); goto GZSYA; sznYz: if ($this->mongo_db->isValidObjectID($id)) { goto LLDjx; } goto MeZc2; Bivyb: $this->data["checkStatusTicket"] = $this->checkStatusTicket(); goto oeRy6; dU7sY: if (!isset($ticket["merge"])) { goto McHEq; } goto PxjiR; phZ7V: $resultPhoneContact = $customfieldcontact->getValuesWithObject("contacts", $requesters["idmodule"], array_column($keyObjectContact_phone, "_id")); goto T7obt; DarrI: $array_dayofweek = ["sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday"]; goto y1IMj; pO6qZ: mRW62: goto aE70M; z7ABN: foreach ($resultPhoneContact as $valContact) { goto nPIl5; u2LKw: $listPhoneContact[] = $valContact; goto bY2To; bY2To: aczVd: goto zgWdt; N9SIT: jvevs: goto mXFxR; ziTVT: IwAQ8: goto XajUP; nPIl5: if (is_array($valContact)) { goto IwAQ8; } goto sfrsQ; zgWdt: goto jvevs; goto ziTVT; sfrsQ: if (!($valContact !== '')) { goto aczVd; } goto u2LKw; XajUP: $listPhoneContact = array_merge($listPhoneContact, $valContact); goto N9SIT; mXFxR: yIj3w: goto ZRc9E; ZRc9E: } goto FF4us; IV1tW: $this->load->model("settings/configtickets/configcategoryticket_m"); goto chMoA; x8G8f: O7FXL: goto zJXvR; aY4u9: McHEq: goto MDDtK; v3xLJ: $keyObjectContact = $customfieldcontact->getKeysObject(["contacts"], ["name", "phone", "email"]); goto VF7xl; UX74p: $keyObjectLead = isset($keyObjectLead[0]) ? $keyObjectLead[0] : $keyObjectLead; goto e7Bbu; MZUr_: if (!isset($topic["currentuser"]["assignee"])) { goto cXXiv; } goto hylli; ZwP8v: $this->data["classpanelleft"] = "content-scroll-design"; goto MMS0K; Yz8kh: if (!empty($config)) { goto L4GZe; } goto rjZnv; jjvwm: foreach ($listPhoneContact as $phonecontact) { $resPhone[] = ["value" => $phonecontact, "text" => $phonecontact . "_" . $contact["first_name"], "module" => "contacts", "objectid" => $requesters["idmodule"]]; ZJebg: } goto DjnZv; mjDTP: sKKX5: goto obhi3; NyUM2: if ($ticket["bpm"]["currentState"] == false) { goto LfqJu; } goto NWB2K; Speqa: $req = json_decode(file_get_contents("php://input"), true); goto knzRU; uJ18y: $this->load->model("wf4x/wf4x_users_m"); goto VN9lR; teJC_: Kgw0a: goto LKBCm; hJ0Id: if (!(array_key_exists($keyofday, $workinghours["ranges"]) && count($workinghours["ranges"][$keyofday]) > 0)) { goto lBhSH; } goto is3Bi; yOmAI: $notify = $this->notifications_m->db_oneoptions([], $options); goto oQcGm; qtUes: RgUfH: goto dc8Fx; pGCXq: $this->tickets_library->db_setcollection($id); goto e9LZd; YB0Hb: $options = ["where" => ["module" => "tickets", "options.ticket_id" => $ticket["_id"]], "where_in" => ["unseen" => [$this->data["userid"]]]]; goto yOmAI; e7Bbu: $keyObjectLead_phone = $customfieldlead->getFieldsConfigByType("leads", ["phone"]); goto o0pp_; htjfN: $this->accounts_library->db_setcollection($ticket["account_related"]); goto VC9Gc; CHlPZ: $topic["linkCRMObject"] = ["unlinkobject" => true, "linkobject" => false, "loading" => false, "name" => '', "dataCRM" => [], "avatar" => base_url("public/img/placeholders/avatars/[email protected]")]; goto Y3wqJ; f6Xe4: fiTWv: goto ow1GS; MZAx1: ajZGj: goto wgOwx; qfJO1: o2LrW: goto qRiJQ; Mhkm1: Cfq0r: goto UX74p; Hihu2: $dataTagsTicket = $this->tags_m->db_alloptions(["_id", "name", "module"], ["where" => ["module" => "tickets"], "where_ne" => ["delete" => 1]]); goto Ffo3H; kdW4Y: $ticket["parent_category_name"] = false; goto IV1tW; i9eOK: unset($notify["unseen"][$keyUnSeen]); goto PmguG; RbtS4: if (!($workinghours["type"] !== "full")) { goto fDyFE; } goto DarrI; yT39m: gt4Nz: goto lVwSI; ATssb: ORg4j: goto MZAx1; BIwnv: if (!(is_array($topic) && array_key_exists("_id", $topic))) { goto snNRc; } goto C0kKb; G5L9J: oAcZ9: goto KBuar; obhi3: KwDWT: goto KmY7I; H8qyl: $listPhoneLead = []; goto CfXo_; QRT8A: $keyObjectAccount_phone = $customfieldaccount->getFieldsConfigByType("accounts", ["phone"]); goto DBu3M; nqE9P: h2ehv: goto CnODL; hSyCn: bwttE: goto wCvBx; gE08w: $topic = []; goto VF1NN; Bb8IS: $this->load->library("tickets_library"); goto FgevA; kSfPN: d_5Vz: goto sMHp3; LKG4i: header("Content-Type: application/json"); goto Lqywh; Xmn5D: $topic["linkCRMObject"]["linkobject"] = true; goto kcSjN; WKnvA: $info .= " - " . $getPublicFieldContacts["emailcustom"]; goto Ry2dk; zgeaI: $ticket["category_name"] = $category["text"]; goto ngwa1; UAL8f: $index = strpos($configslaticket["workinghours"], "_"); goto mQvC1; U2jWD: $info = ''; goto SY0_K; GFFCE: Pio7a: goto lQQ13; PbmMS: $this->load->library("leads_library"); goto EngQF; VF1NN: $this->load->model("services/mailbox/mailbox_topics_m"); goto j8IvG; W_hm7: $flagWorkingHours = true; goto Mqz0T; udu2B: $topic["currentuser"]["avatar"] = ''; goto lgVoy; o_oEW: lH8Dd: goto WevAB; SQN98: nNEEp: goto S41ns; CGh2N: $info .= " - " . $getPublicFieldContacts["phonecustom"]; goto aqZ6D; lgVoy: if ($topic["currentuser"]["type"] === "user") { goto RV92a; } goto Zgx1q; Wzz3w: $pathBPM = "checking_process_db"; goto AeN3A; RC3CS: $topic["currentuser"]["name"] = $bu["text"]; goto Tjncu; HZ1BW: $ticket["tags_info"] = []; goto v2_cR; Zgx1q: $this->load->model("permission/businessunit_m"); goto iUeJ0; KX78y: $mergetype = "disable_ticketmerge"; goto Yz8kh; nYujI: $this->mongo_db->switch_db(DBMAIN); goto Mkxjd; NU_eY: if ($name == "bu") { goto L180H; } goto dcCtH; vrvy5: QkPgw: goto bBtu6; kZci_: Ug8hr: goto SQN98; aqZ6D: AOEkb: goto dmh22; fRqII: SnKow: goto qtUes; L3OXG: $this->contacts_library->db_setcollection($requesters["idmodule"]); goto JMx1H; fJSWj: fXX11: goto b37WJ; Xfz33: $this->data["mergecomment"] = true; goto AWnKR; V64Sc: $this->load->model("crm/accounts_m"); goto hwruv; sd91O: LtOT1: goto Wzn19; CdE1h: $ticket["status_text"] = $ticket["bpm"]["currentState"]["name"]; goto p8J5f; dc8Fx: UHq20: goto VXU_Q; Zd_Q6: $client = new ClientSend(); goto yfwfA; sbAxH: $ticket["labeltype_link"] = langJS("module_tickets.link." . $ticket["link_type"]); goto hPNCI; Cq9bn: GWRcP: goto GjWOs; WevAB: W2lUM: goto LAhQB; hPNCI: XSU7s: goto Mdavr; E7Aad: if (empty($workinghours["specialdate"])) { goto t4KRS; } goto ArvEG; zKzdi: if (!isset($ticket["bpm"]["process_in_db"])) { goto az8F1; } goto fslMH; WTjY1: LLDjx: goto pL3eE; xiS3w: if (empty($lead)) { goto RgUfH; } goto H8qyl; eKRLQ: foreach ($this->data["fieldAllTicket"] as &$fieldall) { goto qnwSr; NQFaH: $fieldall["category"] = $datagroup["category"]; goto vHnDC; qnwSr: $datagroup = $this->fieldgroup_m->db_getbyid($fieldall["groupfield"]); goto kw9rl; vHnDC: tr5Ew: goto nnrQK; kw9rl: if (!(isset($datagroup["category"]) && !empty($datagroup["category"]))) { goto tr5Ew; } goto NQFaH; nnrQK: Ln7AM: goto uBdid; uBdid: } goto sre2H; U2AWQ: $configslaticket = $this->configslaticket_m->db_getbyid($ticket["sla"]["idsla"]); goto UAL8f; PxjiR: $merge_allow = false; goto aY4u9; N9GiT: $keyObjectContact_phone = $customfieldcontact->getFieldsConfigByType("contacts", ["phone"]); goto phZ7V; oQcGm: if (!isset($notify["_id"])) { goto o2LrW; } goto l12ny; ur_3d: $this->data["stylepanelleft"] = "padding: 5px 5px 0px; overflow-x: clip;"; goto fmV8i; bBtu6: wE127: goto Ir7PN; PmguG: $notify["unseen"] = array_values(array_unique($notify["unseen"])); goto Cl8bE; X92ZH: $keyObjectModules_email = $customfield->getFieldsConfigByType($this->module, ["email"]); goto icTiM; Y5_LR: if (empty($config)) { goto AFchO; } goto d6cmY; Mdavr: $this->data["ticket"] = $ticket; goto FhjUn; En7VX: $this->data["idTab"] = "ticketdetail_" . $ticket["_id"]; goto AtThQ; lQPoX: $ticket["labeltype_link"] = ''; goto Ho1I1; kcSjN: $topic["linkCRMObject"]["dataCRM"] = $topic["linkobject"]; goto NSZI5; e8l2U: $lead = $this->leads_m->db_getbyid($requesters["idmodule"]); goto xiS3w; csaHZ: if (!($ticket["owner"] !== '')) { goto ijicR; } goto dAc3c; DjnZv: YeYAh: goto I1Tws; nMV6a: if (!$updated["stt"]) { goto Y0L3r; } goto Zd_Q6; b2b5X: xqAAf: goto gMmIo; kDnyv: $checkPermission = true; goto Vz9c0; DdE9M: cXXiv: goto VX766; e_ClA: $resultPhoneAccount = $customfieldaccount->getValuesWithObject("accounts", $ticket["account_related"], array_column($keyObjectAccount_phone, "_id")); goto TqoCv; Z9uZg: $index = strpos($ticket["assignee"], "_"); goto sY_8U; DBu3M: $resultPhoneAccount = $customfieldaccount->getValuesWithObject("accounts", $ticket["account_related"], array_column($keyObjectAccount_phone, "_id")); goto d9Bxa; UAJHt: $ticket["createddate_string"] = date("d/m/Y", $ticket["created"]["time"]); goto BL6LX; f3I6A: $this->data["fieldOverviewSort"] = $this->returnOverviewSortID(); goto lQPoX; m7tfG: if ($requesters["frommodule"] === "users") { goto QB6s9; } goto AhOKS; T7obt: foreach ($resultPhoneContact as $valContact) { goto aJ38j; a11FD: goto TWa3Q; goto EdlZG; aJ38j: if (is_array($valContact)) { goto oRvme; } goto WmEvx; WmEvx: if (!($valContact !== '')) { goto dFmPG; } goto wWwEd; yaVyY: vDsSh: goto lUNeF; xTjnm: dFmPG: goto a11FD; D1UVM: TWa3Q: goto yaVyY; wWwEd: $listPhoneContact[] = $valContact; goto xTjnm; FhuBx: $listPhoneContact = array_merge($listPhoneContact, $valContact); goto D1UVM; EdlZG: oRvme: goto FhuBx; lUNeF: } goto Xch3Z; HR3Ls: goto DUllC; goto XHMmC; zjpBj: $resultPhoneContact = $customfieldcontact->getValuesWithObject("contacts", $requesters["idmodule"], array_column($keyObjectContact_phone, "_id")); goto z7ABN; EMHdC: $keyObjectAccount = isset($keyObjectAccount[0]) ? $keyObjectAccount[0] : $keyObjectAccount; goto Fz4Qu; KpSAk: $keyObjectLead_phone = $customfieldlead->getFieldsConfigByType("leads", ["phone"]); goto CmFVT; Qav7M: o9v8z: goto K4ZdA; g9ySC: $listPhoneContact = []; goto kkrFr; cnMiY: lsdTy: goto nMeSl; Vh_0K: $this->load->model("services/tickets/requesters_m"); goto escB_; AWnKR: KaFwY: goto PGtMH; Wzn19: goto KmJSq; goto RGp2l; gzIGM: if (!isset($distribute) || empty($distribute)) { goto d_5Vz; } goto iAUnh; CcT5B: if ($name == "user") { goto ZGqeJ; } goto NU_eY; AeN3A: az8F1: goto AsYVg; JMx1H: $contact = $this->contacts_m->db_getbyid($requesters["idmodule"]); goto WFunY; ZbTsH: $listEmail = []; goto X92ZH; AHDxo: $this->data["mergecomment"] = false; goto mY4mo; u3P9u: KOWD_: goto vNO79; rku0M: L4GZe: goto Y5_LR; usnsP: $ticket["waslinked_object"] = true; goto PnEaL; CfXo_: $customfieldlead = new Field(false, $this->data["pbx_customer_code"]); goto Mm6DZ; whaN5: if (!($requesters["frommodule"] == "leads")) { goto UHq20; } goto fvoDB; cQ6q2: $keyObjectContact_phone = $customfieldcontact->getFieldsConfigByType("contacts", ["phone"]); goto zjpBj; hQtgO: if ($name == "user") { goto WuWuO; } goto X5XGm; wgOwx: rKAj6: goto UHHvf; pYCBQ: gLpUt: goto UB9lp; BL6LX: $ticket["requester_string"] = ''; goto JTuon; MWqEn: $groups = $this->returnGroupOverview(); goto EGUzj; qx4V_: if (empty($getPublicFieldContacts["phonecustom"])) { goto AOEkb; } goto CGh2N; Jx4ir: goto SnKow; goto Mhkm1; Tjncu: goto Pio7a; goto vdpsF; dmh22: if (empty($getPublicFieldContacts["emailcustom"])) { goto nE2Gs; } goto WKnvA; E70TY: if (!isset($ticket["bpm"]) || !isset($ticket["bpm"]["currentState"])) { goto k2vuL; } goto NyUM2; s31Pa: AFchO: goto bl31U; NSZI5: $topic["linkCRMObject"]["name"] = $topic["linkobject"]["name"]; goto N9LT5; vLHvq: if (empty($getPublicField["emailcustom"])) { goto H0Dcd; } goto O2rvo; OoxAZ: $listPhoneAccount = []; goto EYeaw; PqufA: $this->data["slacomment"] = true; goto z3UM0; ya0Uo: throw new Exception(langJS("module_tickets.detail.notfound_msg"), 404); goto cwP6j; qllJ4: $info .= " - " . $getPublicFieldLeads["phonecustom"]; goto mEgH8; k84cQ: $i = 0; goto qP_gh; cwP6j: KOl9e: goto FKlv9; WpBJ7: $listPhone = []; goto vwwx_; lQQ13: IXpnN: goto M7vKf; dNRUx: W14Jo: goto MKxjt; S4psw: if (!($topic["linkobject"] !== false)) { goto yiFk8; } goto ReOvZ; fmV8i: $ticket["category_name"] = false; goto kdW4Y; blgO2: AFLe9: goto Jx4ir; HeBig: $this->load->model("settings/ruledistributes/ruledistributes_m"); goto HmrPv; AsYVg: if (!(!is_array($ticket) || is_array($ticket) && !array_key_exists("_id", $ticket) || !empty($ticket["delete"]))) { goto CMAhj; } goto jB3aO; kEIDU: gTSSg: goto MWqEn; lezLl: if (!isset($ticket["account_related"])) { goto taOfF; } goto fpKI6; cjt9r: ELYl_: goto tTmGT; j_RKv: $checkPermission = true; goto o3Vfs; kQOzz: goto XP0u8; goto w01RG; vsr0I: W9AWI: goto gE08w; Ffo3H: $this->data["dataTagsTicket"] = $dataTagsTicket; goto L6oOu; X5XGm: $bu_username = searchbu($id); goto jFCRR; MeZc2: throw new Exception(langJS("module_tickets.detail.notfound_msg"), 404); goto WTjY1; ZGL_Y: if (!(!empty($ticket["slacomment"]) || !empty($ticket["mergeinfo"]) || !empty($ticket["merge"]))) { goto VfZd1; } goto PqufA; CU9_h: $this->data["avtivetab"] = $avtivetab; goto w4ZfO; AhOKS: $info = $requesters["name"]; goto kQOzz; GjWOs: if (!(!is_array($ticket) || is_array($ticket) && !array_key_exists("_id", $ticket) || !empty($ticket["delete"]))) { goto KOl9e; } goto ya0Uo; Z1Ax5: $permission = $this->tickets_library->permission("checkpermission", $ticket); goto RII6i; bJCW1: $info = !empty($requesters["name"]) ? $requesters["name"] : $requesters["username"]; goto olKZW; FqAgO: UTbJ0: goto KLuUu; rq7GF: if (!($ticket["assignee"] !== '')) { goto wOfIM; } goto Z9uZg; Vz9c0: goto wE127; goto cnMiY; jOWwq: foreach ($resultEmail as $val) { goto QW1_4; UqV2R: $listEmail = array_merge($listEmail, $val); goto QCde1; QCde1: lEzt6: goto WRkxq; eugy_: $listEmail[] = $val; goto neAb5; neAb5: wmjUs: goto neL0B; qBYz8: if (!($val !== '')) { goto wmjUs; } goto eugy_; WRkxq: C4vfP: goto Hwnn3; QW1_4: if (is_array($val)) { goto Daf6X; } goto qBYz8; PUFLc: Daf6X: goto UqV2R; neL0B: goto lEzt6; goto PUFLc; Hwnn3: } goto ZB0XU; olKZW: XP0u8: goto whaN5; hq9qt: if (is_array($keyObjectLead)) { goto Cfq0r; } goto KpSAk; HIehI: wqIQN: goto jdPY_; E_Roj: YR6Wl: goto sd91O; fpKI6: if (!($ticket["account_related"] !== '')) { goto rKAj6; } goto V64Sc; Y3wqJ: if (!keyExistsArray(["link_module", "link_id"], $topic)) { goto O7FXL; } goto eePhE; qP_gh: foreach ($ticket["ccs"] as $ccs) { goto qutqv; jxXoL: $id = substr($ccs, $index + 1); goto I9D0n; YuWZF: $ticket["ccs_string"] = $ticket["ccs_string"] . $bu_username["text"]; goto ecUNQ; I9D0n: $name = substr($ccs, 0, $index); goto BkCbY; tOc4P: if ($name == "user") { goto MFHuR; } goto qZWid; D7fcl: BwWO0: goto zd58C; uDd0L: goto BwWO0; goto XDryE; akSF6: if (!isset($bu_username["text"])) { goto MNqhO; } goto YuWZF; cLXD9: Hnv2L: goto D7fcl; qZWid: $bu_username = searchbu($id); goto CoTzH; PeQBm: if ($name == "user") { goto SqRV0; } goto w3bSw; ecUNQ: MNqhO: goto NSz6L; XDryE: SGqJb: goto tOc4P; NSz6L: goto lHP0H; goto ELn7Q; ELn7Q: SqRV0: goto FpL85; AqMGG: goto Hnv2L; goto wAZ4u; u5olV: $ticket["ccs_string"] = $ticket["ccs_string"] . "<br>" . searchnameuser($id); goto cLXD9; w3bSw: $bu_username = searchbu($id); goto akSF6; FpL85: $ticket["ccs_string"] = $ticket["ccs_string"] . searchnameuser($id); goto f2arb; CoTzH: $ticket["ccs_string"] = $ticket["ccs_string"] . "<br>" . @$bu_username["text"]; goto AqMGG; qutqv: $index = strpos($ccs, "_"); goto jxXoL; BkCbY: if ($i > 0) { goto SGqJb; } goto PeQBm; zd58C: $i++; goto u6uHp; u6uHp: tIxXJ: goto N4uYV; wAZ4u: MFHuR: goto u5olV; f2arb: lHP0H: goto uDd0L; N4uYV: } goto ZSuPe; FhjUn: $this->data["listphone"] = $resPhone; goto AHDxo; uQSfd: $this->data["title"] = "Ticket detail: " . $ticket["ticket_id"]; goto En7VX; o3Vfs: KmJSq: goto DdE9M; ig0_x: if (!($ticket["parent_category"] !== $ticket["category"])) { goto lH8Dd; } goto RfbLB; AtThQ: $this->data["titleTab"] = langJS("module_tickets.detailticket") . ": " . $ticket["ticket_id"]; goto ZwP8v; vdpsF: RV92a: goto uJ18y; dkpiN: $this->data["bpm_currentState"] = @$ticket["bpm"]["currentState"]; goto E70TY; FH8ib: $ticket["owner_string"] = searchnameuser($id); goto ZVrik; p2NNX: foreach ($listPhoneAccount as $phoneaccount) { $resPhone[] = ["value" => $phoneaccount, "text" => $phoneaccount . "_" . $account["companyname"], "module" => "accounts", "objectid" => $ticket["account_related"]]; Xrzv7: } goto ErR41; mEgH8: rBNcf: goto ThuNN; mcJwM: WuWuO: goto FH8ib; sre2H: PPG3P: goto cne2A; JZ0XX: $datascope = $this->wf4x_permission->getdatascope($this->module); goto LV5jC; qWfzJ: $this->data["checkCategoryTicket"] = $this->checkCategoryTicket(); goto Bivyb; d9Bxa: foreach ($resultPhoneAccount as $valAccount) { goto h3hki; b2Ic0: bNTkW: goto LHRYJ; LHRYJ: goto OBfyN; goto kBtct; kBtct: bmoaw: goto p16Y3; ZhXgD: OBfyN: goto mDz3M; h3hki: if (is_array($valAccount)) { goto bmoaw; } goto HGq07; HGq07: if (!($valAccount !== '')) { goto bNTkW; } goto V6NTv; p16Y3: $listPhoneAccount = array_merge($listPhoneAccount, $valAccount); goto ZhXgD; V6NTv: $listPhoneAccount[] = $valAccount; goto b2Ic0; mDz3M: eJoDi: goto v6LcN; v6LcN: } goto G7Jii; Ne1DH: $bu_username = searchbu($id); goto BhNC5; YCiL8: $ticket["assignee_string"] = ''; goto kIIcK; ow1GS: goto mZpzv; goto kI50B; pgP_3: if (!in_array($topic["currentuser"]["assignee"], $datascope["listbu"])) { goto YR6Wl; } goto MHndq; OQND1: vHv1R: goto ZbTsH; gMmIo: if (!(array_key_exists("parent_category", $ticket) && $ticket["parent_category"] !== '')) { goto W2lUM; } goto ig0_x; FgevA: $this->load->model("settings/customfield/fieldgroup_m"); goto pGCXq; K5bA1: $ticket["sourcedisplay"] = "port"; goto Cq9bn; WFunY: if (!(is_array($contact) && isset($contact["_id"]))) { goto KOWD_; } goto g9ySC; LIb2d: $ticket["assignee_string"] = $bu_username["text"]; goto pYCBQ; bl31U: $merge_allow = true; goto dU7sY; iBzrB: mZpzv: goto cbZ6n; tsC_l: yiFk8: goto x8G8f; s46W3: if (empty($keyObjectModules_phone)) { goto nNEEp; } goto hc69L; DDPTz: $this->load->model("services/tickets/tickets_m"); goto Bb8IS; Cl8bE: $notify["seen"][] = $this->data["userid"]; goto GMLqq; LAhQB: $ticket["createdtime_string"] = date("H:i:s", $ticket["created"]["time"]); goto UAJHt; wN1ae: JKAM2: goto qfJO1; szXx3: $getPublicFieldContacts = $this->getPublicField($keyObjectContact, $contact); goto N9GiT; SFMya: goto WPeot; goto kSfPN; m3tR7: CQScU: goto fpQFq; fpQFq: $ticket["status"] = $ticket["bpm"]["currentState"]["name"]; goto CdE1h; xkRi1: WPeot: goto teJC_; Sm8NO: $ticket["status_text"] = "module_configprocessticket.status." . strtolower($ticket["status"]) != langJS("module_configprocessticket.status." . strtolower($ticket["status"])) ? langJS("module_configprocessticket.status." . strtolower($ticket["status"])) : $ticket["status"]; goto iBzrB; RfbLB: $parent_category = $this->configcategoryticket_m->db_getbyid($ticket["parent_category"], ["text"]); goto GKRT2; BhNC5: if (!isset($bu_username["text"])) { goto gLpUt; } goto LIb2d; MDDtK: if (!(isset($ticket["mergetype"]) && isset($ticket["mergeprimary"]) && $ticket["mergetype"] === $mergetype && $ticket["mergeprimary"] === true)) { goto gt4Nz; } goto g_7XN; kPLFZ: if (isset($ticket["sla"])) { goto XM9Rn; } goto TUamE; PGtMH: $this->data["slacomment"] = false; goto ZGL_Y; pL3eE: $this->load->model("settings/generalconfig/tags_m"); goto DDPTz; M7vKf: $topic["state"] = isset($topic["state"]) ? $topic["state"] : "new"; goto o5MR5; FKlv9: $this->load->model("settings/configtickets/configmergeticket_m"); goto w81yx; ThuNN: if (empty($getPublicFieldLeads["emailcustom"])) { goto x9xpv; } goto KKrYa; TTZp_: if ($topic["state"] === "new") { goto oAcZ9; } goto MZUr_; v_x_k: if (empty($topic)) { goto gTSSg; } goto BIwnv; T60ja: $ticket["created_string"] = searchnameuser($ticket["created"]["byid"]); goto c_z5Y; T07Uk: $this->data["listemail"] = $listEmail; goto exviB; yfwfA: $client->toUser($this->data["pbx_customer_code"], $this->data["username"], "Notifications_seenTickets", ["id" => $notify["_id"]]); goto psS2H; xCq8R: if (empty($getPublicFieldLeads["phonecustom"])) { goto rBNcf; } goto qllJ4; Lqywh: $ticket["duedate_string"] = $ticket["duedate"] > 0 ? date("d-m-Y H:i:s", $ticket["duedate"]) : ''; goto TtIsF; HmrPv: $distribute = $this->ruledistributes_m->db_getbyid($id); goto gzIGM; vmqBS: goto VAIEU; goto otG0C; S3che: ijicR: goto HIehI; oeRy6: $this->data["checkIDTicket"] = $this->checkIDTicket(); goto f3I6A; fijzC: mqxV8: goto o_oEW; aE70M: $ticket["requester_string"] = $info; goto VJkc9; hZfbP: goto ORg4j; goto p3PnK; wrg45: if (isset($topic["state"])) { goto lsdTy; } goto kDnyv; MMS0K: $this->data["stylepanelright"] = "padding: 0;"; goto ur_3d; RGp2l: Uu73D: goto j_RKv; W3kLW: $workinghours = $this->mongo_db->where("_id", new \MongoDB\BSON\ObjectId($idworkinghour))->getOne("workinghours_default"); goto cjt9r; Lh4QO: $bpmConfig = ["saveHashDB" => true, "module" => "ticket", "ticketData" => ["idticket" => $ticket["_id"], "ticket_id" => $ticket["ticket_id"], "createdtime" => $ticket["created"]["time"]]]; goto AkzKU; KA061: if (!($ticket["sourceid"] !== '')) { goto fXX11; } goto fqic1; cne2A: $this->data["fieldOverview"] = $this->returnGroupOverview(); goto qWfzJ; auyq6: $this->data["fieldAllTicket"] = $customfield->getAllFieldByModule("tickets", []); goto eKRLQ; Upcpb: $ticket["created_string"] = ''; goto M891A; aQq4r: $ticket["created_string"] = $ticket["created"]["byid"]; goto ydB3q; BMw5z: foreach ($listPhoneContact as $phonecontact) { $resPhone[] = ["value" => $phonecontact, "text" => $phonecontact . "_" . $contact["first_name"], "module" => "contacts", "objectid" => $requesters["idmodule"]]; Y91RH: } goto jQ6_W; dcCtH: if ($name == "auto") { goto YwmGc; } goto GFd4d; CisZK: $topic["currentuser"]["name"] = ''; goto udu2B; v2_cR: if (!isset($ticket["tags"])) { goto UCjbA; } goto kKLa_; NIIBz: TuzxK: goto lHwFz; TUamE: $flagWorkingHours = false; goto Ge721; hwruv: $this->load->library("accounts_library"); goto htjfN; HZXDO: $ticket["accountrelated_string"] .= " - " . $getPublicField["phonecustom"]; goto Mzeio; VX766: goto Tn6WO; goto G5L9J; Ho1I1: if (!isset($ticket["link_type"])) { goto XSU7s; } goto sbAxH; XHMmC: cC1dR: goto LKG4i; ywRyy: L180H: goto Ne1DH; t3cR9: $ticket["assignee_string"] = searchnameuser($id); goto lET7h; LwBwF: goto Qx27B; goto mcJwM; MHndq: $checkPermission = true; goto E_Roj; bRO2u: lBhSH: goto E7Aad; xw00t: $ticket["accountrelated_string"] = $account["companyname"]; goto QRT8A; qs2P8: $this->load->library("contacts_library"); goto L3OXG; TQ7gH: goto Z2Il7; goto m3tR7; vCEAx: } catch (Exception $ex) { goto zsDou; WIS81: jTXOz: goto oOg9B; oOg9B: Ang2y: goto Y13ZS; zsDou: switch ($ex->getCode()) { case 50: $this->loadView("error/custom", array_merge($this->data, ["title" => "Ticket Permission", "titleTab" => langJS("module_tickets.detailticket") . ": " . $id, "titleErr" => langJS("validate_response.youruseraccount"), "message" => langJS("module_tickets.msg_nothavepermission")])); goto Ang2y; case 404: $this->loadView("error/404", array_merge($this->data, ["title" => "Error Ticket", "titleTab" => langJS("module_tickets.detailticket") . ": " . $id, "message" => $ex->getMessage()])); goto Ang2y; default: $this->loadView("error/500", array_merge($this->data, ["title" => "Error Ticket", "titleTab" => langJS("module_tickets.detailticket") . ": " . $id, "message" => $ex->getMessage()])); goto Ang2y; } goto WIS81; Y13ZS: } goto Qhs12; LmkT8: KAhs0: goto Y56uX; Z7KuB: if (!($this->_detectBrowserMobileRoutingSetupPage() === true)) { goto KAhs0; } goto roYiQ; roYiQ: $this->loadView("error/custom", array_merge($this->data, ["title" => "Mobile App Required", "titleTab" => '', "titleErr" => "You must use mobile app for this function", "message" => "Thanks you!"])); goto DVsyD; Y56uX: x2_s6: goto svg2r; Qhs12: } public function readfile($idticket) { goto Q23HX; xMPZU: goto E3DVv; goto irsbV; A0Bvs: if ($this->mongo_db->isValidObjectID($idticket)) { goto JVbGw; } goto CL6DU; irsbV: JVbGw: goto n92c0; V2JG7: $collectionModel = new CollectionModel($this->data["pbx_customer_code"], DBMAIN, false, ["timezone" => $this->sessionData["timezone"]]); goto iP16u; pfedT: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("ticket_id", "eq", $idticket), $request); goto zgAAE; nIsyY: $this->tickets_upload_files_m->setCollection($collectionUpFiles); goto pfedT; RCTMi: foreach ($result["data"] as &$log) { goto KhjjB; eGIP9: eSVfQ: goto MFppk; Wvbko: $log["created_username"] = searchnameuser($log["created"]["byid"]); goto U0vpm; U0vpm: if (!($log["created_username"] === false)) { goto ovSvP; } goto ik5d2; ik5d2: $log["created_username"] = $log["created"]["byid"]; goto C90ov; MFppk: ORrGa: goto LKCBM; KhjjB: $log["created_username"] = ''; goto YPiqv; C90ov: ovSvP: goto eGIP9; YPiqv: if (!array_key_exists("created", $log)) { goto eSVfQ; } goto Wvbko; LKCBM: } goto xVn04; Rm53P: $this->load->model("services/tickets/tickets_upload_files_m"); goto V2JG7; ca3k_: goto FuiYY; goto UfmYR; IdwXO: if (is_array($ticket) && count($ticket) > 0 && array_key_exists("created", $ticket)) { goto Q6emj; } goto LdXLl; iP16u: $collectionUpFiles = $collectionModel->NameOneCollection("tickets_upload_files", $ticket["created"]["time"]); goto nIsyY; Q23HX: header("Content-Type: application/json"); goto A0Bvs; n92c0: $request = json_decode(file_get_contents("php://input")); goto clzS1; xVn04: Rn2Tl: goto iZuGB; j3kFg: FuiYY: goto HbbMM; c1N8s: $this->tickets_library->db_setcollection($idticket); goto slVSV; zgAAE: $result = $this->tickets_upload_files_m->db_kendogrid_read($request); goto RCTMi; fxppv: $this->load->library("tickets_library"); goto c1N8s; HbbMM: E3DVv: goto EUAvQ; clzS1: $this->load->model("services/tickets/tickets_m"); goto fxppv; LdXLl: echo json_encode(["data" => [], "total" => [], "errors" => "Ticket not found"]); goto ca3k_; slVSV: $ticket = $this->tickets_m->db_getbyid($idticket, ["created"]); goto IdwXO; UfmYR: Q6emj: goto Rm53P; iZuGB: echo json_encode($result); goto j3kFg; CL6DU: echo json_encode(["data" => [], "total" => [], "errors" => "Object wrong"]); goto xMPZU; EUAvQ: } public function addfile($idticket) { try { goto qhEne; ym2bL: if (!($uploadmultifiles["status"] === true && array_key_exists("data", $uploadmultifiles))) { goto cUs9P; } goto ptTU2; lLP5k: wZ3DL: goto XDl0y; xS9Wv: if (count($ticket) > 0 && array_key_exists("created", $ticket)) { goto HKlP5; } goto e7AJT; CGyEV: $uploadmultifiles = $this->wf_cdn->uploadmultifiles($this->module . "/" . @$ticket["cdn_prepare"] . "/" . $idticket . "/upload", "files"); goto ym2bL; nN_AY: d_bkn: goto KBBts; RpflE: goto wn6Zo; goto Ym_10; XDl0y: $this->load->library("bpm_library"); goto XpxY0; gFebu: $ticket = $this->tickets_m->db_getbyid($idticket, ["cdn_prepare", "ticket_id", "assignee_history", "assignee", "assignee_info", "ccs", "created", "bpm"]); goto b5mvn; PUX3V: if (!array_key_exists("files", $_FILES)) { goto d_bkn; } goto bfJdz; qlLN8: jkGFJ: goto CEDcs; W1I2O: $collectionModel = new CollectionModel($this->data["pbx_customer_code"], DBMAIN, false, ["timezone" => $this->sessionData["timezone"]]); goto nHBGL; W6Uwq: if (!$processEnded["stt"]) { goto xqr0Z; } goto m3BLC; fd6oY: k14mX: goto RE78s; Tg9B0: $this->tickets_upload_files_m->setCollection($this->data["pbx_customer_code"] . "_tickets_upload_files_" . date("Y", $ticket["created"]["time"])); goto o7BwN; k0_RQ: $dataCreated = []; goto PUX3V; cepFC: cUs9P: goto nN_AY; Nsf2b: exit; goto YGr2m; z8z01: if (!($permission["stt"] === false)) { goto wZ3DL; } goto HcLmC; elexn: wn6Zo: goto WVP4k; kt4N0: $this->load->model("services/tickets/tickets_m"); goto S0Q3N; yDZ2K: $this->tickets_timeline_m->setCollection($collectionTimeline); goto AnpX3; YGr2m: KSwXN: goto elexn; o7BwN: foreach ($dataCreated["upload_data"] as $index => $file) { goto tN5WW; TW479: $this->tickets_upload_files_m->db_insert(array_merge($file, ["ticket_id" => $idticket, "from" => "manual"])); goto r181C; r181C: TdY7W: goto N44NP; tN5WW: $file["nameReal4search"] = toStringNoUTF8($file["nameReal"]); goto TW479; N44NP: } goto fuUiF; OPwdm: goto KSwXN; goto fd6oY; xoVT3: echo json_encode(["stt" => true]); goto Nsf2b; AnpX3: $this->tickets_timeline_m->db_insert(["ticket_id" => $idticket, "type" => "addfile", "logChange" => $dataCreated["upload_data"], "created" => ["byid" => $this->data["userid"], "time" => time()]], ["userpermissionmodify" => false]); goto NdNL7; CEDcs: $this->bpm_library->settingConfig($bpmConfig); goto Oq6ti; K6YMV: $bpmConfig["process_in_db"] = true; goto H9W3c; bfJdz: $this->load->library("wf_cdn"); goto CGyEV; Vgc3c: exit; goto VP3Vm; xbX9I: $pathBPM = @$ticket["bpm"]["flowCDN"]["path"] . @$ticket["bpm"]["flowCDN"]["nameCDN"]; goto Q3PPO; ZXYPv: xqr0Z: goto xS9Wv; NdNL7: $this->load->model("services/tickets/tickets_upload_files_m"); goto Tg9B0; nHBGL: $collectionTimeline = $collectionModel->NameOneCollection("tickets_timeline", $ticket["created"]["time"]); goto yDZ2K; H9W3c: $pathBPM = "checking_process_db"; goto qlLN8; S0Q3N: $this->load->library("tickets_library"); goto VSyfN; KBBts: if (array_key_exists("upload_data", $dataCreated)) { goto k14mX; } goto hP5Ne; XpxY0: $bpmConfig = ["saveHashDB" => true, "module" => "ticket", "ticketData" => ["idticket" => $ticket["_id"], "ticket_id" => $ticket["ticket_id"], "createdtime" => $ticket["created"]["time"]]]; goto xbX9I; erZbR: exit; goto ZXYPv; hP5Ne: throw new Exception("File not transfer"); goto OPwdm; Ym_10: HKlP5: goto k0_RQ; RE78s: $this->load->model("services/tickets/tickets_timeline_m"); goto W1I2O; m3BLC: echo json_encode(["stt" => false, "msg" => langJS("module_configprocessticket.workflow_isended")]); goto erZbR; Us15N: echo json_encode(["stt" => false, "msg" => langJS("module_tickets.detail.notfound_msg")]); goto Vgc3c; qhEne: if ($this->mongo_db->isValidObjectID($idticket)) { goto gEFt_; } goto Us15N; b5mvn: $permission = $this->tickets_library->permission("checkpermission", $ticket); goto z8z01; Oq6ti: $processEnded = $this->bpm_library->checkIsEnded($pathBPM, $ticket["bpm"]["token"]); goto W6Uwq; ptTU2: $dataCreated["upload_data"] = $uploadmultifiles["data"]; goto cepFC; HcLmC: http_response_code(403); goto G4vDR; fuUiF: sUL7I: goto xoVT3; Q3PPO: if (!isset($ticket["bpm"]["process_in_db"])) { goto jkGFJ; } goto K6YMV; VP3Vm: gEFt_: goto kt4N0; VSyfN: $this->tickets_library->db_setcollection($idticket); goto gFebu; G4vDR: exit; goto lLP5k; e7AJT: throw new Exception("Ticket not found"); goto RpflE; WVP4k: } catch (Exception $ex) { http_response_code(500); echo $ex->getMessage() . " ~~ " . $ex->getLine(); } } public function readlog($idticket) { goto VWciQ; SHzbA: $this->load->model("services/tickets/tickets_m"); goto bXnFH; WZdP2: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("ticket_id", "eq", $idticket), $request); goto XTPLU; G4zxP: $this->load->model("crm/contacts_m"); goto ARCls; c3Yjf: zLcwm: goto h4eJD; cBuSy: z8dwq: goto OC4lG; weSUk: if (is_array($ticket) && count($ticket) > 0 && array_key_exists("created", $ticket)) { goto zLcwm; } goto RJQsv; YCRM8: $moduleTags = new ModuleTags(false, $this->data["pbx_customer_code"]); goto DVaIL; Y0Oq5: exit; goto hsAJT; rp0uQ: $customfield = new Field(false, $this->data["pbx_customer_code"], $this->data["language"]); goto WRb3h; h4eJD: $this->load->model("services/tickets/tickets_timeline_m"); goto c9c0p; AL6PE: $permission = $this->tickets_library->permission("checkpermission", $ticket); goto wj5Rd; kW9IA: $request = json_decode(file_get_contents("php://input")); goto SHzbA; y58u2: echo json_encode($result); goto QEWzP; nenLA: $this->tickets_library->db_setcollection($idticket); goto mNG2d; dr36u: http_response_code(403); goto Y0Oq5; mNG2d: $ticket = $this->tickets_m->db_getbyid($idticket, ["ticket_id", "assignee_history", "assignee", "assignee_info", "ccs", "created"]); goto AL6PE; ENo0Y: echo json_encode(["data" => [], "total" => [], "errors" => "Object wrong"]); goto tK2kW; VWciQ: header("Content-Type: application/json"); goto YTI5T; DVaIL: foreach ($result["data"] as &$log) { goto Y2mld; PinxW: KD7EB: goto sPFD6; XIBu4: if (is_array($datatoAccount) && $datatoAccount["companyname"] !== '') { goto bYnPN; } goto Z_nWi; X86TJ: if (empty($log["logChange"]["tags"]["add"])) { goto I57nQ; } goto dMrtZ; pjzQL: if (empty($log["logChange"])) { goto OH4Ru; } goto g72gw; abSml: $bu_username = searchbu($id); goto S119H; xhE5n: saw0S: goto KSA0U; X9woF: $log["created_username"] = ''; goto Ill5w; m1Tqx: $index = explode("_", $log["ticket"]["assignee"]); goto f2Kfq; HTFif: goto OWcOB; goto uAWG6; iK3Jo: AemFt: goto QHY7F; MbNhI: if (!(isset($log["logChange"]["account_related"]["from"]) && $log["logChange"]["account_related"]["to"] !== '')) { goto i8rVM; } goto CDszj; zrC8S: $datafrom = $this->requesters_m->db_oneoptions([], ["where" => ["_id" => new \MongoDB\BSON\ObjectID($log["logChange"]["requester_id"]["from"])]]); goto FwtcF; l2HWT: $template = $this->configtemplateticket_m->db_oneoptions([], ["where" => ["_id" => new \MongoDB\BSON\ObjectID($log["ticket"]["template_id"])]]); goto YEc56; lFb5A: $log["formAdvance"] = json_decode($log["formAdvance"], true); goto rvj0A; rz9yL: $log["logChange"]["timepending_string"] = date("d/m/Y H:i:s", $log["logChange"]["timepending"]); goto qShh7; FRXw2: Ghn0M: goto X9woF; UXxtV: fscyF: goto FRXw2; ZKwBS: if (isset($datatoAccount)) { goto btOH6; } goto nvBAK; M16s0: $log["created_username"] = $log["created"]["byid"]; goto uQEKD; w9sOv: goto nP6gj; goto bQDhW; sPFD6: if (empty($log["logChange"]["tags"]["to"])) { goto gfkpZ; } goto gC7TV; zO_KS: $log["logChange"]["requester_id"]["from"] = $datafrom["username"]; goto aJX02; eawwJ: btOH6: goto XIBu4; UkTyL: $log["logChange"]["account_related"]["from"] = ''; goto xARP0; CUTS0: if (!(!isset($distribute) || empty($distribute))) { goto AVxvF; } goto QKubp; pX_EU: $log["logChange"]["requester_id"]["from"] = $datafrom["name"]; goto q3RaL; dGes8: OH4Ru: goto ZtegU; Yp2pE: I57nQ: goto wFLxM; q7nem: if (is_array($datafromAccount) && $datafromAccount["companyname"] !== '') { goto JgL3s; } goto GT9NM; MRluN: $to =& $log["logChange"]["owner"]["to"]; goto s9g6z; bUedT: QTtaf: goto q7nem; uEzsC: $macro_orginal = $this->macroticket_m->db_getbyid($log["macro_id"], ["name"]); goto fzvL7; O0PKM: $to = $bu_username["text"]; goto hI7j5; c7ANW: $type = substr($from, 0, $idx); goto cONKF; tf_vL: if (!(!empty($log["logChange"]) && !empty($log["logChange"]["tags"]))) { goto Ghn0M; } goto JhBLM; v_FS5: $to = searchnameuser($id); goto MNFce; dMrtZ: $log["logChange"]["tags"]["add"] = $moduleTags->getTagsObject($log["logChange"]["tags"]["add"], ["type" => "name"]); goto Yp2pE; qyGKB: $datato = $this->requesters_m->db_oneoptions([], ["where" => ["_id" => new \MongoDB\BSON\ObjectID($log["logChange"]["requester_id"]["to"])]]); goto GfkG2; g72gw: foreach ($log["logChange"] as $alias => $change) { goto kIxOA; Q1ray: oKg7t: goto TylfH; D0eFJ: odzvu: goto DlOkz; zm0ar: $contact = $this->contacts_m->db_getbyid($change["to"]); goto eT3L0; jgTL0: iQP6T: goto ALrY8; XuW7l: if (!empty($contact)) { goto iMGHu; } goto liNRE; GyM1y: x4aj5: goto XuW7l; WFBbt: goto u2HnX; goto vlS_q; tUS8p: if (!empty($lead)) { goto zst5F; } goto Xj1tk; eT3L0: $account = $this->accounts_m->db_getbyid($change["to"]); goto mLXda; vlS_q: iMGHu: goto x9alF; QxY1H: if (!empty($account)) { goto mSils; } goto KW2Q2; KzXYP: goto FKgmD; goto Zu2dL; YicrV: nBMAt: goto Q6L2G; DlOkz: $log["logChange"][$alias]["to"] = $contact["first_name"]; goto L2Qdl; OO3Fv: goto ShjH8; goto D0eFJ; Xj1tk: $log["logChange"][$alias]["from"] = $change["from"]; goto kkEiN; kkEiN: goto GC9dy; goto KjYYA; i9N0y: $lead = $this->leads_m->db_getbyid($change["from"]); goto GyM1y; Zu2dL: mSils: goto Y4dXm; x9alF: $log["logChange"][$alias]["from"] = $contact["first_name"]; goto EMdGS; Ng1No: z7sBR: goto Xi7UX; EMdGS: u2HnX: goto YicrV; uzP0x: f4s0C: goto flxPo; j0Gox: if (gettype($change["to"]) == "string") { goto ADVAl; } goto fVR4K; JyAuG: $contact = $this->contacts_m->db_getbyid($change["from"]); goto wAkRr; PL2Xy: FKgmD: goto OO3Fv; Q6L2G: if (!$this->mongo_db->isValidObjectID($change["to"])) { goto cvWbl; } goto j0Gox; mLXda: $lead = $this->leads_m->db_getbyid($change["to"]); goto U_OYl; flxPo: $log["logChange"][$alias]["to"] = $lead["first_name"]; goto Suwsd; Uwqo2: GC9dy: goto augtp; Q4zI0: o0VNE: goto Ng1No; TylfH: goto x4aj5; goto tzFWh; djb4v: if (!empty($contact)) { goto odzvu; } goto QxY1H; wAkRr: $account = $this->accounts_m->db_getbyid($change["from"]); goto i9N0y; Y4dXm: $log["logChange"][$alias]["to"] = $account["companyname"]; goto PL2Xy; KW2Q2: if (!empty($lead)) { goto f4s0C; } goto Um6K5; VN9KQ: hVjL4: goto WFBbt; sUCQA: foreach ($change["from"] as $from) { goto nlV_u; ctiJv: $account = $this->accounts_m->db_getbyid($from); goto oPs2I; oPs2I: $lead = $this->leads_m->db_getbyid($from); goto NnPhK; nlV_u: $contact = $this->contacts_m->db_getbyid($from); goto ctiJv; NnPhK: Br2FP: goto em2sF; em2sF: } goto Q1ray; d9c35: goto aOPCX; goto uzP0x; Ls_6z: goto f8_Ep; goto nkDR2; liNRE: if (!empty($account)) { goto iQP6T; } goto tUS8p; Suwsd: aOPCX: goto KzXYP; kIxOA: if (!(isset($change["from"]) && isset($change["to"]))) { goto o0VNE; } goto p2MqA; U_OYl: f8_Ep: goto djb4v; tzFWh: OJ12H: goto JyAuG; p2MqA: if (!$this->mongo_db->isValidObjectID($change["from"])) { goto nBMAt; } goto bDY2E; fVR4K: foreach ($change["to"] as $to) { goto JdLvo; t5JiG: $account = $this->accounts_m->db_getbyid($to); goto O2Uns; JdLvo: $contact = $this->contacts_m->db_getbyid($to); goto t5JiG; O2Uns: $lead = $this->leads_m->db_getbyid($to); goto RMqR0; RMqR0: ZLGFm: goto pVKmL; pVKmL: } goto l4gAo; Um6K5: $log["logChange"][$alias]["to"] = $change["to"]; goto d9c35; dC0en: $log["logChange"][$alias]["from"] = $lead["first_name"]; goto Uwqo2; ALrY8: $log["logChange"][$alias]["from"] = $account["companyname"]; goto VN9KQ; KjYYA: zst5F: goto dC0en; augtp: goto hVjL4; goto jgTL0; L2Qdl: ShjH8: goto mX1Am; mX1Am: cvWbl: goto Q4zI0; l4gAo: n9KuB: goto Ls_6z; bDY2E: if (gettype($change["from"]) == "string") { goto OJ12H; } goto sUCQA; nkDR2: ADVAl: goto zm0ar; Xi7UX: } goto ZR78T; dud_5: huCNd: goto tDi7A; AWH4c: $distribute = $this->ruledistributes_m->db_getbyid($index[1]); goto CUTS0; q3RaL: RM3gc: goto iBKrA; CA4nD: OWcOB: goto Elh1j; ngvmV: $id = substr($from, $idx + 1); goto c7ANW; tbdYM: MEkwg: goto FXZBZ; i04RM: $log["logChange"]["requester_id"]["from"] = ''; goto w9sOv; g3ITM: if (!(isset($log["formAdvance"]) && is_string($log["formAdvance"]) && $log["formAdvance"] !== '')) { goto MVLMB; } goto lFb5A; GT9NM: $log["logChange"]["account_related"]["from"] = ''; goto mqoMv; xARP0: goto mHJKF; goto bUedT; NsTzi: if (isset($datafromAccount)) { goto QTtaf; } goto UkTyL; Wj7BC: bYnPN: goto SA3W5; WGOvo: goto ECTo9; goto Wj7BC; QulmF: if (!(!isset($distribute) || empty($distribute))) { goto DrtPj; } goto tn2G7; a0PCk: if (!(!empty($log["logChange"]) && !empty($log["logChange"]["owner"]))) { goto gZu7q; } goto apaBI; ZtegU: GcMFN: goto JGWEq; Er7O2: DrtPj: goto ubsHF; Y2mld: if (!(isset($log["ticket"]["template_id"]) && !empty($log["ticket"]["template_id"]))) { goto MEkwg; } goto aHLqv; iqXTj: LrtXl: goto raB6B; PSw0k: gZu7q: goto KuMC2; QVzTJ: $from = ''; goto Ms8R1; xDj4T: $from =& $log["logChange"]["assignee"]["from"]; goto NbTH_; mmG_u: $log["macro_name"] = $macro_orginal["name"]; goto XLkOc; yea72: tdKLN: goto rsF1l; uQEKD: nLPi3: goto xhE5n; CK3RL: goto AemFt; goto iqXTj; Iusp7: AVxvF: goto PiN63; cbRm6: $log["logChange"]["tags"]["from"] = $moduleTags->getTagsObject($log["logChange"]["tags"]["from"], ["type" => "name"]); goto PinxW; IKVxL: ECTo9: goto NVJ1H; OY6SY: C2sZU: goto pX_EU; mWK34: tPXsh: goto g3ITM; Kn64c: $datafromAccount = $this->accounts_m->db_oneoptions([], ["where" => ["_id" => new \MongoDB\BSON\ObjectID($log["logChange"]["account_related"]["from"])], "where_ne" => ["delete" => 1]]); goto NsTzi; dHH_k: if (empty($log["logChange"]["tags"]["from"])) { goto KD7EB; } goto cbRm6; QHY7F: YG8yY: goto cSwka; g9XVg: if (!isset($log["logChange"]["timepending"])) { goto N6fLY; } goto rz9yL; GfkG2: if (isset($datato)) { goto huCNd; } goto uyLKc; FwtcF: if (isset($datafrom)) { goto Rvn5D; } goto i04RM; iBKrA: nP6gj: goto qyGKB; AfqJp: OxBz2: goto a0PCk; aHLqv: $this->load->model("settings/configtickets/configtemplateticket_m"); goto l2HWT; rf5pO: if ($type == "user") { goto fD0ob; } goto uNge6; MNFce: mv2UO: goto tplAW; DJjYU: $type = substr($to, 0, $idx); goto rf5pO; gc3XY: $this->load->model("settings/configtickets/macroticket_m"); goto uEzsC; JhBLM: if (empty($log["logChange"]["tags"]["origin"])) { goto ZfKE9; } goto bAdke; QJ9jL: $log["logChange"]["requester_id"]["to"] = $datato["username"]; goto HTFif; KuMC2: if (!(!empty($log["logChange"]) && !empty($log["logChange"]["assignee"]))) { goto DrVJi; } goto xDj4T; NVJ1H: hRGRL: goto kCATW; bJlUg: $this->load->model("crm/accounts_m"); goto HNhgD; Ow5NW: x6XrY: goto pjzQL; vHI04: ym4EM: goto Ow5NW; cONKF: if ($type == "user") { goto LrtXl; } goto abSml; wFLxM: if (empty($log["logChange"]["tags"]["remove"])) { goto I1rGm; } goto U2giX; P8HvD: $to = ''; goto MqW3t; W7sAE: $index = explode("_", $to); goto J7QTY; YEc56: if (empty($template)) { goto vUnKn; } goto RmOOj; qShh7: N6fLY: goto AfqJp; ZR78T: drll6: goto dGes8; iOP0w: if (!(!isset($distribute) || empty($distribute))) { goto rle9O; } goto YfgBd; Ee0a8: $this->load->model("services/tickets/requesters_m"); goto zrC8S; YfgBd: $distribute["name"] = langJS("module_ruledistributes.distribute_deleted"); goto ssXxQ; s9g6z: $idx = strpos($to, "_"); goto OiU_G; rsF1l: $to =& $log["logChange"]["assignee"]["to"]; goto W7sAE; raB6B: $from = searchnameuser($id); goto iK3Jo; D1nBI: if (!($log["type"] == "afterstart" || $log["type"] == "action")) { goto x6XrY; } goto eS3Rx; gNSOr: vUnKn: goto tbdYM; PiN63: $to = $distribute["name"]; goto h0V9b; SA3W5: $log["logChange"]["account_related"]["to"] = $datatoAccount["companyname"]; goto IKVxL; h0V9b: qBzM3: goto FSBve; goisB: mHJKF: goto zcQyo; QKubp: $distribute["name"] = langJS("module_ruledistributes.distribute_deleted"); goto Iusp7; auCQJ: $this->load->model("settings/ruledistributes/ruledistributes_m"); goto AWH4c; ubsHF: $log["ticket"]["assignee"] = $distribute["name"]; goto TyZ2S; apaBI: if ($log["logChange"]["owner"]["from"] !== '') { goto zUAFt; } goto QVzTJ; nIzmA: if (!(isset($index[0]) && $index[0] == "auto")) { goto tdKLN; } goto UixOj; LklVi: if (!($log["created_username"] === false)) { goto nLPi3; } goto M16s0; KSA0U: if (!($log["type"] == "pendingsla")) { goto OxBz2; } goto iQp8U; kCATW: i8rVM: goto vHI04; J7QTY: if (!(isset($index[0]) && $index[0] == "auto")) { goto qBzM3; } goto auCQJ; UixOj: $this->load->model("settings/ruledistributes/ruledistributes_m"); goto jAP3i; J6Jxl: if (empty($log["macro_id"])) { goto fscyF; } goto gc3XY; QBv00: $idx = strpos($from, "_"); goto ngvmV; j9163: $distribute = $this->ruledistributes_m->db_getbyid($index[1]); goto QulmF; U2giX: $log["logChange"]["tags"]["remove"] = $moduleTags->getTagsObject($log["logChange"]["tags"]["remove"], ["type" => "name"]); goto gUTRj; gC7TV: $log["logChange"]["tags"]["to"] = $moduleTags->getTagsObject($log["logChange"]["tags"]["to"], ["type" => "name"]); goto YQtu4; RmOOj: $log["ticket"]["template_name"] = $template["name"]; goto gNSOr; YQtu4: gfkpZ: goto J6Jxl; hI7j5: goto mv2UO; goto TCICZ; jAP3i: $distribute = $this->ruledistributes_m->db_getbyid($index[1]); goto iOP0w; tn2G7: $distribute["name"] = langJS("module_ruledistributes.distribute_deleted"); goto Er7O2; Z_nWi: $log["logChange"]["account_related"]["to"] = ''; goto WGOvo; WURjv: goto eSYhH; goto dud_5; FXZBZ: if (!(isset($log["ticket"]["assignee"]) && !empty($log["ticket"]["assignee"]))) { goto zc17U; } goto m1Tqx; cXHp_: $log["logChange"]["requester_id"]["to"] = $datato["name"]; goto CA4nD; Myku1: zc17U: goto JcSuL; NbTH_: $index = explode("_", $from); goto nIzmA; I_t8i: $from = $distribute["name"]; goto yea72; f2Kfq: if (!(isset($index[0]) && $index[0] == "auto")) { goto Ajaof; } goto iDmht; uNge6: $bu_username = searchbu($id); goto O0PKM; bAdke: $log["logChange"]["tags"]["origin"] = $moduleTags->getTagsObject($log["logChange"]["tags"]["origin"], ["type" => "name"]); goto dQHrr; bQDhW: Rvn5D: goto YSzRn; uyLKc: $log["logChange"]["requester_id"]["to"] = ''; goto WURjv; dQHrr: ZfKE9: goto X86TJ; YSzRn: if (is_array($datafrom) && $datafrom["name"] !== '') { goto C2sZU; } goto zO_KS; fZ6TW: $log["created_username"] = searchnameuser($log["created"]["byid"]); goto LklVi; TCICZ: fD0ob: goto v_FS5; mqoMv: goto D4Dqa; goto YZvGX; TyZ2S: Ajaof: goto Myku1; VvXGd: zUAFt: goto tKtAO; S119H: $from = $bu_username["text"]; goto CK3RL; XLkOc: VYOl6: goto UXxtV; MqW3t: goto u5xgF; goto goj0T; aJX02: goto RM3gc; goto OY6SY; uAWG6: cGR3P: goto cXHp_; goj0T: Oc16s: goto MRluN; Ms8R1: goto YG8yY; goto VvXGd; tRbPp: $log["logChange"]["account_related"]["from"] = $datafromAccount["companyname"]; goto ZDpEH; ZDpEH: D4Dqa: goto goisB; eS3Rx: if (!(!empty($log["logChange"]) && !empty($log["logChange"]["requester_id"]))) { goto Z3MgU; } goto Ee0a8; cSwka: if ($log["logChange"]["owner"]["to"] !== '') { goto Oc16s; } goto P8HvD; nvBAK: $log["logChange"]["account_related"]["to"] = ''; goto HbETP; EwLgE: Z3MgU: goto DHsmf; zcQyo: MRPyD: goto MbNhI; HbETP: goto hRGRL; goto eawwJ; gUTRj: I1rGm: goto dHH_k; fzvL7: if (empty($macro_orginal)) { goto VYOl6; } goto mmG_u; iQp8U: $log["logChange"]["timepending_string"] = ''; goto g9XVg; Ill5w: if (!array_key_exists("created", $log)) { goto saw0S; } goto fZ6TW; tplAW: u5xgF: goto PSw0k; JcSuL: if (!(isset($log["comment"]) && is_string($log["comment"]) && $log["comment"] !== '')) { goto tPXsh; } goto EErE6; EErE6: $log["comment"] = json_decode($log["comment"], true); goto mWK34; tKtAO: $from =& $log["logChange"]["owner"]["from"]; goto QBv00; Elh1j: eSYhH: goto EwLgE; CDszj: $datatoAccount = $this->accounts_m->db_oneoptions([], ["where" => ["_id" => new \MongoDB\BSON\ObjectID($log["logChange"]["account_related"]["to"])], "where_ne" => ["delete" => 1]]); goto ZKwBS; FSBve: DrVJi: goto D1nBI; OiU_G: $id = substr($to, $idx + 1); goto DJjYU; tDi7A: if (is_array($datato) && $datato["name"] !== '') { goto cGR3P; } goto QJ9jL; HNhgD: if (!(isset($log["logChange"]["account_related"]["from"]) && $log["logChange"]["account_related"]["from"] !== '')) { goto MRPyD; } goto Kn64c; rvj0A: MVLMB: goto tf_vL; ssXxQ: rle9O: goto I_t8i; iDmht: $this->load->model("settings/ruledistributes/ruledistributes_m"); goto j9163; YZvGX: JgL3s: goto tRbPp; DHsmf: if (!(!empty($log["logChange"]) && !empty($log["logChange"]["account_related"]))) { goto ym4EM; } goto bJlUg; JGWEq: } goto dA9L1; hsAJT: tlSxB: goto weSUk; OC4lG: lU3a8: goto Q1mfp; wj5Rd: if (!($permission["stt"] === false)) { goto tlSxB; } goto dr36u; dA9L1: O42ei: goto rp0uQ; ARCls: $this->load->model("crm/leads_m"); goto nenLA; Z8vpB: $this->load->model("crm/accounts_m"); goto G4zxP; QDw2b: $collectionModel = new CollectionModel($this->data["pbx_customer_code"], DBMAIN, false, ["timezone" => $this->sessionData["timezone"]]); goto vGJ9q; bXnFH: $this->load->library("tickets_library"); goto Z8vpB; XTPLU: $result = $this->tickets_timeline_m->db_kendogrid_read($request); goto YCRM8; vGJ9q: $collectionTimeline = $collectionModel->NameOneCollection("tickets_timeline", $ticket["created"]["time"]); goto oIQc1; oIQc1: $this->tickets_timeline_m->setCollection($collectionTimeline); goto WZdP2; qksJ4: goto z8dwq; goto c3Yjf; c9c0p: $this->load->model("settings/generalconfig/tags_m"); goto QDw2b; RJQsv: echo json_encode(["data" => [], "total" => [], "errors" => "Ticket not found"]); goto qksJ4; MheTs: QgUT7: goto kW9IA; YTI5T: if ($this->mongo_db->isValidObjectID($idticket)) { goto QgUT7; } goto ENo0Y; WRb3h: $datafield = $customfield->getAllFieldByModule($this->module); goto wsu0N; tK2kW: goto lU3a8; goto MheTs; QEWzP: exit; goto cBuSy; wsu0N: $result["datafield"] = $datafield; goto y58u2; Q1mfp: } public function readinteraction($idticket) { goto bgkaS; Yh2p5: $endtime = time(); goto lsTnQ; cFPxT: $starttime = $this->wf4xconfig["timestamp"]; goto krw8A; WiVDi: echo json_encode($dataResponse); goto HOg09; EYFfX: if (is_array($ticket) && count($ticket) > 0 && array_key_exists("created", $ticket)) { goto T3AVA; } goto ZU3Gm; lsTnQ: if (!(isset($ticket["bpm"]) && is_array($ticket["bpm"]) && isset($ticket["bpm"]["isEnded"]) && $ticket["bpm"]["isEnded"] && isset($ticket["bpm"]["lastactive"]) && isset($ticket["bpm"]["lastactive"]["time"]))) { goto YOI6R; } goto KgPES; ylOMb: $dataResponse = $this->interaction_library->get($request, ["starttime" => $starttime, "endtime" => $endtime]); goto WiVDi; HOg09: exit; goto SvuPC; KyBxm: if (!isset($this->wf4xconfig["timestamp"])) { goto A0B94; } goto cFPxT; krw8A: A0B94: goto Yh2p5; GoVln: Rb8NU: goto EYFfX; PxXkc: $filter_ticket = $this->mongodatasourceresult->initFilterWithSub("or", [$this->mongodatasourceresult->initFilter("ticket_id", "eq", $ticket["ticket_id"]), $this->mongodatasourceresult->initFilterWithSub("and", [$this->mongodatasourceresult->initFilter("object_id", "eq", $idticket), $this->mongodatasourceresult->initFilter("object_type", "eq", "tickets")])]); goto w_4_o; p2Iwc: YOI6R: goto ylOMb; fbbq2: $this->tickets_library->db_setcollection($idticket); goto LG5TZ; FEeUR: wSVoB: goto jrev7; tyEQA: $request = json_decode(file_get_contents("php://input")); goto GFoji; jzuWT: $starttime = $ticket["created"]["time"]; goto KyBxm; idDWN: $typeOfInteraction = $this->interaction_library->getTypeOfInteractionByChannels($channels, ["call" => ["call", "callobjectfrom_tickets"], "email" => ["emailobjectfrom_tickets"], "sms" => ["smsobjectfrom_tickets"], "campaign" => []]); goto Awsbe; JZRPd: $channels = []; goto Q2qr4; khDuU: F38by: goto idDWN; ZU3Gm: echo json_encode(["data" => [], "total" => [], "errors" => "Ticket not found"]); goto tce89; KGYfF: HKAA9: goto PxXkc; KLkQE: echo json_encode(["data" => [], "total" => [], "errors" => "Object wrong"]); goto pDOVH; oggSP: exit; goto GoVln; UUvRV: if ($this->mongo_db->isValidObjectID($idticket)) { goto aNWEy; } goto KLkQE; KgPES: $endtime = $ticket["bpm"]["lastactive"]["time"]; goto p2Iwc; zzw_h: goto HKAA9; goto FEeUR; w_4_o: $this->mongodatasourceresult->addFilterRequest($filter_ticket, $request); goto jzuWT; fUoke: $permission = $this->tickets_library->permission("checkpermission", $ticket); goto qGXgA; vOHKs: aNWEy: goto tyEQA; Q2qr4: if (!(property_exists($request, "channel") && is_array($request->channel))) { goto F38by; } goto M_V0K; tce89: goto IHou7; goto ensTZ; uSwXH: http_response_code(403); goto oggSP; k6xb4: $this->load->library("interaction_library"); goto JZRPd; SvuPC: IHou7: goto id3AG; bgkaS: header("Content-Type: application/json"); goto UUvRV; Awsbe: if (count($typeOfInteraction) > 0) { goto wSVoB; } goto kw17b; ensTZ: T3AVA: goto k6xb4; NW8A7: exit; goto zzw_h; GFoji: $this->load->model("services/tickets/tickets_m"); goto jeMDD; jeMDD: $this->load->library("tickets_library"); goto fbbq2; LG5TZ: $ticket = $this->tickets_m->db_getbyid($idticket, ["ticket_id", "bpm", "assignee_history", "assignee", "assignee_info", "ccs", "created", "requester_id", "account_related"]); goto fUoke; M_V0K: $channels = $request->channel; goto khDuU; kw17b: echo json_encode(["data" => [], "total" => [], "errors" => "Interaction empty"]); goto NW8A7; pDOVH: goto MfzCM; goto vOHKs; id3AG: MfzCM: goto tldbn; jrev7: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("type", "in", $typeOfInteraction), $request); goto KGYfF; qGXgA: if (!($permission["stt"] === false)) { goto Rb8NU; } goto uSwXH; tldbn: } public function gettingparam4logdetail($idticket) { try { goto ZdFXa; dVTvD: $this->load->library("accounts_library"); goto JIBLm; PIx83: i6MjL: goto uxF4w; F48yc: HGYXu: goto tO_rd; n10jx: $requesters = $this->requesters_m->db_getbylistid($listidrequester, ["name", "username", "phone", "email", "frommodule", "idmodule"]); goto b5DU6; Yd3AT: $result = []; goto lS1RT; IkL0E: if (!(count($listidrequester) > 0)) { goto ZbvhL; } goto tdl3k; EKc2T: if (!array_key_exists("category", $request)) { goto wobYf; } goto ty1uP; tdl3k: $this->load->model("services/tickets/requesters_m"); goto n10jx; wDlTG: foreach ($listidrequester as $valueID) { goto NC6fQ; XtL_8: bK6fM: goto rvGNg; dhFAi: $listid[] = new \MongoDB\BSON\ObjectID($valueID); goto XtL_8; NC6fQ: if (!$this->mongo_db->isValidObjectID($valueID)) { goto bK6fM; } goto dhFAi; rvGNg: tys_G: goto SkanX; SkanX: } goto PIx83; bRt7X: throw new Exception("Ticket not found"); goto PSEwi; ePQ5i: $this->load->model("services/tickets/tickets_m"); goto C0HfV; C0HfV: $this->load->library("tickets_library"); goto NcLCA; lS1RT: if ($this->mongo_db->isValidObjectID($idticket)) { goto UQisg; } goto bRt7X; ITb4D: $listidrequester = []; goto ksKo0; DTS_0: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("_id", "in", $listid), $filter); goto eN2Bw; b5DU6: foreach ($requesters as $requester) { goto RLTgJ; OhSwO: nb8bd: goto MEjis; WTwPl: if (preg_match("/\S/", $requester["name"]) === 1) { goto M30vW; } goto RDPIc; HaKfm: $name = $requester["name"]; goto ydva1; xzir9: $result["requester_id_" . $requester["_id"]] .= " - " . $requester["phone"]; goto OOt9N; g2Y4y: Nn_bF: goto OhSwO; O_qJb: $result["requester_id_" . $requester["_id"]] = $name; goto G9m1r; RLTgJ: $name = ''; goto WTwPl; cHqnS: R5tax: goto Ji2Ch; RLp3u: $name .= " (" . $requester["username"] . ")"; goto MNpc9; G9m1r: if (!is_string($request)) { goto nb8bd; } goto Ym05k; IM7h9: $result["requester_id_" . $requester["_id"]] .= " - " . $requester["email"]; goto g2Y4y; rWdGA: g3_lg: goto O_qJb; Ym05k: if (!(preg_match("/\S/", $requester["phone"]) === 1)) { goto zaZat; } goto xzir9; ydva1: if (!array_key_exists("username", $requester)) { goto UOSd9; } goto RLp3u; MNpc9: UOSd9: goto rWdGA; OOt9N: zaZat: goto G12AZ; Ji2Ch: goto g3_lg; goto aILTK; MEjis: HAJon: goto u479g; aILTK: M30vW: goto HaKfm; KqDDw: $name = $requester["username"]; goto cHqnS; RDPIc: if (!array_key_exists("username", $requester)) { goto R5tax; } goto KqDDw; G12AZ: if (!(preg_match("/\S/", $requester["email"]) === 1)) { goto Nn_bF; } goto IM7h9; u479g: } goto mA96A; OAopp: $this->load->model("crm/accounts_m"); goto dVTvD; ZdFXa: $request = json_decode(file_get_contents("php://input"), true); goto Yd3AT; h0LLP: BBGwN: goto P_HmN; eN2Bw: $accounts = $this->accounts_library->db_read($filter, ["companyname", "main_business_phone", "main_business_email"])["data"]; goto vGbs0; NcLCA: $this->tickets_library->db_setcollection($idticket); goto PiMvF; YOOWG: foreach (["from", "to"] as $key) { goto Y0k9o; Jz2bI: AFNSW: goto asJo2; Y0k9o: if (!array_key_exists($key, $request["account_related"])) { goto mBgEj; } goto CwB_C; CwB_C: $listidrequester[] = $request["account_related"][$key]; goto M15FG; M15FG: mBgEj: goto Jz2bI; asJo2: } goto uRR7N; uRR7N: oltOq: goto SDaG6; WtL8q: vCXXu: goto Ky5bR; vGbs0: foreach ($accounts as $account) { goto RUiba; nrSGp: $result["account_related_" . $account["_id"]] .= " - " . $account["main_business_phone"]; goto VcyX6; KFRjw: bg808: goto mNALd; V_lnY: $result["account_related_" . $account["_id"]] = $account["companyname"]; goto WYx1e; ej_aI: $result["account_related_" . $account["_id"]] .= " - " . $account["main_business_email"]; goto KFRjw; hTSdA: if (!(preg_match("/\S/", $account["main_business_email"]) === 1)) { goto bg808; } goto ej_aI; mNALd: lYW5x: goto EwVB4; gOD3f: if (!(preg_match("/\S/", $account["main_business_phone"]) === 1)) { goto v9DDf; } goto nrSGp; WYx1e: TGwRA: goto gOD3f; TJ4Nj: if (!(preg_match("/\S/", $account["companyname"]) === 1)) { goto TGwRA; } goto V_lnY; RUiba: $result["account_related_" . $account["_id"]] = "..."; goto TJ4Nj; VcyX6: v9DDf: goto hTSdA; EwVB4: } goto h0LLP; JIBLm: $listid = []; goto wDlTG; LDBq4: if (!array_key_exists("requester_id", $request)) { goto HGYXu; } goto ITb4D; PSEwi: UQisg: goto ePQ5i; ty1uP: $listidcategory = []; goto pAeUB; uxF4w: $filter = new stdClass(); goto DTS_0; UJWzi: throw new Exception("Permission failed"); goto LLGRN; SDaG6: if (!(count($listidrequester) > 0)) { goto O8jRw; } goto OAopp; ksKo0: foreach (["from", "to"] as $key) { goto BxFjW; BxFjW: if (!array_key_exists($key, $request["requester_id"])) { goto S4jCP; } goto kTK2M; kTK2M: $listidrequester[] = $request["requester_id"][$key]; goto hbemM; hbemM: S4jCP: goto glVGf; glVGf: r0DPf: goto mDWPO; mDWPO: } goto lDyIy; N1D90: Jyd1R: goto WtL8q; Eh_l1: $permission = $this->tickets_library->permission("checkpermission", $ticket); goto nup58; gZ1nk: $listcategory = $this->configcategoryticket_m->db_all_withcache(); goto d9MeJ; UDlvn: if (!(count($listidcategory) > 0)) { goto vCXXu; } goto ql7FJ; mixPO: $listidrequester = []; goto YOOWG; AUxsa: H4bkc: goto UDlvn; tO_rd: if (!array_key_exists("account_related", $request)) { goto OekD9; } goto mixPO; ql7FJ: $this->load->model("settings/configtickets/configcategoryticket_m"); goto gZ1nk; k1q47: echo json_encode(["data" => $result]); goto i4Tue; lDyIy: N1PtU: goto IkL0E; tn7yO: ZbvhL: goto F48yc; LLGRN: bL3lb: goto LDBq4; pAeUB: foreach (["from", "to"] as $key) { goto NFS3P; cHlCv: $listidcategory[] = $request["category"][$key]; goto jQAFd; NFS3P: if (!array_key_exists($key, $request["category"])) { goto qU54W; } goto cHlCv; jQAFd: qU54W: goto gJGv1; gJGv1: a1HYx: goto bI0Fg; bI0Fg: } goto AUxsa; d9MeJ: foreach ($listidcategory as $idcategory) { goto BqNz9; DZgnT: $result["category_" . $idcategory] = $listcategory[$key]["text"]; goto LLCz2; OTuM2: if (!($key !== false)) { goto Lp2RF; } goto DZgnT; qzbzN: ZlhCb: goto yofww; LLCz2: Lp2RF: goto qzbzN; BqNz9: $key = array_search($idcategory, array_column($listcategory, "_id")); goto OTuM2; yofww: } goto N1D90; PiMvF: $ticket = $this->tickets_m->db_getbyid($idticket, ["ticket_id", "assignee_history", "assignee", "assignee_info", "ccs", "created"]); goto Eh_l1; nup58: if (!($permission["stt"] === false)) { goto bL3lb; } goto UJWzi; mA96A: HVBZ1: goto tn7yO; qcV5W: OekD9: goto EKc2T; P_HmN: O8jRw: goto qcV5W; Ky5bR: wobYf: goto k1q47; i4Tue: } catch (Exception $ex) { echo json_encode(["data" => [], "errors" => $ex->getMessage() . " ~~ " . $ex->getLine()]); } } public function getxmlBPMN($idticket) { try { goto znAoX; aJctm: $this->load->model("services/tickets/tickets_m"); goto S9c7l; GGQVf: $this->load->library("wf_cdn"); goto W8uPb; XI7RR: throw new Exception("Process failed"); goto ZusQo; XNugc: curl_setopt($ch, CURLOPT_URL, base_url($processConfig["path_standard"])); goto mLDM8; Qb5Pk: dSjZJ: goto aJctm; W8uPb: $xml = $this->wf_cdn->openfile($processConfig["path_standard"]); goto YRXhu; XO8XM: echo json_encode(["xml" => $xml]); goto jGPbQ; znAoX: if ($this->mongo_db->isValidObjectID($idticket)) { goto dSjZJ; } goto rVmyF; RqW27: if (!($permission["stt"] === false)) { goto Xdyc0; } goto NFoB2; ML3BW: throw new Exception("Process standard failed"); goto uvgqO; T3iO0: throw new Exception("Process standard failed"); goto NqArI; NFoB2: throw new Exception("Permission failed"); goto opbCr; YRXhu: PQjgU: goto XO8XM; o64hN: if ($ticket["bpm"]["type"] === "defined") { goto D3hbh; } goto C7JpR; vU25v: $ticket = $this->tickets_m->db_getbyid($idticket, ["ticket_id", "assignee_history", "assignee", "assignee_info", "ccs", "created", "bpm"]); goto OC9aN; rVmyF: throw new Exception("Ticket not found"); goto Qb5Pk; mLDM8: curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); goto JUNpn; S9c7l: $this->load->library("tickets_library"); goto gerOP; opbCr: Xdyc0: goto YxrPW; JUNpn: $xml = curl_exec($ch); goto y0vyX; C7JpR: $this->load->model("wf4x/bpm_processticket_default_m"); goto MuHAg; hCasG: if (array_key_exists("path_standard", $processConfig)) { goto vkWs2; } goto T3iO0; gerOP: $this->tickets_library->db_setcollection($idticket); goto vU25v; nQ4w9: goto PQjgU; goto xGXh1; HskGO: $ch = curl_init(); goto XNugc; OC9aN: $permission = $this->tickets_library->permission("checkpermission", $ticket); goto RqW27; uvgqO: g25Bo: goto HskGO; NqArI: vkWs2: goto GGQVf; ZusQo: xRwpM: goto o64hN; nbxBD: if (array_key_exists("path_standard", $processConfig)) { goto g25Bo; } goto ML3BW; MMXXs: $this->load->model("settings/configtickets/configprocessticket_log_m"); goto Auz0u; MuHAg: $processConfig = $this->bpm_processticket_default_m->db_getbyid($ticket["bpm"]["flowid"], ["path_standard"]); goto nbxBD; y0vyX: curl_close($ch); goto nQ4w9; YxrPW: if (array_key_exists("bpm", $ticket)) { goto xRwpM; } goto XI7RR; Auz0u: $processConfig = $this->configprocessticket_log_m->db_oneoptions(["path_standard"], ["where" => ["flowid" => $ticket["bpm"]["flowid"], "version" => $ticket["bpm"]["version"]]]); goto hCasG; xGXh1: D3hbh: goto MMXXs; jGPbQ: } catch (Exception $ex) { http_response_code(500); echo $ex->getMessage() . " ~~ " . $ex->getLine(); } } public function ticketStatistic() { goto svipv; xWYzj: $startDate = strtotime(date("Y-m-d 00:00:00", $last7day)); goto xbQOY; RGlak: $endDate = strtotime(date("Y-m-d 23:59:59")); goto lwida; j26_1: $endDate = strtotime(date("Y-m-d 23:59:59")); goto h1LFg; HQWo1: $endDate = strtotime(date("Y-m-d 23:59:59", $lastmonth_last)); goto i5Axj; Oe8Pa: $startDate = strtotime(date("Y-m-d 00:00:00", $thismonth)); goto NZk0S; d3vbp: Hh192: goto JiC8d; EuUj4: $data = []; goto kY8Ul; Jv07W: $this->load->model("services/tickets/tickets_m"); goto WkFCD; u3U23: $lastmonth = strtotime("first day of last month"); goto RFAOi; lv1QV: if (!($request["type"] == "thismonth")) { goto Hh192; } goto DXaYz; IsJEC: $data["ccs"] = $this->tickets_library->db_count($this->wf4xconfig["timestamp"], time(), $filter_5); goto wON33; y02AL: if (!(isset($this->data["budefault"]) && $this->data["budefault"] != '')) { goto sjSi1; } goto Y2L0t; Mb6Tz: if ($this->data["isOwner"]) { goto vl1kR; } goto z_b8O; UFoFS: if (!($request["type"] == "last7day")) { goto xQ8ne; } goto kd6AQ; DXaYz: $thismonth = strtotime("first day of this month"); goto t9nI2; oP_Y6: $data["assignee_history"] = $this->tickets_library->db_count($this->wf4xconfig["timestamp"], time(), $filter_4); goto IsJEC; V2K1M: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("ccs", "in", ["user_" . $this->data["userid"]]), $filter_5); goto oc0UW; oNupn: if (!($request["type"] != "all")) { goto AKbj_; } goto Jnw_n; pnFv5: foreach ($list_user as $user) { goto IyoIC; IyoIC: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("created.byid", "eq", $user["_id"]), $filter_1); goto iOrNV; iOrNV: $temp = $temp + $this->tickets_library->db_count($this->wf4xconfig["timestamp"], time(), $filter_1); goto HJ77z; HJ77z: SHBrM: goto Z9iHV; Z9iHV: } goto S56bM; sdQnr: $endDate = strtotime(date("Y-m-d 23:59:59", $last_day)); goto DC5Fa; h1LFg: gm5FY: goto dpUIi; dkZo6: $endDate = ''; goto EuUj4; DC5Fa: a9Czd: goto UFoFS; TCZY6: sjSi1: goto V4zoN; qYeBk: $filter_5 = new stdClass(); goto oNupn; UrzTz: $temp = $this->tickets_library->db_count($this->wf4xconfig["timestamp"], time(), $filter_1); goto Kmb_g; UPABo: $startDate = strtotime(date("Y-m-d 00:00:00")); goto j26_1; MExOs: zy6A7: goto CYXew; oc0UW: $data["in_bu"] = $temp; goto fzqFa; dpUIi: if (!($request["type"] == "yesterday")) { goto a9Czd; } goto krl44; OuR44: $this->load->library("tickets_library"); goto DmBYV; svipv: date_default_timezone_set("Asia/Ho_Chi_Minh"); goto psIiN; i5Axj: r7A0r: goto x1naf; Jnw_n: foreach ([$filter_1, $filter_2, $filter_3, $filter_4, $filter_5] as $key) { goto Gl2a2; Gl2a2: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("last_modified.time", "gte", $startDate), $key); goto eHfN9; rRzXp: mvgvd: goto y1UUG; eHfN9: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("last_modified.time", "lte", $endDate), $key); goto rRzXp; y1UUG: } goto PjefD; KUH4v: $filter_2 = new stdClass(); goto CL6ta; psIiN: $request = json_decode(file_get_contents("php://input"), true); goto Jv07W; Vd4ZR: $list_user = []; goto y02AL; kY8Ul: $temp = 0; goto Vd4ZR; DmBYV: $startDate = ''; goto dkZo6; GONJO: $startDate = strtotime(date("Y-m-d 00:00:00", $lastmonth)); goto HQWo1; aqKza: $last30days = strtotime("-29 day"); goto fZZCL; CL6ta: $filter_3 = new stdClass(); goto QzjpF; QzjpF: $filter_4 = new stdClass(); goto qYeBk; WkFCD: $this->load->model("wf4x/wf4x_users_m"); goto OuR44; M3_EN: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("created.byid", "eq", $this->data["userid"]), $filter_2); goto KQKfI; P6J_8: $startDate = strtotime(date("Y-m-d 00:00:00", $last_day)); goto sdQnr; pEZI0: echo json_encode($data); goto v1NbN; wON33: header("Content-Type: application/json"); goto pEZI0; t9nI2: $thismonth_last = strtotime("last day of this month"); goto Oe8Pa; mfOwy: xQ8ne: goto xmL3K; krl44: $last_day = strtotime("last day"); goto P6J_8; kd6AQ: $last7day = strtotime("-6 day"); goto xWYzj; PjefD: DIobP: goto yHoEE; xbQOY: $endDate = strtotime(date("Y-m-d 23:59:59")); goto mfOwy; fZZCL: $startDate = strtotime(date("Y-m-d 00:00:00", $last30days)); goto RGlak; lwida: mynDP: goto lv1QV; JiC8d: if (!($request["type"] == "lastmonth")) { goto r7A0r; } goto u3U23; CYXew: goto kAZcl; goto Z4zKU; S56bM: WWmBJ: goto MExOs; KQKfI: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("assignee", "eq", "user_" . $this->data["userid"]), $filter_3); goto PA1r7; x1naf: $filter_1 = new stdClass(); goto KUH4v; NZk0S: $endDate = strtotime(date("Y-m-d 23:59:59", $thismonth_last)); goto d3vbp; fzqFa: $data["created"] = $this->tickets_library->db_count($this->wf4xconfig["timestamp"], time(), $filter_2); goto tcKhk; tcKhk: $data["assignee"] = $this->tickets_library->db_count($this->wf4xconfig["timestamp"], time(), $filter_3); goto oP_Y6; xmL3K: if (!($request["type"] == "last30days")) { goto mynDP; } goto aqKza; Kmb_g: kAZcl: goto M3_EN; PA1r7: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("assignee_history", "in", ["user_" . $this->data["userid"]]), $filter_4); goto V2K1M; Z4zKU: vl1kR: goto UrzTz; z_b8O: if (!(is_array($list_user) && count($list_user) > 0)) { goto zy6A7; } goto pnFv5; yHoEE: AKbj_: goto Mb6Tz; V4zoN: if (!($request["type"] == "today")) { goto gm5FY; } goto UPABo; RFAOi: $lastmonth_last = strtotime("last day of last month"); goto GONJO; Y2L0t: $list_user = $this->wf4x_users_m->getallusersinbusinessunit($this->data["budefault"], ["id"]); goto TCZY6; v1NbN: } public function getTemplateAddContact() { goto z23L_; qvZKs: echo json_encode(["stt" => 1, "fieldSort" => $fieldAddSort, "fieldAdd" => $fieldAdd]); goto UEfYV; VMV7a: $fieldAddSort = $this->returnGroupAddSortID(); goto qvZKs; z23L_: $fieldAdd = $this->fieldAddSort(); goto VMV7a; UEfYV: } public function getTemplateAddLead() { goto QLWIu; K7kxV: $fieldAddSort = $this->returnGroupAddSortIDLead(); goto Jz7no; Jz7no: echo json_encode(["stt" => 1, "fieldSort" => $fieldAddSort, "fieldAdd" => $fieldAdd]); goto oHC1L; QLWIu: $fieldAdd = $this->fieldAddSortLead(); goto K7kxV; oHC1L: } public function getTemplateAddAccount() { goto cCmnd; yYkdt: echo json_encode(["stt" => 1, "fieldSort" => $fieldAddSort, "fieldAdd" => $fieldAdd]); goto gkIsQ; U5wKv: $fieldAddSort = $this->returnGroupAddSortIDAccount(); goto yYkdt; cCmnd: $fieldAdd = $this->fieldAddSortAccount(); goto U5wKv; gkIsQ: } public function getFieldAddSortTicket() { $fieldAdd = $this->returnGroupAddTicket(); echo json_encode(["stt" => 1, "fieldSort" => $fieldAdd, "fieldAdd" => $fieldAdd]); } public function returnGroupAddSortID() { goto Iameo; zKkL0: return $group; goto Xz92H; RuwZg: MovUz: goto zKkL0; tnVXE: $optionSort = ["where" => ["module" => "contacts", "show" => 1], "sort" => ["position" => 1]]; goto i0T7c; ayvWt: $this->load->model("settings/customfield/fieldall_m"); goto tnVXE; PEOXe: foreach ($group as &$valgroup) { goto HlMxe; qZKpF: $valgroup["nameLang"] = langJS("module_customfield.name_lang." . $valgroup["alias"]) !== "module_customfield.name_lang." . $valgroup["alias"] ? langJS("module_customfield.name_lang." . $valgroup["alias"]) : $valgroup["name"]; goto AnhQE; Ix_u_: SwDFk: goto iOwkc; HlMxe: $option = ["where" => ["groupfield" => $valgroup["_id"], "show" => 1, "pageShow.viewadd" => 1], "sort" => ["_id" => 1, "arrDepend" => 1]]; goto KRBTy; u17Gg: WSN7e: goto U3sCA; sk4ms: if (isset($valgroup["editdefault"])) { goto SwDFk; } goto qZKpF; j8Quc: foreach ($field as $key => &$data) { goto BeZ7f; wHc0O: I3_vL: goto aqKVo; O4Qzb: $optionFieldAll = ["where" => ["_id" => new \MongoDB\BSON\ObjectID($data["fieldall"]), "show" => 1], "sort" => ["positionadd" => 1]]; goto XUmg1; yzZRd: $data["tooltip"] = $tooltiptemp; goto AI8xN; XUmg1: $fieldall = $this->fieldall_m->db_oneoptions([], $optionFieldAll); goto pKewn; yvX8a: ozOGA: goto wHc0O; fqT5D: $data["_id"] = $idFieldAll; goto Dl8_w; sBALk: $data["nameLang"] = langJS("module_customfield.name_lang." . $data["alias"]) !== "module_customfield.name_lang." . $data["alias"] ? langJS("module_customfield.name_lang." . $data["alias"]) : $data["name"]; goto S7_P3; Dl8_w: lYl3z: goto lqknK; uc5lR: $data["choosefieldall"] = 1; goto xfjci; O2_aN: if (!array_key_exists("owner", $data)) { goto fOFBn; } goto stPs3; knP61: $data["created_username"] = searchnameuser($data["created"]["byid"]); goto CAbHs; BkVPR: $data["owner_username"] = $owner_username["text"]; goto gosBx; hVzDz: unset($fieldall["_id"]); goto oZwXB; ByBsP: xvDzw: goto wfYQu; m_JdJ: eDntj: goto yKVFg; AI8xN: $data["note"] = $notetemp; goto G8t66; aqKVo: $data["last_modified_username"] = ''; goto GID4e; xfjci: $data["idFieldAll"] = $idFieldAll; goto fqT5D; vS9Zx: t3Yev: goto zcLZM; WREjw: unset($fieldall["tooltip"]); goto sQ_Ig; yKVFg: fOFBn: goto ByBsP; HlI_z: if ($name == "user") { goto t3Yev; } goto YIM3d; gosBx: goto eDntj; goto vS9Zx; wY7MY: g9K5q: goto O4Qzb; vpiwI: VZzaI: goto GGjxt; ge0m2: DTs4G: goto aRxFm; uqpyx: if (isset($data["editdefault"]) || !(isset($data["system"]) && $data["system"] == 1 || isset($data["default"]) && $data["default"] == 1)) { goto VZzaI; } goto sBALk; fjj53: $data["show"] = $showtemp; goto yzZRd; stPs3: $index = strpos($data["owner"], "_"); goto M9BeW; zx4PM: $data["last_modified_username"] = $data["last_modified"]["byid"]; goto ge0m2; d6zKH: $data["last_modified_username"] = searchnameuser($data["last_modified"]["byid"]); goto vaJjl; N3_Ve: $tooltiptemp = $data["tooltip"]; goto DwZCA; IV8JR: $data["created_username"] = $data["created"]["byid"]; goto yvX8a; ZZqmS: o_3lR: goto C1cY1; zcLZM: $data["owner_username"] = searchnameuser($id); goto m_JdJ; aRxFm: uCNSr: goto O2_aN; pKewn: $showtemp = $data["show"]; goto IFAsx; GGjxt: $data["nameLang"] = $data["name"]; goto ZZqmS; M9BeW: $id = substr($data["owner"], $index + 1); goto W45NH; YIM3d: $owner_username = searchbu($id); goto BkVPR; IFAsx: $coltemp = $data["col"]; goto N3_Ve; W45NH: $name = substr($data["owner"], 0, $index); goto HlI_z; lqknK: $data["groupname"] = $valgroup["alias"]; goto PLYf1; E9yYH: $data["nameLang"] = langJS("module_customfield.name_lang." . $data["alias"]) !== "module_customfield.name_lang." . $data["alias"] ? langJS("module_customfield.name_lang." . $data["alias"]) : $data["name"]; goto uc5lR; DwZCA: $notetemp = $data["note"]; goto kLnAk; vaJjl: if (!($data["last_modified_username"] === false)) { goto DTs4G; } goto zx4PM; oZwXB: $data = $fieldall; goto fjj53; CAbHs: if (!($data["created_username"] === false)) { goto ozOGA; } goto IV8JR; PLYf1: $data["created_username"] = ''; goto QQ6AV; BeZ7f: if (isset($data["fieldall"])) { goto g9K5q; } goto uqpyx; G8t66: $data["col"] = $coltemp; goto E9yYH; C1cY1: $data["choosefieldall"] = 0; goto YIacD; YIacD: goto lYl3z; goto wY7MY; GID4e: if (!array_key_exists("last_modified", $data)) { goto uCNSr; } goto d6zKH; QQ6AV: if (!array_key_exists("created", $data)) { goto I3_vL; } goto knP61; sQ_Ig: unset($fieldall["note"]); goto IwQQE; kLnAk: unset($fieldall["show"]); goto WREjw; IwQQE: $idFieldAll = $data["_id"]; goto hVzDz; S7_P3: goto o_3lR; goto vpiwI; wfYQu: } goto r_dfB; bH8E6: $field = $this->field_m->db_get_withcache_custom($option, $this->data["pbx_customer_code"] . "_field_addsortidcontacts_" . $valgroup["_id"], 600); goto j8Quc; r_dfB: BWw_o: goto REUoq; iOwkc: $valgroup["nameLang"] = $valgroup["name"]; goto u17Gg; KRBTy: $this->load->model("settings/customfield/field_m"); goto bH8E6; AnhQE: goto WSN7e; goto Ix_u_; U3sCA: bEySk: goto RNk0Y; REUoq: $valgroup["fields"] = $field; goto sk4ms; RNk0Y: } goto RuwZg; i0T7c: $group = $this->fieldgroup_m->db_get_withcache_custom($optionSort, $this->data["pbx_customer_code"] . "_fieldgroup_addsortidcontacts", 600); goto PEOXe; Iameo: $this->load->model("settings/customfield/fieldgroup_m"); goto ayvWt; Xz92H: } public function fieldAddSort() { goto xaWkf; URAXx: return $group; goto XcmTb; tvYOZ: ObMbd: goto URAXx; xaWkf: $this->load->model("settings/customfield/fieldgroup_m"); goto H2Jlv; H2Jlv: $this->load->model("settings/customfield/fieldall_m"); goto LMxvD; Q18zY: foreach ($group as &$valgroup) { goto aYI5Z; OADOS: a4aLA: goto DDAET; GrRRT: $valgroup["nameLang"] = langJS("module_customfield.name_lang." . $valgroup["alias"]) !== "module_customfield.name_lang." . $valgroup["alias"] ? langJS("module_customfield.name_lang." . $valgroup["alias"]) : $valgroup["name"]; goto DcQeo; Uu5D9: nQvcS: goto QXqkH; fHo5X: Ai97T: goto T_b2S; sSgve: goto Ai97T; goto TnYgR; QXqkH: $valgroup["fields"] = $field; goto H8dza; SskM6: NQQCj: goto xoBK_; n79Z4: foreach ($field as &$data) { goto dmBjM; mdYBD: $idFieldAll = $data["_id"]; goto BO2N8; j51tY: rJJGp: goto h_Apy; ZWY98: DBtVp: goto LVNjv; sUh6Y: $data["created_username"] = ''; goto bkdwk; KkPHF: bDElW: goto FjfPO; Bm4T6: $coltemp = $data["col"]; goto UrMSe; cHdOG: $data["show"] = $showtemp; goto YxIJw; h_Apy: $data["owner_username"] = searchnameuser($id); goto AbQQL; fJrVa: $data["owner_username"] = $owner_username["text"]; goto dLlm3; xgGv2: $data["groupname"] = $valgroup["alias"]; goto sUh6Y; Rt7u8: $data["last_modified_username"] = searchnameuser($data["last_modified"]["byid"]); goto ySq9T; Ws0vN: $data["note"] = $notetemp; goto DgF5Q; pPFPd: unset($fieldall["tooltip"]); goto DVzzD; fDLUk: $data["created_username"] = searchnameuser($data["created"]["byid"]); goto Yi5tk; UrMSe: $tooltiptemp = $data["tooltip"]; goto Nc4Sm; dBSji: $data["choosefieldall"] = 1; goto DOYa5; GrzdU: goto II9q6; goto eqh7s; sAnFc: lfqA3: goto QcDM7; FjfPO: $data["choosefieldall"] = 0; goto GrzdU; HY2co: if (!array_key_exists("last_modified", $data)) { goto TJaOm; } goto Rt7u8; tZS2i: $data["nameLang"] = langJS("module_customfield.name_lang." . $data["alias"]) !== "module_customfield.name_lang." . $data["alias"] ? langJS("module_customfield.name_lang." . $data["alias"]) : $data["name"]; goto mcLPW; Nc4Sm: $notetemp = $data["note"]; goto oxB4n; PAgiq: if ($name == "user") { goto rJJGp; } goto KH7T0; N4J6j: $data = $fieldall; goto cHdOG; n9Y3l: $data["created_username"] = $data["created"]["byid"]; goto uvkVC; DVzzD: unset($fieldall["note"]); goto mdYBD; QcDM7: $data["last_modified_username"] = ''; goto HY2co; LKZBS: TJaOm: goto xK2eT; yI0ZT: $optionFieldAll = ["where" => ["_id" => new \MongoDB\BSON\ObjectID($data["fieldall"]), "show" => 1], "sort" => ["position" => 1]]; goto DULaa; eqh7s: kAf_S: goto yI0ZT; qJe91: $data["last_modified_username"] = $data["last_modified"]["byid"]; goto AYaU5; DULaa: $fieldall = $this->fieldall_m->db_oneoptions([], $optionFieldAll); goto FFCXA; L7uqu: $data["tooltip"] = $tooltiptemp; goto Ws0vN; xK2eT: if (!array_key_exists("owner", $data)) { goto DBtVp; } goto XL3c8; uvkVC: XhmyS: goto sAnFc; FFCXA: $showtemp = $data["show"]; goto Bm4T6; ySq9T: if (!($data["last_modified_username"] === false)) { goto Eh_oL; } goto qJe91; MmzWu: $data["_id"] = $idFieldAll; goto Z32AY; Qawpx: $data["nameLang"] = $data["name"]; goto KkPHF; fynsY: if (isset($data["editdefault"]) || !(isset($data["system"]) && $data["system"] == 1 || isset($data["default"]) && $data["default"] == 1)) { goto bAj5N; } goto tZS2i; BO2N8: unset($fieldall["_id"]); goto N4J6j; dLlm3: goto Px9Xf; goto j51tY; oxB4n: unset($fieldall["show"]); goto pPFPd; DgF5Q: $data["nameLang"] = langJS("module_customfield.name_lang." . $data["alias"]) !== "module_customfield.name_lang." . $data["alias"] ? langJS("module_customfield.name_lang." . $data["alias"]) : $data["name"]; goto dBSji; qhjNG: $name = substr($data["owner"], 0, $index); goto PAgiq; mcLPW: goto bDElW; goto frSrN; AYaU5: Eh_oL: goto LKZBS; bkdwk: if (!array_key_exists("created", $data)) { goto lfqA3; } goto fDLUk; zKH66: $id = substr($data["owner"], $index + 1); goto qhjNG; AbQQL: Px9Xf: goto ZWY98; Z32AY: II9q6: goto xgGv2; dmBjM: if (isset($data["fieldall"])) { goto kAf_S; } goto fynsY; XL3c8: $index = strpos($data["owner"], "_"); goto zKH66; KH7T0: $owner_username = searchbu($id); goto fJrVa; Yi5tk: if (!($data["created_username"] === false)) { goto XhmyS; } goto n9Y3l; DOYa5: $data["idFieldAll"] = $idFieldAll; goto MmzWu; LVNjv: svdaC: goto bf2LH; frSrN: bAj5N: goto Qawpx; YxIJw: $data["col"] = $coltemp; goto L7uqu; bf2LH: } goto Uu5D9; Ex8__: $option = ["where" => ["groupfield" => $valgroup["_id"], "show" => 1, "pageShow.viewadd" => 1], "sort" => ["col" => 1, "poscol1" => 1, "poscol2" => 1]]; goto cCVF9; Oxt9R: $field = $this->field_m->db_get_withcache_custom($option, $this->data["pbx_customer_code"] . "_field_addsortcontacts_" . $valgroup["_id"], 600); goto n79Z4; bPt2f: QOjo2: goto gmEYs; cCVF9: goto O3ZuM; goto OADOS; DDAET: $option = ["where" => ["groupfield" => $valgroup["_id"], "show" => 1, "pageShow.viewadd" => 1], "sort" => ["positionadd" => 1]]; goto rkAOU; aYI5Z: if (isset($valgroup["coladd"])) { goto vGR1M; } goto yAhiO; TnYgR: vGR1M: goto LDQ60; H8dza: if (isset($valgroup["editdefault"])) { goto NQQCj; } goto GrRRT; xoBK_: $valgroup["nameLang"] = $valgroup["name"]; goto bPt2f; yAhiO: $option = ["where" => ["groupfield" => $valgroup["_id"], "show" => 1, "pageShow.viewadd" => 1], "sort" => ["positionadd" => 1]]; goto sSgve; T_b2S: $this->load->model("settings/customfield/field_m"); goto Oxt9R; gmEYs: rRLOw: goto Ukdo2; rkAOU: O3ZuM: goto fHo5X; DcQeo: goto QOjo2; goto SskM6; LDQ60: if ($valgroup["coladd"] == "onecolumn") { goto a4aLA; } goto Ex8__; Ukdo2: } goto tvYOZ; bAgAa: $group = $this->fieldgroup_m->db_get_withcache_custom($optionSort, $this->data["pbx_customer_code"] . "_fieldgroup_addsortcontacts", 600); goto Q18zY; LMxvD: $optionSort = ["where" => ["module" => "contacts", "show" => 1], "sort" => ["position" => 1]]; goto bAgAa; XcmTb: } public function returnGroupAddSortIDLead() { goto KsnD9; ZI6fP: $group = $this->fieldgroup_m->db_get_withcache_custom($optionSort, $this->data["pbx_customer_code"] . "_fieldgroup_addsortidleads", 600); goto iPATH; txt4P: $optionSort = ["where" => ["module" => "leads", "show" => 1], "sort" => ["position" => 1]]; goto ZI6fP; KsnD9: $this->load->model("settings/customfield/fieldgroup_m"); goto Tf7LW; iPATH: foreach ($group as &$valgroup) { goto X0aWk; yFBef: $field = $this->field_m->db_get_withcache_custom($option, $this->data["pbx_customer_code"] . "_field_addsortidleads_" . $valgroup["_id"], 600); goto V8glK; dZEfs: $valgroup["nameLang"] = $valgroup["name"]; goto rA98M; H4QOD: $this->load->model("settings/customfield/field_m"); goto yFBef; mbeOG: $valgroup["fields"] = $field; goto bMYoB; qY7Jo: goto hEKK2; goto rrk6Z; V8glK: foreach ($field as $key => &$data) { goto ZLfDG; TLBDq: goto Wzy1Q; goto XSj5n; MOnRv: jvQq5: goto Ta8eQ; IJAvO: RC4k2: goto Rr9GO; Sowt7: $data["idFieldAll"] = $idFieldAll; goto uijGx; ZLfDG: if (isset($data["fieldall"])) { goto v8BzE; } goto PN1SY; l02BB: if (!array_key_exists("created", $data)) { goto aUkoD; } goto XFHVR; PJ3Wh: unset($fieldall["note"]); goto uJ7ZQ; mHDpx: $data["choosefieldall"] = 1; goto Sowt7; BK9Nj: if (!($data["last_modified_username"] === false)) { goto HJB31; } goto NvfdW; GRQ8t: $coltemp = $data["col"]; goto Vh7FI; U6HSq: $data["nameLang"] = langJS("module_customfield.name_lang." . $data["alias"]) !== "module_customfield.name_lang." . $data["alias"] ? langJS("module_customfield.name_lang." . $data["alias"]) : $data["name"]; goto mHDpx; khB22: VCenk: goto Fk3Zz; RJOVW: $index = strpos($data["owner"], "_"); goto XPK1J; VAOgv: if ($name == "user") { goto VCenk; } goto I_G2R; mLBLz: HJB31: goto IuuCI; cdRYW: $data["nameLang"] = $data["name"]; goto IJAvO; qFT4z: $data["groupname"] = $valgroup["alias"]; goto kGpkg; P_VSa: unset($fieldall["tooltip"]); goto PJ3Wh; lqLXj: $data["owner_username"] = $owner_username["text"]; goto J1XH_; pGtBj: a57Id: goto GdY65; U9xYL: $showtemp = $data["show"]; goto GRQ8t; btd3l: $data["last_modified_username"] = ''; goto zlfoG; uAk9E: $data["last_modified_username"] = searchnameuser($data["last_modified"]["byid"]); goto BK9Nj; uijGx: $data["_id"] = $idFieldAll; goto X6CIW; GdY65: HHV1q: goto TGfvt; uJ7ZQ: $idFieldAll = $data["_id"]; goto BYcK7; oCdF9: $optionFieldAll = ["where" => ["_id" => new \MongoDB\BSON\ObjectID($data["fieldall"]), "show" => 1], "sort" => ["positionadd" => 1]]; goto cI9_n; uFDUX: if (!($data["created_username"] === false)) { goto jvQq5; } goto AUcw1; kGpkg: $data["created_username"] = ''; goto l02BB; fwx1_: if (!array_key_exists("owner", $data)) { goto HHV1q; } goto RJOVW; itCf_: $data["nameLang"] = langJS("module_customfield.name_lang." . $data["alias"]) !== "module_customfield.name_lang." . $data["alias"] ? langJS("module_customfield.name_lang." . $data["alias"]) : $data["name"]; goto raJt9; cI9_n: $fieldall = $this->fieldall_m->db_oneoptions([], $optionFieldAll); goto U9xYL; BYcK7: unset($fieldall["_id"]); goto Q2_tN; NvfdW: $data["last_modified_username"] = $data["last_modified"]["byid"]; goto mLBLz; IuuCI: it7hB: goto fwx1_; X6CIW: Wzy1Q: goto qFT4z; qaZtD: $data["show"] = $showtemp; goto cc13x; Q2_tN: $data = $fieldall; goto qaZtD; XFHVR: $data["created_username"] = searchnameuser($data["created"]["byid"]); goto uFDUX; Rr9GO: $data["choosefieldall"] = 0; goto TLBDq; raJt9: goto RC4k2; goto GgJVK; Fk3Zz: $data["owner_username"] = searchnameuser($id); goto pGtBj; m1Oy4: unset($fieldall["show"]); goto P_VSa; TGfvt: xExkm: goto ZqXTh; GgJVK: ZWffy: goto cdRYW; XSj5n: v8BzE: goto oCdF9; Vh7FI: $tooltiptemp = $data["tooltip"]; goto jR__r; K5KTa: $data["note"] = $notetemp; goto BoOQF; cc13x: $data["tooltip"] = $tooltiptemp; goto K5KTa; Ta8eQ: aUkoD: goto btd3l; Dk6PU: $name = substr($data["owner"], 0, $index); goto VAOgv; BoOQF: $data["col"] = $coltemp; goto U6HSq; zlfoG: if (!array_key_exists("last_modified", $data)) { goto it7hB; } goto uAk9E; J1XH_: goto a57Id; goto khB22; PN1SY: if (isset($data["editdefault"]) || !(isset($data["system"]) && $data["system"] == 1 || isset($data["default"]) && $data["default"] == 1)) { goto ZWffy; } goto itCf_; jR__r: $notetemp = $data["note"]; goto m1Oy4; I_G2R: $owner_username = searchbu($id); goto lqLXj; AUcw1: $data["created_username"] = $data["created"]["byid"]; goto MOnRv; XPK1J: $id = substr($data["owner"], $index + 1); goto Dk6PU; ZqXTh: } goto OlXTi; lPZRg: tti7P: goto vVbna; PdGSP: $valgroup["nameLang"] = langJS("module_customfield.name_lang." . $valgroup["alias"]) !== "module_customfield.name_lang." . $valgroup["alias"] ? langJS("module_customfield.name_lang." . $valgroup["alias"]) : $valgroup["name"]; goto qY7Jo; rA98M: hEKK2: goto lPZRg; bMYoB: if (isset($valgroup["editdefault"])) { goto vRDc6; } goto PdGSP; rrk6Z: vRDc6: goto dZEfs; X0aWk: $option = ["where" => ["groupfield" => $valgroup["_id"], "show" => 1, "pageShow.viewadd" => 1], "sort" => ["_id" => 1, "arrDepend" => 1]]; goto H4QOD; OlXTi: SNotU: goto mbeOG; vVbna: } goto hsT20; hsT20: RnKdJ: goto FEAYu; Tf7LW: $this->load->model("settings/customfield/fieldall_m"); goto txt4P; FEAYu: return $group; goto WmlVu; WmlVu: } public function fieldAddSortLead() { goto f0AnN; oBXWb: UVZC0: goto nfCBG; wvLX_: $optionSort = ["where" => ["module" => "leads", "show" => 1], "sort" => ["position" => 1]]; goto iMxBS; iMxBS: $group = $this->fieldgroup_m->db_get_withcache_custom($optionSort, $this->data["pbx_customer_code"] . "_fieldgroup_addsortleads", 600); goto w1CVc; aWJ8G: $this->load->model("settings/customfield/fieldall_m"); goto wvLX_; w1CVc: foreach ($group as &$valgroup) { goto MijNF; LQ5lw: foreach ($field as &$data) { goto bLq10; crmFX: $data["nameLang"] = langJS("module_customfield.name_lang." . $data["alias"]) !== "module_customfield.name_lang." . $data["alias"] ? langJS("module_customfield.name_lang." . $data["alias"]) : $data["name"]; goto eEDB6; FSwRO: $data["groupname"] = $valgroup["alias"]; goto JfRo4; Y36q2: $id = substr($data["owner"], $index + 1); goto NOUvi; le7dl: $index = strpos($data["owner"], "_"); goto Y36q2; VSDXK: if (isset($data["editdefault"]) || !(isset($data["system"]) && $data["system"] == 1 || isset($data["default"]) && $data["default"] == 1)) { goto VY_33; } goto Qkljy; Qkljy: $data["nameLang"] = langJS("module_customfield.name_lang." . $data["alias"]) !== "module_customfield.name_lang." . $data["alias"] ? langJS("module_customfield.name_lang." . $data["alias"]) : $data["name"]; goto gholW; xQhaw: unset($fieldall["_id"]); goto iZNb8; lk0uB: UtDbo: goto P3bQ9; LPjF7: $data["_id"] = $idFieldAll; goto CtT93; SZnWF: if (!($data["created_username"] === false)) { goto qP6O7; } goto kQSm9; HBThD: UcVgn: goto Gp6sz; drmfT: goto UXvqU; goto PgCsE; eF8PI: $tooltiptemp = $data["tooltip"]; goto UcbN3; YbOkd: $data["owner_username"] = searchnameuser($id); goto HBThD; JHKuJ: if (!array_key_exists("last_modified", $data)) { goto bNKqJ; } goto Xfa8M; mU4Ed: unset($fieldall["note"]); goto KdndW; JpNLe: g6s8m: goto sa9Ud; e6OGD: $data["owner_username"] = $owner_username["text"]; goto CKaEY; NOUvi: $name = substr($data["owner"], 0, $index); goto YcrLo; PIPah: $data["col"] = $coltemp; goto f2UYz; bgZ3S: $data["note"] = $notetemp; goto crmFX; zsK50: $data["nameLang"] = $data["name"]; goto SjP47; YcrLo: if ($name == "user") { goto vACqq; } goto VJxN5; wDW3S: if (!array_key_exists("created", $data)) { goto g6s8m; } goto bL27R; A9HF5: $coltemp = $data["col"]; goto eF8PI; gholW: goto bo2zX; goto t6aAt; UcbN3: $notetemp = $data["note"]; goto rEDL7; eEDB6: $data["choosefieldall"] = 1; goto so_BX; ytco0: $data["last_modified_username"] = $data["last_modified"]["byid"]; goto VJ6Em; JfRo4: $data["created_username"] = ''; goto wDW3S; so_BX: $data["idFieldAll"] = $idFieldAll; goto LPjF7; VJxN5: $owner_username = searchbu($id); goto e6OGD; Zlzne: $showtemp = $data["show"]; goto A9HF5; t6aAt: VY_33: goto zsK50; ZEiRX: $data["show"] = $showtemp; goto PIPah; cLnQq: if (!($data["last_modified_username"] === false)) { goto IJhjQ; } goto ytco0; bL27R: $data["created_username"] = searchnameuser($data["created"]["byid"]); goto SZnWF; aoWNy: vACqq: goto YbOkd; bLq10: if (isset($data["fieldall"])) { goto mMxz5; } goto VSDXK; loM0T: unset($fieldall["tooltip"]); goto mU4Ed; Xfa8M: $data["last_modified_username"] = searchnameuser($data["last_modified"]["byid"]); goto cLnQq; PgCsE: mMxz5: goto op36M; rEDL7: unset($fieldall["show"]); goto loM0T; IHwoA: $fieldall = $this->fieldall_m->db_oneoptions([], $optionFieldAll); goto Zlzne; Gp6sz: BDfOs: goto lk0uB; Qzuqe: $data["choosefieldall"] = 0; goto drmfT; CtT93: UXvqU: goto FSwRO; VJ6Em: IJhjQ: goto KXtNd; op36M: $optionFieldAll = ["where" => ["_id" => new \MongoDB\BSON\ObjectID($data["fieldall"]), "show" => 1], "sort" => ["position" => 1]]; goto IHwoA; KdndW: $idFieldAll = $data["_id"]; goto xQhaw; f2UYz: $data["tooltip"] = $tooltiptemp; goto bgZ3S; SjP47: bo2zX: goto Qzuqe; KXtNd: bNKqJ: goto KXaj7; CKaEY: goto UcVgn; goto aoWNy; kQSm9: $data["created_username"] = $data["created"]["byid"]; goto lAm1I; lAm1I: qP6O7: goto JpNLe; sa9Ud: $data["last_modified_username"] = ''; goto JHKuJ; iZNb8: $data = $fieldall; goto ZEiRX; KXaj7: if (!array_key_exists("owner", $data)) { goto BDfOs; } goto le7dl; P3bQ9: } goto tF45P; F4Cai: a8DdP: goto sxqeI; O5DVp: $field = $this->field_m->db_get_withcache_custom($option, $this->data["pbx_customer_code"] . "_field_addsortleads_" . $valgroup["_id"], 600); goto LQ5lw; bvPYz: $valgroup["nameLang"] = $valgroup["name"]; goto G_fru; Qgo0e: $option = ["where" => ["groupfield" => $valgroup["_id"], "show" => 1, "pageShow.viewadd" => 1], "sort" => ["positionadd" => 1]]; goto sH2me; Qf7ce: $option = ["where" => ["groupfield" => $valgroup["_id"], "show" => 1, "pageShow.viewadd" => 1], "sort" => ["col" => 1, "poscol1" => 1, "poscol2" => 1]]; goto K14uw; W4A1e: if ($valgroup["coladd"] == "onecolumn") { goto QyMex; } goto Qf7ce; Hv6g4: RRkrO: goto W4A1e; K7bJV: $valgroup["fields"] = $field; goto bCVm2; bCVm2: if (isset($valgroup["editdefault"])) { goto n6Faj; } goto ukiP8; LRG6k: $this->load->model("settings/customfield/field_m"); goto O5DVp; G_fru: UOG8S: goto F4Cai; PHGPM: Rbip3: goto LRG6k; sH2me: goto Rbip3; goto Hv6g4; K14uw: goto wrU6b; goto JTBQ7; ODivo: goto UOG8S; goto TRz4U; ukiP8: $valgroup["nameLang"] = langJS("module_customfield.name_lang." . $valgroup["alias"]) !== "module_customfield.name_lang." . $valgroup["alias"] ? langJS("module_customfield.name_lang." . $valgroup["alias"]) : $valgroup["name"]; goto ODivo; MijNF: if (isset($valgroup["coladd"])) { goto RRkrO; } goto Qgo0e; TRz4U: n6Faj: goto bvPYz; S7bt7: wrU6b: goto PHGPM; tF45P: rtg83: goto K7bJV; IU9s1: $option = ["where" => ["groupfield" => $valgroup["_id"], "show" => 1, "pageShow.viewadd" => 1], "sort" => ["positionadd" => 1]]; goto S7bt7; JTBQ7: QyMex: goto IU9s1; sxqeI: } goto oBXWb; nfCBG: return $group; goto FaPQY; f0AnN: $this->load->model("settings/customfield/fieldgroup_m"); goto aWJ8G; FaPQY: } public function returnGroupAddSortIDAccount() { goto T8b3Q; ZTBkU: $optionSort = ["where" => ["module" => "accounts", "show" => 1], "sort" => ["position" => 1]]; goto C6wrQ; nkrwo: v1Iue: goto Tyjvc; iiHb6: foreach ($group as &$valgroup) { goto dWn_m; NI0t6: foreach ($field as $key => &$data) { goto ACprF; SCTAP: $showtemp = $data["show"]; goto rruGX; CL1A4: unset($fieldall["show"]); goto cX8JY; EOGQ7: $data["last_modified_username"] = searchnameuser($data["last_modified"]["byid"]); goto BXv6L; dbrFJ: BDBd0: goto eKM8l; HMx9E: aNWlz: goto nzJIb; cX8JY: unset($fieldall["tooltip"]); goto JlQmh; nzJIb: $data["choosefieldall"] = 0; goto Qb78X; MRaNc: $index = strpos($data["owner"], "_"); goto oU4g3; NQPGH: goto aNWlz; goto BVNmK; ACprF: if (isset($data["fieldall"])) { goto WsYqf; } goto P3oh8; E0hyK: AE2At: goto fuOhY; jTFaB: $data["nameLang"] = $data["name"]; goto HMx9E; krDjB: WIVpt: goto ta1uW; RUhI2: $data["created_username"] = $data["created"]["byid"]; goto dbrFJ; eEQWO: QZhTA: goto krDjB; B4tKo: $idFieldAll = $data["_id"]; goto aWTPV; MllP4: $data["nameLang"] = langJS("module_customfield.name_lang." . $data["alias"]) !== "module_customfield.name_lang." . $data["alias"] ? langJS("module_customfield.name_lang." . $data["alias"]) : $data["name"]; goto NQPGH; HoQua: if (!array_key_exists("owner", $data)) { goto WIVpt; } goto MRaNc; yNJ3d: $data["note"] = $notetemp; goto R19q7; K4d1b: $data["idFieldAll"] = $idFieldAll; goto H4FGx; eKM8l: C4TRO: goto Ov97s; LHcHH: $notetemp = $data["note"]; goto CL1A4; Sie40: $data["nameLang"] = langJS("module_customfield.name_lang." . $data["alias"]) !== "module_customfield.name_lang." . $data["alias"] ? langJS("module_customfield.name_lang." . $data["alias"]) : $data["name"]; goto Azxh_; P3oh8: if (isset($data["editdefault"]) || !(isset($data["system"]) && $data["system"] == 1 || isset($data["default"]) && $data["default"] == 1)) { goto iwvuI; } goto MllP4; kEru6: $data["created_username"] = ''; goto Fp4Br; rEsIR: $fieldall = $this->fieldall_m->db_oneoptions([], $optionFieldAll); goto SCTAP; Azxh_: $data["choosefieldall"] = 1; goto K4d1b; Ov97s: $data["last_modified_username"] = ''; goto Toamk; wPz0Q: PrYNx: goto DLyyA; R19q7: $data["col"] = $coltemp; goto Sie40; oUCLX: $data["created_username"] = searchnameuser($data["created"]["byid"]); goto LCfOA; sBsnJ: goto QZhTA; goto E0hyK; aWTPV: unset($fieldall["_id"]); goto DfIYm; eZGfh: $owner_username = searchbu($id); goto wSsUR; ta1uW: DRlXQ: goto o5D4R; rruGX: $coltemp = $data["col"]; goto Wu2l6; H4FGx: $data["_id"] = $idFieldAll; goto wPz0Q; Wu2l6: $tooltiptemp = $data["tooltip"]; goto LHcHH; JlQmh: unset($fieldall["note"]); goto B4tKo; oA3tS: WsYqf: goto V4Kem; DLyyA: $data["groupname"] = $valgroup["alias"]; goto kEru6; BXv6L: if (!($data["last_modified_username"] === false)) { goto KUwvN; } goto l35kh; ebYtX: HXaER: goto HoQua; Fp4Br: if (!array_key_exists("created", $data)) { goto C4TRO; } goto oUCLX; Toamk: if (!array_key_exists("last_modified", $data)) { goto HXaER; } goto EOGQ7; isuFD: $name = substr($data["owner"], 0, $index); goto Y_BFl; wSsUR: $data["owner_username"] = $owner_username["text"]; goto sBsnJ; INXkX: $data["tooltip"] = $tooltiptemp; goto yNJ3d; LCfOA: if (!($data["created_username"] === false)) { goto BDBd0; } goto RUhI2; DfIYm: $data = $fieldall; goto Dxrvh; C_LfJ: KUwvN: goto ebYtX; oU4g3: $id = substr($data["owner"], $index + 1); goto isuFD; Y_BFl: if ($name == "user") { goto AE2At; } goto eZGfh; Dxrvh: $data["show"] = $showtemp; goto INXkX; fuOhY: $data["owner_username"] = searchnameuser($id); goto eEQWO; l35kh: $data["last_modified_username"] = $data["last_modified"]["byid"]; goto C_LfJ; BVNmK: iwvuI: goto jTFaB; V4Kem: $optionFieldAll = ["where" => ["_id" => new \MongoDB\BSON\ObjectID($data["fieldall"]), "show" => 1], "sort" => ["positionadd" => 1]]; goto rEsIR; Qb78X: goto PrYNx; goto oA3tS; o5D4R: } goto B98hR; Th0ra: $valgroup["nameLang"] = $valgroup["name"]; goto Ua7Fe; TCaJE: $this->load->model("settings/customfield/field_m"); goto R7oj8; Ua7Fe: eGucl: goto ynA9m; R7oj8: $field = $this->field_m->db_get_withcache_custom($option, $this->data["pbx_customer_code"] . "_field_addsortidaccounts" . $valgroup["_id"], 600); goto NI0t6; CdmKg: $valgroup["nameLang"] = langJS("module_customfield.name_lang." . $valgroup["alias"]) !== "module_customfield.name_lang." . $valgroup["alias"] ? langJS("module_customfield.name_lang." . $valgroup["alias"]) : $valgroup["name"]; goto IHw7W; hg3wV: if (isset($valgroup["editdefault"])) { goto Pj7Xf; } goto CdmKg; qmCKd: Pj7Xf: goto Th0ra; B98hR: wvx1L: goto HTEti; IHw7W: goto eGucl; goto qmCKd; dWn_m: $option = ["where" => ["groupfield" => $valgroup["_id"], "show" => 1, "pageShow.viewadd" => 1], "sort" => ["_id" => 1, "arrDepend" => 1]]; goto TCaJE; HTEti: $valgroup["fields"] = $field; goto hg3wV; ynA9m: dVTin: goto mIBKW; mIBKW: } goto nkrwo; Lk_4z: $this->load->model("settings/customfield/fieldall_m"); goto ZTBkU; Tyjvc: return $group; goto naE0d; T8b3Q: $this->load->model("settings/customfield/fieldgroup_m"); goto Lk_4z; C6wrQ: $group = $this->fieldgroup_m->db_get_withcache_custom($optionSort, $this->data["pbx_customer_code"] . "_fieldgroup_addsortidaccounts", 600); goto iiHb6; naE0d: } public function fieldAddSortAccount() { goto Swy2l; Swy2l: $this->load->model("settings/customfield/fieldgroup_m"); goto dpQk2; Aj_lj: $group = $this->fieldgroup_m->db_get_withcache_custom($optionSort, $this->data["pbx_customer_code"] . "_fieldgroup_addsortaccounts", 600); goto hT0zE; ghocI: return $group; goto dM1Np; hT0zE: foreach ($group as &$valgroup) { goto BHnxj; TtJh3: goto mY7P2; goto bz8oE; MhxDr: $valgroup["fields"] = $field; goto gWUd3; skW8r: goto NsOI7; goto XlBzv; FDdnV: $valgroup["nameLang"] = langJS("module_customfield.name_lang." . $valgroup["alias"]) !== "module_customfield.name_lang." . $valgroup["alias"] ? langJS("module_customfield.name_lang." . $valgroup["alias"]) : $valgroup["name"]; goto TtJh3; YR9OE: $this->load->model("settings/customfield/field_m"); goto SbKqK; ncAII: foreach ($field as &$data) { goto OBv6R; lVr1b: if (!($data["created_username"] === false)) { goto tp2YY; } goto UAiIg; QsBZM: es7u2: goto zBOoq; OEXFe: if (isset($data["editdefault"]) || !(isset($data["system"]) && $data["system"] == 1 || isset($data["default"]) && $data["default"] == 1)) { goto UsV9_; } goto ef8R2; Y9s7R: tp2YY: goto Llt3I; xJzL6: goto sCCTL; goto Cg_s5; nAkgy: if ($name == "user") { goto OVA9G; } goto l6amo; ef8R2: $data["nameLang"] = langJS("module_customfield.name_lang." . $data["alias"]) !== "module_customfield.name_lang." . $data["alias"] ? langJS("module_customfield.name_lang." . $data["alias"]) : $data["name"]; goto kQYHM; rlmFL: $data["groupname"] = $valgroup["alias"]; goto dgoNc; GXESY: sCCTL: goto OMz8L; q2JXA: UsV9_: goto k5064; RCiyL: $data["idFieldAll"] = $idFieldAll; goto KoZs0; i1GOY: $data["col"] = $coltemp; goto FcR_o; o19Ul: if (!array_key_exists("last_modified", $data)) { goto chQw9; } goto E3qfy; QzBS7: $data["nameLang"] = langJS("module_customfield.name_lang." . $data["alias"]) !== "module_customfield.name_lang." . $data["alias"] ? langJS("module_customfield.name_lang." . $data["alias"]) : $data["name"]; goto soUEu; bnNF4: unset($fieldall["_id"]); goto WYNXi; o2e89: $id = substr($data["owner"], $index + 1); goto Xo4SV; R73Qx: $optionFieldAll = ["where" => ["_id" => new \MongoDB\BSON\ObjectID($data["fieldall"]), "show" => 1], "sort" => ["position" => 1]]; goto CvFdy; Llt3I: FYG0E: goto BoXn6; sz8Vx: $showtemp = $data["show"]; goto m0JYL; UAiIg: $data["created_username"] = $data["created"]["byid"]; goto Y9s7R; k5064: $data["nameLang"] = $data["name"]; goto vBeu_; Ecx6R: $idFieldAll = $data["_id"]; goto bnNF4; e0GMg: goto bPiBs; goto I8JSk; vU5hf: mHYrs: goto IvIXZ; un0fo: $data["last_modified_username"] = $data["last_modified"]["byid"]; goto QsBZM; vBeu_: PRx2I: goto SzZ1Y; zMaxE: if (!($data["last_modified_username"] === false)) { goto es7u2; } goto un0fo; wUAfZ: unset($fieldall["show"]); goto Zi0TE; WYNXi: $data = $fieldall; goto aD2Or; BoXn6: $data["last_modified_username"] = ''; goto o19Ul; I8JSk: yRH4n: goto R73Qx; B24ax: unset($fieldall["note"]); goto Ecx6R; KoZs0: $data["_id"] = $idFieldAll; goto Pggr_; m0JYL: $coltemp = $data["col"]; goto jJl7b; kQYHM: goto PRx2I; goto q2JXA; kqctZ: $notetemp = $data["note"]; goto wUAfZ; SzZ1Y: $data["choosefieldall"] = 0; goto e0GMg; Zi0TE: unset($fieldall["tooltip"]); goto B24ax; aD2Or: $data["show"] = $showtemp; goto i1GOY; E3qfy: $data["last_modified_username"] = searchnameuser($data["last_modified"]["byid"]); goto zMaxE; FcR_o: $data["tooltip"] = $tooltiptemp; goto cbs_E; Pggr_: bPiBs: goto rlmFL; CvFdy: $fieldall = $this->fieldall_m->db_oneoptions([], $optionFieldAll); goto sz8Vx; d9TRy: $index = strpos($data["owner"], "_"); goto o2e89; vTWsg: $data["owner_username"] = $owner_username["text"]; goto xJzL6; cbs_E: $data["note"] = $notetemp; goto QzBS7; tu0Fh: $data["owner_username"] = searchnameuser($id); goto GXESY; OBv6R: if (isset($data["fieldall"])) { goto yRH4n; } goto OEXFe; OMz8L: JlWw8: goto vU5hf; zBOoq: chQw9: goto gwpU5; Xo4SV: $name = substr($data["owner"], 0, $index); goto nAkgy; Ymn3V: if (!array_key_exists("created", $data)) { goto FYG0E; } goto hG1PH; gwpU5: if (!array_key_exists("owner", $data)) { goto JlWw8; } goto d9TRy; l6amo: $owner_username = searchbu($id); goto vTWsg; hG1PH: $data["created_username"] = searchnameuser($data["created"]["byid"]); goto lVr1b; soUEu: $data["choosefieldall"] = 1; goto RCiyL; dgoNc: $data["created_username"] = ''; goto Ymn3V; jJl7b: $tooltiptemp = $data["tooltip"]; goto kqctZ; Cg_s5: OVA9G: goto tu0Fh; IvIXZ: } goto XmquL; Ng2yz: NXTuS: goto FBWx3; UoUya: $option = ["where" => ["groupfield" => $valgroup["_id"], "show" => 1, "pageShow.viewadd" => 1], "sort" => ["positionadd" => 1]]; goto fxzCJ; SbKqK: $field = $this->field_m->db_get_withcache_custom($option, $this->data["pbx_customer_code"] . "_field_addsortaccounts_" . $valgroup["_id"], 600); goto ncAII; M5VYh: if ($valgroup["coladd"] == "onecolumn") { goto cB_3k; } goto ypFcf; XlBzv: Ead3k: goto M5VYh; BHnxj: if (isset($valgroup["coladd"])) { goto Ead3k; } goto BRYD1; gWUd3: if (isset($valgroup["editdefault"])) { goto xs_FY; } goto FDdnV; y8w1_: goto i82AJ; goto lF2fp; XmquL: TcUmd: goto MhxDr; nqBIM: mY7P2: goto Ng2yz; ypFcf: $option = ["where" => ["groupfield" => $valgroup["_id"], "show" => 1, "pageShow.viewadd" => 1], "sort" => ["col" => 1, "poscol1" => 1, "poscol2" => 1]]; goto y8w1_; lF2fp: cB_3k: goto UoUya; JbaXb: NsOI7: goto YR9OE; BRYD1: $option = ["where" => ["groupfield" => $valgroup["_id"], "show" => 1, "pageShow.viewadd" => 1], "sort" => ["positionadd" => 1]]; goto skW8r; fxzCJ: i82AJ: goto JbaXb; bz8oE: xs_FY: goto L5QQF; L5QQF: $valgroup["nameLang"] = $valgroup["name"]; goto nqBIM; FBWx3: } goto qkl82; djlqC: $optionSort = ["where" => ["module" => "accounts", "show" => 1], "sort" => ["position" => 1]]; goto Aj_lj; qkl82: T821V: goto ghocI; dpQk2: $this->load->model("settings/customfield/fieldall_m"); goto djlqC; dM1Np: } public function searchTicket() { goto ECjZr; OVUYb: Z8Yn9: goto uMT1L; ECjZr: header("Content-Type: application/json"); goto u5uB9; xmta9: if (empty($requesters)) { goto HY82U; } goto v0FDF; QqEfG: exit; goto a4cVT; rd5uy: goto i5Af0; goto dbpBj; sOK9v: YqhAX: goto eMHk_; eMHk_: foreach ($result["data"] as &$value) { goto hn8EZ; a01PX: HkGDO: goto c51MI; nv5La: $value["createddate_string"] = date("d/m/Y", $value["created"]["time"]); goto XjQOD; hn8EZ: $value["createdtime_string"] = date("H:i:s", $value["created"]["time"]); goto nv5La; e2RmO: $value["created_string"] = ''; goto lQ3s1; getqm: $value["created_string"] = searchnameuser($value["created"]["byid"]); goto f3k_x; f3k_x: if (!($value["created_string"] === false)) { goto ETdW5; } goto p84AD; p84AD: $value["created_string"] = $value["created"]["byid"]; goto U5cOP; U5cOP: ETdW5: goto a01PX; lQ3s1: if (!array_key_exists("created", $value)) { goto HkGDO; } goto getqm; c51MI: n0Cg0: goto KPeLI; XjQOD: $value["requester_string"] = !empty($value["requester_id"]) && array_key_exists($value["requester_id"], $requesters_name) ? $requesters_name[$value["requester_id"]] : ''; goto e2RmO; KPeLI: } goto P8iNg; uMT1L: if ($request->field === "ticket_id") { goto Zq0_W; } goto Dty0w; XtkhI: $this->load->model("services/tickets/tickets_m"); goto pawZO; dYEHx: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("bpm.isEnded", "neq", true), $request); goto XrDIu; n4KVg: $requesters_name = []; goto OIph1; erhzE: $arr_requesterid = array_column($result["data"], "requester_id"); goto cv2hH; XrDIu: $sortdatecreated = new stdClass(); goto qFrBs; TJg7d: $request->filter->filters[0]->field = "ticket_id"; goto COc_G; v0FDF: foreach ($requesters as $req) { goto G697y; nJ9PS: if ($req["frommodule"] === "users") { goto ZMimY; } goto S8Gf1; YdOs_: $info = !empty($req["name"]) ? $req["name"] : $req["username"]; goto z19b0; S8Gf1: $info = $req["name"]; goto P2w3i; z19b0: pAaZg: goto kBqBN; P2w3i: goto pAaZg; goto llBxi; tZoR3: d9ZEX: goto tVtM4; llBxi: ZMimY: goto YdOs_; kBqBN: $requesters_name[$req["_id"]] = $info; goto tZoR3; G697y: $info = ''; goto nJ9PS; tVtM4: } goto ZzGz7; ehdjn: echo json_encode(["data" => [], "total" => 0]); goto QqEfG; qFrBs: $sortdatecreated->field = "created.time"; goto a2TCp; mg645: qwdv2: goto rd5uy; AOSvv: $this->mongodatasourceresult->addFilterRequest($filter_ticket, $request); goto KiuqT; Au9sx: $request->sort = [$sortdatecreated]; goto UuVud; Dty0w: if ($request->field === "subject") { goto jlMBp; } goto Nreb7; ZzGz7: mr0oJ: goto ehDDC; gLQeF: $request->filter->filters[0]->field = "subject4search"; goto mg645; F8KSf: $ticket_search[] = $this->mongodatasourceresult->initFilter("ticket_id", "contains", $textsearch); goto HRpCf; pawZO: $this->load->model("settings/configtickets/configmergeticket_m"); goto uBdNG; NiSeT: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("status", "neq", "End"), $request); goto dYEHx; HRpCf: $ticket_search[] = $this->mongodatasourceresult->initFilter("subject4search", "contains", $textsearch); goto CwU63; WDdal: if (!empty($request->filter->filters)) { goto Z8Yn9; } goto ehdjn; a2TCp: $sortdatecreated->dir = "desc"; goto Au9sx; rd8eH: $config = $this->configmergeticket_m->db_oneoptions([], ["where" => ["status" => "new"]]); goto BX0iW; kETmV: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("delete", "isempty", 1), $request); goto NiSeT; a4cVT: goto kcyS0; goto OVUYb; tFOda: $ticket_search = []; goto F8KSf; UuVud: $request->filter->logic = "and"; goto xOvU3; e4Z0n: $this->load->model("services/tickets/requesters_m"); goto n4KVg; uBdNG: $this->load->library("tickets_library"); goto rd8eH; xOvU3: kcyS0: goto v98g5; BpmQn: echo json_encode($result); goto d2ywr; cv2hH: $requesters = $this->requesters_m->db_getbylistid($arr_requesterid); goto xmta9; OIph1: if (empty($result["data"])) { goto YqhAX; } goto erhzE; v98g5: $result = $this->tickets_library->db_read($request); goto e4Z0n; BX0iW: $mergetype = !empty($config["type"]) ? $config["type"] : "disable_ticketmerge"; goto WDdal; CwU63: $filter_ticket = $this->mongodatasourceresult->initFilterWithSub("or", $ticket_search); goto AOSvv; Nreb7: $textsearch = $request->filter->filters[0]->value; goto rNOK0; rNOK0: $request->filter->filters = []; goto tFOda; COc_G: i5Af0: goto kETmV; P8iNg: pqa24: goto BpmQn; gkfeZ: jlMBp: goto gLQeF; KiuqT: goto qwdv2; goto gkfeZ; dbpBj: Zq0_W: goto TJg7d; ehDDC: HY82U: goto sOK9v; u5uB9: $request = json_decode(file_get_contents("php://input")); goto XtkhI; d2ywr: } public function returnOverviewSortID() { goto YWEag; lqoHv: POLAn: goto WoFXE; lbMGO: $optionSort = ["where" => ["module" => "tickets", "show" => 1], "sort" => ["positionoverview" => 1]]; goto TiTcb; YWEag: $this->load->model("settings/customfield/fieldgroup_m"); goto jnOMl; TiTcb: $group = $this->fieldgroup_m->db_get_withcache_custom($optionSort, $this->data["pbx_customer_code"] . "_fieldgroup_overviewsortidtickets", 600); goto Ax_Dw; WoFXE: return $group; goto VK04d; Ax_Dw: foreach ($group as &$valgroup) { goto ur3qY; yxVRx: $field = $this->field_m->db_get_withcache_custom($option, $this->data["pbx_customer_code"] . "_fieldgroup_overviewsortidtickets_" . $valgroup["_id"], 600); goto riZPZ; bgu_Z: Jn04O: goto ixBRN; DLOJp: if (isset($valgroup["editdefault"])) { goto XyXrr; } goto ytYvL; riZPZ: foreach ($field as $key => &$data) { goto YNIed; jstuV: XPhua: goto KZYYk; nkt4G: IKPMY: goto gCCQX; eFSKU: $data["owner_username"] = searchnameuser($id); goto liPHI; NuxFs: $fieldall = $this->fieldall_m->db_oneoptions([], $optionFieldAll); goto cJ2SK; CE7iz: $optionFieldAll = ["where" => ["_id" => new \MongoDB\BSON\ObjectID($data["fieldall"]), "show" => 1], "sort" => ["positionadd" => 1]]; goto NuxFs; b1Jyt: $index = strpos($data["owner"], "_"); goto i3HKN; yjlZE: if (!($data["created_username"] === false)) { goto IKPMY; } goto ApsHj; O2bRU: PYak3: goto sQaEo; A_0Ms: unset($fieldall["tooltip"]); goto k05O3; jZAgT: goto XPhua; goto O2bRU; ZNE5D: $idFieldAll = $data["_id"]; goto U6cGZ; K57J3: goto YJg_7; goto ztzOW; lkjHJ: $data["last_modified_username"] = searchnameuser($data["last_modified"]["byid"]); goto GHVxU; atz3q: nlPf2: goto SaPur; EeAoB: unset($fieldall["show"]); goto A_0Ms; QO4MZ: $data["created_username"] = searchnameuser($data["created"]["byid"]); goto yjlZE; IsXkv: $data["tooltip"] = $tooltiptemp; goto vkfRZ; U6cGZ: unset($fieldall["_id"]); goto HqkFX; pQ_Jv: Ff6ES: goto aP35t; YVMet: $data["last_modified_username"] = $data["last_modified"]["byid"]; goto uexkc; jBXxM: if ($name == "user") { goto X25uZ; } goto nX1dG; Pjk92: $data["created_username"] = ''; goto OXPJ2; vqa51: YJg_7: goto PQtZV; sQaEo: $data["nameLang"] = $data["name"]; goto jstuV; DAnc8: $data["idFieldAll"] = $idFieldAll; goto qya6C; C2NBU: $data["owner_username"] = $owner_username["text"]; goto F1VBL; KZYYk: $data["choosefieldall"] = 0; goto K57J3; ztzOW: uzOev: goto CE7iz; vkfRZ: $data["note"] = $notetemp; goto q90Xx; xoyj0: $data["nameLang"] = langJS("module_customfield.name_lang." . $data["alias"]) !== "module_customfield.name_lang." . $data["alias"] ? langJS("module_customfield.name_lang." . $data["alias"]) : $data["name"]; goto r2oAi; F3ovj: X25uZ: goto eFSKU; qya6C: $data["_id"] = $idFieldAll; goto vqa51; HqkFX: $data = $fieldall; goto YhVRE; i3HKN: $id = substr($data["owner"], $index + 1); goto kJ65V; cJ2SK: $showtemp = $data["show"]; goto DMesN; r2oAi: $data["choosefieldall"] = 1; goto DAnc8; YhVRE: $data["show"] = $showtemp; goto IsXkv; FX6Hg: if (!array_key_exists("last_modified", $data)) { goto nlPf2; } goto lkjHJ; SaPur: if (!array_key_exists("owner", $data)) { goto Ff6ES; } goto b1Jyt; ApsHj: $data["created_username"] = $data["created"]["byid"]; goto nkt4G; q90Xx: $data["col"] = $coltemp; goto xoyj0; kJ65V: $name = substr($data["owner"], 0, $index); goto jBXxM; YNIed: if (isset($data["fieldall"])) { goto uzOev; } goto UpivR; yEhFC: $data["last_modified_username"] = ''; goto FX6Hg; PQtZV: $data["groupname"] = $valgroup["alias"]; goto Pjk92; OXPJ2: if (!array_key_exists("created", $data)) { goto n0FMk; } goto QO4MZ; liPHI: V2naB: goto pQ_Jv; F1VBL: goto V2naB; goto F3ovj; uexkc: enD2K: goto atz3q; DMesN: $coltemp = $data["col"]; goto Dcbdc; GHVxU: if (!($data["last_modified_username"] === false)) { goto enD2K; } goto YVMet; fEah0: $data["nameLang"] = langJS("module_customfield.name_lang." . $data["alias"]) !== "module_customfield.name_lang." . $data["alias"] ? langJS("module_customfield.name_lang." . $data["alias"]) : $data["name"]; goto jZAgT; gCCQX: n0FMk: goto yEhFC; k05O3: unset($fieldall["note"]); goto ZNE5D; Dcbdc: $tooltiptemp = $data["tooltip"]; goto DZrbI; aP35t: se18x: goto jlxDk; UpivR: if (isset($data["editdefault"]) || !(isset($data["system"]) && $data["system"] == 1 || isset($data["default"]) && $data["default"] == 1)) { goto PYak3; } goto fEah0; DZrbI: $notetemp = $data["note"]; goto EeAoB; nX1dG: $owner_username = searchbu($id); goto C2NBU; jlxDk: } goto eIv99; A2W_t: $valgroup["category_string"] = ''; goto rEkma; F90eS: $this->load->model("settings/customfield/field_m"); goto yxVRx; BuMOB: IUXng: goto ZfFYo; ytYvL: $valgroup["nameLang"] = langJS("module_customfield.name_lang." . $valgroup["alias"]) !== "module_customfield.name_lang." . $valgroup["alias"] ? langJS("module_customfield.name_lang." . $valgroup["alias"]) : $valgroup["name"]; goto PVYpW; mZ4Tt: $valgroup["check_cate"] = 1; goto nyvA4; o18TQ: goto RKBtu; goto uCgSO; R0xfB: $valgroup["check_cate"] = 0; goto BuMOB; GiRJw: $valgroup["category_string"] = implode(",", $valgroup["category"]); goto mZ4Tt; FHiL5: $valgroup["fields"] = $field; goto DLOJp; eIv99: AADX1: goto FHiL5; ur3qY: $option = ["where" => ["groupfield" => $valgroup["_id"], "pageShow.overview" => 1], "or_where" => ["show" => 1, "default" => 1], "sort" => ["_id" => 1, "arrDepend" => 1]]; goto RV3UL; uCgSO: MAhS_: goto GiRJw; ZfFYo: RKBtu: goto F90eS; PVYpW: goto Jn04O; goto WKVDW; ixBRN: Kh2uo: goto SjGpn; nyvA4: if (!empty($valgroup["category"])) { goto IUXng; } goto R0xfB; WKVDW: XyXrr: goto aFLHu; rEkma: $valgroup["check_cate"] = 0; goto o18TQ; aFLHu: $valgroup["nameLang"] = $valgroup["name"]; goto bgu_Z; RV3UL: if (isset($valgroup["category"])) { goto MAhS_; } goto A2W_t; SjGpn: } goto lqoHv; jnOMl: $this->load->model("settings/customfield/fieldall_m"); goto lbMGO; VK04d: } public function returnGroupOverview() { goto dwm2x; neoox: $group = $this->fieldgroup_m->db_get_withcache_custom($optionSort, $this->data["pbx_customer_code"] . "_fieldgroup_groupoverviewtickets", 600); goto wX3U7; QXPhX: s6PCH: goto k4Ybe; wX3U7: foreach ($group as &$valgroup) { goto vOCW2; skkP3: $valgroup["category_string"] = ''; goto OQ5lT; fJKDw: FSXbv: goto hJ71n; GJ4qG: if (isset($valgroup["category"])) { goto fWUIo; } goto skkP3; gYXs6: if (!empty($valgroup["category"])) { goto yzV3o; } goto ea1HP; vOCW2: $option = ["where" => ["groupfield" => $valgroup["_id"], "pageShow.overview" => 1], "or_where" => ["show" => 1, "default" => 1], "sort" => ["positionoverview" => 1]]; goto GJ4qG; m1Gps: goto wEi_p; goto lbXRW; R3HGz: $valgroup["nameLang"] = langJS("module_customfield.name_lang." . $valgroup["alias"]) !== "module_customfield.name_lang." . $valgroup["alias"] ? langJS("module_customfield.name_lang." . $valgroup["alias"]) : $valgroup["name"]; goto m1Gps; PhMBw: fWUIo: goto VHP3z; KFHl8: $valgroup["check_cate"] = 1; goto gYXs6; dhDRe: yzV3o: goto xprN1; xprN1: h0JYj: goto Xrx8B; mk7_S: $valgroup["fields"] = $field; goto ysBCw; A3mn0: foreach ($field as &$data) { goto EmzHu; VNpIh: if (!array_key_exists("created", $data)) { goto WpQMy; } goto vk1ZD; vk1ZD: $data["created_username"] = searchnameuser($data["created"]["byid"]); goto y8mRN; CkMzT: goto jRZlg; goto wkUPh; b4y7o: Gm9y6: goto KfjtQ; MWSLy: SVy53: goto S1dKw; S1dKw: $data["choosefieldall"] = 0; goto yQgr4; Ymhi0: $data["last_modified_username"] = $data["last_modified"]["byid"]; goto MSR2a; y8mRN: if (!($data["created_username"] === false)) { goto NRNp4; } goto uLzLg; PKtmE: $fieldall = $this->fieldall_m->db_oneoptions([], $optionFieldAll); goto FRnU7; uvE_2: $data["col"] = $coltemp; goto KmvCu; YiyUh: $data["choosefieldall"] = 1; goto gW4RU; kby8s: $data["nameLang"] = langJS("module_customfield.name_lang." . $data["alias"]) !== "module_customfield.name_lang." . $data["alias"] ? langJS("module_customfield.name_lang." . $data["alias"]) : $data["name"]; goto YiyUh; B30Tw: $owner_username = searchbu($id); goto y0MxS; VSxB7: NRNp4: goto RgWMR; Fj6NN: $data["show"] = $showtemp; goto uvE_2; FRnU7: $showtemp = $data["show"]; goto Omepu; JLSuV: $data["last_modified_username"] = searchnameuser($data["last_modified"]["byid"]); goto d7c39; yQgr4: goto T0I6Y; goto GNR7C; Omepu: $coltemp = $data["col"]; goto V2vPk; GNR7C: p852h: goto eQJMH; fN3ky: unset($fieldall["tooltip"]); goto h1QTr; yVqKI: $data["last_modified_username"] = ''; goto u7v0r; eCQpQ: $data["created_username"] = ''; goto VNpIh; EmzHu: if (isset($data["fieldall"])) { goto p852h; } goto cL6sq; ByN4g: T0I6Y: goto q_ozp; jq3NF: $idFieldAll = $data["_id"]; goto J8wbv; MZUtu: $data["note"] = $notetemp; goto kby8s; urtHa: ryvaR: goto TINg0; ODeLc: SHqa3: goto b4y7o; tX0sC: whb_s: goto HCW_7; wAASg: $notetemp = $data["note"]; goto iY7gO; d7c39: if (!($data["last_modified_username"] === false)) { goto syR0b; } goto Ymhi0; q_ozp: $data["groupname"] = $valgroup["alias"]; goto eCQpQ; tDmi_: $data["owner_username"] = searchnameuser($id); goto z9_dD; Wu3Gw: $data = $fieldall; goto Fj6NN; bceZm: goto SVy53; goto tX0sC; h1QTr: unset($fieldall["note"]); goto jq3NF; eQJMH: $optionFieldAll = ["where" => ["_id" => new \MongoDB\BSON\ObjectID($data["fieldall"]), "show" => 1], "sort" => ["position" => 1]]; goto PKtmE; mXXU_: $data["nameLang"] = langJS("module_customfield.name_lang." . $data["alias"]) !== "module_customfield.name_lang." . $data["alias"] ? langJS("module_customfield.name_lang." . $data["alias"]) : $data["name"]; goto bceZm; u7v0r: if (!array_key_exists("last_modified", $data)) { goto ryvaR; } goto JLSuV; J8wbv: unset($fieldall["_id"]); goto Wu3Gw; TUj7n: $name = substr($data["owner"], 0, $index); goto iWfR3; uLzLg: $data["created_username"] = $data["created"]["byid"]; goto VSxB7; MSR2a: syR0b: goto urtHa; cL6sq: if (isset($data["editdefault"]) || !(isset($data["system"]) && $data["system"] == 1 || isset($data["default"]) && $data["default"] == 1)) { goto whb_s; } goto mXXU_; TINg0: if (!array_key_exists("owner", $data)) { goto SHqa3; } goto EIHz0; y0MxS: $data["owner_username"] = $owner_username["text"]; goto CkMzT; iY7gO: unset($fieldall["show"]); goto fN3ky; V2vPk: $tooltiptemp = $data["tooltip"]; goto wAASg; zQpgQ: $id = substr($data["owner"], $index + 1); goto TUj7n; KmvCu: $data["tooltip"] = $tooltiptemp; goto MZUtu; gW4RU: $data["idFieldAll"] = $idFieldAll; goto YpCjp; wkUPh: Xm8Cg: goto tDmi_; z9_dD: jRZlg: goto ODeLc; HCW_7: $data["nameLang"] = $data["name"]; goto MWSLy; iWfR3: if ($name == "user") { goto Xm8Cg; } goto B30Tw; EIHz0: $index = strpos($data["owner"], "_"); goto zQpgQ; RgWMR: WpQMy: goto yVqKI; YpCjp: $data["_id"] = $idFieldAll; goto ByN4g; KfjtQ: } goto qQmZX; lbXRW: Vy_aZ: goto b6ah8; Xrx8B: $this->load->model("settings/customfield/field_m"); goto iKdA1; iKdA1: $field = $this->field_m->db_get_withcache_custom($option, $this->data["pbx_customer_code"] . "_field_groupoverviewtickets_" . $valgroup["_id"], 600); goto A3mn0; qQmZX: X_bju: goto mk7_S; b6ah8: $valgroup["nameLang"] = $valgroup["name"]; goto nkjkw; VHP3z: $valgroup["category_string"] = implode(",", $valgroup["category"]); goto KFHl8; ea1HP: $valgroup["check_cate"] = 0; goto dhDRe; ysBCw: if (isset($valgroup["editdefault"])) { goto Vy_aZ; } goto R3HGz; OQ5lT: $valgroup["check_cate"] = 0; goto QMAub; QMAub: goto h0JYj; goto PhMBw; nkjkw: wEi_p: goto fJKDw; hJ71n: } goto QXPhX; LWNA3: $this->load->model("settings/customfield/fieldall_m"); goto fu0tA; dwm2x: $this->load->model("settings/customfield/fieldgroup_m"); goto LWNA3; k4Ybe: return $group; goto PhGLU; fu0tA: $optionSort = ["where" => ["module" => "tickets", "show" => 1], "sort" => ["positionoverview" => 1]]; goto neoox; PhGLU: } public function checkCategoryTicket() { goto N0mm8; SWkRI: $this->load->model("settings/customfield/field_m"); goto Dza_C; VRchu: $field = $this->field_m->db_oneoptions([], $option); goto uc1xQ; KzooF: $check = 1; goto rZVr9; rZVr9: AHD9I: goto j3kew; uc1xQ: if (!($field["show"] == 1)) { goto AHD9I; } goto KzooF; N0mm8: $option = ["where" => ["module" => "tickets", "alias" => "category"]]; goto SWkRI; j3kew: return $check; goto OExFZ; Dza_C: $check = 0; goto VRchu; OExFZ: } public function checkStatusTicket() { goto EidQ7; uWWji: return $check; goto pneGL; qaY0h: Nm12a: goto uWWji; EidQ7: $option = ["where" => ["module" => "tickets", "alias" => "status"]]; goto cwPrr; cwPrr: $this->load->model("settings/customfield/field_m"); goto ubB1b; ubB1b: $check = 0; goto HdoxB; HdoxB: $field = $this->field_m->db_oneoptions([], $option); goto WIY1f; xcy4Q: $check = 1; goto qaY0h; WIY1f: if (!($field["show"] == 1)) { goto Nm12a; } goto xcy4Q; pneGL: } public function checkIDTicket() { goto XrPVz; DhWmN: uJ303: goto AbuJ_; v6AEr: $check = 1; goto DhWmN; mzW0X: $this->load->model("settings/customfield/field_m"); goto FNang; XrPVz: $option = ["where" => ["module" => "tickets", "alias" => "ticket_id"]]; goto mzW0X; jCi2Q: $field = $this->field_m->db_oneoptions([], $option); goto uKWzW; AbuJ_: return $check; goto kof4g; FNang: $check = 0; goto jCi2Q; uKWzW: if (!($field["show"] == 1)) { goto uJ303; } goto v6AEr; kof4g: } public function getTicketLinkByGroupID($groupid) { goto L9tST; yyaMH: echo json_encode($results); goto g2fFL; ujvIJ: foreach ($results as &$value) { goto CERvl; O3h8h: $value["created_string"] = searchnameuser($value["created"]["byid"]); goto ofrm9; FZM27: $value["created_string"] = ''; goto ei2fF; k3NDE: BD4C8: goto afIVv; fD65z: $value["assignee_string"] = searchnameuser($value["assignee_info"]["id"]); goto syH0D; ofrm9: if (!($value["created_string"] === false)) { goto BD4C8; } goto sJD7O; syH0D: bh5Z8: goto s4Zjp; sJD7O: $value["created_string"] = $value["created"]["byid"]; goto k3NDE; t5FwA: $value["createddate_string"] = date("d/m/Y", $value["created"]["time"]); goto blMiC; CERvl: $value["createdtime_string"] = date("H:i:s", $value["created"]["time"]); goto t5FwA; blMiC: $value["requester_string"] = !empty($value["requester_id"]) && array_key_exists($value["requester_id"], $requesters_name) ? $requesters_name[$value["requester_id"]] : ''; goto FZM27; ei2fF: if (!array_key_exists("created", $value)) { goto ABzLc; } goto O3h8h; afIVv: ABzLc: goto fD65z; s4Zjp: } goto ezdq0; PAAI3: if (empty($results)) { goto yCwaI; } goto Ctme1; YGBpn: HZyWQ: goto abRjv; NUEBf: yCwaI: goto ujvIJ; gQ0mz: $requesters_name = []; goto PAAI3; L9tST: $this->load->model("services/tickets/tickets_m"); goto PGB46; ezdq0: Pwtfb: goto yyaMH; Mwcy4: if (empty($requesters)) { goto VCqkF; } goto MVOwT; abRjv: VCqkF: goto NUEBf; ESsvI: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("link_id", "eq", $groupid), $filter); goto F6qTS; Ctme1: $arr_requesterid = array_column($results, "requester_id"); goto M1rZR; MVOwT: foreach ($requesters as $req) { goto rZsYY; jh02O: goto vVH3B; goto mGKFB; q90KD: $info = $req["name"]; goto jh02O; C3rqu: if ($req["frommodule"] === "users") { goto KJIN5; } goto q90KD; QTB0l: vVH3B: goto XAOm9; aXG0b: $info = !empty($req["name"]) ? $req["name"] : $req["username"]; goto QTB0l; XAOm9: $requesters_name[$req["_id"]] = $info; goto WR4fY; WR4fY: GsHAA: goto FX4Vv; mGKFB: KJIN5: goto aXG0b; rZsYY: $info = ''; goto C3rqu; FX4Vv: } goto YGBpn; yFLMu: $this->load->model("services/tickets/requesters_m"); goto gQ0mz; G3xmf: $filter = new stdClass(); goto ESsvI; M1rZR: $requesters = $this->requesters_m->db_getbylistid($arr_requesterid); goto Mwcy4; F6qTS: $results = $this->tickets_library->db_read($filter)["data"]; goto yFLMu; PGB46: $this->load->library("tickets_library"); goto G3xmf; g2fFL: } public function readLinkTicket() { goto TgQDP; N4SgU: qMWxT: goto JDMa6; U8e9G: $request = json_decode(file_get_contents("php://input"), true); goto aTYSh; wZiVq: VVPlP: goto J5gft; JYUgE: OSTZ6: goto eSvzs; uKu0t: HjPUB: goto ZJko2; pFmJd: YPFde: goto V0olU; tmJg8: $result = $this->tickets_library->db_read($filter); goto Stykp; u7xFh: goto OSTZ6; goto uKu0t; Hj_l9: $data = $this->tickets_links_m->db_alloptions([], $option); goto HGkru; Jfx8P: G5rTM: goto ngJvG; XUwG3: foreach ($requesters as $req) { goto h67WZ; h67WZ: $info = ''; goto zEfha; aUY2I: $info = !empty($req["name"]) ? $req["name"] : $req["username"]; goto DeRr7; zEfha: if ($req["frommodule"] === "users") { goto gW13Y; } goto i_tg0; AKZFd: $requesters_name[$req["_id"]] = $info; goto RX25o; DeRr7: T7awm: goto AKZFd; g95Cw: goto T7awm; goto D4Et_; i_tg0: $info = $req["name"]; goto g95Cw; D4Et_: gW13Y: goto aUY2I; RX25o: fSO0e: goto wQQeh; wQQeh: } goto VVVDJ; iOdjv: $requesters = $this->requesters_m->db_getbylistid($arr_requesterid); goto XPOHT; TgXeg: $arr_requesterid = array_column($data, "requester_id"); goto iOdjv; XPOHT: if (empty($requesters)) { goto qMWxT; } goto XUwG3; TgQDP: header("Content-Type: application/json"); goto U8e9G; PuDLO: $listticket = []; goto SIUHt; Stykp: if (!(isset($result["data"]) && count($result["data"]) > 0)) { goto qBPfc; } goto inxBB; ZXLQA: y6bsN: goto jWtEI; V0olU: qBPfc: goto ZXLQA; NnbXE: $this->load->model("services/tickets/requesters_m"); goto gh7bS; o0oo0: $option = ["where" => ["groupid" => $id], "sort" => ["_id" => -1]]; goto pQPHX; yuHOl: $listid = array_column($data, "idticket"); goto PuDLO; polRT: $temp_arr = []; goto EhyGk; jWtEI: foreach ($data as &$value) { goto yUoEV; hXj3F: ke0ig: goto UPGu3; o1eJF: if (!isset($bu_username["text"])) { goto Uc0_F; } goto nyGdp; TybaS: $value["createddate_string"] = date("d/m/Y", $value["created"]["time"]); goto MSBc2; P9lnf: $value["background"] = "#999999"; goto vENrY; Ui1Nk: $value["createdtime_string"] = date("H:i:s", $value["created"]["time"]); goto TybaS; C0ZZj: $value["created_string"] = $value["created"]["byid"]; goto Nvxvx; LZyuE: UCOrC: goto copkF; sXnWg: Uc0_F: goto rQVVg; sCwLB: ULy1O: goto v0I3k; tVN2c: ebV7y: goto PggaW; z_4Ko: HrdJO: goto sCwLB; d0HWs: GVJG1: goto LGHac; ddhd5: if (!(isset($value["tickets"]["bpm"]["currentState"]) && $value["tickets"]["bpm"]["currentState"] == false)) { goto Zfd21; } goto CKq38; vENrY: Zfd21: goto mPqAa; R0BOv: if (!isset($value["tickets"]["bpm_currentState"]["extendConfig"]["backgroundColor"])) { goto ke0ig; } goto c6SyS; sLN9_: $value["background"] = "#e67e22"; goto Be4oi; UPGu3: goto OssR4; goto Bhewp; copkF: $value["tickets"]["assignee_string"] = searchnameuser($id); goto Wl5RH; Lp8aF: p6G9t: goto sLN9_; e8Qf4: $value["created_string"] = ''; goto DgZvp; yUoEV: $value["created"] = $value["created_ticket"]; goto v8V5B; Oh7Ik: if ($value["tickets"]["bpm_currentState"]["name"] == "In Progress") { goto p6G9t; } goto QY_7a; rCmV2: $value["created_username"] = searchnameuser($value["created"]["byid"]); goto hUVAV; Nv6ta: if (!($value["tickets"]["assignee"] !== '')) { goto HrdJO; } goto OJHf0; PggaW: $value["background"] = "#e74c3c"; goto tu27c; w20IS: $value["background"] = "#aad178"; goto kQSQt; mPqAa: ba59K: goto aXgL6; ES_yc: if (isset($value["tickets"]["bpm"]["currentState"]) && $value["tickets"]["bpm"]["currentState"]) { goto UJNcW; } goto j1y1p; CKq38: $value["tickets"]["bpm_currentState"] = ["name" => "End", "extendConfig" => ["status" => "End", "typeColor" => "default", "classButton" => "warning"]]; goto P9lnf; bpXq3: $value["hourcreate"] = date("H:i:s", $value["created"]["time"]); goto Y3mpX; v0I3k: $value["background"] = ''; goto ES_yc; LGHac: $value["tickets"] = $listticket[$value["idticket"]] ?? []; goto qygfO; rP9wY: if (!($value["last_modified_username"] === false)) { goto kJnIx; } goto n44yh; DgZvp: if (!array_key_exists("created", $value)) { goto GVJG1; } goto QHoVf; OJNPA: H0nfb: goto LKMur; v8V5B: $value["created_username"] = ''; goto xGe_5; xGe_5: if (!array_key_exists("created", $value)) { goto V0V5u; } goto rCmV2; QY_7a: if ($value["tickets"]["bpm_currentState"]["name"] == "Approved") { goto xlnBS; } goto J34kP; hqn2A: V0V5u: goto i_4Zd; uVS3P: if ($value["type"] == "parentlevel") { goto ZGmsL; } goto v_bkB; TF6VK: $value["label"] = langJS("general.samelevel"); goto RiCe8; chsud: s1GAp: goto bpXq3; MSBc2: $value["requester_string"] = !empty($value["requester_id"]) && array_key_exists($value["requester_id"], $requesters_name) ? $requesters_name[$value["requester_id"]] : ''; goto e8Qf4; cRLDU: $bu_username = searchbu($id); goto o1eJF; Nvxvx: gWrG6: goto d0HWs; fmQDh: goto PWEL3; goto tVN2c; skZOD: $value["last_modified_username"] = searchnameuser($value["last_modified"]["byid"]); goto rP9wY; Y3mpX: $value["datecreate"] = date("d/m/Y", $value["created"]["time"]); goto zdvev; u4YJ1: $value["label"] = langJS("general.parent"); goto oStRK; i_4Zd: $value["last_modified_username"] = ''; goto Ikyn3; LKMur: $value["label"] = langJS("general.child"); goto njA82; RKfMS: if ($value["tickets"]["bpm_currentState"]["name"] == "Cancel") { goto ebV7y; } goto Oh7Ik; RiCe8: goto PJJ58; goto OJNPA; OJHf0: $index = strpos($value["tickets"]["assignee"], "_"); goto xXCjF; zdvev: $value["label"] = ''; goto uVS3P; Bhewp: RAKSL: goto rP2Rl; RmeNX: GFoyZ: goto hqn2A; rP2Rl: $value["background"] = "#00CCFF"; goto Tg7oq; A1OJi: zIb4F: goto ddhd5; M6H_J: ZGmsL: goto u4YJ1; tjIY4: xlnBS: goto w20IS; xXCjF: $id = substr($value["tickets"]["assignee"], $index + 1); goto IOdGM; IOdGM: $name = substr($value["tickets"]["assignee"], 0, $index); goto ZJScJ; j1y1p: $value["tickets"]["bpm_currentState"] = ["name" => "new", "extendConfig" => ["status" => "new", "typeColor" => "default", "classButton" => "warning"]]; goto Weuzh; c6SyS: $value["background"] = $value["tickets"]["bpm_currentState"]["extendConfig"]["backgroundColor"]; goto hXj3F; hUVAV: if (!($value["created_username"] === false)) { goto GFoyZ; } goto cxJxA; Weuzh: $value["background"] = "#999999"; goto N121L; qygfO: if (!isset($value["tickets"]["assignee"])) { goto ULy1O; } goto Nv6ta; n44yh: $value["last_modified_username"] = $value["last_modified"]["byid"]; goto OCWc9; v_bkB: if ($value["type"] == "childlevel") { goto H0nfb; } goto TF6VK; IVCzE: goto X227J; goto tjIY4; QHoVf: $value["created_string"] = searchnameuser($value["created"]["byid"]); goto NoD8A; N121L: goto zIb4F; goto SeVnQ; ZJScJ: if ($name == "user") { goto UCOrC; } goto cRLDU; OCWc9: kJnIx: goto chsud; kQSQt: X227J: goto r3mvi; rQVVg: goto I0tO6; goto LZyuE; vym3N: $value["tickets"]["bpm_currentState"] = $value["tickets"]["bpm"]["currentState"]; goto RKfMS; tu27c: PWEL3: goto A1OJi; oStRK: j0ZFv: goto Ui1Nk; r3mvi: goto Izb_b; goto Lp8aF; Ikyn3: if (!array_key_exists("last_modified", $value)) { goto s1GAp; } goto skZOD; SeVnQ: UJNcW: goto vym3N; nyGdp: $value["tickets"]["assignee_string"] = $bu_username["text"]; goto sXnWg; cxJxA: $value["created_username"] = $value["created"]["byid"]; goto RmeNX; NoD8A: if (!($value["created_string"] === false)) { goto gWrG6; } goto C0ZZj; J34kP: if ($value["tickets"]["bpm_currentState"]["name"] == "Done") { goto RAKSL; } goto R0BOv; Tg7oq: OssR4: goto IVCzE; Be4oi: Izb_b: goto fmQDh; njA82: PJJ58: goto YHH2D; Wl5RH: I0tO6: goto z_4Ko; YHH2D: goto j0ZFv; goto M6H_J; aXgL6: } goto wZiVq; ngJvG: $filter = new stdClass(); goto YUqTA; EhyGk: foreach ($listid as $valueID) { $temp_arr[] = new \MongoDB\BSON\ObjectId($valueID); SM1HS: } goto Jfx8P; aTYSh: $id = $request["id"]; goto tM4Hd; gh7bS: $this->load->model("services/tickets/tickets_m"); goto syCa_; SIUHt: if (!(is_array($listid) && count($listid) > 0)) { goto y6bsN; } goto polRT; tM4Hd: if ($id !== '') { goto HjPUB; } goto w2QRj; JDMa6: Olo7F: goto yuHOl; XWWb8: echo json_encode(["data" => $data, "total" => count($data)]); goto u7xFh; HGkru: if (empty($data)) { goto Olo7F; } goto TgXeg; VVVDJ: CTwC6: goto N4SgU; syCa_: $this->load->library("tickets_library"); goto o0oo0; pQPHX: $requesters_name = []; goto Hj_l9; J5gft: echo json_encode(["data" => $data, "total" => count($data)]); goto JYUgE; ZJko2: $this->load->model("services/tickets/tickets_links_m"); goto NnbXE; YUqTA: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("_id", "in", $temp_arr), $filter); goto tmJg8; inxBB: foreach ($result["data"] as $item) { $listticket[$item["_id"]] = $item; nzo1p: } goto pFmJd; w2QRj: $data = []; goto XWWb8; eSvzs: } public function searchTicketByRequesterId() { goto wPXz7; tvbh0: $this->load->model("services/tickets/requesters_m"); goto c77eB; wPXz7: header("Content-Type: application/json"); goto agZOS; CsZ_j: $result = $this->tickets_library->db_read($filter); goto tvbh0; szH59: K_gJo: goto MEgxr; MEgxr: $filter = new stdClass(); goto PphGA; PphGA: $sort = new stdClass(); goto ysN96; c77eB: $requesters_name = []; goto DWsQx; Wl36i: esrAk: goto w95bO; xdanW: $arr_requesterid = array_column($result["data"], "requester_id"); goto mMVLW; c06I4: echo json_encode($result); goto FKeOe; mMVLW: $requesters = $this->requesters_m->db_getbylistid($arr_requesterid); goto PlvwQ; lUmMD: if (!empty($id)) { goto K_gJo; } goto bnZ1Z; ysN96: $sort->field = "created.time"; goto hYXoq; PlvwQ: if (empty($requesters)) { goto esrAk; } goto eJBub; ZXKmz: $id = $request["idrequester"]; goto FsKw6; eJBub: foreach ($requesters as $req) { goto Zj_pq; unusK: $info = $req["name"]; goto zugeZ; tVJvl: D2f5H: goto YVTT5; Ev97a: if ($req["frommodule"] === "users") { goto D2f5H; } goto unusK; cdjYV: $requesters_name[$req["_id"]] = $info; goto sF3G2; sF3G2: tPs6O: goto lyZ_n; Zj_pq: $info = ''; goto Ev97a; YVTT5: $info = !empty($req["name"]) ? $req["name"] : $req["username"]; goto IJNvY; IJNvY: hbedh: goto cdjYV; zugeZ: goto hbedh; goto tVJvl; lyZ_n: } goto gOtgx; w95bO: tbq1g: goto Fp5V1; bnZ1Z: echo json_encode($result); goto UwzBI; jM6Pp: $result = ["total" => 0, "data" => []]; goto lUmMD; UwzBI: exit; goto szH59; SDz2K: $filter->sort = [$sort]; goto wuIt7; BTN2u: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("delete", "neq", 1), $filter); goto CsZ_j; Fp5V1: foreach ($result["data"] as &$value) { goto hX9j2; VghNV: RVmTV: goto STQAU; R1uiQ: $value["requester_string"] = !empty($value["requester_id"]) && array_key_exists($value["requester_id"], $requesters_name) ? $requesters_name[$value["requester_id"]] : ''; goto HKh8_; kfcQN: if (!in_array($value["ticket_id"], $request["listticketid"])) { goto NKriy; } goto YxVFA; Cn7iD: $value["assignee_string"] = searchnameuser($value["assignee_info"]["id"]); goto FaAvK; DaCuY: G4jUu: goto dK9nb; GQlif: if (!array_key_exists("created", $value)) { goto x0Wd0; } goto hmI8f; Tkhwl: if (!($value["bpm_currentState"]["name"] == "In Progress")) { goto h6w91; } goto R9P_2; g_20e: k4INU: goto Tkhwl; HKh8_: $value["created_string"] = ''; goto GQlif; YxVFA: $value["formexists"] = true; goto f6jpi; WsRPP: if (!($value["bpm_currentState"]["name"] == "Cancel")) { goto k4INU; } goto TgKBo; Oyhon: if (!($value["created_string"] === false)) { goto dmn7V; } goto ILv82; GydMp: JG46B: goto wt5P3; fq80p: x0Wd0: goto nwruV; ILv82: $value["created_string"] = $value["created"]["byid"]; goto ygxUd; EOQT3: $value["formdeatail"] = true; goto lb2YW; nwruV: $value["formexists"] = false; goto OOM6q; knnwE: $value["bpm_currentState"] = ["name" => "new", "extendConfig" => ["status" => "new", "typeColor" => "default", "classButton" => "warning"]]; goto pa7D0; hmI8f: $value["created_string"] = searchnameuser($value["created"]["byid"]); goto Oyhon; STQAU: if (!($value["bpm_currentState"]["name"] == "Done")) { goto G4jUu; } goto i0wVA; Xk0nz: $value["background"] = "#aad178"; goto VghNV; wt5P3: $value["bpm_currentState"] = $value["bpm"]["currentState"]; goto WsRPP; TgKBo: $value["background"] = "#e74c3c"; goto g_20e; R9P_2: $value["background"] = "#e67e22"; goto SR0oa; bd6ea: if (!($value["ticket_id"] === $request["ticketidfromdetail"])) { goto to8Wq; } goto EOQT3; lsmp1: A1FR0: goto CGdCz; pa7D0: $value["background"] = "#999999"; goto J1Skg; SR0oa: h6w91: goto sVfXD; sVfXD: if (!($value["bpm_currentState"]["name"] == "Approved")) { goto RVmTV; } goto Xk0nz; dK9nb: VvEjv: goto lsmp1; i0wVA: $value["background"] = "#00CCFF"; goto DaCuY; FaAvK: if (isset($value["bpm"]["currentState"])) { goto JG46B; } goto knnwE; J1Skg: goto VvEjv; goto GydMp; f6jpi: NKriy: goto bd6ea; lb2YW: to8Wq: goto Cn7iD; OOM6q: $value["formdeatail"] = false; goto kfcQN; ygxUd: dmn7V: goto fq80p; hX9j2: $value["createdtime_string"] = date("H:i:s", $value["created"]["time"]); goto MNhyZ; MNhyZ: $value["createddate_string"] = date("d/m/Y", $value["created"]["time"]); goto R1uiQ; CGdCz: } goto e9QVZ; hYXoq: $sort->dir = "desc"; goto SDz2K; wuIt7: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("requester_id", "eq", $id), $filter); goto BTN2u; e9QVZ: t7Ee2: goto FHIhV; agZOS: $request = json_decode(file_get_contents("php://input"), true); goto ZXKmz; FsKw6: $this->load->model("services/tickets/tickets_m"); goto w3TUP; DWsQx: if (empty($result["data"])) { goto tbq1g; } goto xdanW; w3TUP: $this->load->library("tickets_library"); goto jM6Pp; gOtgx: D9oRn: goto Wl36i; FHIhV: $result = array_merge($result, $request); goto c06I4; FKeOe: } public function searchTicketMergeForParent() { goto EvZ2X; jPRHp: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("merge", "neq", true), $request); goto kHA4Z; pW76t: ydkW9: goto PsyKB; GVSpE: if ($request->field === "ticket_id") { goto U0tmQ; } goto D7jQ_; gsmVU: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("bpm.isEnded", "neq", true), $request); goto FOxlJ; gtr5Q: goto qpcqw; goto dU9m3; CVqjn: $request->filter->filters = []; goto KvSyG; D7jQ_: if ($request->field === "subject") { goto zAHly; } goto rSey5; B6p1n: qpcqw: goto KDemY; lNal5: $arr_requesterid = array_column($result["data"], "requester_id"); goto VcQMF; bPUDO: foreach ($result["data"] as &$value) { goto ePUDJ; kHrO1: Rbmjl: goto mJXl3; HhVWj: $value["bpm_currentState"] = ["name" => "new", "extendConfig" => ["status" => "new", "typeColor" => "default", "classButton" => "warning"]]; goto ZqnTw; mJXl3: if (!($value["bpm_currentState"]["name"] == "Done")) { goto qax6x; } goto CyCvG; vmTW8: CmtWP: goto PyT1A; PyT1A: if (!($value["bpm_currentState"]["name"] == "Approved")) { goto Rbmjl; } goto ua13F; uuSqN: if (!($value["bpm_currentState"]["name"] == "Cancel")) { goto UZPtT; } goto rIKqo; ePUDJ: $value["createdtime_string"] = date("H:i:s", $value["created"]["time"]); goto IIviN; bMNlz: m22p4: goto K59JA; CyCvG: $value["background"] = "#00CCFF"; goto xqjax; oLg5E: $value["assignee_string"] = searchnameuser($value["assignee_info"]["id"]); goto ZAYha; KYTXM: $value["requester_string"] = !empty($value["requester_id"]) && array_key_exists($value["requester_id"], $requesters_name) ? $requesters_name[$value["requester_id"]] : ''; goto Ypmzs; rIKqo: $value["background"] = "#e74c3c"; goto sGFew; QrdIn: jzvVP: goto bMNlz; rJKxg: if (!($value["bpm_currentState"]["name"] == "In Progress")) { goto CmtWP; } goto ZYueX; IIviN: $value["createddate_string"] = date("d/m/Y", $value["created"]["time"]); goto KYTXM; ZqnTw: $value["background"] = "#999999"; goto KIEBX; GNUuO: Su1E4: goto OXW0G; pEf5R: if (!array_key_exists("created", $value)) { goto DT1P8; } goto zJrqZ; DIALT: DT1P8: goto oLg5E; NYMf1: if (!($value["created_string"] === false)) { goto mCJvG; } goto oPmVv; OXW0G: $value["bpm_currentState"] = $value["bpm"]["currentState"]; goto uuSqN; ZAYha: if (isset($value["bpm"]["currentState"])) { goto Su1E4; } goto HhVWj; zJrqZ: $value["created_string"] = searchnameuser($value["created"]["byid"]); goto NYMf1; oPmVv: $value["created_string"] = $value["created"]["byid"]; goto xWVJl; KIEBX: goto jzvVP; goto GNUuO; xqjax: qax6x: goto QrdIn; sGFew: UZPtT: goto rJKxg; Ypmzs: $value["created_string"] = ''; goto pEf5R; ZYueX: $value["background"] = "#e67e22"; goto vmTW8; ua13F: $value["background"] = "#aad178"; goto kHrO1; xWVJl: mCJvG: goto DIALT; K59JA: } goto f8IxH; f8IxH: bAE_Z: goto Ha_55; wzQzD: foreach ($requesters as $req) { goto WGWTE; WGWTE: $info = ''; goto yGHzY; xzryj: LwzoZ: goto SEMMJ; qEwwg: $info = !empty($req["name"]) ? $req["name"] : $req["username"]; goto Bm14G; g29aq: goto PvZnx; goto RO5nB; yGHzY: if ($req["frommodule"] === "users") { goto JmlJW; } goto pkE9J; Bm14G: PvZnx: goto mEON3; RO5nB: JmlJW: goto qEwwg; pkE9J: $info = $req["name"]; goto g29aq; mEON3: $requesters_name[$req["_id"]] = $info; goto xzryj; SEMMJ: } goto d1xw6; v4soe: echo json_encode(["data" => [], "total" => 0]); goto x1qRd; KDemY: $result = $this->tickets_library->db_read($request); goto WjA8v; rVpyk: $this->load->model("services/tickets/tickets_m"); goto dJkiv; dU9m3: gU1U4: goto GVSpE; u6vpI: $sortdatecreated->field = "created.time"; goto SeL19; DbSAI: $ticket_search[] = $this->mongodatasourceresult->initFilter("subject4search", "contains", $textsearch); goto Gq0Wt; fuD81: $this->mongodatasourceresult->addFilterRequest($filter_ticket, $request); goto cSsZB; VcQMF: $requesters = $this->requesters_m->db_getbylistid($arr_requesterid); goto ZNmez; MaZc1: $sortdatecreated = new stdClass(); goto u6vpI; EvZ2X: header("Content-Type: application/json"); goto fK1r4; d1xw6: q_skI: goto pW76t; PsyKB: Y0l_E: goto bPUDO; SkfMF: $request->filter->logic = "and"; goto B6p1n; dJkiv: $this->load->model("settings/configtickets/configmergeticket_m"); goto u7ZqX; cSsZB: goto bpa74; goto BSHZk; Gq0Wt: $filter_ticket = $this->mongodatasourceresult->initFilterWithSub("or", $ticket_search); goto fuD81; zKmLN: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("status", "neq", "End"), $request); goto gsmVU; u7ZqX: $this->load->library("tickets_library"); goto h8I39; CzTK_: $request->filter->filters[0]->field = "ticket_id"; goto nZGNQ; S6Rdy: $requesters_name = []; goto tGr_Q; M0Sr2: U0tmQ: goto CzTK_; KvSyG: $ticket_search = []; goto dr_bo; kHA4Z: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("delete", "isempty", 1), $request); goto zKmLN; h8I39: $config = $this->configmergeticket_m->db_oneoptions([], ["where" => ["status" => "new"]]); goto NAjIe; dr_bo: $ticket_search[] = $this->mongodatasourceresult->initFilter("ticket_id", "contains", $textsearch); goto DbSAI; SeL19: $sortdatecreated->dir = "desc"; goto baKuQ; yBs5U: bpa74: goto yr5rH; BSHZk: zAHly: goto r7udZ; nZGNQ: mZJxZ: goto jPRHp; FOxlJ: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("link", "neq", true), $request); goto MaZc1; Ha_55: echo json_encode($result); goto F9y0i; baKuQ: $request->sort = [$sortdatecreated]; goto SkfMF; r7udZ: $request->filter->filters[0]->field = "subject4search"; goto yBs5U; yr5rH: goto mZJxZ; goto M0Sr2; ZNmez: if (empty($requesters)) { goto ydkW9; } goto wzQzD; WjA8v: $this->load->model("services/tickets/requesters_m"); goto S6Rdy; fK1r4: $request = json_decode(file_get_contents("php://input")); goto rVpyk; rSey5: $textsearch = $request->filter->filters[0]->value; goto CVqjn; NAjIe: $mergetype = !empty($config["type"]) ? $config["type"] : "disable_ticketmerge"; goto TCXa8; tGr_Q: if (empty($result["data"])) { goto Y0l_E; } goto lNal5; x1qRd: exit; goto gtr5Q; TCXa8: if (!empty($request->filter->filters)) { goto gU1U4; } goto v4soe; F9y0i: } public function searchTicketMerge() { goto OUUPU; zzTkj: Lvmqo: goto uW3s2; NDa0J: VnlJ3: goto kgiQ0; AdQpg: if ($request->field === "subject") { goto Lvmqo; } goto K5XKw; sT27X: YG0t2: goto Cpl3w; wWzFf: lg3Ag: goto xJS6o; yPYAc: goto D9qz_; goto NDa0J; jPNqS: $sortdatecreated = new stdClass(); goto XUhQQ; gJXWq: if (empty($requesters)) { goto lg3Ag; } goto jIv4v; XUhQQ: $sortdatecreated->field = "created.time"; goto XRg_Z; K4fHi: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("delete", "isempty", 1), $request); goto epGSn; osqSy: $requesters_name = []; goto UDpMR; N0cry: $ticket_search[] = $this->mongodatasourceresult->initFilter("subject4search", "contains", $textsearch); goto GyE40; jIv4v: foreach ($requesters as $req) { goto d0TMQ; KhU3N: $info = $req["name"]; goto iL2FM; g3we4: if ($req["frommodule"] === "users") { goto fQtwV; } goto KhU3N; j3uQv: fQtwV: goto YL6z3; yCqn2: hJ2a9: goto gGd8a; iL2FM: goto hJ2a9; goto j3uQv; YL6z3: $info = !empty($req["name"]) ? $req["name"] : $req["username"]; goto yCqn2; UaEK3: Ar4AU: goto WSdVF; d0TMQ: $info = ''; goto g3we4; gGd8a: $requesters_name[$req["_id"]] = $info; goto UaEK3; WSdVF: } goto HQvnm; OUUPU: header("Content-Type: application/json"); goto qR3r4; K5XKw: $textsearch = $request->filter->filters[0]->value; goto zPq8H; R3UhT: if (!empty($request->filter->filters)) { goto VnlJ3; } goto L7FRB; FkkxW: D9qz_: goto D9hnd; KO3sw: $this->load->model("settings/configtickets/configmergeticket_m"); goto MxHgG; Z2WCA: $this->mongodatasourceresult->addFilterRequest($filter_ticket, $request); goto WEszZ; N0KpZ: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("bpm.isEnded", "neq", true), $request); goto mnMaP; epGSn: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("status", "neq", "End"), $request); goto N0KpZ; GyE40: $filter_ticket = $this->mongodatasourceresult->initFilterWithSub("or", $ticket_search); goto Z2WCA; qBF6L: goto ukEp4; goto pBEjE; mnMaP: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("link", "neq", true), $request); goto KVjOi; L7FRB: echo json_encode(["data" => [], "total" => 0]); goto jiUzw; DH2re: $requesters = $this->requesters_m->db_getbylistid($arr_requesterid); goto gJXWq; j02wO: $this->mongodatasourceresult->addFilterRequest($filter_merge, $request); goto jPNqS; wtGLe: $this->load->model("services/tickets/tickets_m"); goto KO3sw; zS3xn: ukEp4: goto K4fHi; D9hnd: $result = $this->tickets_library->db_read($request); goto rv90b; uW3s2: $request->filter->filters[0]->field = "subject4search"; goto WA3Bk; dvqB3: $request->filter->filters[0]->field = "ticket_id"; goto zS3xn; pBEjE: gpCEy: goto dvqB3; b6fKO: $request->sort = [$sortdatecreated]; goto LAHTf; qR3r4: $request = json_decode(file_get_contents("php://input")); goto wtGLe; jiUzw: exit; goto yPYAc; HQvnm: jMdMK: goto wWzFf; x6YXu: $ticket_search[] = $this->mongodatasourceresult->initFilter("ticket_id", "contains", $textsearch); goto N0cry; zPq8H: $request->filter->filters = []; goto iFeOt; xJS6o: c3NTR: goto CZnDo; LAHTf: $request->filter->logic = "and"; goto FkkxW; WA3Bk: XSs0l: goto qBF6L; rv90b: $this->load->model("services/tickets/requesters_m"); goto osqSy; KVjOi: $filter_merge = $this->mongodatasourceresult->initFilterWithSub("or", [$this->mongodatasourceresult->initFilter("merge", "isempty", 1), $this->mongodatasourceresult->initFilterWithSub("and", [$this->mongodatasourceresult->initFilter("mergeprimary", "eq", true), $this->mongodatasourceresult->initFilter("mergetype", "eq", $mergetype)])]); goto j02wO; iFeOt: $ticket_search = []; goto x6YXu; MxHgG: $this->load->library("tickets_library"); goto boyPt; XRg_Z: $sortdatecreated->dir = "desc"; goto b6fKO; CZnDo: foreach ($result["data"] as &$value) { goto ssgsE; CgeTN: $value["bpm_currentState"] = $value["bpm"]["currentState"]; goto QzMKL; bEsls: aoPWE: goto fRoLM; QMFMF: $value["background"] = "#e67e22"; goto vWQXW; fRoLM: if (!($value["bpm_currentState"]["name"] == "Done")) { goto eIAhz; } goto LDpMw; tatdd: if (!($value["bpm_currentState"]["name"] == "Approved")) { goto aoPWE; } goto ZlIX0; OgSMC: $value["bpm_currentState"] = ["name" => "new", "extendConfig" => ["status" => "new", "typeColor" => "default", "classButton" => "warning"]]; goto b_gqZ; ZlIX0: $value["background"] = "#aad178"; goto bEsls; CJPnO: $value["background"] = "#e74c3c"; goto NG0us; ssgsE: $value["createdtime_string"] = date("H:i:s", $value["created"]["time"]); goto VjYlJ; MSP3G: m0Bdk: goto CgeTN; NG0us: UWBqo: goto dpH82; fDled: ihW8A: goto lQqqa; jH_k6: $value["requester_string"] = !empty($value["requester_id"]) && array_key_exists($value["requester_id"], $requesters_name) ? $requesters_name[$value["requester_id"]] : ''; goto muaL4; LDpMw: $value["background"] = "#00CCFF"; goto dDynS; vWQXW: PAela: goto tatdd; JQ18W: if (isset($value["bpm"]["currentState"])) { goto m0Bdk; } goto OgSMC; OZK9E: $value["assignee_string"] = searchnameuser($value["assignee_info"]["id"]); goto JQ18W; dpH82: if (!($value["bpm_currentState"]["name"] == "In Progress")) { goto PAela; } goto QMFMF; muaL4: $value["created_string"] = ''; goto K7w_8; b_gqZ: $value["background"] = "#999999"; goto CBM3q; CBM3q: goto LRmRl; goto MSP3G; QzMKL: if (!($value["bpm_currentState"]["name"] == "Cancel")) { goto UWBqo; } goto CJPnO; VFu4K: if (!($value["created_string"] === false)) { goto od_fx; } goto o3Kxs; Ct1IG: adIHC: goto OZK9E; dDynS: eIAhz: goto e1EQd; o3Kxs: $value["created_string"] = $value["created"]["byid"]; goto GLR4m; e1EQd: LRmRl: goto fDled; GLR4m: od_fx: goto Ct1IG; VjYlJ: $value["createddate_string"] = date("d/m/Y", $value["created"]["time"]); goto jH_k6; K7w_8: if (!array_key_exists("created", $value)) { goto adIHC; } goto CtKG2; CtKG2: $value["created_string"] = searchnameuser($value["created"]["byid"]); goto VFu4K; lQqqa: } goto sT27X; UDpMR: if (empty($result["data"])) { goto c3NTR; } goto uHu9r; boyPt: $config = $this->configmergeticket_m->db_oneoptions([], ["where" => ["status" => "new"]]); goto rpV0N; Cpl3w: echo json_encode($result); goto Rx3UC; WEszZ: goto XSs0l; goto zzTkj; kgiQ0: if ($request->field === "ticket_id") { goto gpCEy; } goto AdQpg; rpV0N: $mergetype = !empty($config["type"]) ? $config["type"] : "disable_ticketmerge"; goto R3UhT; uHu9r: $arr_requesterid = array_column($result["data"], "requester_id"); goto DH2re; Rx3UC: } public function searchTicketMergeByRequesterId() { goto n5pqW; pqmu7: $requesters = $this->requesters_m->db_getbylistid($arr_requesterid); goto p5SVQ; UI52L: $this->mongodatasourceresult->addFilterRequest($filter_merge, $request); goto oOmfp; saTdP: exit; goto j3t50; Ed2er: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("mergeprimary", "neq", true), $request); goto aAr2O; IZ57f: BGdTG: goto ssGdH; oOmfp: $sortdatecreated = new stdClass(); goto FQhq1; OQYis: $filter_merge = $this->mongodatasourceresult->initFilterWithSub("or", [$this->mongodatasourceresult->initFilter("merge", "isempty", 1), $this->mongodatasourceresult->initFilterWithSub("and", [$this->mongodatasourceresult->initFilter("mergeprimary", "eq", true), $this->mongodatasourceresult->initFilter("mergetype", "eq", $mergetype)])]); goto UI52L; xqjdI: $request = json_decode(file_get_contents("php://input")); goto DMJkM; mDjhz: $this->load->model("services/tickets/tickets_m"); goto KnZaa; AdOCd: $arr_requesterid = array_column($result["data"], "requester_id"); goto pqmu7; oWpTk: $requesters_name = []; goto b759T; MsT3d: $result = ["total" => 0, "data" => []]; goto xqjdI; p5SVQ: if (empty($requesters)) { goto P_fjY; } goto wgOK0; FQhq1: $sortdatecreated->field = "created.time"; goto VAgKt; yJpAV: $mergetype = !empty($config["type"]) ? $config["type"] : "disable_ticketmerge"; goto qWaqw; JCWKd: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("bpm.isEnded", "neq", true), $request); goto jHhAs; Kjf7z: exit; goto IZ57f; wgOK0: foreach ($requesters as $req) { goto oRBnw; lCFRL: $requesters_name[$req["_id"]] = $info; goto s9Q43; oRBnw: $info = ''; goto FgJkB; AFLdz: ZFbFK: goto N4VzR; ZU7SI: goto Ipsqh; goto AFLdz; dC34F: $info = $req["name"]; goto ZU7SI; s9Q43: WQWxV: goto XfIH4; N4VzR: $info = !empty($req["name"]) ? $req["name"] : $req["username"]; goto ZjFeR; ZjFeR: Ipsqh: goto lCFRL; FgJkB: if ($req["frommodule"] === "users") { goto ZFbFK; } goto dC34F; XfIH4: } goto TW941; aAr2O: LkE7d: goto PJzEW; b759T: if (empty($result["data"])) { goto qlSyv; } goto AdOCd; vM2SG: $listticketid = $request->listticketid; goto jNiET; KnZaa: $getticketdetail = $this->tickets_m->db_alloptions([], ["where" => ["ticket_id" => $ticketidfromdetail]]); goto yhryV; We4YH: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("delete", "isempty", 1), $request); goto g7vgX; TRCv8: $result["listticketid"] = $listticketid; goto bFOpn; DMJkM: if (!(!isset($request->idrequester) || !isset($request->listticketid) || !isset($request->ticketidfromdetail))) { goto BGdTG; } goto WBy0K; yhryV: if (!empty($idrequester)) { goto pV6yl; } goto OjT_O; j3t50: pV6yl: goto YcreI; g7vgX: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("status", "neq", "End"), $request); goto JCWKd; EVdQe: P_fjY: goto qMVqc; b0SMS: $this->load->library("tickets_library"); goto MsT3d; pQCv8: echo json_encode($result); goto sVCMU; OjT_O: echo json_encode($result); goto saTdP; aVlfy: $result = $this->tickets_library->db_read($request); goto LZSKL; LZSKL: $this->load->model("services/tickets/requesters_m"); goto oWpTk; KXscE: $request->filter->logic = "and"; goto aVlfy; VAgKt: $sortdatecreated->dir = "desc"; goto X3F8X; X3F8X: $request->sort = [$sortdatecreated]; goto KXscE; n5pqW: header("Content-Type: application/json"); goto b0SMS; XuTC6: $config = $this->configmergeticket_m->db_oneoptions([], ["where" => ["status" => "new"]]); goto yJpAV; WBy0K: echo json_encode($result); goto Kjf7z; bFOpn: $result["ticketidfromdetail"] = $ticketidfromdetail; goto pQCv8; TW941: O4eng: goto EVdQe; jNiET: $ticketidfromdetail = $request->ticketidfromdetail; goto mDjhz; jeQq1: foreach ($result["data"] as &$value) { goto VHtiB; hEcIL: JpLcB: goto fyvHn; tR9of: if (!($value["bpm_currentState"]["name"] == "Cancel")) { goto Cw0Zs; } goto kgidr; jncWo: if (isset($value["bpm"]["currentState"])) { goto d_RA4; } goto LQ7nC; G5KmE: Ogmen: goto VyZnE; kgidr: $value["background"] = "#e74c3c"; goto dMajw; hegmy: $value["createddate_string"] = date("d/m/Y", $value["created"]["time"]); goto fbk86; ihain: $value["formdeatail"] = true; goto Wk2gy; zMMkR: if (!($value["bpm_currentState"]["name"] == "In Progress")) { goto BjWkw; } goto kdWV2; Z6gkF: $value["created_string"] = searchnameuser($value["created"]["byid"]); goto VtckU; jLTeg: goto LTWVf; goto lhott; cRJm0: fZOaL: goto hLs0R; rkJB0: if (!in_array($value["ticket_id"], $listticketid)) { goto yAh4T; } goto nloF0; XPQV0: $value["background"] = "#aad178"; goto ln56t; LQ7nC: $value["bpm_currentState"] = ["name" => "new", "extendConfig" => ["status" => "new", "typeColor" => "default", "classButton" => "warning"]]; goto dGaKZ; dMajw: Cw0Zs: goto zMMkR; SdFYI: BjWkw: goto xsKda; OdRa6: $value["created_string"] = $value["created"]["byid"]; goto hEcIL; lhott: d_RA4: goto MdhmW; hLs0R: LTWVf: goto G5KmE; If_fX: $value["formdeatail"] = false; goto rkJB0; ovh49: $value["assignee_string"] = searchnameuser($value["assignee_info"]["id"]); goto jncWo; nloF0: $value["formexists"] = true; goto PV4ZC; MdhmW: $value["bpm_currentState"] = $value["bpm"]["currentState"]; goto tR9of; Cki63: $value["background"] = "#00CCFF"; goto cRJm0; Wk2gy: Z6lV0: goto ovh49; VHtiB: $value["createdtime_string"] = date("H:i:s", $value["created"]["time"]); goto hegmy; fbk86: $value["requester_string"] = !empty($value["requester_id"]) && array_key_exists($value["requester_id"], $requesters_name) ? $requesters_name[$value["requester_id"]] : ''; goto I7c27; kdWV2: $value["background"] = "#e67e22"; goto SdFYI; I7c27: $value["created_string"] = ''; goto ouAtF; YTJoN: if (!($value["bpm_currentState"]["name"] == "Done")) { goto fZOaL; } goto Cki63; PV4ZC: yAh4T: goto GQJ6L; VtckU: if (!($value["created_string"] === false)) { goto JpLcB; } goto OdRa6; ouAtF: if (!array_key_exists("created", $value)) { goto DDBil; } goto Z6gkF; fyvHn: DDBil: goto b8yxO; ln56t: QNH3I: goto YTJoN; b8yxO: $value["formexists"] = false; goto If_fX; GQJ6L: if (!($value["ticket_id"] === $ticketidfromdetail)) { goto Z6lV0; } goto ihain; dGaKZ: $value["background"] = "#999999"; goto jLTeg; xsKda: if (!($value["bpm_currentState"]["name"] == "Approved")) { goto QNH3I; } goto XPQV0; VyZnE: } goto pjiaZ; YcreI: $this->load->model("settings/configtickets/configmergeticket_m"); goto XuTC6; PJzEW: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("requester_id", "eq", $request->idrequester), $request); goto We4YH; jHhAs: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("link", "neq", true), $request); goto OQYis; pjiaZ: Gz9D_: goto TRCv8; qMVqc: qlSyv: goto jeQq1; qWaqw: if (!(isset($getticketdetail[0]["mergeprimary"]) && $getticketdetail[0]["mergeprimary"] == true)) { goto LkE7d; } goto Ed2er; ssGdH: $idrequester = $request->idrequester; goto vM2SG; sVCMU: } public function searchTicketLink() { goto ctGa6; B2Ux5: $arr_requesterid = array_column($result["data"], "requester_id"); goto ldGZb; twrjQ: $this->load->model("services/tickets/tickets_m"); goto dULml; sKlgH: $request->sort = [$sortdatecreated]; goto Jf5kv; dULml: $this->load->model("settings/configtickets/configmergeticket_m"); goto fpDNV; HXKQz: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("merge", "neq", true), $request); goto R6qpN; P3bbz: HvTJw: goto rVu4y; nqGET: $ticket_search[] = $this->mongodatasourceresult->initFilter("ticket_id", "contains", $textsearch); goto bdGX5; CQd8L: eJF85: goto Nxx7b; NHrDl: $textsearch = $request->filter->filters[0]->value; goto JgXNy; DS_FD: $sortdatecreated->dir = "desc"; goto sKlgH; rVu4y: foreach ($result["data"] as &$value) { goto OoHQ4; VwSNN: $value["bpm_currentState"] = $value["bpm"]["currentState"]; goto SaASr; VVqhq: lzUK2: goto r2cWY; BIxB7: if (!($value["created_string"] === false)) { goto NUdNh; } goto yFtPr; YdJPK: $value["background"] = "#999999"; goto e14sb; OoHQ4: $value["createdtime_string"] = date("H:i:s", $value["created"]["time"]); goto a2nNa; dTVJi: $value["created_string"] = ''; goto TCO1i; caa5k: $value["background"] = "#e67e22"; goto s670i; rwmka: if (!($value["bpm_currentState"]["name"] == "Done")) { goto NQS1O; } goto Y7jq3; Sxicp: if (isset($value["bpm"]["currentState"])) { goto hSZYL; } goto OpHBV; Y7jq3: $value["background"] = "#00CCFF"; goto vPG7x; kiDzK: KOTxo: goto My3P2; a2nNa: $value["createddate_string"] = date("d/m/Y", $value["created"]["time"]); goto wkw83; vPG7x: NQS1O: goto VVqhq; s670i: nViek: goto PT_O2; vgc8f: pUqJs: goto rwmka; NPiIP: hSZYL: goto VwSNN; OpHBV: $value["bpm_currentState"] = ["name" => "new", "extendConfig" => ["status" => "new", "typeColor" => "default", "classButton" => "warning"]]; goto YdJPK; h55B3: $value["background"] = "#e74c3c"; goto JyxEK; My3P2: $value["assignee_string"] = searchnameuser($value["assignee_info"]["id"]); goto Sxicp; r2cWY: PgXcR: goto cJgdY; mOT46: if (!($value["bpm_currentState"]["name"] == "In Progress")) { goto nViek; } goto caa5k; yFtPr: $value["created_string"] = $value["created"]["byid"]; goto OK13y; WdKVG: $value["created_string"] = searchnameuser($value["created"]["byid"]); goto BIxB7; OK13y: NUdNh: goto kiDzK; e14sb: goto lzUK2; goto NPiIP; JyxEK: MEyJZ: goto mOT46; UqSZ0: $value["background"] = "#aad178"; goto vgc8f; TCO1i: if (!array_key_exists("created", $value)) { goto KOTxo; } goto WdKVG; SaASr: if (!($value["bpm_currentState"]["name"] == "Cancel")) { goto MEyJZ; } goto h55B3; wkw83: $value["requester_string"] = !empty($value["requester_id"]) && array_key_exists($value["requester_id"], $requesters_name) ? $requesters_name[$value["requester_id"]] : ''; goto dTVJi; PT_O2: if (!($value["bpm_currentState"]["name"] == "Approved")) { goto pUqJs; } goto UqSZ0; cJgdY: } goto CQd8L; apA5u: if (!empty($request->filter->filters)) { goto qe_1w; } goto TJqea; fnp8T: $sortdatecreated->field = "created.time"; goto DS_FD; vLfB5: TN0OQ: goto H7nVg; Jf5kv: $request->filter->logic = "and"; goto MKS_q; bdGX5: $ticket_search[] = $this->mongodatasourceresult->initFilter("subject4search", "contains", $textsearch); goto IcWMU; TJqea: echo json_encode(["data" => [], "total" => 0]); goto sfVrp; ctGa6: header("Content-Type: application/json"); goto eJzxJ; FNvz3: $ticket_search = []; goto nqGET; e6wHH: n87QA: goto N8jjo; MKS_q: tigU_: goto po90g; Diw5h: $this->load->model("services/tickets/requesters_m"); goto wN98H; wN98H: $requesters_name = []; goto vmujz; sfVrp: exit; goto WQTdE; WQTdE: goto tigU_; goto dDtAs; vmujz: if (empty($result["data"])) { goto HvTJw; } goto B2Ux5; kSLpr: NoKiU: goto fiNTd; W0zko: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("delete", "isempty", 1), $request); goto HXKQz; fpDNV: $this->load->library("tickets_library"); goto apA5u; Nxx7b: echo json_encode($result); goto gsj4b; H7nVg: $request->filter->filters[0]->field = "subject4search"; goto dwIjC; d1Itq: x4PfQ: goto W0zko; k5KiX: if ($request->field === "subject") { goto TN0OQ; } goto NHrDl; eJzxJ: $request = json_decode(file_get_contents("php://input")); goto twrjQ; po90g: $result = $this->tickets_library->db_read($request); goto Diw5h; uBurZ: if (empty($requesters)) { goto EALcS; } goto OVMtM; kM72w: $this->mongodatasourceresult->addFilterRequest($filter_ticket, $request); goto qzk4v; R6qpN: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("ticketchild", "neq", true), $request); goto zAZMQ; zAZMQ: $sortdatecreated = new stdClass(); goto fnp8T; qzk4v: goto snKgX; goto vLfB5; tsVnk: goto x4PfQ; goto kSLpr; JgXNy: $request->filter->filters = []; goto FNvz3; fiNTd: $request->filter->filters[0]->field = "ticket_id"; goto d1Itq; o7juS: if ($request->field === "ticket_id") { goto NoKiU; } goto k5KiX; OVMtM: foreach ($requesters as $req) { goto YBSbd; YBSbd: $info = ''; goto XM3qx; XM3qx: if ($req["frommodule"] === "users") { goto Y4zF7; } goto gW6C6; SfLls: ncfuM: goto T1mCP; MOeBX: Y4zF7: goto k80zx; t707p: goto ncfuM; goto MOeBX; IWZnU: RR2Mh: goto Noi57; T1mCP: $requesters_name[$req["_id"]] = $info; goto IWZnU; k80zx: $info = !empty($req["name"]) ? $req["name"] : $req["username"]; goto SfLls; gW6C6: $info = $req["name"]; goto t707p; Noi57: } goto e6wHH; ldGZb: $requesters = $this->requesters_m->db_getbylistid($arr_requesterid); goto uBurZ; dDtAs: qe_1w: goto o7juS; dwIjC: snKgX: goto tsVnk; N8jjo: EALcS: goto P3bbz; IcWMU: $filter_ticket = $this->mongodatasourceresult->initFilterWithSub("or", $ticket_search); goto kM72w; gsj4b: } public function searchTicketLinkForLinked() { goto rYm9U; PqVKl: goto vXa4F; goto RjKec; fUFOp: if (!empty($request->filter->filters)) { goto R1Lmx; } goto MOBTG; h9HaM: Ee8W9: goto DeZ71; Vgh5J: d5G8E: goto fQmbb; xXQvX: LVFkE: goto nKKKc; TBj2r: $this->load->model("services/tickets/requesters_m"); goto i2ICP; i2ICP: $requesters_name = []; goto wxVLu; wsSPP: $ticket_search[] = $this->mongodatasourceresult->initFilter("subject4search", "contains", $textsearch); goto XFaTe; Ri05J: vXa4F: goto Y8ZSP; aadaA: $this->load->model("services/tickets/tickets_m"); goto PPlOU; MOBTG: echo json_encode(["data" => [], "total" => 0]); goto NY2_t; a61lp: goto fYRqr; goto slfGz; fQmbb: echo json_encode($result); goto hGTOA; JiNt5: $request->filter->filters = []; goto SFE_z; t5fkv: fYRqr: goto LU29Y; sm_i5: if ($request->field === "ticket_id") { goto L99xe; } goto yd3bv; ogmKc: $request = json_decode(file_get_contents("php://input")); goto aadaA; uSsHz: $sortdatecreated = new stdClass(); goto twINv; RjKec: L99xe: goto XQPl2; hoaZO: $sortdatecreated->dir = "desc"; goto BezfJ; WcWqL: if (empty($requesters)) { goto LVFkE; } goto Qaurn; zwuUY: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("link", "neq", true), $request); goto uSsHz; XGfMZ: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("merge", "neq", true), $request); goto zwuUY; PPlOU: $this->load->model("settings/configtickets/configmergeticket_m"); goto pbXAi; XROW4: RhMUd: goto PqVKl; DeZ71: $request->filter->filters[0]->field = "subject4search"; goto XROW4; Y8ZSP: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("delete", "isempty", 1), $request); goto XGfMZ; qQ029: foreach ($result["data"] as &$value) { goto DChJa; BNzDf: if (!array_key_exists("created", $value)) { goto fFuTT; } goto rsj1O; asZRl: ztZjl: goto azOJi; lgUiN: AlqY_: goto sxbxr; meYce: $value["createddate_string"] = date("d/m/Y", $value["created"]["time"]); goto cG_mU; XxoLS: if (!($value["bpm_currentState"]["name"] == "Done")) { goto ztZjl; } goto EEui6; SiBZa: $value["created_string"] = $value["created"]["byid"]; goto lgUiN; GkrDS: if (!($value["created_string"] === false)) { goto AlqY_; } goto SiBZa; cy91e: $value["background"] = "#e67e22"; goto qGE0d; g89Yy: $value["bpm_currentState"] = ["name" => "new", "extendConfig" => ["status" => "new", "typeColor" => "default", "classButton" => "warning"]]; goto Dke72; y1Vg1: if (!($value["bpm_currentState"]["name"] == "In Progress")) { goto B2v5r; } goto cy91e; sxbxr: fFuTT: goto GOSTs; GOSTs: $value["assignee_string"] = searchnameuser($value["assignee_info"]["id"]); goto R3LhM; wAd4f: $value["background"] = "#aad178"; goto sK09T; qGE0d: B2v5r: goto LsPxD; R3LhM: if (isset($value["bpm"]["currentState"])) { goto DIIdo; } goto g89Yy; K7Zf2: DIIdo: goto XDqj6; azOJi: TKAzK: goto GIBNQ; LsPxD: if (!($value["bpm_currentState"]["name"] == "Approved")) { goto Cjs1v; } goto wAd4f; cG_mU: $value["requester_string"] = !empty($value["requester_id"]) && array_key_exists($value["requester_id"], $requesters_name) ? $requesters_name[$value["requester_id"]] : ''; goto yT7dl; KWL78: goto TKAzK; goto K7Zf2; zO6IW: $value["background"] = "#e74c3c"; goto Stajg; yT7dl: $value["created_string"] = ''; goto BNzDf; CVad0: if (!($value["bpm_currentState"]["name"] == "Cancel")) { goto ejBxq; } goto zO6IW; GIBNQ: nIN4G: goto W0dsL; DChJa: $value["createdtime_string"] = date("H:i:s", $value["created"]["time"]); goto meYce; sK09T: Cjs1v: goto XxoLS; EEui6: $value["background"] = "#00CCFF"; goto asZRl; XDqj6: $value["bpm_currentState"] = $value["bpm"]["currentState"]; goto CVad0; Dke72: $value["background"] = "#999999"; goto KWL78; Stajg: ejBxq: goto y1Vg1; rsj1O: $value["created_string"] = searchnameuser($value["created"]["byid"]); goto GkrDS; W0dsL: } goto Vgh5J; NY2_t: exit; goto a61lp; XFaTe: $filter_ticket = $this->mongodatasourceresult->initFilterWithSub("or", $ticket_search); goto HOs5e; yd3bv: if ($request->field === "subject") { goto Ee8W9; } goto XQawc; SFE_z: $ticket_search = []; goto mOcq9; rYm9U: header("Content-Type: application/json"); goto ogmKc; ntxpX: $arr_requesterid = array_column($result["data"], "requester_id"); goto wfzEw; LU29Y: $result = $this->tickets_library->db_read($request); goto TBj2r; pbXAi: $this->load->library("tickets_library"); goto fUFOp; wxVLu: if (empty($result["data"])) { goto wmu8n; } goto ntxpX; twINv: $sortdatecreated->field = "created.time"; goto hoaZO; Au1EI: $request->filter->logic = "and"; goto t5fkv; XQawc: $textsearch = $request->filter->filters[0]->value; goto JiNt5; aG0DX: XEzdJ: goto xXQvX; nKKKc: wmu8n: goto qQ029; BezfJ: $request->sort = [$sortdatecreated]; goto Au1EI; Qaurn: foreach ($requesters as $req) { goto AayAh; kt02p: goto v2os6; goto fSvTh; M0KZv: XjWZF: goto hiMFw; jDyWr: $info = $req["name"]; goto kt02p; AayAh: $info = ''; goto hmu6H; BeXBC: $info = !empty($req["name"]) ? $req["name"] : $req["username"]; goto YuUbM; YuUbM: v2os6: goto ynMwO; ynMwO: $requesters_name[$req["_id"]] = $info; goto M0KZv; hmu6H: if ($req["frommodule"] === "users") { goto zaWD2; } goto jDyWr; fSvTh: zaWD2: goto BeXBC; hiMFw: } goto aG0DX; HOs5e: $this->mongodatasourceresult->addFilterRequest($filter_ticket, $request); goto SQgTA; mOcq9: $ticket_search[] = $this->mongodatasourceresult->initFilter("ticket_id", "contains", $textsearch); goto wsSPP; wfzEw: $requesters = $this->requesters_m->db_getbylistid($arr_requesterid); goto WcWqL; XQPl2: $request->filter->filters[0]->field = "ticket_id"; goto Ri05J; SQgTA: goto RhMUd; goto h9HaM; slfGz: R1Lmx: goto sm_i5; hGTOA: } public function searchTicketLinkByRequesterId() { goto pFze9; AF96_: if (empty($requesters)) { goto d3qyl; } goto luVyS; CPXdO: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("delete", "isempty", 1), $request); goto EgPro; uB2Ao: echo json_encode($result); goto f_uvK; ydreN: lnELO: goto IoiBA; LkpIN: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("ticketchild", "neq", true), $request); goto jEBIT; ZFSe1: $this->load->model("services/tickets/tickets_m"); goto PWxhS; zA8ME: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("requester_id", "eq", $request->idrequester), $request); goto CPXdO; KqSGB: $result["listticketid"] = $listticketid; goto WqNOY; PWxhS: if (!empty($idrequester)) { goto CRVOY; } goto oBMr6; Ko_L4: $request->filter->logic = "and"; goto llwWD; IsV_x: foreach ($result["data"] as &$value) { goto DabXY; nCMOo: $value["bpm_currentState"] = $value["bpm"]["currentState"]; goto L0w2M; KYAr4: EHlrT: goto EAkFN; zKI5G: if (!in_array($value["ticket_id"], $listticketid)) { goto kHuAG; } goto AObTx; AmOsJ: if (!($value["ticket_id"] === $ticketidfromdetail)) { goto UuLIs; } goto Yiwvx; D2og9: $value["created_string"] = ''; goto AKw0u; nmoTa: XgG_G: goto kV16r; O5Afm: if (!($value["bpm_currentState"]["name"] == "Approved")) { goto EHlrT; } goto Rb4GU; xz7A8: $value["background"] = "#e74c3c"; goto nIv89; AObTx: $value["formexists"] = true; goto HTUAq; AKw0u: if (!array_key_exists("created", $value)) { goto XgG_G; } goto Gim53; ubV_Y: if (isset($value["bpm"]["currentState"])) { goto p3iZ6; } goto UGCRc; rBTmB: $value["created_string"] = $value["created"]["byid"]; goto TrMFQ; qYjPs: osQji: goto laDOW; tsbou: $value["formdeatail"] = false; goto zKI5G; Gim53: $value["created_string"] = searchnameuser($value["created"]["byid"]); goto NzXJD; Kp5hp: JlckB: goto qYjPs; DabXY: $value["createdtime_string"] = date("H:i:s", $value["created"]["time"]); goto CGnsk; TXlqw: UuLIs: goto Z9QvW; Yiwvx: $value["formdeatail"] = true; goto TXlqw; Rb4GU: $value["background"] = "#aad178"; goto KYAr4; lDkeN: Ty5sD: goto dEZpG; kV16r: $value["formexists"] = false; goto tsbou; nIv89: IUNUZ: goto ys39R; Y_9Nh: $value["background"] = "#00CCFF"; goto Kp5hp; TrMFQ: r6MwA: goto nmoTa; L0w2M: if (!($value["bpm_currentState"]["name"] == "Cancel")) { goto IUNUZ; } goto xz7A8; UGCRc: $value["bpm_currentState"] = ["name" => "new", "extendConfig" => ["status" => "new", "typeColor" => "default", "classButton" => "warning"]]; goto IgBOp; Z9QvW: if (!in_array($value["ticket_id"], $ticketdisable)) { goto Ty5sD; } goto vzx_D; HTUAq: kHuAG: goto AmOsJ; EAkFN: if (!($value["bpm_currentState"]["name"] == "Done")) { goto JlckB; } goto Y_9Nh; EBh8f: OB4yW: goto O5Afm; IgBOp: $value["background"] = "#999999"; goto CpQ93; APTNZ: $value["background"] = "#e67e22"; goto EBh8f; Zhfyp: $value["requester_string"] = !empty($value["requester_id"]) && array_key_exists($value["requester_id"], $requesters_name) ? $requesters_name[$value["requester_id"]] : ''; goto D2og9; laDOW: bn03c: goto FDwD_; BX8oN: p3iZ6: goto nCMOo; CpQ93: goto osQji; goto BX8oN; CGnsk: $value["createddate_string"] = date("d/m/Y", $value["created"]["time"]); goto Zhfyp; NzXJD: if (!($value["created_string"] === false)) { goto r6MwA; } goto rBTmB; ys39R: if (!($value["bpm_currentState"]["name"] == "In Progress")) { goto OB4yW; } goto APTNZ; dEZpG: $value["assignee_string"] = searchnameuser($value["assignee_info"]["id"]); goto ubV_Y; vzx_D: $value["ticketdisable"] = true; goto lDkeN; FDwD_: } goto M6dJZ; EgPro: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("merge", "neq", true), $request); goto LkpIN; IaD0Y: $ticketidfromdetail = $request->ticketidfromdetail; goto octSw; PF3jx: $listticketid = $request->listticketid; goto IaD0Y; A5e8Z: $result = ["total" => 0, "data" => []]; goto mBFVU; IoiBA: d3qyl: goto qwSgr; qwSgr: Y4hLD: goto IsV_x; mTPNL: if (!(!isset($request->idrequester) || !isset($request->listticketid) || !isset($request->ticketidfromdetail))) { goto RaAYa; } goto slfjf; Yi7uZ: $arr_requesterid = array_column($result["data"], "requester_id"); goto RqQrr; FfiGl: CRVOY: goto zA8ME; KsZX5: exit; goto FfiGl; tUnYh: exit; goto x0c2A; luVyS: foreach ($requesters as $req) { goto ZIhEp; CO6Ff: $requesters_name[$req["_id"]] = $info; goto Ym8v0; Ym8v0: X8Ca9: goto VI3IU; ZIhEp: $info = ''; goto Q61Xs; Ougwi: magtD: goto gBgEj; gBgEj: $info = !empty($req["name"]) ? $req["name"] : $req["username"]; goto FZ9hA; eM0JF: goto guk94; goto Ougwi; FZ9hA: guk94: goto CO6Ff; IlN5U: $info = $req["name"]; goto eM0JF; Q61Xs: if ($req["frommodule"] === "users") { goto magtD; } goto IlN5U; VI3IU: } goto ydreN; x0c2A: RaAYa: goto BnVh0; M6dJZ: WQFUB: goto KqSGB; RqQrr: $requesters = $this->requesters_m->db_getbylistid($arr_requesterid); goto AF96_; BnVh0: $idrequester = $request->idrequester; goto PF3jx; pFze9: header("Content-Type: application/json"); goto bhcMG; e0pu_: if (empty($result["data"])) { goto Y4hLD; } goto Yi7uZ; mBFVU: $request = json_decode(file_get_contents("php://input")); goto mTPNL; ygkgj: $sortdatecreated->field = "created.time"; goto RQKS_; bhcMG: $this->load->library("tickets_library"); goto A5e8Z; WqNOY: $result["ticketidfromdetail"] = $ticketidfromdetail; goto uB2Ao; slfjf: echo json_encode($result); goto tUnYh; J5QLM: $requesters_name = []; goto e0pu_; eN29U: $request->sort = [$sortdatecreated]; goto Ko_L4; dsvRy: $this->load->model("services/tickets/requesters_m"); goto J5QLM; octSw: $ticketdisable = $request->ticketdisable ? $request->ticketdisable : []; goto ZFSe1; jEBIT: $sortdatecreated = new stdClass(); goto ygkgj; oBMr6: echo json_encode($result); goto KsZX5; RQKS_: $sortdatecreated->dir = "desc"; goto eN29U; llwWD: $result = $this->tickets_library->db_read($request); goto dsvRy; f_uvK: } public function searchTicketLinkByRequesterIdForLinked() { goto Ye8Me; epFBt: $sortdatecreated->dir = "desc"; goto j9vH2; Znrk1: kosp1: goto V8YXM; vssW9: if (empty($result["data"])) { goto FdzQN; } goto tgpNV; hGrAB: $this->load->model("services/tickets/requesters_m"); goto XTl5U; XTl5U: $requesters_name = []; goto vssW9; S3M3W: $this->load->library("tickets_library"); goto xf21G; Rp9Bh: $sortdatecreated = new stdClass(); goto hdjem; enj5F: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("merge", "neq", true), $request); goto OdlqC; Dy8tT: Tcbx5: goto xifjs; a88A5: $idrequester = $request->idrequester; goto Nn4kX; Ye8Me: header("Content-Type: application/json"); goto S3M3W; bSD_h: echo json_encode($result); goto aG5CD; hdjem: $sortdatecreated->field = "created.time"; goto epFBt; Yw_xV: if (!empty($idrequester)) { goto kosp1; } goto vju0b; RPVDC: DVdt0: goto a88A5; vju0b: echo json_encode($result); goto f0KpV; xf21G: $result = ["total" => 0, "data" => []]; goto w9c55; wof2f: foreach ($requesters as $req) { goto snYSs; mKnUn: l9shn: goto geuqF; snYSs: $info = ''; goto TxtUh; Y9u2E: $info = $req["name"]; goto YCpL0; P158s: $info = !empty($req["name"]) ? $req["name"] : $req["username"]; goto AaN2F; QDu2E: $requesters_name[$req["_id"]] = $info; goto mKnUn; Mrywa: I1B7k: goto P158s; TxtUh: if ($req["frommodule"] === "users") { goto I1B7k; } goto Y9u2E; YCpL0: goto RQiHo; goto Mrywa; AaN2F: RQiHo: goto QDu2E; geuqF: } goto gc0TR; mYPZl: $result["ticketidfromdetail"] = $ticketidfromdetail; goto iw5Xl; gc0TR: pc5xK: goto PY0NK; tgpNV: $arr_requesterid = array_column($result["data"], "requester_id"); goto RRGPx; iw5Xl: echo json_encode($result); goto fmp9i; ltANx: $ticketdisable = $request->ticketdisable ? $request->ticketdisable : []; goto CvXA2; aJRwR: $result = $this->tickets_library->db_read($request); goto hGrAB; OdlqC: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("link", "neq", true), $request); goto Rp9Bh; Zpnmu: FdzQN: goto dw7Ps; dw7Ps: foreach ($result["data"] as &$value) { goto oHr02; QD8nK: if (!($value["bpm_currentState"]["name"] == "Cancel")) { goto jUlDz; } goto FwCOq; Of2tL: $value["created_string"] = searchnameuser($value["created"]["byid"]); goto E_d1a; RDgbK: goto AU43g; goto Uq3ih; hHcN8: $value["createddate_string"] = date("d/m/Y", $value["created"]["time"]); goto Dx3U9; rUoFY: $value["background"] = "#aad178"; goto BiOB9; wlfkW: if (!($value["ticket_id"] === $ticketidfromdetail)) { goto D3jFd; } goto larPK; i9ju1: $value["background"] = "#00CCFF"; goto QlZ_d; larPK: $value["formdeatail"] = true; goto mZFpo; GBQPz: $value["formexists"] = false; goto sIuip; FwCOq: $value["background"] = "#e74c3c"; goto ld6Rt; wqHiY: AU43g: goto prDKc; ajJtQ: $value["background"] = "#e67e22"; goto I6sTO; Uq3ih: ndS8N: goto MCxj6; BiOB9: hWSq2: goto A0zsH; WpD8G: $value["ticketdisable"] = true; goto NtaFe; NmPbW: $value["bpm_currentState"] = ["name" => "new", "extendConfig" => ["status" => "new", "typeColor" => "default", "classButton" => "warning"]]; goto uPLY3; Dx3U9: $value["requester_string"] = !empty($value["requester_id"]) && array_key_exists($value["requester_id"], $requesters_name) ? $requesters_name[$value["requester_id"]] : ''; goto XpoOz; ld6Rt: jUlDz: goto J8egt; prDKc: nR19w: goto CKImz; K8b3G: JxSfX: goto GBQPz; sIuip: $value["formdeatail"] = false; goto T1Kx3; MCxj6: $value["bpm_currentState"] = $value["bpm"]["currentState"]; goto QD8nK; NtaFe: kz4he: goto imsrB; E_d1a: if (!($value["created_string"] === false)) { goto IdUQG; } goto FroC8; mZFpo: D3jFd: goto ku5LZ; ORaPs: if (isset($value["bpm"]["currentState"])) { goto ndS8N; } goto NmPbW; QlZ_d: HAqMK: goto wqHiY; A0zsH: if (!($value["bpm_currentState"]["name"] == "Done")) { goto HAqMK; } goto i9ju1; imsrB: $value["assignee_string"] = searchnameuser($value["assignee_info"]["id"]); goto ORaPs; S0_BV: if (!array_key_exists("created", $value)) { goto JxSfX; } goto Of2tL; uPLY3: $value["background"] = "#999999"; goto RDgbK; oHr02: $value["createdtime_string"] = date("H:i:s", $value["created"]["time"]); goto hHcN8; J8egt: if (!($value["bpm_currentState"]["name"] == "In Progress")) { goto XwShB; } goto ajJtQ; X0Nfx: CEgn3: goto wlfkW; T1Kx3: if (!in_array($value["ticket_id"], $listticketid)) { goto CEgn3; } goto x1wzM; I6sTO: XwShB: goto laSBg; ku5LZ: if (!in_array($value["ticket_id"], $ticketdisable)) { goto kz4he; } goto WpD8G; x1wzM: $value["formexists"] = true; goto X0Nfx; FroC8: $value["created_string"] = $value["created"]["byid"]; goto fuojV; XpoOz: $value["created_string"] = ''; goto S0_BV; laSBg: if (!($value["bpm_currentState"]["name"] == "Approved")) { goto hWSq2; } goto rUoFY; fuojV: IdUQG: goto K8b3G; CKImz: } goto Dy8tT; bvzzc: $ticketidfromdetail = $request->ticketidfromdetail; goto ltANx; RRGPx: $requesters = $this->requesters_m->db_getbylistid($arr_requesterid); goto y0x3O; f0KpV: exit; goto Znrk1; MhWdv: $request->filter->logic = "and"; goto aJRwR; aG5CD: exit; goto RPVDC; j9vH2: $request->sort = [$sortdatecreated]; goto MhWdv; LTRMa: if (!(!isset($request->idrequester) || !isset($request->listticketid) || !isset($request->ticketidfromdetail))) { goto DVdt0; } goto bSD_h; CvXA2: $this->load->model("services/tickets/tickets_m"); goto Yw_xV; PY0NK: OJMfo: goto Zpnmu; V8YXM: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("requester_id", "eq", $request->idrequester), $request); goto RS6KT; w9c55: $request = json_decode(file_get_contents("php://input")); goto LTRMa; y0x3O: if (empty($requesters)) { goto OJMfo; } goto wof2f; xifjs: $result["listticketid"] = $listticketid; goto mYPZl; RS6KT: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("delete", "isempty", 1), $request); goto enj5F; Nn4kX: $listticketid = $request->listticketid; goto bvzzc; fmp9i: } public function getlinkobjectcrm($options = array()) { try { goto LUNCU; mWvcy: KJ84I: goto oOCjP; oOCjP: if (!isset($options["id"])) { goto WVtqb; } goto ABZ2h; YfXPS: B14Wz: goto Ia1ec; pxnck: JSuGi: goto FOCYG; pLgAN: goto PYla6; goto YfXPS; poRAz: KbQWc: goto v47wE; E0Yf6: $result["data"]["avatar"] = $object["avatar"]; goto poRAz; Ia1ec: $result = ["status" => true, "data" => ["module" => $request["module"], "id" => $request["id"]]]; goto Cpayn; LUNCU: $request = json_decode(file_get_contents("php://input"), true); goto vfxKP; oRHX8: tGc1U: goto S6rHu; S6rHu: header("Content-Type: application/json"); goto OWswn; tLPbS: $result["data"]["avatar"] = base_url("public/img/crm/crm_empty_avatar.png"); goto j1Y35; Cpayn: switch ($request["module"]) { case "accounts": goto ICVJj; ICVJj: $this->load->model("crm/accounts_m"); goto ycIc6; rROX1: goto D4yMC; goto mYBMd; OPxBH: $object["name"] = @$object["companyname"]; goto rROX1; N5kfF: $object = $this->accounts_m->db_getbyid($request["id"], ["companyname", "main_business_phone", "main_business_email", "avatar", "ticket_requester_id"]); goto esc6f; ycIc6: $this->load->library("accounts_library"); goto MRUWm; esc6f: $object["moduleName"] = langJS("module.accounts"); goto OPxBH; MRUWm: $this->accounts_library->db_setcollection($request["id"]); goto N5kfF; mYBMd: case "leads": goto p1HRr; gt29u: $this->load->library("leads_library"); goto t3xrO; GkwOm: $object = $this->leads_m->db_getbyid($request["id"], ["first_name", "phone", "business_phone", "email", "business_email", "avatar", "ticket_requester_id"]); goto CKpoY; t3xrO: $this->leads_library->db_setcollection($request["id"]); goto GkwOm; J31M9: $object["name"] = @$object["first_name"]; goto bImif; bImif: goto D4yMC; goto gulfE; CKpoY: $object["moduleName"] = langJS("module.leads"); goto J31M9; p1HRr: $this->load->model("crm/leads_m"); goto gt29u; gulfE: case "contacts": goto Yys6B; ACn7B: $object = $this->contacts_m->db_getbyid($request["id"], ["first_name", "mobi_phone", "main_email", "avatar", "ticket_requester_id", "account"]); goto OvssE; ZStKl: $this->contacts_library->db_setcollection($request["id"]); goto ACn7B; Mr4NQ: $this->load->library("contacts_library"); goto ZStKl; lKDyI: goto D4yMC; goto djqIL; Yys6B: $this->load->model("crm/contacts_m"); goto Mr4NQ; FLo60: $object["name"] = @$object["first_name"]; goto lKDyI; OvssE: $object["moduleName"] = langJS("module.contacts"); goto FLo60; djqIL: default: throw new Exception("Module wrong!"); } goto pxnck; OWswn: echo json_encode($result); goto MGwEr; ABZ2h: $request["id"] = $options["id"]; goto fAV5f; eXXUd: PYla6: goto HXhO3; TNr48: throw new Exception("Missing params!"); goto pLgAN; j1Y35: if (!(array_key_exists("avatar", $object) && $object["avatar"] !== '')) { goto KbQWc; } goto E0Yf6; FOCYG: D4yMC: goto hon2L; v47wE: if (!(isset($options["module"]) || isset($options["id"]))) { goto tGc1U; } goto MFA1E; vfxKP: if (!isset($options["module"])) { goto KJ84I; } goto oEID1; MFA1E: return $result; goto oRHX8; MGwEr: exit; goto eXXUd; oEID1: $request["module"] = $options["module"]; goto mWvcy; fAV5f: WVtqb: goto GSnCG; GSnCG: if (keyExistsArray(["module", "id"], $request)) { goto B14Wz; } goto TNr48; hon2L: $result["data"] = array_merge($result["data"], $object); goto tLPbS; HXhO3: } catch (Exception $ex) { goto saao6; s1fCM: header("Content-Type: application/json"); goto niGlN; saao6: if (!(isset($options["module"]) || isset($options["id"]))) { goto O1iP6; } goto VLQA_; VLQA_: return false; goto nrfmb; niGlN: echo json_encode(["status" => false, "error" => $ex->getMessage() . " ~ " . $ex->getLine()]); goto YcCGp; nrfmb: O1iP6: goto s1fCM; YcCGp: } } public function readNotDelete() { goto wz_eK; j_ICn: $filter_fieldstatus->field = "status"; goto l01j5; OmibH: $listbu = $this->data["listbu"]; goto L2qZa; PzsiH: foreach ($result["data"] as &$ticket) { goto n3wcz; KqdFd: $name = substr($ticket["owner"], 0, $index); goto qI_ao; gcbeM: $ticket["assignee_textwithname"] = searchnameuserwithstatus($ticket["assignee_info"]["id"], true); goto yiyde; m1FpW: $ticket["last_modified_username"] = $ticket["last_modified"]["byid"]; goto fRWsf; niBl1: if (!array_key_exists("last_modified", $ticket)) { goto mhwfS; } goto aWuA1; V21cG: vjHs1: goto e4Lf9; PCmvm: $ticket["owner_username"] = $owner_username["text"]; goto JeDgq; uipJd: $ticket["created_string"] = ''; goto BhRX_; UQn6J: $ticket["created_string"] = searchnameuserwithstatus($ticket["created"]["byid"]); goto uD2FK; YuSch: $ticket["owner_username"] = ''; goto QeKMD; JeDgq: goto JLB22; goto iEAQM; S7jsP: J3Z_W: goto l4vFK; wL81A: OJAuY: goto eAnhY; D05uy: $ticket["created_username"] = ''; goto uOCgq; uOCgq: if (!array_key_exists("created", $ticket)) { goto J3Z_W; } goto bqPp3; hg6Hr: vDZGw: goto reYqM; dysJN: DbDWT: goto D05uy; BuWZu: $ticket["owner_username"] = searchnameuser($id); goto qhw57; KZOU3: $ticket["priority_text"] = langJS("module_tickets.ticketpriority." . $ticket["priority"]); goto B1zzL; Iqvus: $key = array_search($ticket["category"], array_column($listcategory, "_id")); goto Rszlt; PqdCX: $index = strpos($ticket["owner"], "_"); goto X22zy; zIrVP: if (!($ticket["last_modified_username"] === false)) { goto N6oDm; } goto m1FpW; n3wcz: $ticket["category_text"] = ''; goto ZeaID; up0vQ: $ticket["created_username"] = $ticket["created"]["byid"]; goto P9B5p; X22zy: $id = substr($ticket["owner"], $index + 1); goto KqdFd; BhRX_: if (!array_key_exists("created", $ticket)) { goto OEkgj; } goto UQn6J; ZK25w: goto GTHvu; goto Zk_oK; rpoV_: C1Eoa: goto T1MVF; QU_6u: goto vjHs1; goto nPfCO; iEAQM: sdDI0: goto BuWZu; A3vzC: $ticket["createdtime_string"] = date("H:i:s", $ticket["created"]["time"]); goto ZeuXA; B1zzL: smcts: goto A3vzC; ZeuXA: $ticket["createddate_string"] = date("d/m/Y", $ticket["created"]["time"]); goto OBohq; qI_ao: if ($name == "user") { goto sdDI0; } goto DFPKe; J_57m: if (!array_key_exists("assignee_info", $ticket)) { goto DbDWT; } goto M6hJJ; qhw57: JLB22: goto hg6Hr; QeKMD: if (!array_key_exists("owner", $ticket)) { goto qDHp5; } goto poART; fRWsf: N6oDm: goto LqsHM; poART: if (!($ticket["owner"] !== '')) { goto vDZGw; } goto PqdCX; vxXjB: $ticket["assignee_text"] = $ticket["assignee_info"]["id"]; goto QU_6u; OBohq: $ticket["requester_string"] = !empty($ticket["requester_id"]) && array_key_exists($ticket["requester_id"], $requesters_name) ? $requesters_name[$ticket["requester_id"]] : ''; goto uipJd; pqtoc: $bu = searchbu($ticket["assignee_info"]["id"]); goto aC6mt; aWuA1: $ticket["last_modified_username"] = searchnameuserwithstatus($ticket["last_modified"]["byid"]); goto zIrVP; CfxkR: $ticket["category_text"] = $listcategory[$key]["text"]; goto wL81A; DFPKe: $owner_username = searchbu($id); goto PCmvm; uD2FK: if (!($ticket["created_string"] === false)) { goto wHFxc; } goto t4sx_; bqPp3: $ticket["created_username"] = searchnameuserwithstatus($ticket["created"]["byid"]); goto N0ynw; LqsHM: mhwfS: goto GM8pw; Zk_oK: vlx_N: goto ZtaQz; reYqM: qDHp5: goto rpoV_; eAnhY: LEwdA: goto fcPWj; ZeaID: if (!(array_key_exists("category", $ticket) && $this->mongo_db->isValidObjectID($ticket["category"]))) { goto LEwdA; } goto Iqvus; N0ynw: if (!($ticket["created_username"] === false)) { goto quGk2; } goto up0vQ; t4sx_: $ticket["created_string"] = $ticket["created"]["byid"]; goto g6qZ3; nPfCO: v0h43: goto Glkec; wGvfE: if (!array_key_exists("priority", $ticket)) { goto smcts; } goto KZOU3; gh4F1: OEkgj: goto YuSch; GM8pw: $ticket["priority_text"] = ''; goto wGvfE; e4Lf9: $ticket["assignee_textwithname"] = $ticket["assignee_text"]; goto ZK25w; fcPWj: $ticket["assignee_text"] = ''; goto J_57m; P9B5p: quGk2: goto S7jsP; ZtaQz: $ticket["assignee_text"] = searchnameuserwithstatus($ticket["assignee_info"]["id"]); goto gcbeM; M6hJJ: if ($ticket["assignee_info"]["type"] === "user") { goto vlx_N; } goto pqtoc; g6qZ3: wHFxc: goto gh4F1; Glkec: $ticket["assignee_text"] = $bu["text"]; goto V21cG; l4vFK: $ticket["last_modified_username"] = ''; goto niBl1; Rszlt: if (!($key !== false)) { goto OJAuY; } goto CfxkR; aC6mt: if ($bu !== false) { goto v0h43; } goto vxXjB; yiyde: GTHvu: goto dysJN; T1MVF: } goto NNsMI; WWwUb: He8CJ: goto gs6Ov; KGLoK: if (property_exists($request, "module")) { goto gs2f5; } goto cvMJ7; taB0Q: $hasFilterTicketEnd = true; goto t5JCO; cBKlK: $this->mongodatasourceresult->addFilterRequest($listCheck, $request); goto ieGoc; CXkRE: Cg66N: goto skZd5; rtsWS: $filter_fieldstatus = new stdClass(); goto j_ICn; uKEaY: foreach ($listbu as &$bu) { $bu = "bu_" . $bu; l2aAP: } goto szLVV; CcnDq: $selectField = $this->tickets_m->getSelectKendoGrid(); goto iEl62; q9MrZ: if (!(property_exists($request, "wf4x_processingbysameparentbu") && $request->wf4x_processingbysameparentbu === true)) { goto F6uVF; } goto ohe7x; y2irX: $activeView = true; goto vbwt_; lBp31: SEbgQ: goto HBEKV; ZE0S3: MiG1X: goto P_cIe; Ql6eH: echo json_encode(["total" => 0, "data" => [], "errors" => langJS("httpcode.msg_403")]); goto fxcr3; BZqJ8: if (!($permission["filter"] !== false)) { goto n28JE; } goto asmBk; fxcr3: exit; goto FIpIN; ZtwuK: $this->load->library("tickets_library"); goto bTZkL; whnmt: $optionSort = ["where" => ["module" => "tickets", "show" => 1], "sort" => ["position" => 1]]; goto SFQxP; B2adQ: if (empty($request->ticket_requester_id)) { goto CuWsY; } goto h6LFQ; ohe7x: $returntype = "filter_processingbysameparentbu"; goto feQdx; nNsiy: if (!($owner != 1)) { goto QLojG; } goto uKEaY; G1_bR: if ($permission["stt"] === false) { goto caAcG; } goto BZqJ8; ggiNg: foreach ($dataShared as $idc) { $listCategory[] = $idc["_id"]; q1rwm: } goto UJ8l0; Ndv1w: foreach ($field as $field) { $tempSelect[] = $field["alias"]; yEYzb: } goto CXkRE; BtZO8: YRTjV: goto Iwjol; sjU4o: $this->mongodatasourceresult->addFilterRequest($permission["filter"], $request); goto BtZO8; NX_E7: S6hdv: goto tKL5k; asmBk: if (property_exists($request, "module")) { goto YRTjV; } goto sjU4o; g1O56: $field = $this->fieldGrid(); goto g10bH; R9A6u: $listcategory = $this->configcategoryticket_m->db_all_withcache(); goto r1gVU; HBEKV: $permission = $this->tickets_library->permission($returntype); goto G1_bR; PpUel: z45Yf: goto ZE0S3; Rr70z: DQGZK: goto CcnDq; rz2CX: if (!(property_exists($request, "wf4x_mineticket") && $request->wf4x_mineticket === true)) { goto mGT3K; } goto ajkxB; Js1Qo: qEMfb: goto WWwUb; a7k_V: yfq2f: goto LXTF_; XYtlu: LndhK: goto q9MrZ; TAHjS: $wf4x_alltickets = isset($request->wf4x_alltickets) ? $request->wf4x_alltickets : false; goto uAvUs; IrmcV: $userid = "user_" . $this->data["userid"]; goto OmibH; KW1vj: $requesters = $this->requesters_m->db_getbylistid($arr_requesterid); goto wRuat; vbwt_: lwGTF: goto KGLoK; U7qol: $countcondition = $this->mongodatasourceresult->countcondition($this->tickets_m->getSelectKendoGrid(), $request); goto CD8w2; tKL5k: if (!(!$hasFilterTicketEnd && !$wf4x_alltickets)) { goto RRgKM; } goto wUiba; feQdx: F6uVF: goto rz2CX; oWwMY: if (!(property_exists($request, "wf4x_processingbysubbu") && $request->wf4x_processingbysubbu === true)) { goto LndhK; } goto lACEZ; MjKW1: foreach ($requesters as $req) { goto nIXRh; Lm5_Y: $info = !empty($req["name"]) ? $req["name"] : $req["username"]; goto OeSj3; TrxFC: $requesters_name[$req["_id"]] = $info; goto t31Sh; MrK3q: if ($req["frommodule"] === "users") { goto en7OV; } goto MQlLi; OeSj3: Ia48T: goto TrxFC; Q6br2: en7OV: goto Lm5_Y; g6T5j: goto Ia48T; goto Q6br2; nIXRh: $info = ''; goto MrK3q; t31Sh: KsCT3: goto LP9w8; MQlLi: $info = $req["name"]; goto g6T5j; LP9w8: } goto Js1Qo; peUko: $this->load->model("settings/configtickets/configcategoryticket_m"); goto R9A6u; r1gVU: $this->load->model("services/tickets/requesters_m"); goto r5Aj6; MZwap: BAXDA: goto XvAej; lHLxZ: $this->mongodatasourceresult->addFilterRequest($listC, $request); goto MZwap; vwQXc: $activeView = false; goto TAHjS; FIpIN: BCd7g: goto g1O56; g10bH: $tempSelect = []; goto Ndv1w; JBWQ9: if (!property_exists($request, "filter")) { goto z45Yf; } goto ctK7F; Iwjol: n28JE: goto dnD3N; skZd5: $this->load->model("settings/customfield/fieldgroup_m"); goto whnmt; ca2yB: $dataShared = $this->configcategoryticket_m->db_alloptions(["text", "share", "shareall", "notshare", "hasChildren", "parent_id", "type"], ["where_nin" => ["notshare" => $listbu], "or_where" => ["share" => ["$in" => $listbu], "shareall" => 1], "where_ne" => ["delete" => 1]]); goto rhkSD; uAvUs: $hasFilterTicketEnd = false; goto gSgSx; CD8w2: if (!($countcondition === 0)) { goto MiG1X; } goto JBWQ9; BwzgZ: $returntype = "filter_createdbymeandsubbu"; goto Uy4TV; XlRAD: echo json_encode($result); goto ayNgS; SO2rf: z6L4Z: goto a7k_V; l01j5: $filter_fieldstatus = json_decode(json_encode($filter_fieldstatus), true); goto hGeF0; O0pee: $result = $this->tickets_library->db_read($request, $select); goto peUko; rhkSD: $listCategory = []; goto ggiNg; an3U5: $this->load->model("settings/configtickets/configcategoryticket_m"); goto ca2yB; L2qZa: $owner = $this->data["isOwner"]; goto vwQXc; Xn4sj: foreach ($group as $group) { $tempSelect[] = $group["alias"]; fmo9q: } goto Rr70z; pO9vj: TR_Cq: goto i2LdW; dnD3N: goto BCd7g; goto VEb1R; aJpsH: mGT3K: goto y2irX; szLVV: eMhkH: goto iG5op; i2LdW: goto SEbgQ; goto fP61H; NNMQ6: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("requester_id", "eq", $request->ticket_requester_id), $request); goto pO9vj; fP61H: gs2f5: goto B2adQ; SFQxP: $group = $this->fieldgroup_m->db_alloptions(["name", "alias", "groupid", "coladd", "show", "module", "fieldall", "icon", "hasParent", "created", "last_modified"], $optionSort); goto Xn4sj; cvMJ7: if (!property_exists($request, "ticket_requester_id")) { goto TR_Cq; } goto NNMQ6; x5hJ9: $listC = $this->mongodatasourceresult->initFilterWithSub("or", [$this->mongodatasourceresult->initFilter("category", "in", $listCategory)]); goto lHLxZ; UlEcb: $arr_requesterid = array_column($result["data"], "requester_id"); goto KW1vj; r5Aj6: $requesters_name = []; goto D8p2l; Fbyx1: RRgKM: goto k1UhU; UJ8l0: WV1Nh: goto J3Fzx; gs6Ov: TW2kT: goto PzsiH; wRuat: if (empty($requesters)) { goto He8CJ; } goto MjKW1; VEb1R: caAcG: goto Ql6eH; Uy4TV: f6X4h: goto oWwMY; ieGoc: CuWsY: goto lBp31; NNsMI: RiZ9w: goto XlRAD; XvAej: QLojG: goto O0pee; LXTF_: if (!property_exists($request, "idtopic")) { goto S6hdv; } goto taB0Q; bTZkL: $returntype = "filter"; goto IrmcV; gSgSx: if (!(property_exists($request, "filter") && property_exists($request->filter, "filters"))) { goto yfq2f; } goto rtsWS; P_cIe: if (!(property_exists($request, "wf4x_createdbymeandsubbu") && $request->wf4x_createdbymeandsubbu === true)) { goto f6X4h; } goto BwzgZ; D8p2l: if (empty($result["data"])) { goto TW2kT; } goto UlEcb; O3kzE: $this->load->model("services/tickets/tickets_m"); goto ZtwuK; k1UhU: if (!(property_exists($request, "wf4x_noquerypermission") && $request->wf4x_noquerypermission === true)) { goto lwGTF; } goto U7qol; J3Fzx: if (!(!empty($dataShared) && !property_exists($request, "module"))) { goto BAXDA; } goto x5hJ9; iEl62: $select = array_merge($tempSelect, $selectField); goto nNsiy; iG5op: array_push($listbu, $userid); goto an3U5; h6LFQ: $listCheck = $this->mongodatasourceresult->initFilterWithSub("or", [$this->mongodatasourceresult->initFilter("account_related", "eq", $request->ticket_requester_id), $this->mongodatasourceresult->initFilter("requester_id", "eq", $request->ticket_requester_id)]); goto cBKlK; ctK7F: unset($request->filter); goto PpUel; lACEZ: $returntype = "filter_processingbysubbu"; goto XYtlu; wz_eK: header("Content-Type: application/json"); goto E1pVr; ajkxB: $returntype = "filter_mineticket"; goto aJpsH; t5JCO: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("sourceid", "eq", $request->idtopic), $request); goto NX_E7; hGeF0: foreach ($request->filter->filters as $value) { goto o2oKd; p9BrX: Jq9N1: goto ahu90; ahu90: FIBjW: goto YGBGM; qmToj: if (!($exist_status !== false)) { goto Jq9N1; } goto Fnmtz; Fnmtz: $hasFilterTicketEnd = true; goto p9BrX; o2oKd: $arrayTemp = json_decode(json_encode($value), true); goto kFqEH; kFqEH: $exist_status = strpos(json_encode($arrayTemp), ""field":"status""); goto qmToj; YGBGM: } goto SO2rf; E1pVr: $request = json_decode(file_get_contents("php://input")); goto O3kzE; wUiba: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("status", "neq", "End"), $request); goto Fbyx1; ayNgS: } public function getPublicField($keyObject, $object) { goto KAdbx; Zyi7b: return ["phonecustom" => $phonecustom, "emailcustom" => $emailcustom]; goto xmcFf; Ko_vW: if (!(isset($keyObject["phone"]) && is_array($keyObject["phone"]) && count($keyObject["phone"]) > 0)) { goto nQEMy; } goto fwHXA; x3FwN: foreach ($keyObject["email"] as $valPublicEmail) { goto x5Gcg; x5Gcg: if (!isset($object[$valPublicEmail])) { goto KzTMf; } goto M85LX; n1dMO: vWMnk: goto ANQUG; UvyBO: KzTMf: goto TIhcJ; lrwcW: $emailcustom = !empty($emailcustom) ? $emailcustom . ", " . $valueobject : $valueobject; goto KoFhg; Hv5De: goto UySOl; goto n1dMO; YgXRc: $emailcustom = !empty($emailcustom) ? $emailcustom . ", " . $string_email : $string_email; goto mm7Zb; ANQUG: $string_email = implode(", ", $valueobject); goto YgXRc; TIhcJ: nvaK6: goto mWzoF; M85LX: $field = explode(".", $valPublicEmail); goto iSOfL; nUwqI: if (!(is_string($valueobject) && !empty($valueobject))) { goto Ae0yv; } goto lrwcW; KoFhg: Ae0yv: goto Hv5De; iSOfL: $valueobject = is_array($field) && count($field) > 1 ? @$object[$field[0]][$field[1]] : @$object[$field[0]]; goto Eet61; mm7Zb: UySOl: goto UvyBO; Eet61: if (is_array($valueobject) && count($valueobject) > 0) { goto vWMnk; } goto nUwqI; mWzoF: } goto gKEva; XNi5u: nQEMy: goto hmapd; gKEva: pwXmX: goto Zk57s; VUxAY: zhUOH: goto XNi5u; hmapd: if (!(isset($keyObject["email"]) && is_array($keyObject["email"]) && count($keyObject["email"]) > 0)) { goto YiM7j; } goto x3FwN; Zk57s: YiM7j: goto Zyi7b; fwHXA: foreach ($keyObject["phone"] as $valPublicPhone) { goto HFpXd; zEcKQ: yXXHu: goto nSbLz; c2mvY: if (!(is_string($valueobject) && !empty($valueobject))) { goto yXXHu; } goto Wpe2w; XxCEv: XdDw8: goto ANHcg; LGjNF: $valueobject = is_array($field) && count($field) > 1 ? @$object[$field[0]][$field[1]] : @$object[$field[0]]; goto pQCgs; Wpe2w: $phonecustom = !empty($phonecustom) ? $phonecustom . ", " . $valueobject : $valueobject; goto zEcKQ; vMP_o: $phonecustom = !empty($phonecustom) ? $phonecustom . ", " . $string_phone : $string_phone; goto Bopwv; nSbLz: goto TEjpn; goto c7utI; xElBx: $string_phone = implode(", ", $valueobject); goto vMP_o; Bopwv: TEjpn: goto XxCEv; c7utI: JyrWi: goto xElBx; pQCgs: if (is_array($valueobject) && count($valueobject) > 0) { goto JyrWi; } goto c2mvY; HFpXd: $field = explode(".", $valPublicPhone); goto LGjNF; ANHcg: } goto VUxAY; warR3: $emailcustom = ''; goto Ko_vW; KAdbx: $phonecustom = ''; goto warR3; xmcFf: } public function getWorkingHour() { goto zrJ7V; p1wuA: echo json_encode($workinghour); goto hZoTi; zrJ7V: $this->load->model("settings/generalconfig/workinghours_m"); goto aZKQ7; aZKQ7: $workinghour = $this->workinghours_m->db_all([]); goto p1wuA; hZoTi: } public function getWorkingHourByid() { goto SaLyS; RGbd1: $this->load->model("settings/generalconfig/workinghours_m"); goto vP9AV; Ye_W4: echo json_encode($workinghour); goto W5b_B; SaLyS: header("Content-Type: application/json"); goto FytMp; FytMp: $request = json_decode(file_get_contents("php://input")); goto RGbd1; vP9AV: $workinghour = $this->workinghours_m->db_getbyid($request->workingday); goto Ye_W4; W5b_B: } private function _toStringNoUTF8($str) : string { goto iARUK; UmKhJ: foreach ($unicode as $nonUnicode => $uni) { $str = preg_replace("/({$uni})/i", $nonUnicode, $str); ypNQ1: } goto lRl2C; GAx6R: $str = strtolower($str); goto m7yo_; lRl2C: qrtJ9: goto u01Ak; u01Ak: $str = preg_replace("/[^A-Za-z0-9\-_ .]/", '', $str); goto GAx6R; iARUK: $unicode = array("a" => "\xc3\241|\xc3\xa0|\xe1\xba\xa3|\xc3\243|\341\xba\xa1|\304\x83|\341\272\xaf|\341\xba\xb7|\341\xba\261|\xe1\272\263|\341\xba\xb5|\303\xa2|\xe1\272\xa5|\xe1\272\247|\xe1\xba\251|\xe1\272\xab|\341\272\xad|\303\201|\xc3\200|\xe1\272\xa2|\303\203|\341\272\240|\xc4\202|\341\xba\256|\341\xba\266|\xe1\272\xb0|\341\272\262|\xe1\xba\264|\xc3\x82|\xe1\272\244|\341\xba\xa6|\341\272\250|\xe1\xba\xaa|\341\272\xac", "d" => "\304\x91|\xc4\220", "e" => "\303\251|\xc3\xa8|\341\xba\xbb|\341\272\275|\341\272\xb9|\303\252|\341\272\277|\xe1\xbb\201|\341\273\x83|\xe1\xbb\205|\341\xbb\x87|\xc3\x89|\303\x88|\341\xba\272|\341\272\274|\xe1\xba\270|\303\x8a|\xe1\272\xbe|\341\xbb\x80|\341\xbb\x82|\341\273\204|\341\xbb\x86", "i" => "\xc3\xad|\xc3\254|\341\xbb\211|\xc4\251|\xe1\273\213|\303\x8d|\xc3\214|\341\273\210|\xc4\xa8|\xe1\273\212", "o" => "\xc3\xb3|\xc3\262|\xe1\xbb\217|\303\265|\xe1\xbb\215|\303\264|\xe1\xbb\221|\341\273\x93|\341\273\225|\xe1\273\x97|\xe1\xbb\x99|\306\xa1|\xe1\273\x9b|\xe1\273\x9d|\xe1\273\x9f|\xe1\273\241|\341\xbb\xa3|\xc3\x93|\xc3\222|\341\273\216|\xc3\x95|\xe1\xbb\x8c|\303\224|\341\273\220|\xe1\xbb\x92|\xe1\273\x94|\341\xbb\x96|\341\273\230|\306\xa0|\xe1\xbb\232|\xe1\xbb\234|\xe1\xbb\236|\341\xbb\240|\xe1\273\xa2", "u" => "\303\xba|\xc3\271|\341\xbb\247|\xc5\xa9|\xe1\273\245|\306\xb0|\xe1\273\251|\xe1\273\253|\xe1\273\xad|\xe1\273\257|\341\273\xb1|\xc3\232|\xc3\x99|\xe1\273\xa6|\305\xa8|\xe1\273\244|\306\257|\xe1\273\xa8|\341\xbb\252|\xe1\273\xac|\341\xbb\256|\341\273\xb0", "y" => "\xc3\275|\341\273\263|\341\273\xb7|\341\xbb\271|\xe1\xbb\xb5|\303\x9d|\341\273\xb2|\341\273\266|\341\273\xb8|\341\xbb\xb4"); goto UmKhJ; m7yo_: return $str; goto KpKtB; KpKtB: } private function _updateStatusField($fil, $arrayLanguage) { goto zW3ly; HhOwC: O8ZRN: goto qzXFn; qzXFn: MIvdh: goto gPVkY; vZTe6: IAChW: goto HtuJs; MTyee: foreach ($fil as $item) { $this->_updateStatusField($item, $arrayLanguage); HSa5A: } goto ZvIKT; rsjLJ: wisq5: goto mT1uk; zW3ly: if (is_object($fil)) { goto eUu4U; } goto YbYO6; NYq0c: eUu4U: goto eNsTH; UaF5_: $searchString = $this->_toStringNoUTF8($fil->value); goto IP0ls; ZvIKT: GvlmS: goto vZTe6; YbYO6: if (!is_array($fil)) { goto IAChW; } goto MTyee; HtuJs: goto XglKr; goto NYq0c; mNo96: foreach ($fil->filters as $filter) { $this->_updateStatusField($filter, $arrayLanguage); qKEDr: } goto HhOwC; gPVkY: XglKr: goto Ai_2m; mT1uk: if (!(isset($fil->filters) && is_array($fil->filters))) { goto MIvdh; } goto mNo96; eNsTH: if (!(isset($fil->field) && $fil->field === "status")) { goto wisq5; } goto UaF5_; Eniqk: KiwAH: goto rsjLJ; IP0ls: foreach ($arrayLanguage as $key => $value) { goto M_12t; dxskt: $fil->value = $arrayLanguage[$key]; goto yC1ck; DPQIF: YGQZv: goto zTNi9; yC1ck: $fil->valueChecking = $arrayLanguage[$key]; goto nLKO1; zTNi9: NHi10: goto ihDZU; M_12t: $similarity = similar_text(mb_strtolower($this->_toStringNoUTF8($key)), mb_strtolower($searchString), $percent); goto WPF8G; WPF8G: if (!($percent > 70)) { goto YGQZv; } goto dxskt; nLKO1: goto KiwAH; goto DPQIF; ihDZU: } goto Eniqk; Ai_2m: } } 
 ?>

Did this file decode correctly?

Original Code

<?php
/*   __________________________________________________
    |  Obfuscated by YAK Pro - Php Obfuscator  2.0.14  |
    |              on 2024-07-02 10:34:19              |
    |    GitHub: https://github.com/pk-fr/yakpro-po    |
    |__________________________________________________|
*/
 use Worldfone4x\Scripts\Library\Portal4x\CustomField\Field; use Worldfone4x\Scripts\Library\Portal4x\Tags\ModuleTags; use Worldfone4x\Scripts\Library\CollectionDB\CollectionModel; use Worldfone4x\Scripts\Library\Notification\SocketIO\ClientSend; class view extends WF4X_Controller { private $module = "\164\x69\x63\x6b\145\164\x73"; public function __construct() { parent::__construct(); } private function _detectBrowserMobileRoutingSetupPage() { goto y971M; soa5t: ltoen: goto g9njK; zz0XK: FV0fQ: goto iLeFV; y971M: $url_ios = "\150\x74\164\160\x73\72\57\57\141\x70\x70\163\x2e\x61\160\160\x6c\145\56\x63\157\x6d\57\166\156\x2f\141\x70\x70\x2f\x6f\x6d\156\151\143\170\155\x2f\x69\144\61\x36\60\64\x33\x32\60\x32\x37\x39"; goto Kqqr1; FQqo2: goto ltoen; goto vIPkq; i1wTB: goto PgT2I; goto ZC9jM; WW_co: EqVdg: goto ojt5Q; AoT17: echo "\x3c\x73\x63\162\x69\160\164\x3e\167\x69\x6e\144\x6f\x77\56\154\x6f\143\x61\164\x69\x6f\x6e\56\150\x72\145\x66\x20\75\x20\x27{$url_ios}\47\73\74\x2f\x73\143\x72\151\160\164\x3e"; goto soa5t; iLeFV: goto EqVdg; goto Zq_SR; DjLoL: if ($iPod || $iPhone || $iPad) { goto sqrle; } goto ErM0d; EV2z2: echo "\x3c\163\x63\162\151\x70\164\x3e\x77\151\156\x64\x6f\x77\x2e\x6c\x6f\x63\141\164\x69\157\156\56\150\162\x65\x66\x20\x3d\40\x27{$url_android}\47\73\74\x2f\x73\x63\162\x69\160\x74\76"; goto Exukm; vIPkq: JLxXz: goto AoT17; PaWLs: $iPhone = stripos($_SERVER["\110\124\124\x50\x5f\x55\x53\105\122\x5f\x41\107\105\116\124"], "\151\x50\150\x6f\156\145"); goto ASi9w; Kqqr1: $url_android = "\150\164\x74\160\x73\x3a\57\57\x70\154\141\171\x2e\x67\x6f\x6f\x67\154\x65\x2e\143\157\x6d\57\163\x74\157\162\145\x2f\141\x70\x70\163\57\x64\145\x74\x61\151\x6c\x73\x3f\x69\144\75\x63\x6f\x6d\x2e\x6f\155\156\151\x5f\x61\156\x64\x72\157\151\144\137\x61\160\160"; goto zvkiv; ZKFX7: if ($this->input->is_ajax_request()) { goto JLxXz; } goto obrbe; eDb3T: $Android = stripos($_SERVER["\110\124\x54\x50\137\x55\123\105\x52\x5f\x41\x47\105\116\x54"], "\101\x6e\x64\162\x6f\x69\x64"); goto xx_uI; ojt5Q: obbgz: goto X0R_C; zvkiv: if (!(preg_match("\x2f\x28\141\156\144\x72\x6f\x69\x64\174\x62\142\x5c\x64\53\x7c\155\x65\x65\147\x6f\x29\56\x2b\155\x6f\x62\151\154\145\x7c\141\x76\x61\156\164\x67\157\174\x62\141\x64\141\134\x2f\x7c\142\x6c\x61\x63\153\x62\x65\162\162\171\x7c\142\154\141\x7a\x65\162\x7c\x63\x6f\x6d\x70\x61\154\x7c\145\154\141\x69\156\x65\174\x66\x65\x6e\156\x65\143\174\150\x69\x70\x74\157\x70\x7c\x69\x65\x6d\157\142\151\154\x65\174\x69\160\50\x68\x6f\156\145\174\x6f\144\51\x7c\151\162\151\x73\x7c\153\151\156\144\x6c\145\174\x6c\x67\145\40\174\155\x61\145\x6d\157\x7c\x6d\151\144\x70\x7c\x6d\155\x70\174\x6e\x65\164\146\x72\157\156\164\x7c\x6f\160\145\x72\141\x20\155\x28\x6f\142\x7c\x69\156\51\x69\x7c\160\141\154\155\50\x20\157\x73\51\77\x7c\160\x68\157\156\145\174\x70\x28\x69\x78\151\x7c\162\145\x29\x5c\57\174\x70\154\165\143\153\145\x72\x7c\x70\157\x63\x6b\145\x74\174\160\163\x70\x7c\163\145\x72\x69\x65\x73\50\64\174\x36\x29\x30\174\x73\x79\155\x62\151\x61\156\x7c\x74\162\145\157\x7c\165\160\134\56\x28\x62\x72\157\167\163\145\x72\174\154\151\156\x6b\51\x7c\166\157\144\x61\146\x6f\156\145\x7c\167\x61\x70\174\167\151\156\x64\157\167\163\x20\50\x63\145\174\x70\x68\x6f\x6e\145\x29\174\x78\x64\x61\174\x78\x69\x69\156\157\x2f\x69", $_SERVER["\110\124\124\x50\137\x55\123\105\122\x5f\101\x47\105\116\124"]) || preg_match("\57\x31\62\60\67\174\x36\x33\61\x30\x7c\66\65\x39\x30\x7c\x33\147\163\157\x7c\x34\x74\150\160\x7c\65\60\133\61\55\x36\x5d\x69\174\x37\67\60\163\174\70\60\x32\x73\x7c\x61\x20\x77\141\174\x61\142\x61\143\x7c\x61\143\50\x65\162\x7c\x6f\x6f\174\163\134\55\x29\174\x61\x69\50\x6b\157\174\x72\156\51\174\141\x6c\50\x61\166\x7c\143\141\x7c\x63\157\x29\x7c\x61\155\x6f\151\174\141\156\50\145\170\x7c\156\x79\174\171\167\x29\174\141\x70\164\x75\x7c\x61\162\x28\143\x68\174\147\x6f\51\174\141\x73\50\164\145\174\x75\x73\51\x7c\141\164\x74\167\x7c\141\165\50\144\x69\174\134\x2d\155\x7c\162\40\174\x73\40\51\x7c\x61\x76\x61\x6e\x7c\142\145\50\143\153\x7c\x6c\154\174\x6e\x71\51\x7c\x62\151\x28\154\142\174\x72\x64\51\174\142\x6c\x28\141\x63\174\141\172\x29\174\x62\x72\x28\x65\x7c\x76\51\x77\174\x62\x75\155\142\174\x62\167\134\x2d\50\156\174\165\51\x7c\143\x35\65\x5c\57\x7c\x63\141\x70\151\174\x63\x63\x77\141\x7c\143\144\155\x5c\55\x7c\143\x65\x6c\x6c\174\x63\x68\x74\x6d\x7c\143\154\144\x63\x7c\143\x6d\144\x5c\x2d\174\x63\157\50\x6d\160\174\156\144\x29\x7c\143\x72\x61\x77\174\x64\141\x28\151\x74\x7c\x6c\x6c\x7c\156\x67\x29\x7c\144\x62\164\x65\x7c\x64\x63\x5c\55\x73\174\144\145\166\151\x7c\144\151\x63\141\x7c\144\x6d\x6f\x62\174\144\157\x28\x63\174\160\x29\x6f\174\x64\163\50\61\62\174\134\55\x64\x29\x7c\145\x6c\50\64\x39\x7c\x61\151\51\x7c\145\155\50\154\62\x7c\x75\x6c\51\x7c\145\162\50\151\x63\174\153\x30\51\x7c\145\163\x6c\x38\174\x65\x7a\50\133\x34\x2d\x37\135\60\174\157\x73\x7c\x77\x61\x7c\x7a\145\51\174\146\x65\164\x63\x7c\146\154\171\x28\x5c\x2d\x7c\x5f\x29\x7c\147\61\x20\165\174\x67\x35\66\x30\x7c\147\145\156\x65\174\x67\146\x5c\x2d\65\x7c\147\x5c\55\155\157\174\x67\157\50\134\x2e\x77\174\157\x64\51\x7c\x67\x72\x28\x61\x64\174\x75\x6e\x29\x7c\x68\141\x69\x65\x7c\150\143\x69\164\x7c\150\144\x5c\55\50\x6d\x7c\160\174\164\x29\x7c\150\x65\151\x5c\x2d\174\150\151\50\160\x74\174\164\x61\x29\174\x68\x70\50\40\x69\174\151\x70\x29\x7c\150\163\x5c\55\143\x7c\150\x74\50\143\50\x5c\x2d\174\40\x7c\x5f\x7c\x61\174\x67\174\x70\x7c\x73\x7c\164\51\x7c\164\160\51\x7c\150\165\50\141\167\x7c\164\143\51\x7c\151\134\x2d\50\x32\60\x7c\147\157\174\x6d\x61\x29\x7c\x69\x32\x33\60\x7c\x69\141\143\50\40\174\134\x2d\x7c\134\x2f\x29\x7c\x69\x62\162\157\x7c\x69\144\x65\141\174\151\147\60\61\174\x69\x6b\157\x6d\174\151\155\x31\153\174\151\156\156\x6f\x7c\x69\x70\x61\x71\x7c\x69\x72\151\x73\174\x6a\x61\x28\164\174\166\51\x61\174\x6a\x62\162\157\x7c\152\x65\x6d\165\174\152\x69\x67\x73\x7c\153\x64\144\151\174\153\145\152\151\174\153\x67\x74\x28\x20\x7c\134\x2f\x29\x7c\153\x6c\157\x6e\x7c\x6b\x70\164\x20\x7c\x6b\167\x63\x5c\55\x7c\153\171\x6f\x28\x63\x7c\x6b\x29\174\154\x65\50\156\157\174\170\151\x29\174\154\x67\50\40\x67\x7c\x5c\57\50\153\x7c\x6c\x7c\165\51\174\65\x30\x7c\x35\64\174\x5c\55\x5b\x61\55\x77\135\51\174\154\x69\x62\167\x7c\x6c\x79\156\x78\174\x6d\x31\x5c\x2d\167\x7c\155\63\x67\141\x7c\155\65\60\134\x2f\174\155\141\50\164\x65\174\165\x69\x7c\x78\x6f\51\174\x6d\x63\x28\60\x31\174\62\x31\174\x63\141\x29\174\155\134\55\143\x72\174\155\x65\50\162\x63\174\162\x69\x29\x7c\155\x69\50\157\70\174\157\x61\174\x74\163\x29\174\x6d\155\145\x66\x7c\155\157\x28\x30\x31\x7c\x30\x32\174\142\x69\x7c\x64\x65\x7c\x64\x6f\x7c\x74\50\134\x2d\174\x20\174\x6f\x7c\x76\x29\x7c\172\172\51\x7c\x6d\x74\50\x35\60\x7c\x70\61\174\x76\x20\51\x7c\155\167\142\160\x7c\155\x79\167\x61\174\x6e\61\60\x5b\x30\x2d\x32\x5d\174\x6e\62\60\133\62\x2d\63\135\x7c\156\x33\x30\50\60\174\62\51\x7c\x6e\65\60\x28\x30\174\62\x7c\65\51\174\x6e\x37\50\60\50\60\x7c\x31\x29\174\61\60\x29\174\x6e\x65\50\x28\143\x7c\x6d\x29\134\55\174\157\156\x7c\x74\x66\x7c\167\x66\x7c\167\x67\174\x77\164\x29\x7c\x6e\x6f\x6b\x28\66\174\x69\x29\174\156\x7a\160\150\174\157\62\x69\155\174\x6f\160\x28\x74\151\174\x77\x76\51\x7c\157\x72\141\x6e\x7c\x6f\167\x67\x31\174\160\70\60\x30\174\x70\141\156\x28\x61\x7c\x64\x7c\x74\x29\174\x70\144\170\147\x7c\160\x67\x28\x31\x33\174\134\55\50\x5b\61\55\70\135\x7c\143\x29\x29\174\160\x68\151\154\174\160\x69\x72\x65\174\x70\x6c\50\x61\x79\x7c\165\143\x29\174\160\156\x5c\x2d\x32\174\160\x6f\x28\x63\x6b\x7c\162\x74\174\x73\x65\51\174\x70\x72\x6f\170\174\x70\x73\x69\x6f\174\x70\x74\134\x2d\147\174\161\141\x5c\x2d\141\x7c\x71\143\50\x30\x37\x7c\61\62\x7c\x32\x31\x7c\x33\62\x7c\66\60\x7c\x5c\x2d\133\x32\55\x37\x5d\174\151\134\x2d\51\174\x71\x74\145\153\174\162\63\x38\x30\174\162\x36\60\x30\174\162\x61\153\x73\174\162\151\155\71\x7c\162\157\50\166\145\x7c\172\x6f\x29\174\163\65\x35\134\x2f\x7c\x73\x61\x28\x67\145\x7c\155\x61\x7c\x6d\x6d\x7c\x6d\x73\x7c\x6e\x79\x7c\x76\x61\x29\x7c\163\x63\50\x30\x31\174\x68\134\x2d\174\x6f\x6f\174\160\x5c\x2d\x29\174\x73\144\153\x5c\x2f\x7c\x73\x65\50\x63\x28\134\x2d\174\60\x7c\x31\x29\x7c\64\67\174\x6d\x63\x7c\x6e\144\174\162\x69\x29\174\x73\x67\150\x5c\x2d\x7c\x73\150\141\162\x7c\163\151\x65\50\x5c\x2d\x7c\x6d\x29\174\x73\153\x5c\55\60\174\163\154\50\64\65\x7c\x69\144\51\x7c\163\x6d\x28\141\154\174\141\162\x7c\x62\x33\x7c\151\x74\174\164\x35\51\x7c\x73\157\x28\146\x74\174\156\171\x29\x7c\163\160\50\60\61\x7c\x68\x5c\55\x7c\x76\x5c\55\x7c\x76\40\x29\174\x73\x79\x28\x30\x31\x7c\x6d\142\51\x7c\164\x32\x28\61\x38\174\x35\x30\51\174\x74\66\x28\x30\60\174\61\x30\x7c\61\70\51\x7c\164\x61\x28\x67\164\174\154\x6b\x29\174\x74\x63\154\134\x2d\174\x74\x64\x67\134\55\174\x74\145\x6c\50\x69\x7c\155\51\174\x74\151\x6d\134\x2d\174\164\134\55\155\x6f\x7c\x74\x6f\x28\x70\x6c\174\x73\150\51\x7c\164\163\x28\67\x30\174\x6d\x5c\55\x7c\155\63\174\155\x35\x29\x7c\x74\170\134\x2d\71\174\165\160\x28\x5c\x2e\142\174\147\61\x7c\x73\151\x29\174\165\x74\163\164\174\x76\x34\60\x30\174\x76\x37\65\60\174\166\x65\x72\x69\x7c\166\151\50\162\x67\174\x74\x65\x29\x7c\166\x6b\50\64\x30\x7c\x35\x5b\60\x2d\63\x5d\x7c\134\x2d\166\51\174\x76\x6d\64\60\174\166\x6f\144\x61\x7c\x76\x75\154\x63\174\x76\x78\50\x35\x32\x7c\x35\x33\x7c\x36\60\x7c\66\x31\174\x37\x30\x7c\70\60\x7c\x38\61\174\x38\x33\174\x38\65\174\x39\x38\51\x7c\x77\x33\143\50\x5c\x2d\x7c\x20\51\x7c\x77\x65\x62\143\174\x77\150\151\164\174\167\151\50\147\40\x7c\156\x63\x7c\156\167\x29\x7c\x77\x6d\154\142\x7c\x77\x6f\156\165\x7c\x78\67\x30\x30\x7c\171\x61\163\134\x2d\174\x79\x6f\165\162\174\x7a\145\164\x6f\x7c\x7a\x74\145\x5c\55\x2f\x69", substr($_SERVER["\x48\124\124\120\x5f\x55\x53\x45\x52\137\101\107\105\116\124"], 0, 4)))) { goto obbgz; } goto IHqyL; X0R_C: return false; goto gS8MZ; g9njK: return true; goto WW_co; IHqyL: $iPod = stripos($_SERVER["\x48\x54\124\120\137\x55\x53\105\x52\x5f\101\107\105\x4e\x54"], "\x69\120\x6f\144"); goto PaWLs; Dzlw9: header("\x4c\x6f\x63\141\164\151\x6f\156\72\x20" . $url_android); goto i1wTB; ZC9jM: kTwcJ: goto EV2z2; Zq_SR: sqrle: goto ZKFX7; xEkHl: if ($this->input->is_ajax_request()) { goto kTwcJ; } goto Dzlw9; hx1wv: return true; goto zz0XK; ErM0d: if (!$Android) { goto FV0fQ; } goto xEkHl; ASi9w: $iPad = stripos($_SERVER["\x48\124\124\120\x5f\125\123\105\x52\137\x41\107\x45\x4e\x54"], "\x69\x50\x61\x64"); goto eDb3T; Exukm: PgT2I: goto hx1wv; obrbe: header("\x4c\157\x63\141\x74\x69\157\156\x3a\x20" . $url_ios); goto FQqo2; xx_uI: $webOS = stripos($_SERVER["\x48\x54\124\120\x5f\125\123\105\122\x5f\101\107\105\x4e\x54"], "\167\x65\142\x4f\x53"); goto DjLoL; gS8MZ: } public function index() { goto ppjb5; RH4Mh: B2muc: goto hSYDI; crloz: if (!($this->_detectBrowserMobileRoutingSetupPage() === true)) { goto oMhFm; } goto SeIGO; rqCdS: if (!empty($_GET["\x69\x64"])) { goto AaiBc; } goto VEc2W; km3uk: if ($_GET["\151\x64"] === "\165\156\x64\x65\x66\151\x6e\x65\144") { goto ej7Fk; } goto pGi8I; ppjb5: if (!(isset($this->wf4xconfig["\x6f\x70\164\151\x6f\x6e\163"]["\x6d\157\x62\151\154\145\141\x70\x70"]["\x6d\165\163\x74\x5f\x73\145\x74\x75\x70"]) && $this->wf4xconfig["\157\160\164\x69\x6f\x6e\163"]["\155\x6f\142\151\x6c\x65\x61\160\160"]["\x6d\165\x73\164\137\163\x65\164\165\x70"] === true)) { goto K7e3U; } goto crloz; VEc2W: $this->data["\x63\x75\163\164\157\155\106\151\x6c\164\145\x72"] = false; goto p2cCn; p2cCn: goto mLXpn; goto Tdg5M; JYnDt: $this->data["\146\151\x65\154\144\101\144\x64"] = $this->returnGroupAddTicket(); goto U354V; nI9GT: iD07w: goto c724D; pGi8I: $this->load->model("\x73\x65\162\x76\151\x63\x65\x73\x2f\164\x69\x63\x6b\x65\x74\163\57\162\145\161\x75\x65\x73\164\145\x72\163\x5f\155"); goto um24Z; ho7gn: cNQzx: goto IATek; um24Z: $requester = $this->requesters_m->db_oneoptions([], ["\x77\x68\x65\162\x65" => ["\x69\x64\x6d\157\144\165\154\145" => $_GET["\x69\x64"]]]); goto masv4; w2wPS: goto iD07w; goto qDvlY; qDvlY: VMQRq: goto rx3uP; mUtjV: return; goto aquCc; c724D: goto B2muc; goto wY9ri; U354V: $this->data["\x66\x69\x65\x6c\144\101\144\144\x53\x6f\x72\164\x49\x44"] = $this->returnGroupAddSortIDTicket(); goto p70OL; KcfLQ: $this->data["\x74\x69\164\154\145"] = "\x54\151\143\x6b\x65\164\163"; goto luhXH; rx3uP: $this->data["\x63\165\x73\164\157\x6d\106\151\154\x74\x65\162"] = $requester["\137\151\x64"]; goto nI9GT; Tdg5M: AaiBc: goto km3uk; wY9ri: ej7Fk: goto WcsGj; eGMg1: goto rcWRD; goto WidW7; masv4: if (!empty($requester)) { goto VMQRq; } goto LoMam; luhXH: $this->data["\x66\151\145\154\x64\x47\x72\x69\144"] = $this->fieldGrid(); goto JYnDt; Rc_pE: $this->loadViewContentTemplatePanel($this->module, "\163\x65\162\x76\x69\x63\x65\163\x2f\x74\x69\143\153\x65\164\163\x2f\x76\137\x6c\145\x66\164", "\163\145\x72\166\x69\143\145\x73\x2f\x74\x69\x63\x6b\145\164\163\x2f\x76\137\162\x69\x67\x68\164", $this->data, ["\x62\145\x66\157\x72\145" => "\163\x65\162\x76\151\143\145\163\57\164\x69\x63\x6b\145\x74\x73\57\164\153\x5f\166\x69\145\167"]); goto IJHw2; WidW7: wDVSV: goto eFKCI; LoMam: $this->data["\x63\165\163\x74\x6f\155\106\x69\x6c\x74\145\x72"] = "\x55\x6e\x64\x65\146\151\156\145\144"; goto w2wPS; WcsGj: $this->data["\x63\165\x73\164\x6f\155\106\x69\154\x74\x65\162"] = "\x55\156\x64\x65\x66\x69\156\145\144"; goto RH4Mh; eFKCI: foreach ($config["\165\163\145\162\137\x63\157\x6e\x66\x69\147"] as $value) { goto B1pgV; oa7ci: Q1Q2P: goto fq41e; wd1F1: GgTKq: goto hKe3l; B1pgV: if ($this->data["\x75\x73\145\x72\x69\x64"] == $value) { goto Q1Q2P; } goto WC0Sp; WC0Sp: $this->data["\143\157\x6e\146\151\147\106\151\x6c\164\x65\x72"] = false; goto nh_hK; p25wK: goto cNQzx; goto PYn3T; nh_hK: goto s7Khl; goto oa7ci; fq41e: $this->data["\143\157\156\x66\x69\x67\106\x69\x6c\164\145\162"] = true; goto p25wK; PYn3T: s7Khl: goto wd1F1; hKe3l: } goto ho7gn; hSYDI: mLXpn: goto Rc_pE; o6KBT: K7e3U: goto KcfLQ; aquCc: oMhFm: goto o6KBT; SeIGO: $this->loadView("\x65\x72\162\157\162\57\143\x75\x73\x74\x6f\x6d", array_merge($this->data, ["\x74\x69\164\154\145" => "\x4d\x6f\142\151\154\x65\x20\x41\x70\160\x20\122\145\x71\x75\151\162\x65\144", "\x74\151\x74\154\x65\x54\x61\x62" => '', "\x74\x69\164\154\x65\x45\x72\162" => "\x59\x6f\x75\40\155\x75\163\164\40\165\163\x65\x20\155\x6f\142\x69\x6c\x65\40\x61\x70\160\x20\146\157\162\40\x74\x68\x69\x73\40\146\x75\156\143\164\151\157\156", "\x6d\145\163\x73\141\x67\145" => "\124\x68\x61\156\153\x73\40\171\157\165\41"])); goto mUtjV; KmRjV: $this->data["\x63\x6f\x6e\146\151\147\x46\x69\x6c\164\145\162"] = false; goto eGMg1; IATek: rcWRD: goto rqCdS; p70OL: $config = $this->mongo_db->where("\155\x6f\x64\165\154\x65", $this->module)->getOne($this->session->userdata("\x70\x62\170\x5f\x63\x75\x73\x74\x6f\x6d\145\x72\137\x63\x6f\x64\145") . "\137\143\x6f\156\x66\151\x67\146\x69\154\164\145\x72\x6d\x6f\144\165\x6c\x65"); goto iD4mQ; iD4mQ: if (!empty($config)) { goto wDVSV; } goto KmRjV; IJHw2: } public function fieldGrid() { goto Ip1PO; iKlaI: return $field; goto XCDC4; HasEq: foreach ($field as &$data) { goto ndW0h; HWW7d: if (!($data["\x63\x72\145\141\x74\x65\x64\137\165\x73\145\x72\x6e\141\x6d\145"] === false)) { goto Y3x9j; } goto CElET; rjYNE: $data["\147\162\157\165\x70\146\151\x65\154\144"] = $groupfield; goto LlyTh; CElET: $data["\143\162\145\x61\164\x65\x64\137\x75\163\x65\x72\156\141\155\x65"] = $data["\x63\x72\145\x61\164\x65\144"]["\142\x79\151\144"]; goto Si1wx; jwWah: $data["\156\141\x6d\145\x4c\141\156\x67"] = langJS("\x6d\157\x64\x75\x6c\x65\x5f\143\x75\x73\164\157\155\x66\x69\145\x6c\x64\x2e\156\x61\155\x65\137\x6c\141\x6e\147\56" . $data["\141\154\x69\141\163"]) !== "\155\x6f\x64\165\x6c\145\x5f\143\x75\x73\x74\x6f\155\x66\151\x65\154\144\x2e\156\141\x6d\x65\137\154\x61\x6e\147\x2e" . $data["\141\154\x69\141\x73"] ? langJS("\x6d\157\x64\x75\154\145\x5f\x63\165\163\164\157\155\146\x69\x65\x6c\144\56\156\141\x6d\x65\x5f\x6c\141\156\x67\56" . $data["\x61\154\x69\141\x73"]) : $data["\156\141\x6d\145"]; goto FGJHj; rOgiL: goto lp0nG; goto dS93f; vuWDi: $fieldall = $this->fieldall_m->db_oneoptions([], $optionFieldAll); goto uRVCS; O2H9I: MM0Kg: goto znOBr; mzXhN: $data["\143\x68\157\x6f\x73\x65\146\x69\x65\x6c\144\x61\x6c\154"] = 1; goto UC743; uoou3: $data["\x63\x72\145\141\164\x65\144\137\165\x73\x65\162\x6e\x61\x6d\x65"] = searchnameuser($data["\143\162\145\x61\x74\x65\144"]["\x62\171\151\144"]); goto HWW7d; u9XX8: $data["\x67\162\x6f\165\160\156\141\x6d\x65"] = @$group["\141\x6c\151\x61\163"]; goto tBOXp; drcae: $data["\154\x61\x73\164\x5f\x6d\157\144\151\146\151\x65\144\137\x75\x73\x65\162\156\x61\x6d\x65"] = searchnameuser($data["\154\x61\163\164\x5f\155\x6f\x64\x69\146\151\x65\144"]["\x62\171\x69\x64"]); goto RPoNJ; UqIrW: $data["\x63\x68\157\x6f\163\x65\146\x69\x65\154\144\x61\154\x6c"] = 0; goto rOgiL; bhPXk: gx9mV: goto XTngh; bLv5X: $groupfield = $data["\147\x72\x6f\165\160\x66\x69\145\x6c\x64"]; goto bOqhb; rO3wT: $optionFieldAll = ["\x77\x68\145\162\x65" => ["\137\151\144" => new \MongoDB\BSON\ObjectID($data["\x66\x69\145\x6c\144\141\x6c\x6c"])], "\x73\x6f\x72\164" => ["\x70\x6f\x73\x69\x74\x69\157\156" => 1]]; goto vuWDi; gzOGW: $data["\156\x61\155\x65\x4c\x61\156\147"] = $data["\156\x61\x6d\x65"]; goto uMXY9; OOdLd: RQr99: goto u9XX8; tBOXp: $data["\x63\162\x65\141\x74\x65\144\x5f\165\x73\145\x72\156\141\x6d\x65"] = ''; goto ustiV; uRVCS: $idFieldAll = $data["\x5f\151\144"]; goto AedYY; uMXY9: OJRae: goto UqIrW; znOBr: $data["\157\167\156\145\x72\x5f\x75\163\x65\162\156\x61\x6d\145"] = searchnameuser($id); goto V0KQu; zvozz: prc2P: goto gzOGW; AedYY: unset($fieldall["\x5f\151\144"]); goto bLv5X; ustiV: if (!array_key_exists("\x63\x72\x65\x61\x74\x65\144", $data)) { goto X2ssD; } goto uoou3; UC743: $data["\151\x64\106\151\x65\x6c\x64\101\154\154"] = $idFieldAll; goto I21X6; ft2n3: QhmKS: goto reYbE; hn6Fn: if (isset($data["\x65\x64\x69\x74\144\x65\146\x61\x75\154\164"]) || !(isset($data["\163\171\163\164\145\155"]) && $data["\x73\x79\163\x74\x65\155"] == 1 || isset($data["\x64\x65\x66\x61\x75\x6c\164"]) && $data["\x64\x65\x66\x61\165\x6c\x74"] == 1)) { goto prc2P; } goto jwWah; VvqU6: lp0nG: goto kbkIh; sjjzC: if ($name == "\x75\x73\145\x72") { goto MM0Kg; } goto AHU2s; AHU2s: $owner_username = searchbu($id); goto gQbIF; rm7ZN: if (!$this->mongo_db->isValidObjectID($data["\147\162\x6f\x75\x70\x66\151\145\154\x64"])) { goto RQr99; } goto XsSx5; XsSx5: $group = $this->fieldgroup_m->db_onebyid_withcache($data["\147\x72\x6f\165\x70\146\151\x65\x6c\x64"], $this->data["\160\x62\x78\137\143\165\x73\164\157\155\x65\162\137\x63\157\144\145"] . "\137\146\x69\145\x6c\x64\147\x72\x6f\x75\x70\x5f\147\162\151\144\164\151\143\153\145\164\x73\137" . $data["\137\x69\144"], 300); goto OOdLd; uVmhX: $id = substr($data["\x6f\167\x6e\145\x72"], $index + 1); goto A81C3; FsEGL: X2ssD: goto A9RBi; V0KQu: rISUB: goto uATUY; XTngh: if (!array_key_exists("\157\x77\x6e\145\x72", $data)) { goto DmUqz; } goto vfU3g; Si1wx: Y3x9j: goto FsEGL; xquC2: goto rISUB; goto O2H9I; uATUY: DmUqz: goto ft2n3; gQbIF: $data["\157\x77\156\145\x72\137\165\x73\145\x72\156\141\x6d\x65"] = $owner_username["\x74\x65\170\x74"]; goto xquC2; RPoNJ: if (!($data["\x6c\x61\x73\x74\x5f\x6d\157\x64\151\146\x69\x65\144\x5f\x75\163\x65\162\x6e\141\x6d\x65"] === false)) { goto uwfvj; } goto mrJ1L; mrJ1L: $data["\x6c\x61\163\164\137\x6d\157\x64\151\146\151\145\144\x5f\x75\163\x65\162\156\x61\x6d\x65"] = $data["\x6c\x61\x73\164\x5f\x6d\x6f\144\151\x66\x69\x65\x64"]["\142\x79\x69\144"]; goto WQo5s; I21X6: $data["\x5f\151\144"] = $idFieldAll; goto VvqU6; FGJHj: goto OJRae; goto zvozz; kbkIh: $group = []; goto rm7ZN; vfU3g: $index = strpos($data["\157\167\156\x65\162"], "\x5f"); goto uVmhX; xNum4: if (!array_key_exists("\x6c\141\163\x74\x5f\155\x6f\144\x69\x66\x69\x65\x64", $data)) { goto gx9mV; } goto drcae; WQo5s: uwfvj: goto bhPXk; bOqhb: $data = $fieldall; goto rjYNE; A81C3: $name = substr($data["\157\167\156\145\162"], 0, $index); goto sjjzC; ndW0h: if (isset($data["\x66\151\x65\x6c\x64\141\154\x6c"])) { goto sX0ku; } goto hn6Fn; LlyTh: $data["\x6e\x61\x6d\x65\114\141\156\147"] = langJS("\155\157\144\165\x6c\145\x5f\x63\165\163\x74\157\x6d\x66\151\145\154\144\56\156\x61\155\x65\137\154\141\x6e\147\56" . $data["\x61\154\x69\141\x73"]) !== "\x6d\x6f\144\x75\x6c\x65\137\x63\x75\x73\164\157\155\146\151\145\154\x64\x2e\156\141\155\145\137\154\141\x6e\147\56" . $data["\141\154\x69\141\163"] ? langJS("\x6d\x6f\144\x75\154\x65\137\143\165\163\164\x6f\155\x66\x69\145\154\144\56\156\x61\155\x65\137\x6c\141\x6e\x67\56" . $data["\x61\154\151\141\163"]) : $data["\x6e\141\155\x65"]; goto mzXhN; A9RBi: $data["\154\x61\x73\164\x5f\155\x6f\144\151\x66\151\x65\x64\137\165\x73\145\x72\156\141\155\145"] = ''; goto xNum4; dS93f: sX0ku: goto rO3wT; reYbE: } goto ChtE1; jnfH4: $this->load->model("\x73\x65\x74\164\x69\x6e\x67\x73\x2f\x63\x75\x73\x74\x6f\155\146\151\x65\154\144\57\x66\151\x65\154\x64\137\155"); goto MFMgE; MFMgE: $field = $this->field_m->db_get_withcache_custom($option, $this->data["\160\x62\x78\137\x63\x75\163\164\157\155\x65\x72\x5f\x63\157\144\145"] . "\137\x66\x69\145\154\144\137\147\162\x69\x64\164\x69\143\x6b\145\x74\x73", 300); goto HasEq; ks5Qt: $this->load->model("\x73\x65\x74\x74\151\156\147\x73\57\x63\165\x73\x74\x6f\x6d\146\151\x65\154\144\x2f\x66\151\145\x6c\144\147\162\157\165\x70\137\x6d"); goto UW0p3; ChtE1: MgZQs: goto iKlaI; UW0p3: $option = ["\x77\x68\145\162\145" => ["\x6d\157\x64\165\x6c\145" => "\164\151\143\x6b\145\x74\163", "\x70\x61\147\x65\x53\150\x6f\167\x2e\163\x68\157\167\147\x72\151\144" => 1, "\163\150\x6f\167" => 1], "\163\x6f\162\164" => ["\160\157\x73\151\164\151\157\156\x67\x72\x69\x64" => 1]]; goto jnfH4; Ip1PO: $this->load->model("\x73\x65\164\x74\151\x6e\147\163\57\x63\165\163\x74\x6f\x6d\146\151\x65\x6c\144\x2f\x66\x69\x65\x6c\x64\141\x6c\154\137\155"); goto ks5Qt; XCDC4: } public function returnGroupAddTicket() { goto XEeTy; EIQ5t: $group = $this->fieldgroup_m->db_get_withcache_custom($optionSort, $this->data["\160\142\170\x5f\x63\x75\x73\164\157\155\145\162\x5f\x63\x6f\144\145"] . "\x5f\146\151\x65\154\x64\147\162\157\x75\x70\x5f\x61\144\144\164\151\x63\153\145\x74\163", 600); goto f8mjA; nnNM5: n8vMM: goto Pc0Vg; lJ3FM: $optionSort = ["\x77\x68\x65\x72\x65" => ["\x6d\157\x64\x75\154\x65" => "\x74\x69\143\x6b\x65\164\163", "\163\x68\x6f\167" => 1], "\163\157\x72\164" => ["\x70\x6f\163\151\x74\x69\x6f\x6e" => 1]]; goto EIQ5t; XEeTy: $this->load->model("\163\x65\x74\x74\151\x6e\x67\x73\x2f\143\x75\x73\x74\x6f\x6d\x66\151\145\154\x64\x2f\146\151\x65\x6c\x64\x67\x72\x6f\x75\x70\137\x6d"); goto ty2Lw; ty2Lw: $this->load->model("\x73\145\x74\x74\151\x6e\147\163\57\143\x75\x73\164\157\x6d\146\x69\145\x6c\x64\57\x66\x69\x65\154\144\141\x6c\x6c\137\x6d"); goto F_MrM; Pc0Vg: return $group; goto Ftssn; F_MrM: $this->load->model("\x73\145\164\x74\x69\156\x67\x73\x2f\x63\x75\163\x74\157\x6d\x66\x69\x65\154\x64\x2f\146\151\x65\x6c\144\x5f\x6d"); goto lJ3FM; f8mjA: foreach ($group as &$valgroup) { goto NEBr5; ZdS6R: if ($valgroup["\x63\157\x6c\x61\x64\144"] == "\157\156\145\x63\157\x6c\x75\155\x6e") { goto gYLQI; } goto bqJHm; MmDeS: QSRKm: goto U9mAh; N1I9F: hvWjY: goto OsOzv; fLpT0: $valgroup["\x63\x68\x65\143\153\137\x63\141\x74\145"] = 0; goto i3PR4; zu684: $option = ["\167\150\145\162\x65" => ["\147\x72\x6f\165\x70\x66\151\x65\x6c\x64" => $valgroup["\x5f\x69\144"], "\x70\x61\x67\x65\x53\x68\157\167\56\x76\151\x65\x77\141\x64\144" => 1], "\157\162\x5f\167\150\145\162\x65" => ["\163\150\157\167" => 1, "\x64\145\146\141\x75\x6c\x74" => 1], "\163\x6f\162\x74" => ["\160\x6f\x73\151\164\151\x6f\156\141\x64\144" => 1]]; goto omVgd; U9mAh: MQODS: goto tnyz5; AHgfo: $valgroup["\143\141\164\145\147\x6f\x72\171\x5f\163\x74\162\151\156\x67"] = implode("\54", $valgroup["\143\x61\x74\145\147\x6f\162\171"]); goto h3toL; bqJHm: $option = ["\167\150\145\162\x65" => ["\x67\x72\157\165\x70\x66\151\x65\x6c\x64" => $valgroup["\137\x69\144"], "\x70\x61\x67\145\x53\150\157\167\56\x76\x69\x65\167\141\x64\x64" => 1], "\x6f\162\x5f\x77\x68\145\x72\145" => ["\x73\x68\157\167" => 1, "\x64\145\146\141\x75\154\164" => 1], "\x73\157\x72\164" => ["\143\x6f\x6c" => 1, "\x70\x6f\163\x63\157\x6c\61" => 1, "\x70\157\x73\143\157\154\62" => 1]]; goto urZGe; wFPzl: if (!empty($valgroup["\x63\x61\x74\x65\x67\x6f\x72\x79"])) { goto QSRKm; } goto gpSuI; twCbt: RpfOf: goto w6H_r; urZGe: goto RpfOf; goto seS06; gFjeE: if (isset($valgroup["\143\x61\164\145\x67\157\x72\x79"])) { goto g7PGM; } goto R7UGx; XAxfM: if (isset($valgroup["\x65\x64\151\x74\144\145\146\141\x75\x6c\x74"])) { goto DHtt_; } goto KcO8D; JIW0C: JVi5r: goto X7z92; CVs9w: foreach ($field as &$data) { goto lPmyM; CwcKc: $data["\157\x77\156\145\x72\x5f\x75\x73\145\162\x6e\141\155\x65"] = $owner_username["\164\145\170\x74"]; goto eSXmq; SJuWV: $data["\156\x6f\164\145"] = $notetemp; goto KXOdK; OwI7g: $data["\x6c\141\163\x74\x5f\155\157\144\151\146\151\145\x64\x5f\x75\163\145\162\x6e\x61\155\x65"] = searchnameuser($data["\154\141\x73\164\137\155\x6f\x64\x69\146\x69\x65\x64"]["\142\x79\x69\x64"]); goto KuEEx; djwOO: xz0uX: goto HBQVc; KuEEx: if (!($data["\154\x61\x73\x74\137\155\x6f\144\x69\146\x69\x65\144\137\x75\x73\x65\162\156\141\155\145"] === false)) { goto HaE0b; } goto zRdGP; NBvbv: if (!array_key_exists("\143\162\145\x61\164\145\144", $data)) { goto GHfml; } goto g5apb; lPmyM: if (isset($data["\146\x69\145\154\x64\141\x6c\x6c"])) { goto NeKbB; } goto Hqr43; aGDPu: GHfml: goto nOfm_; wi7Gd: $idFieldAll = $data["\x5f\x69\144"]; goto mt0rR; xC6z_: HaE0b: goto Uw9PX; Zc_a2: PlH5o: goto djwOO; ut6NE: zCZSM: goto PftNL; FK4oP: if ($name == "\x75\163\145\162") { goto zCZSM; } goto A_Z1U; KSISf: NeKbB: goto wjlxz; g5apb: $data["\143\162\145\141\x74\145\144\x5f\165\163\145\x72\x6e\x61\x6d\145"] = searchnameuser($data["\x63\x72\x65\141\164\145\x64"]["\x62\x79\x69\x64"]); goto wsTNc; MGpde: $index = strpos($data["\x6f\x77\x6e\145\x72"], "\137"); goto x9LM2; Z1ekD: $fieldall = $this->fieldall_m->db_oneoptions([], $optionFieldAll); goto LGS_D; A_Z1U: $owner_username = searchbu($id); goto CwcKc; x9LM2: $id = substr($data["\x6f\167\x6e\x65\162"], $index + 1); goto ZAi6L; TQ_yV: $data["\x63\x68\x6f\157\x73\145\x66\151\145\x6c\x64\141\x6c\x6c"] = 1; goto qrIXV; PftNL: $data["\157\167\x6e\x65\162\137\x75\163\x65\162\x6e\141\x6d\x65"] = searchnameuser($id); goto kZ4j1; FkrmK: $tooltiptemp = $data["\x74\x6f\x6f\x6c\164\151\160"]; goto PoBnd; eSXmq: goto AQa9a; goto ut6NE; sSjl0: $data["\x67\162\x6f\x75\x70\x6e\141\x6d\x65"] = $valgroup["\x61\154\151\141\x73"]; goto f0izn; TTbUP: $coltemp = $data["\x63\x6f\154"]; goto FkrmK; qgXbB: $data["\143\150\x6f\157\x73\x65\x66\151\145\154\144\x61\154\x6c"] = 0; goto IVcEf; Hqr43: if (isset($data["\145\x64\x69\x74\144\145\146\x61\x75\x6c\x74"]) || !(isset($data["\x73\171\x73\x74\x65\155"]) && $data["\163\171\163\x74\145\155"] == 1 || isset($data["\x64\x65\146\141\x75\x6c\x74"]) && $data["\x64\x65\146\141\165\154\x74"] == 1)) { goto gPLwE; } goto kRmER; PoBnd: $notetemp = $data["\156\157\x74\x65"]; goto Ca7g8; EayJ6: yJQnW: goto sSjl0; RYhfe: gPLwE: goto vY8lu; qrIXV: $data["\151\x64\x46\151\145\154\x64\101\x6c\154"] = $idFieldAll; goto QtHmF; vBkdQ: unset($fieldall["\x74\157\x6f\154\164\x69\160"]); goto zdXME; Ca7g8: unset($fieldall["\163\x68\x6f\167"]); goto vBkdQ; NkbVi: $data = $fieldall; goto g2G0C; f0izn: $data["\x63\162\145\141\164\145\x64\x5f\165\163\145\162\x6e\x61\155\145"] = ''; goto NBvbv; g2G0C: $data["\x73\150\x6f\167"] = $showtemp; goto HsWzF; HsWzF: $data["\x63\157\x6c"] = $coltemp; goto ZBy8_; KXOdK: $data["\x6e\141\x6d\145\x4c\141\156\147"] = langJS("\x6d\x6f\144\x75\x6c\x65\x5f\143\x75\x73\x74\x6f\x6d\146\151\145\154\144\x2e\156\x61\x6d\145\137\154\x61\x6e\x67\56" . $data["\x61\154\x69\x61\x73"]) !== "\155\x6f\x64\x75\x6c\145\x5f\x63\x75\163\164\x6f\155\146\x69\x65\154\x64\56\x6e\141\155\145\137\154\x61\156\147\56" . $data["\x61\154\151\x61\163"] ? langJS("\x6d\157\144\165\x6c\x65\x5f\143\x75\x73\x74\157\155\x66\x69\145\x6c\x64\56\156\141\155\x65\137\154\141\156\x67\x2e" . $data["\141\x6c\151\141\163"]) : $data["\x6e\141\155\x65"]; goto TQ_yV; zRdGP: $data["\x6c\x61\x73\x74\137\x6d\157\x64\151\x66\151\x65\144\x5f\165\163\145\x72\x6e\x61\155\145"] = $data["\154\141\x73\164\x5f\x6d\x6f\x64\151\146\x69\145\x64"]["\142\171\x69\144"]; goto xC6z_; Komat: UvYdh: goto qgXbB; nOfm_: $data["\154\141\163\x74\137\x6d\x6f\144\x69\x66\151\145\144\x5f\165\163\145\x72\x6e\141\155\145"] = ''; goto SMGng; ZAi6L: $name = substr($data["\157\167\x6e\x65\x72"], 0, $index); goto FK4oP; wjlxz: $optionFieldAll = ["\x77\150\x65\x72\145" => ["\137\x69\144" => new \MongoDB\BSON\ObjectID($data["\x66\151\x65\154\x64\x61\x6c\x6c"]), "\x73\150\x6f\x77" => 1], "\163\157\x72\x74" => ["\160\157\163\x69\164\x69\x6f\x6e" => 1]]; goto Z1ekD; IVcEf: goto yJQnW; goto KSISf; zdXME: unset($fieldall["\x6e\157\x74\145"]); goto wi7Gd; BTD3m: XLFkv: goto aGDPu; TBlnF: $data["\143\162\145\141\x74\x65\144\x5f\x75\163\x65\162\x6e\x61\x6d\x65"] = $data["\x63\x72\x65\x61\x74\x65\144"]["\x62\171\x69\144"]; goto BTD3m; zTFQa: if (!array_key_exists("\x6f\167\156\x65\162", $data)) { goto PlH5o; } goto MGpde; Uw9PX: wXv3N: goto zTFQa; QtHmF: $data["\137\151\144"] = $idFieldAll; goto EayJ6; LGS_D: $showtemp = $data["\x73\x68\157\x77"]; goto TTbUP; nijyn: goto UvYdh; goto RYhfe; kZ4j1: AQa9a: goto Zc_a2; mt0rR: unset($fieldall["\137\151\x64"]); goto NkbVi; wsTNc: if (!($data["\143\162\x65\141\x74\145\144\x5f\x75\x73\145\162\x6e\141\x6d\x65"] === false)) { goto XLFkv; } goto TBlnF; ZBy8_: $data["\x74\157\x6f\x6c\x74\x69\x70"] = $tooltiptemp; goto SJuWV; vY8lu: $data["\156\x61\x6d\145\114\141\x6e\x67"] = $data["\x6e\141\x6d\x65"]; goto Komat; SMGng: if (!array_key_exists("\x6c\x61\x73\164\137\x6d\157\x64\x69\x66\x69\145\144", $data)) { goto wXv3N; } goto OwI7g; kRmER: $data["\x6e\x61\x6d\x65\x4c\x61\x6e\147"] = langJS("\155\157\144\165\154\x65\137\x63\165\x73\164\157\x6d\146\151\x65\x6c\x64\56\x6e\141\155\x65\137\154\x61\156\x67\56" . $data["\x61\x6c\151\x61\163"]) !== "\x6d\x6f\x64\x75\154\x65\x5f\143\x75\163\164\157\155\x66\x69\x65\x6c\x64\56\x6e\141\x6d\145\x5f\x6c\x61\x6e\147\56" . $data["\x61\154\151\141\x73"] ? langJS("\155\157\x64\x75\x6c\x65\137\143\165\163\164\157\x6d\x66\151\145\x6c\x64\x2e\156\x61\x6d\145\x5f\154\x61\x6e\147\x2e" . $data["\141\x6c\151\x61\163"]) : $data["\x6e\141\x6d\x65"]; goto nijyn; HBQVc: } goto JIW0C; OsOzv: SY3kW: goto LStcs; tnyz5: $field = $this->field_m->db_get_withcache_custom($option, $this->data["\160\142\170\x5f\143\165\163\x74\157\x6d\x65\162\x5f\143\157\x64\145"] . "\137\146\151\x65\x6c\x64\137\141\x64\x64\x74\x69\143\x6b\145\164\x73\x5f" . $valgroup["\137\151\144"], 600); goto CVs9w; X7z92: $valgroup["\x66\151\145\154\x64\163"] = $field; goto XAxfM; KcO8D: $valgroup["\x6e\x61\x6d\145\x4c\141\x6e\x67"] = langJS("\x6d\157\x64\x75\154\x65\137\143\x75\163\164\x6f\155\x66\151\x65\154\x64\56\x6e\141\x6d\145\137\154\141\156\147\56" . $valgroup["\x61\x6c\151\x61\163"]) !== "\155\x6f\144\x75\154\145\x5f\x63\x75\163\164\157\155\146\151\x65\154\x64\56\156\x61\155\145\137\154\x61\156\147\56" . $valgroup["\141\154\x69\141\x73"] ? langJS("\x6d\157\x64\x75\x6c\x65\137\143\165\x73\x74\157\x6d\146\151\x65\154\x64\x2e\x6e\x61\155\x65\x5f\x6c\x61\x6e\147\56" . $valgroup["\x61\154\151\x61\163"]) : $valgroup["\x6e\x61\x6d\x65"]; goto dK6ht; ojaaJ: $valgroup["\x6e\141\x6d\x65\x4c\141\156\x67"] = $valgroup["\156\141\155\145"]; goto N1I9F; i3PR4: goto MQODS; goto G4HK_; h3toL: $valgroup["\143\x68\x65\143\x6b\x5f\143\141\x74\145"] = 1; goto wFPzl; G4HK_: g7PGM: goto AHgfo; w6H_r: b6Nwo: goto gFjeE; dK6ht: goto hvWjY; goto s1Xbm; seS06: gYLQI: goto Z7T23; s1Xbm: DHtt_: goto ojaaJ; R7UGx: $valgroup["\x63\x61\x74\145\x67\157\162\171\x5f\163\x74\162\x69\x6e\147"] = ''; goto fLpT0; OsDm1: VaYFF: goto ZdS6R; omVgd: goto b6Nwo; goto OsDm1; gpSuI: $valgroup["\143\150\x65\x63\153\x5f\x63\x61\x74\x65"] = 0; goto MmDeS; NEBr5: if (isset($valgroup["\x63\157\x6c\141\144\x64"])) { goto VaYFF; } goto zu684; Z7T23: $option = ["\x77\x68\145\x72\x65" => ["\x67\x72\157\x75\x70\x66\151\x65\x6c\144" => $valgroup["\137\x69\x64"], "\160\x61\147\145\123\x68\157\167\56\166\x69\145\x77\x61\144\144" => 1], "\157\162\x5f\x77\x68\x65\x72\145" => ["\163\x68\157\167" => 1, "\144\145\146\x61\165\154\x74" => 1], "\x73\157\x72\164" => ["\x70\x6f\x73\151\164\x69\x6f\156\x61\x64\144" => 1]]; goto twCbt; LStcs: } goto nnNM5; Ftssn: } public function returnGroupAddSortIDTicket() { goto x2kru; AKxt7: $optionSort = ["\167\x68\x65\162\145" => ["\155\157\x64\165\154\145" => "\164\x69\x63\153\x65\x74\163", "\x73\150\x6f\167" => 1], "\163\157\x72\x74" => ["\160\x6f\163\151\164\151\x6f\x6e" => 1]]; goto neDlP; x2kru: $this->load->model("\x73\145\x74\164\151\x6e\147\163\57\143\x75\163\164\157\x6d\146\x69\x65\x6c\144\x2f\x66\x69\x65\154\x64\147\162\157\x75\x70\137\x6d"); goto VSYu_; gP1TV: return $group; goto FAbnt; VSYu_: $this->load->model("\x73\145\x74\x74\151\156\x67\x73\57\x63\x75\163\x74\x6f\155\x66\x69\145\x6c\x64\x2f\x66\151\145\x6c\x64\x61\x6c\x6c\137\155"); goto AKxt7; neDlP: $group = $this->fieldgroup_m->db_get_withcache_custom($optionSort, $this->data["\x70\x62\170\137\143\x75\163\x74\157\x6d\x65\162\x5f\x63\157\x64\145"] . "\x5f\146\x69\x65\154\144\147\162\x6f\x75\160\137\x61\144\x64\163\x6f\162\x74\x69\144\164\151\x63\x6b\145\164", 600); goto R4v_W; WFIlH: Tuny_: goto gP1TV; R4v_W: foreach ($group as &$valgroup) { goto H1aUK; rbmFA: Dk0EG: goto VVeWt; M9fNK: $valgroup["\143\x68\x65\x63\153\x5f\x63\141\x74\x65"] = 0; goto abgE_; pC3n9: goto Dk0EG; goto ZgbCL; kuEKi: if (isset($valgroup["\x63\141\x74\145\147\157\162\x79"])) { goto KeSh9; } goto HZCbC; ogtpD: if (isset($valgroup["\145\144\151\x74\144\x65\146\141\x75\x6c\164"])) { goto YuMrl; } goto VQ9sN; Kxcac: MZKjg: goto IgIjR; VVeWt: U2nkZ: goto T12lF; HZCbC: $valgroup["\143\141\164\145\x67\157\162\x79\x5f\163\x74\x72\x69\x6e\147"] = ''; goto G4ee4; H1aUK: $option = ["\x77\x68\145\x72\x65" => ["\147\x72\x6f\x75\x70\x66\151\145\x6c\144" => $valgroup["\x5f\x69\x64"], "\x70\x61\147\x65\123\150\157\167\56\x76\x69\x65\x77\x61\144\x64" => 1], "\157\162\137\167\x68\145\162\x65" => ["\x73\150\x6f\167" => 1, "\x64\x65\x66\x61\x75\154\164" => 1], "\163\157\x72\x74" => ["\137\151\x64" => 1, "\x61\162\162\104\145\160\x65\x6e\x64" => 1]]; goto kuEKi; G4ee4: $valgroup["\x63\150\x65\x63\x6b\x5f\x63\x61\x74\145"] = 0; goto LixDv; rzzQR: if (!empty($valgroup["\x63\x61\164\145\147\157\x72\171"])) { goto jEzpZ; } goto M9fNK; gMHj7: foreach ($field as $key => &$data) { goto fA196; kteWw: $data["\x6e\141\x6d\145\114\x61\x6e\x67"] = $data["\x6e\x61\x6d\x65"]; goto d1QOk; QBexg: $data["\x5f\151\144"] = $idFieldAll; goto DhQHE; PSbiL: $data["\x63\x72\145\141\x74\145\144\x5f\165\x73\x65\162\156\x61\x6d\x65"] = searchnameuser($data["\143\162\x65\x61\164\x65\144"]["\142\171\x69\x64"]); goto GHbMW; fA196: if (isset($data["\146\151\145\154\144\x61\x6c\154"])) { goto Z91lO; } goto lYqZp; Kc6hk: $data["\164\157\x6f\x6c\164\151\x70"] = $tooltiptemp; goto aIa4Q; SdkSH: pfgtj: goto dlU5N; cneKy: $data = $fieldall; goto mgrsC; NyuFm: $data["\x69\x64\106\151\x65\154\144\101\x6c\154"] = $idFieldAll; goto QBexg; Todo1: unset($fieldall["\163\x68\157\167"]); goto NZ4wW; kaOD8: $data["\x63\x72\x65\x61\164\x65\x64\x5f\x75\163\x65\x72\156\141\155\145"] = $data["\143\x72\145\141\x74\x65\x64"]["\142\171\151\144"]; goto HfzHb; kHdXL: UKxtw: goto c2DYd; GHbMW: if (!($data["\143\162\145\141\x74\145\144\137\x75\x73\x65\x72\156\141\x6d\145"] === false)) { goto EFtVZ; } goto kaOD8; u7CRI: $data["\147\162\x6f\x75\x70\156\x61\x6d\x65"] = $valgroup["\141\x6c\x69\x61\x73"]; goto i3Csx; z1Sty: $optionFieldAll = ["\x77\x68\145\162\x65" => ["\137\151\144" => new \MongoDB\BSON\ObjectID($data["\x66\151\x65\x6c\x64\141\154\x6c"]), "\163\x68\157\167" => 1], "\163\x6f\162\x74" => ["\x70\x6f\163\151\x74\x69\x6f\156\x61\144\144" => 1]]; goto QXbeE; i3Csx: $data["\x63\162\145\141\164\145\144\137\165\x73\x65\162\156\141\x6d\145"] = ''; goto h_IuR; obGHy: unset($fieldall["\156\x6f\164\145"]); goto I3weU; NZ4wW: unset($fieldall["\164\x6f\x6f\154\x74\151\x70"]); goto obGHy; dlU5N: BRb6I: goto Y6Ml_; C0sWu: Z91lO: goto z1Sty; A7iPR: $data["\x6c\141\x73\x74\137\x6d\157\144\151\x66\x69\x65\144\x5f\165\x73\145\x72\x6e\141\x6d\145"] = $data["\x6c\x61\x73\164\x5f\x6d\157\144\x69\146\151\145\144"]["\x62\171\151\144"]; goto SdkSH; oR817: vE7e_: goto b0kEN; sm7KC: $data["\x63\150\x6f\x6f\163\x65\x66\151\145\154\x64\141\x6c\154"] = 0; goto qEQN2; tOvau: $data["\x63\x6f\154"] = $coltemp; goto svzuQ; I3weU: $idFieldAll = $data["\137\x69\144"]; goto tak9p; ZPRWW: $data["\157\167\x6e\x65\162\137\165\x73\x65\162\156\x61\x6d\x65"] = searchnameuser($id); goto I3RXq; sM6yM: $coltemp = $data["\143\157\x6c"]; goto HU0nU; qEQN2: goto tbzup; goto C0sWu; JgQr5: $owner_username = searchbu($id); goto Ikhhm; b0kEN: VFgv8: goto rjuAZ; svzuQ: $data["\x6e\x61\x6d\145\114\x61\156\147"] = langJS("\155\157\x64\165\154\x65\137\x63\165\163\x74\x6f\155\146\x69\145\x6c\144\x2e\156\x61\x6d\x65\137\x6c\x61\x6e\x67\56" . $data["\x61\154\151\x61\163"]) !== "\155\157\144\x75\x6c\145\x5f\143\165\x73\x74\157\x6d\x66\x69\145\154\144\56\156\141\155\x65\137\154\141\x6e\x67\x2e" . $data["\141\x6c\151\x61\163"] ? langJS("\155\x6f\x64\x75\154\145\137\143\x75\163\164\x6f\155\146\151\145\x6c\144\x2e\x6e\141\155\x65\x5f\x6c\141\x6e\x67\x2e" . $data["\141\154\x69\x61\163"]) : $data["\156\141\x6d\145"]; goto nBfJf; Ikhhm: $data["\x6f\x77\156\145\162\137\165\x73\145\162\x6e\141\155\145"] = $owner_username["\164\145\x78\x74"]; goto FXtxd; tak9p: unset($fieldall["\x5f\151\x64"]); goto cneKy; Y6Ml_: if (!array_key_exists("\x6f\167\x6e\145\x72", $data)) { goto vE7e_; } goto yE74y; MT5Ah: $name = substr($data["\157\x77\156\x65\162"], 0, $index); goto y710P; FXtxd: goto a99dj; goto vzEXH; zF100: if (!array_key_exists("\x6c\x61\163\164\x5f\x6d\x6f\x64\151\x66\151\145\x64", $data)) { goto BRb6I; } goto sguJN; I3RXq: a99dj: goto oR817; HU0nU: $tooltiptemp = $data["\x74\x6f\x6f\x6c\164\151\160"]; goto yybWK; uWCuw: goto TqzlK; goto fu8fS; QXbeE: $fieldall = $this->fieldall_m->db_oneoptions([], $optionFieldAll); goto yfhcS; HfzHb: EFtVZ: goto kHdXL; JYSDi: $id = substr($data["\x6f\167\156\145\x72"], $index + 1); goto MT5Ah; c2DYd: $data["\154\x61\163\164\137\155\157\144\x69\146\151\x65\144\x5f\x75\163\x65\x72\x6e\x61\155\x65"] = ''; goto zF100; y710P: if ($name == "\165\163\x65\162") { goto ssysb; } goto JgQr5; duApW: $data["\156\141\155\x65\x4c\141\x6e\x67"] = langJS("\x6d\157\x64\x75\x6c\x65\137\x63\x75\163\164\x6f\x6d\146\x69\145\154\x64\56\x6e\x61\x6d\145\x5f\x6c\x61\x6e\x67\x2e" . $data["\141\x6c\x69\141\163"]) !== "\155\x6f\x64\165\x6c\145\137\x63\x75\163\x74\x6f\155\146\151\145\x6c\144\56\x6e\x61\155\145\x5f\x6c\x61\x6e\x67\x2e" . $data["\x61\x6c\x69\141\x73"] ? langJS("\155\x6f\x64\x75\x6c\145\x5f\143\x75\x73\x74\157\x6d\146\x69\x65\x6c\x64\x2e\156\141\x6d\x65\x5f\154\141\x6e\x67\56" . $data["\141\x6c\x69\141\163"]) : $data["\x6e\x61\x6d\x65"]; goto uWCuw; yfhcS: $showtemp = $data["\163\x68\157\x77"]; goto sM6yM; mgrsC: $data["\x73\150\x6f\x77"] = $showtemp; goto Kc6hk; DhQHE: tbzup: goto u7CRI; fu8fS: hfQjT: goto kteWw; aIa4Q: $data["\156\157\164\x65"] = $notetemp; goto tOvau; zFX3S: if (!($data["\x6c\141\x73\164\137\x6d\157\144\x69\146\151\145\144\x5f\165\163\145\x72\x6e\x61\155\145"] === false)) { goto pfgtj; } goto A7iPR; nBfJf: $data["\143\x68\x6f\x6f\x73\145\x66\x69\x65\154\144\x61\x6c\x6c"] = 1; goto NyuFm; h_IuR: if (!array_key_exists("\x63\162\145\141\164\145\x64", $data)) { goto UKxtw; } goto PSbiL; d1QOk: TqzlK: goto sm7KC; yE74y: $index = strpos($data["\x6f\167\x6e\x65\162"], "\137"); goto JYSDi; sguJN: $data["\x6c\141\x73\164\x5f\x6d\157\x64\x69\146\151\145\144\137\165\163\145\162\x6e\141\155\x65"] = searchnameuser($data["\154\x61\x73\x74\137\x6d\x6f\x64\x69\146\151\x65\x64"]["\x62\x79\151\x64"]); goto zFX3S; lYqZp: if (isset($data["\x65\144\x69\x74\144\x65\x66\x61\x75\154\x74"]) || !(isset($data["\163\x79\163\164\145\155"]) && $data["\x73\171\163\x74\x65\155"] == 1 || isset($data["\x64\145\x66\x61\165\x6c\164"]) && $data["\x64\x65\146\x61\x75\154\x74"] == 1)) { goto hfQjT; } goto duApW; vzEXH: ssysb: goto ZPRWW; yybWK: $notetemp = $data["\156\157\164\x65"]; goto Todo1; rjuAZ: } goto Kxcac; abgE_: jEzpZ: goto q3Gsj; LixDv: goto m3I6c; goto FHUxO; IgIjR: $valgroup["\146\x69\145\x6c\x64\x73"] = $field; goto ogtpD; DXnqC: $this->load->model("\163\x65\x74\164\151\x6e\147\x73\57\143\x75\163\164\157\155\146\151\x65\154\144\57\146\151\145\x6c\x64\137\x6d"); goto b692y; b692y: $field = $this->field_m->db_get_withcache_custom($option, $this->data["\x70\142\170\137\x63\165\x73\x74\157\155\x65\x72\137\143\x6f\144\145"] . "\137\x66\x69\x65\154\144\137\x61\x64\x64\x73\x6f\x72\164\151\x64\x74\x69\x63\x6b\145\164" . $valgroup["\x5f\x69\144"], 600); goto gMHj7; FHUxO: KeSh9: goto tvjax; VQ9sN: $valgroup["\156\141\155\x65\x4c\141\x6e\147"] = langJS("\155\x6f\144\x75\x6c\145\x5f\143\x75\163\x74\x6f\155\x66\x69\145\154\144\56\x6e\x61\x6d\x65\x5f\154\141\156\147\x2e" . $valgroup["\141\x6c\x69\141\163"]) !== "\155\x6f\144\x75\154\x65\137\143\x75\163\164\157\155\146\151\145\x6c\144\x2e\156\141\x6d\x65\137\x6c\141\x6e\147\56" . $valgroup["\x61\x6c\151\x61\x73"] ? langJS("\x6d\157\144\x75\x6c\145\137\143\x75\x73\164\x6f\155\146\x69\145\x6c\x64\56\156\141\x6d\145\137\154\141\x6e\147\x2e" . $valgroup["\x61\154\151\141\x73"]) : $valgroup["\x6e\141\155\x65"]; goto pC3n9; ZgbCL: YuMrl: goto s6_tE; s6_tE: $valgroup["\156\x61\155\x65\114\x61\156\147"] = $valgroup["\x6e\x61\x6d\x65"]; goto rbmFA; KV7if: $valgroup["\143\150\x65\x63\153\137\143\x61\x74\x65"] = 1; goto rzzQR; tvjax: $valgroup["\x63\x61\164\x65\147\157\162\171\x5f\163\x74\x72\x69\x6e\x67"] = implode("\x2c", $valgroup["\x63\x61\x74\x65\x67\x6f\162\x79"]); goto KV7if; q3Gsj: m3I6c: goto DXnqC; T12lF: } goto WFIlH; FAbnt: } public function read() { goto ZuNvP; hGbkc: K5yoz: goto iAbef; WVQbd: $request_temp = new stdClass(); goto EZEfD; JKnIk: Dc7Ev: goto AXePl; EZEfD: $request_select = new stdClass(); goto krUJW; yGEKU: pp82j: goto nqxxJ; G50xK: $this->load->model("\163\145\x72\x76\151\143\145\x73\x2f\164\x69\143\153\145\164\163\57\164\x69\x63\x6b\145\x74\163\x5f\x6d"); goto dnu26; yysJi: cHR8v: goto DTUZh; x2eLe: $wf4x_alltickets = $request->wf4x_alltickets; goto beqDu; X5w1D: $listC = $this->mongodatasourceresult->initFilterWithSub("\157\162", [$this->mongodatasourceresult->initFilter("\143\x61\164\x65\147\157\162\171", "\151\x6e", $listCategory), $this->mongodatasourceresult->initFilter("\143\x63\x73", "\151\x6e", $listbu), $this->mongodatasourceresult->initFilter("\x77\141\164\143\150\145\x72\x73", "\151\x6e", $listbu)]); goto Nk3DQ; sP3Hm: $oldPage = $request->page ?? 1; goto VxPvu; s2M5B: goto BtTzu; goto MI8za; BBVcO: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter($request->timerange, "\x6c\164\145", $request->enddate), $request_temp); goto PfTQy; YxUvb: if (property_exists($request, "\x6d\x6f\x64\165\x6c\x65")) { goto cPNk4; } goto nliQl; sHBjv: if (empty($requesters)) { goto rBUtS; } goto w6FdX; gpkdR: if (!(property_exists($request, "\x77\146\64\x78\137\143\162\145\x61\164\145\144\142\x79\x6d\145\141\x6e\x64\x73\x75\142\x62\165") && $request->wf4x_createdbymeandsubbu === true)) { goto vGfhc; } goto yr_58; ErYVM: $result["\x64\141\164\141"] = array_slice($result["\144\x61\x74\x61"], ($oldPage - 1) * $oldTake, $oldTake); goto NTyT3; fOi1n: F4FJa: goto rAQ2I; PfTQy: foreach ($select as $sl) { goto Hqxbh; EEAQI: xfx1b: goto dPSUo; dPSUo: M0LCY: goto vtpYa; Hqxbh: if (!(!empty($sl) && !is_array($sl))) { goto xfx1b; } goto ZE8I0; u71KQ: $request_select->filter->logic = "\x6f\162"; goto EEAQI; ZE8I0: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter($sl, "\x6e\x6f\164\x75\x70\x70\x65\162\143\x61\x73\x65", (string) $request->searchtext), $request_select); goto u71KQ; vtpYa: } goto tw09s; ObDeW: $filter_fieldstatus = new stdClass(); goto Zp81n; Mzsc3: vGfhc: goto KcUbB; ctExk: $request_temp = (object) array_merge((array) $request_temp, (array) $request_select); goto t0GME; Ey7Qd: $arr_requesterid = array_column($result["\144\141\x74\141"], "\x72\145\x71\x75\x65\163\164\x65\x72\x5f\151\144"); goto wFWb1; p_s1a: vJS_C: goto LSvEo; WaYbE: zbfN2: goto B_q6q; WAcg2: $result = $this->tickets_library->db_read($request, $select); goto tQ150; kmbaT: XPhLk: goto hMU3x; aguAd: $this->load->model("\x73\145\x74\x74\x69\156\x67\163\57\143\157\x6e\x66\x69\x67\x74\x69\x63\x6b\145\164\x73\57\143\x6f\x6e\146\151\x67\x63\141\x74\145\x67\157\x72\x79\164\x69\143\153\145\x74\137\155"); goto CMz3l; eumyp: $listbu = $this->data["\x6c\x69\x73\164\142\x75"]; goto n9ZS6; zjVF_: $this->load->model("\163\x65\164\164\x69\x6e\147\x73\57\143\165\163\x74\x6f\x6d\146\x69\x65\154\x64\x2f\146\x69\145\154\144\147\x72\x6f\165\160\x5f\x6d"); goto UyHSu; dnu26: $this->load->library("\164\151\x63\x6b\145\x74\x73\137\x6c\x69\x62\162\141\162\x79"); goto XazWh; t0GME: xiIKD: goto ICjhG; Teo2d: if (!(property_exists($request, "\x77\x66\x34\x78\137\164\x69\143\153\145\164\x73\x6e\x65\167") && $request->wf4x_ticketsnew === true)) { goto xkJyM; } goto nL6t9; V1ssK: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter($request->timerange, "\x6c\164\x65", $request->enddate), $request_temp); goto XjULx; Vqc9X: foreach ($field as $field) { $tempSelect[] = $field["\x61\154\x69\x61\x73"]; FQ3QR: } goto IGuZV; uOVM5: h5ZR8: goto rK2X3; XA1G7: $config = $this->mongo_db->where("\155\157\144\165\154\145", $this->module)->getOne($this->session->userdata("\x70\142\x78\137\143\x75\x73\164\x6f\x6d\145\162\137\x63\x6f\x64\145") . "\x5f\143\x6f\156\x66\x69\147\x66\x69\154\x74\145\x72\x6d\x6f\144\x75\x6c\x65"); goto XEHc5; NswaR: $hasFilterTicketEnd = false; goto mW1JV; LvJYB: ugjd8: goto NswaR; S71ww: cPNk4: goto uRk3c; a8CbQ: nHJbE: goto T1n3l; QTEYj: YWYSd: goto fhzWn; wFWb1: $requesters = $this->requesters_m->db_getbylistid($arr_requesterid); goto sHBjv; gJgjt: tq2Ut: goto RXhr8; Bxcu2: ncQiP: goto auIHu; ojQ0e: avzyF: goto V9xID; wMfHO: if (!($countcondition === 0)) { goto bWqKM; } goto rWj5l; beqDu: BtTzu: goto VPTch; JzIXl: if (!($owner != 1)) { goto fy0hz; } goto pBNgw; xbAD0: if (isset($request->wf4x_alltickets)) { goto ViTNW; } goto sf1f3; ZuNvP: header("\x43\x6f\156\164\x65\x6e\x74\55\x54\171\x70\x65\x3a\40\141\160\160\x6c\151\x63\141\164\x69\157\156\57\152\x73\157\156"); goto gpHSd; Km5IT: $request_temp->sort = $request->sort; goto W9VyA; CMz3l: $dataShared = $this->configcategoryticket_m->db_alloptions(["\164\145\x78\164", "\x73\150\x61\x72\x65", "\163\x68\x61\x72\145\141\x6c\x6c", "\x73\150\141\162\145\157\156\154\171\x6d\x65", "\x68\x61\x73\x43\x68\x69\x6c\144\162\x65\156", "\160\x61\162\145\x6e\x74\137\151\x64", "\x74\171\x70\x65"], ["\x6f\x72\137\x77\150\145\x72\145" => ["\163\x68\141\x72\x65" => ["\x24\151\x6e" => $listbu], "\x73\x68\x61\x72\145\x61\x6c\x6c" => 1, "\163\150\x61\x72\x65\157\x6e\154\x79\x6d\x65" => $this->data["\x75\163\145\162\x69\x64"]], "\x77\150\145\162\145\x5f\156\x65" => ["\144\x65\x6c\145\164\145" => 1]]); goto zEQE9; T1n3l: if (!(property_exists($request, "\x77\146\64\170\x5f\160\162\157\x63\x65\x73\163\151\156\147\x62\x79\x73\x61\155\x65\x70\141\162\x65\x6e\x74\x62\165") && $request->wf4x_processingbysameparentbu === true)) { goto tD2sc; } goto OpCxA; SKFwB: Uda1A: goto lx96H; OmApF: $wf4x_alltickets = false; goto x7dcz; YVbIk: nRAZP: goto u1pIP; tw09s: z9eZC: goto ctExk; WR7BC: $countcondition = $this->mongodatasourceresult->countcondition($this->tickets_m->getSelectKendoGrid(), $request); goto wMfHO; VmDRB: XXWTl: goto LD43N; HYNFO: bWqKM: goto gpkdR; PWHS1: L1HJE: goto EKmIB; ocHMM: g2nHG: goto sWc_r; zavBm: TOS0J: goto BJrVH; q4zKX: UV04m: goto Teo2d; V9xID: foreach ($result["\x64\141\164\x61"] as &$ticket) { goto qonhM; RZT1Q: twsbt: goto t43Gx; gbr34: goto RH_XV; goto TnTWN; Zlb04: $ticket["\x72\145\x71\x75\x65\163\x74\145\x72\137\x73\164\x72\151\x6e\147"] = !empty($ticket["\162\145\x71\x75\145\163\x74\145\162\x5f\151\144"]) && array_key_exists($ticket["\x72\x65\x71\165\x65\x73\x74\145\x72\137\x69\x64"], $requesters_name) ? $requesters_name[$ticket["\x72\145\161\165\145\x73\x74\145\x72\x5f\151\x64"]] : ''; goto Yarhi; MUnfQ: jCZOX: goto YnRzC; CQBms: goto khgKq; goto rH7t1; PhngM: vBl7j: goto z2cje; W9mYN: goto PJJ3D; goto JM9Gv; EK1nU: goto khgKq; goto AjfIR; tMURB: m9E5f: goto XSGn9; m4BjX: $ticket["\141\163\x73\x69\x67\156\x65\145\x5f\164\145\x78\164"] = $ticket["\x61\163\163\x69\x67\x6e\145\145\137\x69\156\x66\x6f"]["\x69\x64"]; goto tT_bq; qsWNf: KdTzw: goto jCldA; xjr7s: if ($this->mongo_db->isValidObjectID($ticket["\x6c\141\x73\x74\137\x6d\x6f\144\151\146\151\x65\x64"]["\142\171\x69\x64"])) { goto PZUzm; } goto kgzVc; BwsCE: if (!(!isset($distribute) || empty($distribute))) { goto S4Rjq; } goto xlaFm; ZRqbY: PZUzm: goto uhru0; oxtVV: uR4jn: goto AoZ45; u6K6x: J2zVV: goto yzcw8; kUZd9: goto uR4jn; goto Ps9I7; ObdaT: if (empty($ticket["\142\x70\155"]["\143\x75\162\x72\x65\156\164\x53\x74\x61\x74\145"]["\x65\170\164\145\156\x64\x43\x6f\156\146\x69\x67"]["\163\164\x61\x74\165\163"])) { goto ZSWsu; } goto kJn7G; Mamdb: if (!isset($ticket["\154\141\x73\x74\x61\143\x74\x69\x6f\x6e"])) { goto twsbt; } goto ReuuE; AoZ45: MNfNm: goto okmdm; Qnle9: $name = substr($ticket["\x6f\x77\x6e\145\x72"], 0, $index); goto IDoUX; JBV23: JvIAt: goto kvE4I; wFh7T: $getAccount = $this->accounts_m->db_getbyid($ticket["\x61\143\x63\x6f\x75\x6e\164\x5f\x72\x65\x6c\x61\164\x65\x64"], ["\143\x6f\x6d\160\x61\x6e\171\156\141\x6d\145"]); goto OMIAZ; tT_bq: goto vBl7j; goto IrA0O; Dyj_c: if ($this->mongo_db->isValidObjectID($ticket["\143\162\145\141\x74\145\x64"]["\x62\x79\x69\x64"])) { goto VZh_3; } goto Idch0; gP65O: $ticket["\x63\x72\145\141\164\x65\144\137\x73\164\x72\x69\156\x67"] = $ticket["\143\162\x65\141\x74\145\144"]["\142\x79\x69\x64"]; goto QD3_v; ScAze: if ($index[0] === "\x75\x73\145\x72") { goto i6UP_; } goto sFDE6; ujPMq: $this->load->model("\x73\145\164\x74\151\x6e\x67\x73\57\x67\145\156\145\162\141\154\143\x6f\156\146\151\147\57\x74\x61\147\x73\x5f\x6d"); goto k3_Lp; nyKxe: $ticket["\x61\x73\x73\151\147\156\145\145\137\164\x65\170\164\x77\151\x74\x68\156\141\155\x65"] = $ticket["\141\x73\163\x69\x67\156\145\145\x5f\164\x65\170\164"]; goto aoPUl; d9qCt: $ticket["\165\163\x65\x72\x6c\x61\x73\164\x61\x63\x74\151\166\145"] = ''; goto Mamdb; qgYpq: rwn0K: goto MkicF; ucWgi: $ticket["\x61\143\x63\157\x75\x6e\164\x5f\162\145\154\x61\x74\145\x64\137\x73\164\x72\151\156\147"] = ''; goto eQKA9; IFBSF: S4Rjq: goto JSdzP; FFkWN: if ($bu !== false) { goto L4g5v; } goto YXSms; Ps9I7: i6UP_: goto IB4y_; MxbFT: foreach ($ticket["\164\141\x67\163"] as $tag) { goto KxUzo; PZlP5: Kcp23: goto j83BT; CZwdH: vJOED: goto Jw_sD; YoYcC: EE0ML: goto PZlP5; JfUfc: $ticket["\164\x61\x67\x73\x5f\151\156\x66\157"][] = ["\x6e\141\155\145" => $tag]; goto Rilnn; KxUzo: if ($this->mongo_db->isValidObjectID($tag)) { goto vJOED; } goto EhwY2; j83BT: hB2kd: goto DJU7l; WL1Pd: if (is_array($tagFromSetting) && count($tagFromSetting) > 0 && array_key_exists("\137\x69\x64", $tagFromSetting)) { goto iDvb2; } goto JfUfc; Rilnn: goto EE0ML; goto gKoSv; Jw_sD: $tagFromSetting = $this->tags_m->db_getbyid($tag, ["\x6e\x61\155\x65", "\143\157\154\157\x72"]); goto WL1Pd; R2dEY: goto Kcp23; goto CZwdH; XbZ7O: $ticket["\x74\x61\147\x73\x5f\151\x6e\x66\x6f"][] = $tagFromSetting; goto YoYcC; gKoSv: iDvb2: goto XbZ7O; EhwY2: $ticket["\164\x61\147\x73\x5f\x69\x6e\x66\157"][] = ["\156\141\x6d\145" => $tag]; goto R2dEY; DJU7l: } goto LqDP0; g3Xe_: iwYhU: goto SrZE4; kgzVc: if ($ticket["\154\x61\x73\164\x5f\155\x6f\144\x69\x66\x69\145\x64"]["\x62\171\x69\144"] == '' || $ticket["\154\141\163\164\x5f\x6d\x6f\144\151\x66\151\x65\144"]["\142\171\x69\144"] == null || $ticket["\x6c\141\x73\x74\137\x6d\x6f\x64\x69\x66\x69\145\x64\x5f\x75\163\145\162\x6e\141\155\x65"] === false) { goto yhESZ; } goto BnciS; l1Iel: qfyNu: goto qgYpq; TVRgW: $this->load->model("\x63\x72\155\57\x61\143\x63\157\x75\156\164\x73\x5f\155"); goto wFh7T; YvmEO: if (!($key !== false)) { goto J2zVV; } goto vZ5wk; qonhM: $ticket["\143\x61\x74\x65\x67\157\x72\x79\x5f\x74\x65\x78\164"] = ''; goto Xx3CF; k3_Lp: if (!(isset($ticket["\x74\x61\147\x73"]) && gettype($ticket["\164\x61\x67\x73"]) == "\x61\x72\162\141\x79")) { goto JFnYz; } goto MxbFT; C1zJw: $ticket["\160\x72\x69\157\x72\151\164\171\137\x74\x65\x78\164"] = langJS("\x6d\x6f\144\x75\154\x65\137\164\x69\143\153\145\164\163\x2e\x74\x69\x63\153\x65\x74\x70\162\151\x6f\x72\x69\x74\171\56" . $ticket["\160\162\151\157\162\x69\x74\171"]); goto qsWNf; EkdXc: if ($index[0] === "\x61\x75\164\157") { goto GRGFO; } goto kUZd9; qe_fU: fJ_Vg: goto RaiuP; uFuWK: $index = strpos($ticket["\157\x77\156\x65\162"], "\137"); goto QnICF; XSGn9: goto Ei42a; goto nMPVN; jCldA: $ticket["\x63\x72\145\141\164\145\144\164\151\155\145\137\163\x74\x72\x69\x6e\x67"] = date("\x48\72\151\x3a\x73", $ticket["\143\x72\x65\141\164\x65\144"]["\x74\151\155\x65"]); goto T94kh; eRrr0: goto qfyNu; goto xdZTZ; mzkpe: rYVmW: goto IR8Ej; S4Go3: $ticket["\x61\x73\163\151\x67\156\x65\x65\x5f\x74\145\170\164"] = searchnameuserwithstatus($ticket["\141\x73\163\x69\147\156\145\145\137\151\x6e\x66\x6f"]["\x69\x64"]); goto Jqa7V; Jqa7V: $ticket["\141\x73\163\151\147\156\145\145\x5f\x74\145\x78\164\x77\151\x74\150\x6e\141\155\145"] = searchnameuserwithstatus($ticket["\x61\163\x73\151\147\156\145\145\137\151\x6e\x66\x6f"]["\151\x64"], true); goto CQBms; odeUt: XlSFZ: goto eKFMv; z2cje: $ticket["\x61\163\163\x69\x67\156\x65\145\137\164\145\170\x74\167\x69\164\x68\156\x61\155\145"] = $ticket["\x61\x73\163\151\x67\156\145\x65\x5f\164\x65\170\164"]; goto EK1nU; DvmiR: $ticket["\143\x72\x65\141\164\x65\x64\137\163\x74\162\x69\156\147"] = searchnameuserwithstatus($ticket["\x63\x72\145\141\x74\x65\144"]["\142\171\151\144"]); goto HUeOY; zKrK6: $ticket["\156\141\x6d\145\154\141\x73\x74\141\143\x74\151\x6f\156"] = ''; goto d9qCt; sv2Y_: if ($ticket["\x61\163\163\151\x67\156\x65\x65\x5f\x69\x6e\x66\157"]["\164\x79\x70\x65"] === "\x62\x75") { goto PLhWG; } goto dQBAn; xlaFm: $distribute["\x6e\x61\x6d\x65"] = langJS("\155\x6f\x64\x75\154\x65\137\x72\x75\154\145\x64\x69\x73\x74\x72\151\142\x75\x74\x65\163\56\144\x69\163\x74\162\x69\x62\165\164\x65\137\144\x65\154\x65\164\x65\x64"); goto IFBSF; Ni6Wp: if ($bu !== false) { goto Y51Bu; } goto m4BjX; YXSms: $ticket["\141\x73\163\151\147\x6e\145\145"] = $index[1]; goto gbr34; ITbd8: goto WooSJ; goto EcCyO; FTguk: if (!array_key_exists("\157\x77\x6e\145\x72", $ticket)) { goto fJ_Vg; } goto bwGjI; TRTCz: $ticket["\163\164\141\164\165\x73\x5f\x74\x65\170\164"] = "\155\x6f\144\165\154\145\137\143\x6f\x6e\146\x69\x67\x70\x72\x6f\143\x65\x73\163\x74\x69\143\x6b\145\x74\56\x73\164\141\164\x75\163\x2e" . strtolower($ticket["\x73\164\x61\x74\165\163"]) != langJS("\155\x6f\x64\165\x6c\145\x5f\143\x6f\156\146\x69\x67\160\162\x6f\x63\145\163\163\x74\x69\x63\153\x65\x74\x2e\x73\164\x61\164\165\163\x2e" . strtolower($ticket["\163\164\141\x74\165\163"])) ? langJS("\155\x6f\144\165\x6c\x65\x5f\x63\157\x6e\146\x69\x67\x70\162\157\x63\145\x73\x73\164\x69\x63\153\145\164\x2e\x73\x74\x61\164\165\x73\56" . strtolower($ticket["\163\x74\141\x74\165\x73"])) : $ticket["\x73\164\141\164\x75\x73"]; goto IfZIc; YnRzC: $bu = searchbu($index[1]); goto FFkWN; L27Iy: if (!array_key_exists("\x74\x79\160\x65", $ticket["\141\163\x73\x69\x67\x6e\145\145\137\x69\x6e\146\157"])) { goto dPoh7; } goto GrhCv; jFU4U: MNSI9: goto jpmZj; fXWNK: $owner_username = searchbu($id); goto zv33Q; DODRo: if (!array_key_exists("\154\x61\163\x74\x5f\155\x6f\144\151\146\151\145\x64", $ticket)) { goto nOJpo; } goto xjr7s; MetAC: PJJ3D: goto vqCKy; EcCyO: zleh0: goto VoJD2; uiWjh: zQRh8: goto ucWgi; Bw30y: $index = explode("\137", $ticket["\x61\x73\x73\151\147\x6e\145\x65"]); goto ScAze; Rx9rU: $ticket["\156\x61\155\x65\x6c\141\x73\164\x61\x63\x74\151\157\x6e"] = $ticket["\154\x61\163\164\x61\143\164\x69\157\x6e"]["\x6e\141\155\145\137\x61\143\x74\x69\157\x6e"]; goto odeUt; t1YX3: $ticket["\x6f\167\156\145\x72\x5f\165\x73\145\x72\156\141\x6d\x65"] = ''; goto FTguk; NPDXn: $ticket["\160\x72\151\157\x72\x69\x74\x79\137\x74\x65\x78\164"] = ''; goto aoP5k; VoJD2: $ticket["\143\162\145\141\164\145\144\137\x75\x73\145\162\x6e\141\x6d\x65"] = ''; goto Ayf4m; IDoUX: if ($name == "\x75\163\145\162") { goto d8o32; } goto fXWNK; rWRKO: if (!(!isset($distribute) || empty($distribute))) { goto zsc6S; } goto N8ENg; bwGjI: if (!($ticket["\157\x77\156\145\x72"] !== '')) { goto OxrU2; } goto uFuWK; FP8Nl: $distribute = $this->ruledistributes_m->db_getbyid($index[1]); goto rWRKO; JCN4r: RH_XV: goto Ux96c; rH7t1: PLhWG: goto Ac0yl; IR8Ej: $ticket["\x73\164\x61\x74\x75\163\137\164\x65\x78\164"] = "\x6d\157\144\x75\x6c\145\x5f\143\157\x6e\146\x69\147\160\x72\x6f\143\x65\x73\163\164\151\x63\x6b\x65\164\56\163\164\x61\x74\165\163\x2e" . strtolower($ticket["\163\x74\141\x74\x75\163"]) != langJS("\x6d\x6f\x64\x75\x6c\145\137\143\157\156\x66\151\147\x70\x72\x6f\143\145\x73\163\x74\x69\143\x6b\x65\x74\x2e\x73\164\141\x74\165\x73\56" . strtolower($ticket["\163\x74\x61\x74\x75\x73"])) ? langJS("\155\x6f\x64\x75\x6c\145\137\x63\157\x6e\146\151\147\x70\162\x6f\143\x65\x73\x73\x74\x69\x63\153\145\164\x2e\x73\x74\x61\164\165\163\56" . strtolower($ticket["\x73\x74\x61\x74\x75\x73"])) : $ticket["\x73\x74\x61\164\x75\x73"]; goto tMURB; MPT7c: dPoh7: goto hhSp_; pkdhg: zsc6S: goto YykSv; IfZIc: Ei42a: goto LKml9; qXUF1: $ticket["\x73\164\x61\164\x75\x73\x5f\164\145\x78\164"] = $ticket["\142\x70\155"]["\143\x75\x72\162\145\156\x74\x53\x74\141\164\x65"]["\x6e\141\x6d\145"]; goto MetAC; t43Gx: $ticket["\x61\163\163\151\147\x6e\x65\x65\137\164\x65\170\164"] = ''; goto qCUpP; hhSp_: d761B: goto H2ARN; gYR6I: if (!array_key_exists("\x63\x72\x65\x61\x74\145\144", $ticket)) { goto zQRh8; } goto DvmiR; HRJZJ: yhESZ: goto c6Ep5; DIPTH: CXWVt: goto F1guu; KyCWT: $this->load->model("\163\145\164\x74\x69\x6e\147\x73\57\x72\165\x6c\x65\x64\151\x73\x74\162\151\x62\x75\164\x65\x73\x2f\162\x75\x6c\x65\144\x69\163\164\162\x69\x62\x75\x74\x65\x73\x5f\155"); goto FP8Nl; N8ENg: $distribute["\x6e\141\155\145"] = langJS("\155\157\x64\x75\154\145\x5f\162\x75\x6c\x65\144\151\x73\x74\162\151\142\x75\164\145\x73\56\x64\151\x73\164\x72\151\142\165\164\x65\x5f\144\145\x6c\145\164\145\144"); goto pkdhg; T94kh: $ticket["\x63\162\145\x61\x74\145\144\x64\x61\164\x65\x5f\163\164\x72\x69\156\x67"] = date("\144\57\x6d\57\131", $ticket["\x63\162\x65\141\x74\145\x64"]["\164\151\x6d\145"]); goto Zlb04; zv33Q: $ticket["\x6f\x77\156\145\162\x5f\x75\x73\x65\162\x6e\x61\x6d\x65"] = $owner_username["\164\145\x78\164"] ?? ''; goto BJmml; JM9Gv: ZSWsu: goto eHLRt; tk_hk: $this->load->model("\x73\145\x74\164\151\156\147\163\x2f\x72\165\x6c\x65\x64\x69\163\x74\x72\x69\142\165\x74\x65\163\57\162\165\154\x65\144\151\163\164\x72\x69\x62\x75\x74\145\163\137\155"); goto Wv5Of; AjfIR: u25II: goto tk_hk; Xx3CF: if (!(array_key_exists("\143\141\x74\x65\147\157\x72\x79", $ticket) && $this->mongo_db->isValidObjectID($ticket["\143\141\x74\x65\147\x6f\x72\x79"]))) { goto mHZ6R; } goto Pcu0d; JSdzP: $ticket["\x61\163\163\151\147\x6e\145\145\x5f\x74\x65\170\x74"] = $distribute["\x6e\x61\155\145"]; goto nyKxe; Pcu0d: $key = array_search($ticket["\143\141\x74\145\147\157\x72\x79"], array_column($listcategory, "\137\151\x64")); goto YvmEO; ReuuE: if (!isset($ticket["\x6c\141\x73\164\x61\x63\x74\x69\x6f\156"]["\156\x61\x6d\145\x5f\x61\143\x74\151\157\x6e"])) { goto XlSFZ; } goto Rx9rU; MkicF: $ticket["\154\x61\x73\x74\137\x6d\x6f\144\x69\146\151\x65\144\x5f\165\163\145\162\156\x61\155\145"] = ''; goto DODRo; Ayf4m: WooSJ: goto eRrr0; eQKA9: if (!isset($ticket["\141\x63\143\157\x75\x6e\x74\x5f\x72\145\x6c\x61\164\145\x64"])) { goto Fp9kH; } goto gl56i; F1guu: if (!isset($ticket["\x62\160\x6d"]) || !isset($ticket["\142\x70\155"]["\x63\165\x72\162\x65\156\x74\x53\x74\x61\164\145"])) { goto rpWbx; } goto RJELS; eHLRt: $ticket["\x73\x74\x61\x74\x75\163"] = $ticket["\x62\160\155"]["\143\165\162\x72\x65\156\x74\123\164\141\164\x65"]["\x6e\x61\155\145"]; goto qXUF1; kvE4I: Fp9kH: goto t1YX3; At7fO: $ticket["\x63\x72\x65\x61\164\145\x64\x5f\x75\x73\145\x72\x6e\x61\x6d\145"] = searchnameuserwithstatus($ticket["\x63\x72\x65\141\x74\145\x64"]["\x62\x79\151\144"]); goto l1Iel; c6Ep5: $ticket["\x6c\x61\163\x74\x5f\155\x6f\144\151\146\x69\145\x64\x5f\165\163\145\162\x6e\141\155\x65"] = ''; goto g3Xe_; Wv5Of: $distribute = $this->ruledistributes_m->db_getbyid($ticket["\x61\x73\163\151\147\x6e\145\145\137\x69\156\x66\157"]["\151\144"]); goto BwsCE; vW3gO: $ticket["\x63\x72\145\x61\164\x65\144\137\x75\x73\145\162\156\141\155\x65"] = ''; goto IPHlq; sFDE6: if ($index[0] === "\x62\x75") { goto jCZOX; } goto EkdXc; Ac0yl: $bu = searchbu($ticket["\141\x73\163\151\x67\156\x65\x65\137\x69\156\146\157"]["\x69\x64"]); goto Ni6Wp; BnciS: $ticket["\x6c\x61\x73\x74\x5f\155\x6f\144\x69\x66\151\145\x64\x5f\x75\163\145\x72\x6e\x61\x6d\145"] = $ticket["\154\141\163\x74\137\x6d\x6f\x64\151\146\x69\145\x64"]["\x62\x79\151\x64"]; goto Xvq9Y; YykSv: $ticket["\x61\163\x73\x69\147\x6e\145\x65"] = $distribute["\156\x61\155\x65"]; goto oxtVV; eKFMv: if (!isset($ticket["\x6c\x61\x73\164\141\143\x74\151\157\x6e"]["\x75\x73\x65\162\x6e\141\155\x65"])) { goto U6U2w; } goto FgYCM; EVlzA: $ticket["\x73\157\165\x72\x63\x65\144\x69\163\160\154\141\171"] = "\x50\x6f\162\164"; goto DIPTH; aoPUl: khgKq: goto MPT7c; jpmZj: OxrU2: goto qe_fU; yzcw8: mHZ6R: goto zKrK6; IPHlq: if (!array_key_exists("\143\x72\x65\x61\x74\145\x64", $ticket)) { goto rwn0K; } goto Dyj_c; vZ5wk: $ticket["\143\141\164\145\147\157\162\171\x5f\164\x65\x78\x74"] = $listcategory[$key]["\x74\145\170\164"]; goto u6K6x; cmJsk: d8o32: goto FYFwj; nMPVN: rpWbx: goto TRTCz; nXZuK: $ticket["\x61\143\x63\157\165\156\x74\137\162\x65\154\x61\164\145\144\x5f\x73\x74\x72\x69\156\147"] = $getAccount["\143\157\x6d\160\x61\x6e\x79\156\x61\155\x65"]; goto LPwD_; RaiuP: if (!(isset($ticket["\x76\151\141"]["\x74\x79\x70\x65"]) && $ticket["\x76\x69\141"]["\164\x79\160\x65"] == "\164\151\143\153\x65\164\160\165\142\154\151\143\160\x6f\162\164\x61\154")) { goto CXWVt; } goto EVlzA; FaQlc: $ticket["\141\163\x73\x69\147\x6e\x65\145"] = $bu["\x74\x65\x78\x74"]; goto JCN4r; OegUF: $ticket["\x63\162\x65\x61\x74\x65\x64\137\165\x73\x65\x72\156\141\155\x65"] = $ticket["\x63\162\x65\x61\164\x65\144"]["\142\x79\x69\144"]; goto ITbd8; pUMTH: nOJpo: goto NPDXn; TnTWN: L4g5v: goto FaQlc; LKml9: OIkSJ: goto oWzgb; pyCo8: $ticket["\x61\163\x73\151\x67\x6e\x65\x65\x5f\x74\145\x78\164"] = $bu["\x74\x65\x78\164"]; goto PhngM; IrA0O: Y51Bu: goto pyCo8; Idch0: if ($ticket["\x63\162\145\x61\164\145\x64"]["\142\171\151\x64"] == '' || $ticket["\143\x72\x65\x61\x74\145\144"]["\142\x79\x69\144"] == null || $ticket["\x63\x72\x65\x61\x74\x65\x64\x5f\165\163\x65\x72\156\x61\155\x65"] === false) { goto zleh0; } goto OegUF; Xvq9Y: goto iwYhU; goto HRJZJ; qCUpP: if (!array_key_exists("\141\x73\x73\x69\147\156\x65\145\x5f\151\x6e\146\x6f", $ticket)) { goto d761B; } goto L27Iy; FJa1g: goto uR4jn; goto MUnfQ; SrZE4: goto SjS8N; goto ZRqbY; HUeOY: if (!($ticket["\x63\162\145\141\164\145\x64\137\163\x74\x72\x69\x6e\x67"] === false)) { goto c_GF0; } goto gP65O; LqDP0: KkpwJ: goto JbbEF; dQBAn: if ($ticket["\x61\163\163\x69\x67\x6e\x65\145\x5f\x69\x6e\146\x6f"]["\164\x79\160\145"] === "\x61\x75\164\157") { goto u25II; } goto oZzUE; okmdm: $ticket["\164\x61\x67\163\x5f\151\156\146\x6f"] = []; goto ujPMq; QnICF: $id = substr($ticket["\157\x77\x6e\145\x72"], $index + 1); goto Qnle9; SWb_j: U6U2w: goto RZT1Q; oZzUE: goto khgKq; goto VJF6k; JbbEF: JFnYz: goto vW3gO; kJn7G: $ticket["\163\x74\141\164\165\x73\137\164\145\170\164"] = "\155\157\144\165\154\145\x5f\143\157\x6e\146\x69\147\160\x72\x6f\143\145\x73\163\164\151\143\153\145\164\x2e\163\x74\141\164\165\163\x2e" . strtolower($ticket["\x73\x74\141\x74\x75\163"]) != langJS("\x6d\x6f\144\x75\x6c\x65\137\143\x6f\x6e\146\151\x67\x70\162\x6f\143\145\x73\x73\164\151\x63\x6b\x65\x74\x2e\163\164\x61\164\x75\x73\x2e" . strtolower($ticket["\163\164\141\164\x75\x73"])) ? langJS("\155\157\x64\165\154\145\x5f\x63\x6f\x6e\x66\x69\x67\160\x72\x6f\143\x65\x73\163\x74\x69\143\153\145\x74\56\x73\164\x61\164\x75\x73\x2e" . strtolower($ticket["\x73\164\x61\x74\165\163"])) : $ticket["\163\164\x61\x74\165\x73"]; goto W9mYN; GrhCv: if ($ticket["\x61\163\163\x69\147\156\145\x65\x5f\151\156\x66\157"]["\x74\x79\160\x65"] === "\165\163\145\x72") { goto qFLZX; } goto sv2Y_; gl56i: if (!($ticket["\141\x63\143\x6f\165\156\164\x5f\162\x65\154\141\164\x65\x64"] !== '')) { goto JvIAt; } goto TVRgW; Yarhi: $ticket["\x63\x72\145\141\x74\x65\x64\137\163\164\162\151\156\147"] = ''; goto gYR6I; LPwD_: x1A6_: goto JBV23; Ux96c: goto uR4jn; goto Etk3p; H2ARN: if (!array_key_exists("\141\x73\163\x69\x67\x6e\145\145", $ticket)) { goto MNfNm; } goto Bw30y; VJF6k: qFLZX: goto S4Go3; QD3_v: c_GF0: goto uiWjh; YpFrV: SjS8N: goto pUMTH; OMIAZ: if (!isset($getAccount["\143\157\155\x70\x61\x6e\171\x6e\141\155\x65"])) { goto x1A6_; } goto nXZuK; Etk3p: GRGFO: goto KyCWT; uhru0: $ticket["\154\141\x73\x74\x5f\x6d\157\x64\x69\x66\x69\x65\144\137\x75\163\x65\162\156\141\155\x65"] = searchnameuserwithstatus($ticket["\x6c\x61\163\x74\137\x6d\x6f\144\151\146\x69\145\144"]["\x62\171\x69\x64"]); goto YpFrV; aoP5k: if (!array_key_exists("\x70\162\151\157\162\151\164\x79", $ticket)) { goto KdTzw; } goto C1zJw; xdZTZ: VZh_3: goto At7fO; IB4y_: $ticket["\x61\163\163\x69\147\x6e\x65\145"] = searchnameuserwithstatus($index[1]); goto FJa1g; BJmml: goto MNSI9; goto cmJsk; FYFwj: $ticket["\x6f\x77\156\145\x72\x5f\165\163\145\162\x6e\141\155\x65"] = searchnameuser($id); goto jFU4U; vqCKy: goto m9E5f; goto mzkpe; RJELS: if ($ticket["\x62\160\155"]["\143\165\162\162\145\156\x74\123\x74\141\x74\x65"] == false) { goto rYVmW; } goto ObdaT; FgYCM: $ticket["\165\163\145\162\154\141\x73\x74\141\143\164\151\x76\x65"] = $ticket["\x6c\x61\163\x74\141\x63\x74\x69\x6f\156"]["\165\x73\145\x72\156\x61\x6d\145"]; goto SWb_j; oWzgb: } goto UYSuo; fSXVE: R9tEN: goto NVzOd; JzWRf: $this->load->model("\163\x65\164\164\151\156\x67\x73\57\143\157\156\146\151\x67\164\x69\x63\153\145\x74\x73\x2f\143\x6f\156\x66\151\147\x63\x61\x74\145\147\157\162\x79\164\x69\x63\x6b\x65\164\137\155"); goto EpGod; L7S7P: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\x73\157\x75\x72\143\145\151\x64", "\x65\x71", $request->idtopic), $request); goto Tx74y; rIJqX: PdtFI: goto XA1G7; Jrds2: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter($request->timerange, "\147\x74\x65", $request->startdate), $request_temp); goto BBVcO; a29ji: $assigned2me = true; goto VmDRB; mW1JV: if (!(property_exists($request, "\x66\x69\x6c\164\145\162") && property_exists($request->filter, "\146\x69\x6c\164\x65\x72\x73"))) { goto Ka1ak; } goto ObDeW; N7GQO: if (!property_exists($request, "\x74\x69\143\153\145\164\137\x72\x65\161\x75\145\163\164\145\x72\137\151\144")) { goto c4svu; } goto HIRTx; Jyk3Z: if (!(property_exists($request, "\167\x66\64\170\x5f\x6d\151\x6e\x65\x74\151\143\153\145\164") && $request->wf4x_mineticket === true)) { goto jpLrn; } goto o5jU_; IGuZV: VOA03: goto zjVF_; XaDKi: $returntype = "\146\151\154\x74\145\x72\x5f\x74\151\143\x6b\145\164\163\160\x72\157\143\145\163\163\x69\156\x67"; goto YtJrh; gpHSd: $request = json_decode(file_get_contents("\160\x68\x70\x3a\x2f\x2f\151\156\x70\165\x74")); goto yiF_v; Dkmk0: $dataShared = $this->configcategoryticket_m->db_alloptions(["\164\x65\170\164", "\x73\150\141\x72\145", "\x73\x68\x61\x72\145\141\154\154", "\156\x6f\164\163\150\x61\x72\145", "\150\141\163\103\x68\x69\154\144\x72\x65\156", "\x70\141\162\x65\x6e\x74\137\x69\x64", "\x74\x79\160\145"], ["\167\150\x65\x72\x65\x5f\156\151\x6e" => ["\x6e\157\164\x73\150\x61\x72\145" => $listbu], "\157\162\137\x77\x68\145\x72\145" => ["\x73\x68\x61\162\x65" => ["\x24\x69\156" => $listbu], "\163\x68\141\162\x65\141\x6c\x6c" => 1], "\x77\x68\145\162\x65\x5f\x6e\145" => ["\x64\145\x6c\145\x74\x65" => 1]]); goto bgS9H; KleA1: buMSt: goto Pwui6; XjULx: goto xiIKD; goto bRmSq; ZE4BB: $listCheck = $this->mongodatasourceresult->initFilterWithSub("\157\x72", [$this->mongodatasourceresult->initFilter("\x61\x63\143\157\x75\156\164\137\x72\x65\x6c\x61\x74\x65\x64", "\145\161", $request->ticket_requester_id), $this->mongodatasourceresult->initFilter("\162\145\x71\x75\x65\163\x74\x65\x72\x5f\x69\144", "\x65\161", $request->ticket_requester_id)]); goto XgoCN; LD43N: $activeView = true; goto uOVM5; o5jU_: $returntype = "\146\151\154\x74\x65\162\137\x6d\x69\156\x65\164\151\143\153\x65\x74"; goto jd7db; XG5U6: foreach ($request->filterAdvance->filters as $value) { goto kuyH9; V88vy: $hasFilterTicketEnd = true; goto mBAKV; mBAKV: dyIYE: goto ZGme7; ZGme7: emDW_: goto yP2Hx; kUKUL: $exist_status = strpos(json_encode($arrayTemp), "\42\146\x69\145\154\144\42\72\x22\x73\164\141\164\165\163\x22"); goto PmPix; kuyH9: $arrayTemp = json_decode(json_encode($value), true); goto kUKUL; PmPix: if (!($exist_status !== false)) { goto dyIYE; } goto V88vy; yP2Hx: } goto yysJi; QEcfi: foreach ($requesters as $requester) { $requester_arr[] = $requester["\x5f\x69\x64"]; nZ_Sn: } goto WnMdo; J0zzo: foreach ($result["\x64\x61\164\x61"] as $k => $tk) { goto G3zCK; lQAhh: if (!(!in_array("\165\x73\145\162\x5f" . $this->data["\x75\x73\x65\162\151\144"], $assignee_history) && !in_array("\x62\x75\137" . $this->data["\x62\x75\x64\145\x66\141\165\x6c\164"], $assignee_history))) { goto JX0NM; } goto xnEcG; G3zCK: $assignee_history = array_slice($tk["\x61\163\163\x69\x67\156\145\145\x5f\150\151\x73\x74\x6f\162\x79"], 0, count($tk["\141\163\x73\151\x67\156\145\x65\x5f\150\151\x73\x74\157\x72\x79"]) - 1); goto lQAhh; xnEcG: unset($result["\x64\x61\164\141"][$k]); goto zYvm0; qdX8a: Mv9Vx: goto xxHGb; zYvm0: JX0NM: goto qdX8a; xxHGb: } goto iNAVB; NNJ8K: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter($request->timerange, "\x67\164\145", $request->startdate), $request_temp); goto V1ssK; iRjHR: $listbu = $this->data["\x6c\151\163\164\x62\165"]; goto Qa_iJ; zEQE9: $listCategory = []; goto LmxIB; TqdKp: uyDh6: goto JzWRf; hMU3x: if (!(!empty($dataShared) && !property_exists($request, "\155\x6f\x64\165\154\145"))) { goto PeS2z; } goto X5w1D; BJrVH: goto xiIKD; goto Hc0_t; bbuzg: if (empty($request->filter->filters)) { goto poa0z; } goto HB6kt; yAcnO: $listC = $this->mongodatasourceresult->initFilterWithSub("\x6f\162", [$this->mongodatasourceresult->initFilter("\143\141\x74\x65\x67\x6f\162\x79", "\151\156", $listCategory), $this->mongodatasourceresult->initFilter("\x70\x61\x72\145\156\164\137\143\x61\x74\145\x67\157\162\x79", "\x69\x6e", $listCategory)]); goto wnLvq; EA0HN: KAvVS: goto LvJYB; p0nDg: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\163\x6c\141", "\x69\x73\156\157\x74\x65\x6d\160\164\171", true), $request); goto yuv3e; TvQyS: foreach ($request->filter->filters as $value) { goto Qb6o2; Qb6o2: $arrayTemp = json_decode(json_encode($value), true); goto CfqkI; JSyEV: $hasFilterTicketEnd = true; goto BxFcT; CfqkI: $exist_status = strpos(json_encode($arrayTemp), "\x22\x66\151\145\x6c\144\x22\x3a\x22\163\164\x61\164\x75\163\x22"); goto hKqUO; U8iKX: GYxcd: goto OaBM4; hKqUO: if (!($exist_status !== false)) { goto a0yay; } goto JSyEV; BxFcT: a0yay: goto U8iKX; OaBM4: } goto JKnIk; WylZ4: HDayf: goto LyeS0; bfJgc: h52VE: goto hO6nr; w6FdX: foreach ($requesters as $req) { goto f0XYl; G25ee: qU3fv: goto vWtFS; Iru1j: goto Bmv3s; goto G25ee; vwcAF: Bmv3s: goto JVlKK; JVlKK: $requesters_name[$req["\x5f\x69\144"]] = $info; goto EMDhl; IgALz: $info = $req["\x6e\141\x6d\145"] ?? ''; goto Iru1j; vWtFS: $info = !empty($req["\156\x61\155\145"]) ? $req["\x6e\x61\155\x65"] : $req["\165\x73\x65\162\x6e\x61\155\145"]; goto vwcAF; EMDhl: r3lFs: goto G1jKV; f0XYl: $info = ''; goto H8nS8; H8nS8: if (($req["\146\x72\157\x6d\x6d\x6f\144\x75\154\145"] ?? '') === "\x75\x73\x65\x72\x73") { goto qU3fv; } goto IgALz; G1jKV: } goto x998A; jd7db: jpLrn: goto yQZGZ; UyHSu: $optionSort = ["\x77\x68\x65\162\x65" => ["\x6d\157\144\x75\x6c\145" => "\164\x69\x63\153\x65\164\x73", "\163\150\157\x77" => 1], "\x73\157\x72\164" => ["\160\157\x73\x69\x74\x69\x6f\156" => 1]]; goto gvm6x; HB6kt: foreach ($request->filter->filters as &$fil) { goto BkIdn; IuXPR: if (empty($filter_actions)) { goto F17Pq; } goto q1tTi; sPyqh: foreach ($arrayLanguage as $key => $value) { goto b0Lzr; z_uSF: if ($percent > 70) { goto qceTQ; } goto VQeDA; AdY2H: goto bIAPt; goto DjZ8Q; MSuVN: RCoxM: goto uiC0b; ImaP8: $fil = $this->mongodatasourceresult->initFilter("\x73\x74\x61\164\165\163", $fil->operator, (string) $arrayLanguage[$key]); goto i5_Lo; DjZ8Q: qceTQ: goto ImaP8; Fp1KU: bIAPt: goto MSuVN; VQeDA: $fil = $this->mongodatasourceresult->initFilter("\163\x74\x61\164\165\163", $fil->operator, $fil->value); goto AdY2H; i5_Lo: goto cGw2I; goto Fp1KU; b0Lzr: $similarity = similar_text(mb_strtolower($this->_toStringNoUTF8($key)), mb_strtolower($searchString), $percent); goto z_uSF; uiC0b: } goto W3H3r; q1tTi: $fil = new stdClass(); goto ZHH1e; BkIdn: if (!isset($fil->field)) { goto WzRpJ; } goto tMf2B; MRsOZ: $operator = $fil->operator == "\151\156" ? "\145\x71" : "\x6e\x65\x71"; goto O1JND; cVnch: WzRpJ: goto fpGlj; utWSQ: $filter_actions[] = $this->mongodatasourceresult->initFilter("\154\x69\x6e\153", $operator, true); goto XnJ9d; cCJ0H: ZIlZ8: goto cVnch; XnJ9d: hWtxy: goto IuXPR; tMf2B: if (!($fil->field == "\141\x63\x74\151\x6f\156\163")) { goto eAZb1; } goto MRsOZ; MTDzp: wEXze: goto GNjqp; O1JND: $operator_withsub = $fil->operator == "\151\156" ? "\157\x72" : "\141\156\144"; goto BwFqu; B1WFw: F17Pq: goto shWQ1; ZHH1e: $fil = $this->mongodatasourceresult->initFilterWithSub($operator_withsub, $filter_actions); goto B1WFw; W3H3r: cGw2I: goto cCJ0H; FwsGE: $searchString = $this->_toStringNoUTF8($fil->value); goto sPyqh; BwFqu: $filter_actions = []; goto Bz49X; GNjqp: if (!in_array("\154\x69\156\153", $fil->value)) { goto hWtxy; } goto utWSQ; Bz49X: if (!in_array("\155\145\x72\x67\145", $fil->value)) { goto wEXze; } goto o_hch; fpGlj: gj6iT: goto CNVJa; bTpDf: if (!($fil->field == "\x73\x74\141\x74\165\163")) { goto ZIlZ8; } goto FwsGE; shWQ1: eAZb1: goto bTpDf; o_hch: $filter_actions[] = $this->mongodatasourceresult->initFilter("\x6d\145\162\x67\x65", $operator, true); goto MTDzp; CNVJa: } goto bfJgc; x998A: iBb2x: goto Op9AD; P1z3Y: foreach ($listbu as &$bu) { $bu = "\x62\165\x5f" . $bu; tfQfR: } goto fOi1n; qMYYq: exit; goto uLEKf; UYSuo: dkGQs: goto yktLU; jqaRw: if (!($owner != 1)) { goto oQxB7; } goto P1z3Y; fhzWn: if (!(!empty($dataShared) && !property_exists($request, "\x6d\157\x64\x75\154\x65"))) { goto buMSt; } goto yAcnO; B_q6q: $userid = "\x75\x73\145\162\x5f" . $this->data["\x75\163\145\x72\x69\144"]; goto eumyp; rsdHR: $or_where = ["\x69\144\x6d\x6f\x64\165\154\145" => $request->objectid]; goto fSXVE; tzZIW: DRfJK: goto Dp0ju; XgoCN: $this->mongodatasourceresult->addFilterRequest($listCheck, $request); goto hGbkc; DTUZh: $this->_updateStatusField($request->filterAdvance->filters, $arrayLanguage); goto tzZIW; HIRTx: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\162\x65\x71\165\x65\x73\164\x65\x72\137\151\x64", "\145\x71", $request->ticket_requester_id), $request); goto Fa0TW; rPsik: $tempSelect = ["\x76\151\x61"]; goto Vqc9X; IvGRL: if (!(isset($request->filter->filters[1]->filters) && $request->searchtext == '')) { goto zbfN2; } goto jBj0X; yV4qw: $filter_fieldstatus->field = "\x73\164\x61\x74\165\x73"; goto LwYtD; zpe5W: if (!($permission["\146\151\x6c\x74\x65\x72"] !== false)) { goto MAete; } goto YxUvb; vr8Kz: tD2sc: goto Jyk3Z; yuv3e: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\x73\154\141\56\163\x6f\154\166\145\x64\x74\151\155\145", "\x6c\x74\x65", time()), $request); goto E1y_8; YxJIm: if (!(isset($request->wf4x_slaoverdue) && isset($request->wf4x_alltickets) && $request->wf4x_slaoverdue && $request->wf4x_alltickets)) { goto jiqAD; } goto pyIP2; LSvEo: $activeView = false; goto WVQbd; XEHc5: if (!empty($config)) { goto pp82j; } goto OmApF; ICjhG: $request_temp->take = $request->take; goto dBeAW; nliQl: $this->mongodatasourceresult->addFilterRequest($permission["\146\x69\154\x74\145\x72"], $request); goto S71ww; KcUbB: if (!(property_exists($request, "\167\146\x34\x78\137\x70\x72\157\x63\145\163\x73\151\x6e\x67\142\171\x73\x75\142\142\165") && $request->wf4x_processingbysubbu === true)) { goto nHJbE; } goto CLzw1; c0Jew: if (property_exists($request, "\x77\146\64\170\x5f\x6e\157\x71\x75\145\x72\171\x70\145\x72\x6d\x69\x73\163\151\x6f\156") && $request->wf4x_noquerypermission === true) { goto SaANy; } goto XaDKi; y7Hpg: goto p6YDK; goto p_s1a; lw3tk: if (!(property_exists($request, "\x6f\x62\152\145\143\x74\151\x64") || property_exists($request, "\x70\150\x6f\156\145\157\142\x6a\145\x63\164"))) { goto tq2Ut; } goto swWJ4; zjdib: fy0hz: goto X6rX1; lx96H: array_push($listbu, $userid); goto cnOvv; YPMbu: if (!property_exists($request, "\x74\x69\143\153\x65\x74\137\x72\x65\161\165\145\163\x74\x65\x72\x5f\151\x64")) { goto K5yoz; } goto ZE4BB; sKaRl: foreach ($group as $group) { $tempSelect[] = $group["\x61\x6c\x69\141\163"]; psHY0: } goto PWHS1; rK2X3: if (property_exists($request, "\155\x6f\x64\x75\154\x65")) { goto Eif7g; } goto N7GQO; lg5re: goto y6vJj; goto Qup3Q; Op0a3: $or_where["\x70\x68\x6f\156\x65"] = ["\x24\x69\156" => [$request->phoneobject]]; goto WylZ4; OpCxA: $returntype = "\x66\x69\x6c\x74\145\x72\137\x70\x72\157\x63\145\x73\x73\151\156\x67\x62\x79\163\141\155\145\x70\x61\x72\145\x6e\x74\142\165"; goto vr8Kz; CLzw1: $returntype = "\146\x69\154\x74\145\162\x5f\x70\x72\157\143\x65\x73\x73\151\x6e\147\142\x79\x73\165\x62\142\165"; goto a8CbQ; YtJrh: goto h5ZR8; goto mKA59; wnLvq: $this->mongodatasourceresult->addFilterRequest($listC, $request_temp); goto KleA1; bgS9H: $listCategory = []; goto i0J17; iNAVB: M3rua: goto qJdB9; NVzOd: if (!property_exists($request, "\x70\150\157\x6e\145\x6f\142\152\x65\x63\x74")) { goto HDayf; } goto Op0a3; woY6L: $request_temp->page = $request->page; goto UqxB5; hTeZi: if (!(property_exists($request, "\x77\x66\64\x78\x5f\141\x73\x73\x69\x67\156\x65\144\x32\155\x65") && $request->wf4x_assigned2me === true)) { goto XXWTl; } goto a29ji; DgBPM: if (!is_numeric($request->startdate) && !is_numeric($request->enddate) && !empty($request->searchtext)) { goto fjq0S; } goto V2_MM; EpGod: $listcategory = $this->configcategoryticket_m->db_all_withcache(); goto aP7i_; Dp0ju: if (!property_exists($request, "\x69\144\164\x6f\160\x69\143")) { goto w53R7; } goto riyyr; krUJW: if (is_numeric($request->startdate) && is_numeric($request->enddate) && empty($request->searchtext)) { goto Pbwf1; } goto DgBPM; Hc0_t: OCXuS: goto Jrds2; yr_58: $returntype = "\146\151\154\x74\145\162\x5f\143\x72\x65\141\x74\x65\144\x62\171\x6d\x65\141\156\x64\163\x75\x62\142\165"; goto Mzsc3; rWj5l: if (!property_exists($request, "\146\x69\x6c\164\145\x72")) { goto Amhh1; } goto ChMRP; TMX7q: grrVh: goto uOgs8; E1y_8: jiqAD: goto lw3tk; oWqd0: xkJyM: goto hTeZi; vWvTE: p6YDK: goto gJgjt; UqxB5: $request_temp->pageSize = $request->pageSize; goto Km5IT; E_Dfv: if (empty($requesters)) { goto ncQiP; } goto QEcfi; yktLU: echo json_encode($result); goto VScbs; s1Yu7: exit; goto y7Hpg; nqxxJ: foreach ($config["\x75\x73\x65\162\137\143\157\156\x66\151\x67"] as $value) { goto QIAvm; bziwX: $wf4x_alltickets = false; goto nwBcb; fVXLR: goto MRJ7s; goto SB1Bu; QIAvm: if ($this->data["\165\163\145\x72\151\x64"] == $value) { goto WBOFb; } goto bziwX; Mt0gh: $wf4x_alltickets = true; goto fVXLR; onSeU: cEVaV: goto qqozW; nwBcb: goto aSeFo; goto FUnk3; FUnk3: WBOFb: goto Mt0gh; SB1Bu: aSeFo: goto onSeU; qqozW: } goto NXstZ; tilCG: if (!property_exists($request, "\x6f\x62\152\x65\143\164\x69\x64")) { goto R9tEN; } goto rsdHR; x7dcz: goto KAvVS; goto yGEKU; WPSxH: $filter_fieldstatus = json_decode(json_encode($filter_fieldstatus), true); goto TvQyS; N8Jml: Pbwf1: goto NNJ8K; nL6t9: $returntype = "\146\151\154\x74\145\162\x5f\x74\x69\x63\x6b\x65\164\163\156\x65\167"; goto oWqd0; auIHu: if (!empty($requester_arr)) { goto vJS_C; } goto H6hr3; Zp81n: $filter_fieldstatus->field = "\163\164\141\164\x75\x73"; goto WPSxH; yiF_v: $arrayLanguage = [langJS("\155\x6f\144\x75\154\145\137\x63\x6f\156\146\x69\147\160\162\157\143\145\x73\163\x74\x69\143\153\145\164\x2e\x73\x74\141\164\x75\163\56\163\164\x61\162\164") => "\x73\164\x61\162\164", langJS("\155\157\x64\165\154\x65\x5f\143\157\x6e\146\x69\147\160\162\x6f\x63\x65\x73\163\x74\151\x63\x6b\145\164\56\163\164\141\164\x75\163\x2e\157\x70\145\x6e") => "\157\160\145\156", langJS("\155\157\144\x75\154\145\x5f\x63\157\x6e\x66\x69\147\160\162\157\x63\x65\163\x73\x74\x69\143\x6b\145\x74\x2e\x73\164\141\164\165\163\56\151\156\137\160\162\x6f\x67\162\145\163\163") => "\x69\x6e\x5f\160\x72\157\147\x72\145\163\163", langJS("\x6d\157\x64\x75\154\x65\137\143\157\156\146\151\147\160\x72\157\x63\x65\x73\x73\164\151\x63\153\x65\164\x2e\x73\164\141\x74\165\163\x2e\x70\145\x6e\x64\151\156\x67") => "\x70\x65\x6e\144\x69\156\147", langJS("\x6d\157\x64\x75\x6c\145\137\143\x6f\x6e\x66\x69\x67\x70\162\157\143\x65\x73\x73\164\x69\x63\x6b\x65\164\56\163\164\x61\x74\165\163\56\157\x6e\137\x68\157\154\x64") => "\157\x6e\x5f\150\x6f\x6c\x64", langJS("\155\x6f\x64\165\154\x65\x5f\x63\x6f\x6e\146\x69\x67\160\162\157\143\145\163\163\x74\151\143\x6b\145\x74\56\x73\x74\141\x74\165\163\x2e\163\157\x6c\x76\x65\x64") => "\163\157\x6c\166\145\144", langJS("\x6d\x6f\x64\x75\154\x65\137\x63\157\x6e\x66\151\147\x70\162\157\143\x65\x73\x73\164\x69\143\153\x65\x74\x2e\163\164\141\x74\165\163\x2e\x72\x65\x5f\157\160\x65\156") => "\x72\x65\137\x6f\160\145\156", langJS("\155\157\144\x75\154\x65\x5f\143\157\x6e\x66\x69\x67\x70\x72\157\x63\x65\163\x73\164\151\143\x6b\x65\164\56\163\x74\141\x74\165\x73\56\x66\x69\156\x69\163\x68") => "\146\x69\x6e\151\163\x68", langJS("\155\157\144\x75\154\x65\x5f\x63\x6f\156\146\151\147\x70\x72\x6f\x63\145\163\x73\164\151\x63\x6b\x65\x74\x2e\163\164\141\x74\x75\163\x2e\x6e\145\167") => "\x4e\x65\167", langJS("\155\157\x64\x75\154\x65\137\143\x6f\156\146\151\x67\160\x72\x6f\x63\x65\x73\163\164\x69\x63\x6b\x65\x74\x2e\163\164\141\164\x75\x73\x2e\145\x6e\144") => "\x45\156\144"]; goto bbuzg; mKA59: SaANy: goto WR7BC; riyyr: $hasFilterTicketEnd = true; goto L7S7P; EBr7x: $permission = $this->tickets_library->permission($returntype); goto gySIb; X6rX1: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\x64\145\154\145\164\145", "\151\163\x65\x6d\160\164\x79", true), $request); goto YxJIm; dNVCl: if (!(property_exists($request, "\x66\151\x6c\164\145\162\x41\x64\166\x61\156\x63\x65") && property_exists($request->filterAdvance, "\146\151\x6c\164\145\x72\x73"))) { goto DRfJK; } goto mtMH1; XazWh: $returntype = "\x66\x69\154\x74\x65\x72"; goto x31o7; gySIb: if ($permission["\x73\x74\164"] === false) { goto nRAZP; } goto zpe5W; NTyT3: $result["\x74\x6f\164\x61\x6c"] = count($result["\x64\x61\x74\141"]); goto TqdKp; revIs: $returntype = "\x66\151\154\x74\x65\162\137\164\x69\143\x6b\145\x74\x73\160\162\157\x63\145\163\163\151\x6e\147"; goto q4zKX; pBNgw: foreach ($listbu as &$bu) { $bu = "\x62\165\x5f" . $bu; FAYDI: } goto SKFwB; n9ZS6: $owner = $this->data["\151\163\117\167\156\x65\162"]; goto jqaRw; ChMRP: unset($request->filter); goto acOIO; qJdB9: $result["\x64\141\x74\x61"] = array_values($result["\x64\x61\x74\x61"]); goto ErYVM; yjtPN: goto xiIKD; goto N8Jml; EKmIB: $selectField = $this->tickets_m->getSelectKendoGrid(); goto Q1R1D; aupOr: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\163\164\x61\164\165\163", "\156\x65\161", "\x45\x6e\x64"), $request); goto TMX7q; I9hcE: unset($request->page); goto Y_Hf3; LmxIB: foreach ($dataShared as $idc) { $listCategory[] = $idc["\137\x69\x64"]; dZNIW: } goto QTEYj; x3uzg: $field = $this->fieldGrid(); goto rPsik; BjsN8: if (!(!$hasFilterTicketEnd && !$wf4x_alltickets)) { goto grrVh; } goto aupOr; jBj0X: $request_temp->filter->filters = array_merge($request_temp->filter->filters, $request->filter->filters[1]->filters); goto WaYbE; uOgs8: $assigned2me = false; goto c0Jew; bRmSq: fjq0S: goto mdF3f; W9VyA: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\162\x65\161\165\x65\163\164\145\162\137\151\144", "\x69\x6e", $requester_arr), $request_temp); goto njU8U; mdF3f: foreach ($select as $sl) { goto APNBu; xUY6z: $request_temp->filter->logic = "\157\x72"; goto NH304; APNBu: if (!(!empty($sl) && !is_array($sl))) { goto FxSwc; } goto ab7rI; gOif8: vFbgO: goto zgsWD; NH304: FxSwc: goto gOif8; ab7rI: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter($sl, "\156\157\164\165\160\160\x65\x72\143\x61\163\145", (string) $request->searchtext), $request_temp); goto xUY6z; zgsWD: } goto zavBm; x31o7: $userid = "\165\163\145\162\137" . $this->data["\x75\x73\145\x72\151\x64"]; goto iRjHR; gvm6x: $group = $this->fieldgroup_m->db_alloptions(["\156\x61\155\x65", "\x61\154\151\x61\x73", "\x67\x72\x6f\165\x70\x69\144", "\143\157\154\x61\144\144", "\x73\150\x6f\167", "\x6d\x6f\144\x75\154\x65", "\146\151\x65\154\x64\x61\x6c\x6c", "\x69\143\157\156", "\150\141\163\120\141\162\145\x6e\164", "\x63\x72\145\141\164\145\x64", "\154\x61\163\x74\137\x6d\157\x64\x69\146\x69\x65\x64"], $optionSort); goto sKaRl; r2t8D: if (empty($result["\144\141\164\141"])) { goto avzyF; } goto Ey7Qd; sN5KC: $requester_arr = []; goto E_Dfv; AXePl: Ka1ak: goto dNVCl; Nk3DQ: $this->mongodatasourceresult->addFilterRequest($listC, $request); goto miHEW; njU8U: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\144\x65\x6c\145\x74\145", "\151\x73\145\155\x70\x74\171", true), $request_temp); goto IvGRL; Y_Hf3: $result = $this->tickets_library->db_read($request, $select); goto J0zzo; swWJ4: $this->load->model("\163\145\162\166\x69\143\x65\163\x2f\x74\151\x63\153\x65\164\163\x2f\x72\x65\x71\165\145\163\x74\x65\x72\x73\x5f\x6d"); goto tilCG; MI8za: ViTNW: goto x2eLe; u1pIP: echo json_encode(["\164\157\x74\141\x6c" => 0, "\144\141\x74\x61" => [], "\x65\162\x72\x6f\x72\x73" => langJS("\150\164\x74\160\x63\x6f\144\145\x2e\x6d\163\x67\x5f\64\x30\x33")]); goto qMYYq; FdpZg: $request = $request_temp; goto vWvTE; aP7i_: $this->load->model("\x73\x65\x72\x76\x69\143\145\163\57\x74\x69\143\x6b\x65\x74\163\57\x72\x65\161\165\x65\163\x74\145\162\x73\137\x6d"); goto lDCj9; iAbef: y6vJj: goto EBr7x; sf1f3: $wf4x_alltickets = false; goto s2M5B; rAQ2I: array_push($listbu, $userid); goto aguAd; lDCj9: $requesters_name = []; goto r2t8D; LyeS0: $requesters = $this->requesters_m->db_alloptions([], ["\x6f\162\x5f\x77\150\x65\x72\145" => $or_where]); goto sN5KC; uRk3c: MAete: goto etmg0; Q1R1D: $select = array_merge($tempSelect, $selectField); goto JzIXl; miHEW: PeS2z: goto zjdib; dBeAW: $request_temp->skip = $request->skip; goto woY6L; RXhr8: if ($assigned2me) { goto g2nHG; } goto WAcg2; yQZGZ: if (!(property_exists($request, "\x77\146\64\170\137\164\151\x63\153\x65\164\x73\x70\162\157\143\145\163\x73\151\x6e\x67") && $request->wf4x_ticketsprocessing === true)) { goto UV04m; } goto revIs; cnOvv: $this->load->model("\163\145\164\x74\151\156\x67\x73\57\143\x6f\156\x66\151\x67\x74\151\143\153\145\x74\x73\57\x63\157\x6e\146\x69\147\143\x61\x74\145\147\x6f\x72\x79\x74\151\143\x6b\x65\164\x5f\155"); goto Dkmk0; WnMdo: YrH5L: goto Bxcu2; H6hr3: echo json_encode(["\164\x6f\x74\x61\x6c" => 0, "\144\141\x74\x61" => []]); goto s1Yu7; xq41w: if (!isset($request->wf4x_alltickets)) { goto PdtFI; } goto xbAD0; Qup3Q: Eif7g: goto YPMbu; uLEKf: iyQT0: goto x3uzg; pyIP2: $listSLAOver = $this->mongodatasourceresult->initFilterWithSub("\157\162", [$this->mongodatasourceresult->initFilter("\163\154\x61\56\162\145\x73\x70\157\x6e\x73\145\137\x73\157\x6c\x76\x65\x64\164\x69\x6d\145", "\x69\163\x65\x6d\x70\164\x79", true), $this->mongodatasourceresult->initFilter("\x73\x6c\141\56\162\145\163\x70\157\x6e\x73\145\137\x73\x6f\x6c\x76\145\144\164\x69\x6d\145\56\x73\x6f\154\166\x65\144\x74\x69\x6d\145\x5f\162\x65\163\x75\154\x74", "\145\161", "\146\141\151\x6c")]); goto dRV09; LwYtD: $filter_fieldstatus = json_decode(json_encode($filter_fieldstatus), true); goto XG5U6; V2_MM: if (is_numeric($request->startdate) && is_numeric($request->enddate) && !empty($request->searchtext)) { goto OCXuS; } goto yjtPN; Op9AD: rBUtS: goto ojQ0e; Tx74y: w53R7: goto BjsN8; tQ150: goto uyDh6; goto ocHMM; sWc_r: $oldTake = $request->take ?? 10; goto sP3Hm; etmg0: goto iyQT0; goto YVbIk; dRV09: $this->mongodatasourceresult->addFilterRequest($listSLAOver, $request); goto p0nDg; mtMH1: $filter_fieldstatus = new stdClass(); goto yV4qw; Qa_iJ: $owner = $this->data["\151\x73\117\x77\156\145\x72"]; goto xq41w; Pwui6: oQxB7: goto FdpZg; VPTch: goto ugjd8; goto rIJqX; hO6nr: poa0z: goto G50xK; Fa0TW: c4svu: goto lg5re; acOIO: Amhh1: goto HYNFO; VxPvu: unset($request->take); goto I9hcE; i0J17: foreach ($dataShared as $idc) { $listCategory[] = $idc["\137\151\x64"]; zYs6W: } goto kmbaT; NXstZ: MRJ7s: goto EA0HN; VScbs: } public function getcomments($idticket) { try { goto VLXJb; USUwE: if (is_array($ticket) && count($ticket) > 0 && array_key_exists("\x63\162\x65\141\164\x65\x64", $ticket)) { goto iQt13; } goto c351m; GstVM: ZHgeJ: goto DtRl6; mlhC_: goto plm_w; goto bu7RB; d4pX6: $this->tickets_comments_m->setCollection($collectionComments); goto k9SHg; SmjjC: $collectionModel = new CollectionModel($this->data["\x70\x62\x78\137\x63\165\163\164\x6f\x6d\145\162\x5f\143\157\x64\x65"], DBMAIN, false, ["\164\151\155\x65\172\x6f\156\x65" => $this->sessionData["\x74\151\155\145\172\157\x6e\145"]]); goto kL9r9; ed8fI: $this->load->library("\164\x69\143\153\x65\x74\x73\137\154\x69\x62\162\x61\162\x79"); goto ftUhJ; dim8U: $hasFilterParent = false; goto D3q4_; VLXJb: header("\x43\x6f\156\164\145\156\x74\x2d\124\171\160\x65\72\40\x61\160\160\154\151\143\141\x74\x69\x6f\x6e\x2f\x6a\x73\x6f\156"); goto Wtlw4; Y6v0a: $result = $this->tickets_comments_m->db_kendogrid_read($request); goto nvwNW; c9F2y: $this->load->model("\163\145\x72\x76\x69\143\x65\x73\x2f\164\x69\143\x6b\x65\x74\x73\x2f\x74\x69\x63\x6b\x65\164\163\x5f\155"); goto ed8fI; ftUhJ: $this->tickets_library->db_setcollection($idticket); goto Ln2Ov; rOQGW: echo json_encode($result); goto s8nXj; Vlie4: if (!$this->mongo_db->isValidObjectID($idticket)) { goto Frlt0; } goto c9F2y; GZIQT: INXZM: goto rOQGW; tNN1M: Frlt0: goto ciBtm; BJurV: g1moZ: goto USUwE; k9SHg: if ($hasFilterParent) { goto vMC2l; } goto VLBnL; Eyipk: $filterno_ticketprimary = false; goto Vlie4; vhSZC: if (!($permission["\x73\x74\164"] === false)) { goto ZHgeJ; } goto uQVPx; s8nXj: plm_w: goto tNN1M; DtRl6: $this->load->model("\163\x65\x72\x76\x69\x63\145\x73\x2f\164\151\143\x6b\x65\x74\163\x2f\x74\151\143\153\x65\x74\x73\137\143\x6f\x6d\155\x65\156\x74\163\x5f\155"); goto SmjjC; nvwNW: foreach ($result["\144\141\x74\x61"] as &$item) { goto uiJtl; E264b: $item["\165\x73\145\162\163\x75\x62\155\x69\x74\137\x69\x6e\x66\157"] = searchuser($item["\x63\162\x65\141\164\x65\x64"]["\x62\171\x69\x64"]); goto cl3mx; cl3mx: Ps_Yx: goto UCQJG; qzr0K: U9Guf: goto BwHbm; uiJtl: if (!array_key_exists("\165\x70\x6c\157\x61\x64\137\x64\141\164\x61", $item)) { goto U9Guf; } goto GKqQr; mGM68: j45At: goto qzr0K; GKqQr: foreach ($item["\x75\160\x6c\x6f\x61\x64\137\144\141\x74\141"] as &$file) { $file["\146\x69\x6c\145\163\151\172\x65"] = filesize_formatted_samedisk($file["\x66\x69\x6c\x65\163\x69\172\145"]); a4oqy: } goto mGM68; BwHbm: $item["\x74\151\155\x65\164\145\x78\164"] = time_elapsed_string(date("\x59\55\x6d\x2d\144\40\110\x3a\x69\x3a\x73", $item["\x63\162\145\x61\x74\x65\144"]["\x74\151\155\x65"]), false) . "\x2e\40" . langJS("\x74\x69\x6d\x65\56\144\x61\171\163\137\x6f\146\x5f\x77\145\x65\153\56" . strtolower(date("\154", $item["\x63\x72\x65\141\x74\x65\144"]["\x74\x69\155\x65"]))) . "\x2c\x20" . date("\144", $item["\143\x72\x65\x61\x74\145\x64"]["\x74\x69\x6d\145"]) . "\40" . strtolower(langJS("\x74\151\x6d\x65\56\155\157\156\x74\x68\137\157\x66\137\171\145\141\x72\x2e" . strtolower(date("\x46", $item["\143\162\x65\141\x74\145\x64"]["\164\151\155\x65"])))) . "\40" . date("\150\72\x69", $item["\x63\162\145\141\164\x65\144"]["\164\151\155\145"]) . "\x20" . langJS("\164\x69\x6d\x65\56" . date("\101", $item["\143\162\145\141\164\145\144"]["\x74\x69\155\x65"])); goto E264b; UCQJG: } goto GZIQT; D3q4_: foreach ($request->filter->filters as $val) { goto z0lng; NUcCg: if (!(isset($val->filters) && $filterno_ticketprimary)) { goto uKoaU; } goto b8NZS; fyyGR: kYpiS: goto NUcCg; CTIdS: $hasFilterParent = true; goto olnzU; ACGbw: foreach ($val->filters as &$child) { goto tGT9c; ijxEk: if (!in_array($idticket, $child->value)) { goto lursh; } goto k3y1b; an2eb: $child->value = new \MongoDB\BSON\ObjectID($child->value); goto MA2ZR; C5FIJ: $filterno_ticketprimary = true; goto a3WvV; E_sqS: $listticket_id = $child->value; goto ijxEk; YxOEw: if (!(isset($child->field) && $child->field === "\137\151\144")) { goto D3ELN; } goto an2eb; a3WvV: SQwzJ: goto bfbe5; JEe4O: if (empty($listticket_id)) { goto kMG7Y; } goto egIO0; bfbe5: kMG7Y: goto J4VoW; HpN_X: EevgE: goto iTgCO; N2wft: $listticket_filter = isset($listticket_filter["\144\141\x74\x61"]) ? $listticket_filter["\144\x61\164\141"] : []; goto LmS_Q; egIO0: $filter = new stdClass(); goto hS3pV; V1sXk: lursh: goto JEe4O; k3y1b: $listticket_id[] = $ticket["\x74\x69\143\153\x65\x74\x5f\151\x64"]; goto V1sXk; J4VoW: if (!in_array($idticket, $child->value)) { goto hzG6l; } goto L3Pti; XgsZg: $listticket_filter = $this->tickets_library->db_read($filter, ["\x5f\x69\144", "\155\145\162\147\145\x70\162\151\x6d\x61\162\x79", "\x74\x69\x63\153\145\x74\x5f\151\x64"])["\x64\141\164\141"]; goto N2wft; rP36r: hzG6l: goto qEf_a; tGT9c: if (!(isset($child->field) && $child->field === "\x74\151\143\x6b\x65\x74\x5f\143\x6f\x64\145\x5f\163\x6f\165\162\x63\x65")) { goto s3lp6; } goto E_sqS; hS3pV: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\x74\151\x63\153\145\x74\x5f\x69\x64", "\151\156", $listticket_id), $filter); goto XgsZg; LmS_Q: $temp = array_column($listticket_filter, "\155\x65\x72\x67\x65\160\162\x69\x6d\141\162\171"); goto OSKBs; OSKBs: if (!empty($temp)) { goto SQwzJ; } goto C5FIJ; qEf_a: s3lp6: goto YxOEw; MA2ZR: D3ELN: goto HpN_X; L3Pti: $child = $this->mongodatasourceresult->initFilterWithSub("\157\x72", [$this->mongodatasourceresult->initFilter("\x74\151\x63\153\145\164\137\143\x6f\144\x65\x5f\x73\157\165\x72\x63\145", "\x69\x6e", $child->value), $this->mongodatasourceresult->initFilterWithSub("\x61\x6e\x64", [$this->mongodatasourceresult->initFilter("\164\151\x63\x6b\145\x74\137\151\x64", "\145\161", $idticket), $this->mongodatasourceresult->initFilter("\x6d\145\x72\x67\x65", "\x6e\x65\161", true)])]); goto rP36r; iTgCO: } goto y325h; y325h: djOym: goto fyyGR; z0lng: if (!(isset($val->field) && $val->field === "\x70\x61\162\145\156\164\x63\157\155\x6d\145\x6e\x74")) { goto fuqcQ; } goto CTIdS; b8NZS: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\x6d\145\x72\x67\x65\143\x6f\155\155\145\156\164", "\x6e\145", null), $request); goto yvZdC; olnzU: fuqcQ: goto yGwXG; yGwXG: if (!isset($val->filters)) { goto kYpiS; } goto ACGbw; yvZdC: uKoaU: goto vw6Hl; vw6Hl: CL24n: goto ENAWJ; ENAWJ: } goto BJurV; APGKq: exit; goto GstVM; kL9r9: $collectionComments = $collectionModel->NameOneCollection("\164\151\143\153\x65\x74\163\x5f\x63\x6f\x6d\x6d\145\156\x74\x73", $ticket["\x63\162\x65\141\164\x65\x64"]["\x74\x69\x6d\x65"]); goto d4pX6; Wtlw4: $request = json_decode(file_get_contents("\x70\150\160\72\57\57\151\x6e\160\x75\x74")); goto Eyipk; Ln2Ov: $ticket = $this->tickets_m->db_getbyid($idticket, ["\x61\x73\x73\151\147\156\145\145", "\141\163\163\151\147\156\x65\x65\x5f\151\156\x66\157", "\x63\x63\x73", "\x63\162\x65\x61\164\x65\144", "\164\x69\x63\153\145\164\137\x69\x64"]); goto dim8U; uQVPx: echo json_encode(["\144\141\164\141" => [], "\164\x6f\x74\x61\154" => 0, "\145\162\x72\x6f\x72\x73" => "\120\x65\162\x6d\151\x73\x73\x69\x6f\x6e"]); goto APGKq; bu7RB: iQt13: goto EPmHC; EPmHC: $permission = $this->tickets_library->permission("\x63\x68\145\143\153\x70\145\x72\155\151\163\163\x69\x6f\x6e", $ticket); goto vhSZC; c351m: throw new Exception("\x54\151\x63\x6b\x65\164\x20\156\157\x74\40\146\157\165\x6e\x64"); goto mlhC_; fMjhv: vMC2l: goto Y6v0a; VLBnL: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\x68\141\x73\x70\141\162\x65\156\x74", "\x6e\145\161", true), $request); goto fMjhv; ciBtm: } catch (Exception $ex) { http_response_code(500); echo $ex->getMessage() . "\40\x7e\176\40" . $ex->getLine(); } } public function detail($id = '', $avtivetab = "\x6d\x61\x69\x6e\x69\x6e\x66\157") { goto KFac3; DVsyD: return; goto LmkT8; KFac3: if (!(isset($this->wf4xconfig["\x6f\x70\x74\x69\x6f\x6e\163"]["\x6d\x6f\142\x69\154\x65\x61\160\x70"]["\155\x75\163\x74\x5f\163\x65\x74\165\160"]) && $this->wf4xconfig["\157\x70\164\x69\x6f\x6e\x73"]["\155\157\x62\x69\x6c\145\x61\160\x70"]["\155\165\163\164\x5f\x73\x65\x74\165\x70"] === true)) { goto x2_s6; } goto Z7KuB; svg2r: try { goto Speqa; Uvs3g: rGu4j: goto Upcpb; ZB0XU: P5JxF: goto hlCvG; psvOt: $this->load->model("\143\162\x6d\x2f\143\x6f\x6e\164\x61\x63\x74\163\137\x6d"); goto qs2P8; NWB2K: if (empty($ticket["\x62\x70\x6d"]["\x63\165\162\162\145\156\164\x53\x74\x61\x74\x65"]["\x65\x78\164\x65\156\x64\x43\157\x6e\146\x69\x67"]["\163\164\141\164\165\x73"])) { goto CQScU; } goto xiXIL; fqic1: $topic = $this->mailbox_topics_m->db_getbyid($ticket["\163\x6f\165\x72\x63\x65\151\144"]); goto fJSWj; hylli: if ($topic["\x63\x75\x72\x72\145\x6e\x74\165\x73\x65\x72"]["\x61\163\x73\151\x67\x6e\145\x65"] === $this->data["\165\x73\x65\162\x69\x64"]) { goto Uu73D; } goto JZ0XX; F085e: if (!(!empty($ticket["\x73\x6f\165\x72\x63\145\x64\151\163\x70\x6c\x61\x79"]) && $ticket["\x73\x6f\165\162\143\145\144\151\163\x70\154\x61\171"] == "\141\165\164\x6f\155\141\164\151\x6f\156\163")) { goto RvKIq; } goto j0n1B; M891A: if (!array_key_exists("\143\162\145\x61\164\x65\144", $ticket)) { goto W9AWI; } goto T60ja; uudD9: if (is_array($keyObjectAccount)) { goto QX3tZ; } goto Gcm2v; z3UM0: VfZd1: goto CU9_h; pv9BA: if (!(isset($ticket["\163\157\x75\x72\143\145"]) && $ticket["\x73\x6f\165\162\x63\145"] == "\160\x6f\x72\x74" && isset($requesters["\154\x69\x6e\153\x5f\x72\x65\161\165\x65\x73\164\145\x72"]))) { goto Ulbgn; } goto usnsP; vNO79: o1qXx: goto pv9BA; GKRT2: if (!array_key_exists("\164\x65\x78\164", $parent_category)) { goto mqxV8; } goto QiNXQ; kkrFr: $customfieldcontact = new Field(false, $this->data["\160\x62\x78\137\143\165\x73\x74\157\x6d\x65\x72\x5f\x63\157\x64\x65"]); goto v3xLJ; RRpmY: $this->loadViewContentTemplatePanel($this->module . "\144\x65\164\x61\x69\x6c" . $ticket["\164\151\143\153\x65\x74\137\151\144"] . $ticket["\137\151\144"], "\x73\145\162\166\x69\143\145\163\x2f\x74\x69\x63\x6b\145\x74\x73\57\144\145\x74\x61\x69\x6c\x2f\x76\x5f\x6c\145\146\x74", "\163\x65\162\166\x69\143\x65\163\57\x74\151\x63\153\x65\164\x73\x2f\x64\145\164\141\151\154\x2f\x76\x5f\x72\151\x67\x68\x74", $this->data, ["\x62\x65\x66\157\x72\145" => ["\163\145\162\166\x69\x63\x65\x73\57\164\x69\143\153\145\164\163\x2f\144\145\164\x61\151\x6c\x2f\164\153\137\144\x65\164\x61\x69\154", "\x73\x65\162\166\x69\x63\x65\x73\x2f\x6d\141\x69\154\x62\157\x78\57\144\x65\x74\141\151\x6c\x2f\164\153\137\166\x69\145\x77"], "\141\146\x74\145\162" => "\163\x65\x72\x76\151\143\145\x73\x2f\164\x69\143\153\x65\x74\163\x2f\x64\x65\164\x61\151\154\57\166\x5f\x73\143\x72\151\160\x74"]); goto HR3Ls; YG3sa: RvKIq: goto vmqBS; RyBRV: if (!(isset($ticket["\166\151\x61"]["\x74\171\160\145"]) && $ticket["\x76\x69\141"]["\164\x79\160\x65"] == "\164\x69\x63\153\x65\164\x70\165\142\154\151\143\x70\157\162\x74\x61\154")) { goto GWRcP; } goto K5bA1; Mqz0T: if ($type == "\x64\x65\146\141\x75\154\x74") { goto W14Jo; } goto HUoG_; escB_: $requesters = $this->requesters_m->db_getbyid($ticket["\162\145\161\x75\x65\x73\164\x65\x72\x5f\151\x64"]); goto U2jWD; chMoA: if (!(array_key_exists("\x63\141\x74\x65\x67\x6f\162\171", $ticket) && $ticket["\x63\x61\164\145\x67\157\162\171"] !== '')) { goto xqAAf; } goto TNHNs; giIfQ: if (empty($account)) { goto ajZGj; } goto OoxAZ; FF4us: BJ1HY: goto jjvwm; xiXIL: $ticket["\163\164\141\164\165\x73\137\x74\145\170\x74"] = "\x6d\x6f\144\x75\154\x65\x5f\x63\x6f\x6e\x66\x69\147\x70\162\157\143\145\163\163\164\151\143\153\145\x74\56\x73\164\x61\164\165\x73\56" . strtolower($ticket["\x73\164\141\x74\x75\163"]) != langJS("\x6d\x6f\x64\165\154\145\137\x63\157\x6e\146\x69\x67\x70\x72\157\143\x65\163\x73\x74\x69\143\153\x65\x74\x2e\x73\164\141\x74\165\x73\56" . strtolower($ticket["\163\164\141\x74\165\x73"])) ? langJS("\155\x6f\144\165\154\x65\137\143\157\x6e\146\x69\x67\160\162\157\x63\x65\163\163\x74\x69\143\153\x65\164\56\163\x74\x61\x74\x75\x73\56" . strtolower($ticket["\163\x74\x61\164\165\x73"])) : $ticket["\163\164\141\164\x75\x73"]; goto TQ7gH; jQ6_W: n8R3A: goto qx4V_; o5MR5: if ($this->data["\151\x73\x4f\x77\x6e\145\162"]) { goto rSsH_; } goto NgNEQ; kKLa_: if (empty($ticket["\164\x61\147\163"])) { goto LzwAU; } goto ssaTE; JTuon: if (empty($ticket["\x72\x65\x71\x75\145\163\164\x65\x72\137\151\x64"])) { goto EGGBa; } goto Vh_0K; JbLqd: $name = substr($ticket["\x61\x73\x73\151\147\x6e\145\145"], 0, $index); goto CcT5B; EExO3: $this->load->library("\x62\160\155\x5f\154\151\x62\162\141\x72\171"); goto Lh4QO; j8IvG: if (isset($ticket["\143\x72\145\141\x74\145\137\146\162\x6f\x6d"])) { goto oE4UH; } goto F085e; Bdd2E: goto ELYl_; goto dNRUx; G7Jii: KXRvy: goto QNSZX; TtIsF: echo json_encode($ticket); goto pJ7HO; w81yx: $config = $this->configmergeticket_m->db_oneoptions([], ["\167\x68\x65\x72\145" => ["\x73\164\141\164\x75\x73" => "\x6e\x65\x77"]]); goto KX78y; kIIcK: if (!isset($ticket["\141\x73\163\151\147\x6e\145\145"])) { goto rGu4j; } goto rq7GF; w01RG: QB6s9: goto bJCW1; S41ns: $resPhone = []; goto hqVhY; mQvC1: $idworkinghour = substr($configslaticket["\x77\157\162\153\x69\156\x67\x68\x6f\165\162\163"], $index + 1); goto v71Vo; I1Tws: goto dKXeD; goto Kdf3g; is3Bi: foreach ($workinghours["\x72\x61\156\147\x65\x73"][$keyofday] as $keyrange => $configrange) { goto Lg_M9; Jmiqz: goto txwAb; goto Wm_tw; rdBXq: $startcheck = strtotime(date("\x59\55\x6d\x2d\144\40" . $configrange["\x66\162\157\x6d"] . "\72\60\60")); goto CmD9H; uSuj9: goto Vwwcy; goto gbdSB; gbdSB: yoA7l: goto cfNsk; Lg_M9: $endcheck = strtotime(date("\x59\55\155\x2d\144\x20" . $configrange["\164\157"] . "\x3a\60\60")); goto rdBXq; Wm_tw: Vwwcy: goto nARVe; CmD9H: if ($startcheck <= time() && time() <= $endcheck) { goto yoA7l; } goto ajQ04; nARVe: U2b5n: goto PfqdY; ajQ04: $flagWorkingHours = false; goto uSuj9; cfNsk: $flagWorkingHours = true; goto Jmiqz; PfqdY: } goto Rejbr; psS2H: Y0L3r: goto wN1ae; icTiM: if (empty($keyObjectModules_email)) { goto PGCMQ; } goto MY2h3; Xch3Z: lJxfN: goto BMw5z; w4ZfO: $this->load->model("\144\x65\x66\x61\165\x6c\164\57\156\157\x74\151\x66\x69\x63\x61\x74\151\157\156\163\137\155"); goto YB0Hb; jdPY_: $ticket["\164\x61\x67\x73\x5f\163\164\162\x69\156\x67"] = ''; goto HZ1BW; KmY7I: $this->data["\x69\x6e\x77\157\162\153\x69\x6e\x67\x68\x6f\x75\x72"] = $flagWorkingHours; goto otKvG; FuD0N: VAIEU: goto v_x_k; VC9Gc: $account = $this->accounts_m->db_getbyid($ticket["\141\143\x63\x6f\x75\x6e\164\x5f\162\145\x6c\141\164\x65\x64"]); goto giIfQ; C0kKb: if (!isset($topic["\143\x75\162\x72\x65\156\164\165\x73\145\162"])) { goto IXpnN; } goto CisZK; bsRhy: ZGqeJ: goto t3cR9; Mkxjd: $this->load->model("\x73\x65\164\164\151\x6e\147\x73\x2f\147\145\156\145\162\141\x6c\x63\x6f\x6e\146\151\x67\x2f\164\141\147\163\x5f\155"); goto Hihu2; kI50B: k2vuL: goto Sm8NO; rjZnv: $this->configmergeticket_m->db_insert(["\164\x79\x70\145" => $mergetype, "\163\164\141\x74\165\163" => "\x6e\145\167"]); goto rku0M; jB3aO: throw new Exception($this->data["\154\x61\156\x67\x4a\123"]["\x74\x69\x63\153\145\x74\x73\x5f\144\145\164\x61\x69\154\137\x6e\157\x74\x66\x6f\165\x6e\144\137\155\163\147"], 404); goto iWnoM; C501h: $this->load->model("\163\x65\164\164\x69\156\147\x73\57\143\157\x6e\x66\151\147\x74\x69\x63\153\x65\164\x73\57\x63\x6f\x6e\x66\x69\147\163\154\141\164\x69\x63\153\x65\x74\x5f\155"); goto kPLFZ; hqVhY: foreach ($listPhone as $phone) { $resPhone[] = ["\x74\145\x78\x74" => $phone, "\x76\141\x6c\165\145" => $phone]; qxQ6m: } goto OQND1; TqoCv: foreach ($resultPhoneAccount as $valAccount) { goto G8Bci; nSfM9: Ej2dT: goto rK05g; uZ1NP: $listPhoneAccount[] = $valAccount; goto nSfM9; TQEBt: ZFs_B: goto mf6Et; VYKxa: if (!($valAccount !== '')) { goto Ej2dT; } goto uZ1NP; G8Bci: if (is_array($valAccount)) { goto ZQgy1; } goto VYKxa; rK05g: goto W0ppu; goto ESpeB; ESpeB: ZQgy1: goto Dudib; Dudib: $listPhoneAccount = array_merge($listPhoneAccount, $valAccount); goto vp8eT; vp8eT: W0ppu: goto TQEBt; mf6Et: } goto AMw55; otG0C: oE4UH: goto uMHGk; UHHvf: taOfF: goto nNQdg; p8J5f: Z2Il7: goto m2WAH; u4iMq: Vi9a_: goto sznYz; Ir7PN: rSsH_: goto CHlPZ; EYeaw: $customfieldaccount = new Field(false, $this->data["\x70\x62\170\x5f\x63\x75\x73\164\157\155\145\162\137\x63\157\144\x65"]); goto vBfcs; KBuar: $checkPermission = true; goto xI3I2; YoQ9O: $topic["\x6c\151\156\x6b\x43\x52\x4d\x4f\x62\x6a\x65\x63\164"]["\x75\156\154\x69\156\x6b\x6f\142\152\145\x63\164"] = false; goto Xmn5D; UsBxK: IPEt7: goto c5CY3; RNhSf: LfqJu: goto tmLj4; Ry2dk: nE2Gs: goto EvRu1; AkzKU: $pathBPM = @$ticket["\142\160\155"]["\146\x6c\157\167\x43\x44\x4e"]["\160\x61\x74\x68"] . @$ticket["\142\160\155"]["\x66\154\x6f\167\x43\104\116"]["\x6e\x61\x6d\145\x43\104\x4e"]; goto zKzdi; EngQF: $this->leads_library->db_setcollection($requesters["\151\x64\x6d\157\144\x75\x6c\145"]); goto e8l2U; j0n1B: if (!(!empty($ticket["\x61\144\x64\x6f\x6e\120\141\x72\x61\x6d\163"]) && !empty($ticket["\x61\x64\x64\x6f\x6e\120\141\162\141\155\163"]["\x74\x6f\x70\151\143\x5f\x69\x64"]))) { goto uuSSQ; } goto pKR3e; AMw55: bT42a: goto p2NNX; CnODL: foreach ($listPhoneLead as $phonelead) { $resPhone[] = ["\166\141\154\165\x65" => $phonelead, "\x74\x65\x78\164" => $phonelead . "\137" . $lead["\146\x69\x72\x73\x74\x5f\x6e\x61\155\145"], "\x6d\157\144\x75\x6c\145" => "\x6c\x65\141\144\163", "\x6f\142\x6a\145\x63\x74\x69\144" => $requesters["\x69\144\155\157\144\x75\154\x65"]]; emG6r: } goto wU_IF; uMHGk: if (!($ticket["\143\162\145\x61\164\145\x5f\146\x72\x6f\155"] == "\x63\x72\x65\x61\164\145\x5f\x74\151\x63\x6b\x65\164\137\146\162\157\x6d\145\155\141\151\x6c")) { goto d3e79; } goto KA061; VXU_Q: if (!($requesters["\x66\x72\157\x6d\155\x6f\x64\x75\154\145"] == "\x63\157\156\164\x61\x63\164\x73")) { goto o1qXx; } goto psvOt; p3PnK: QX3tZ: goto EMHdC; VF7xl: if (is_array($keyObjectContact)) { goto Pv20y; } goto cQ6q2; m2WAH: goto fiTWv; goto RNhSf; Kdf3g: Pv20y: goto yDEOu; l12ny: $keyUnSeen = array_search($this->data["\165\163\x65\x72\151\144"], $notify["\165\156\163\145\x65\x6e"]); goto V9kaL; ngwa1: JuaW5: goto Znvs1; JVuyd: throw new Exception("\160\145\x72\x6d\x69\x73\x73\151\157\156", 50); goto Qav7M; LrP5O: foreach ($resultPhoneLead as $valLead) { goto zD6e8; Nyn5c: $listPhoneLead[] = $valLead; goto vu7tq; jhqQk: $listPhoneLead = array_merge($listPhoneLead, $valLead); goto rHGcy; F7x3J: if (!($valLead !== '')) { goto lsv5L; } goto Nyn5c; ho3gz: O6J0l: goto jhqQk; JSnW5: goto oj0yU; goto ho3gz; rHGcy: oj0yU: goto y2265; vu7tq: lsv5L: goto JSnW5; y2265: KtT6R: goto pDcxd; zD6e8: if (is_array($valLead)) { goto O6J0l; } goto F7x3J; pDcxd: } goto nqE9P; zJXvR: snNRc: goto kEIDU; iAUnh: $ticket["\141\163\x73\x69\147\x6e\x65\145\x5f\x73\x74\x72\x69\156\x67"] = $distribute["\156\x61\155\x65"] . "\74\151\x6d\x67\x20\163\x72\143\75\42" . base_url("\x70\x75\142\x6c\x69\143\57\151\x6d\147\57\x63\x72\x6d\x2f\x69\143\x6f\156\57\143\x72\155\57\141\165\x74\157\x5f\141\x73\x73\x69\x67\x6e\56\163\x76\x67") . "\42\40\x63\x6c\x61\163\163\75\42\163\x76\147\40\x77\146\146\x2d\151\x63\157\156\55\61\x32\40\164\150\55\x6d\154\x2d\62\x22\x2f\x3e"; goto SFMya; Mzeio: fF7UP: goto vLHvq; iWnoM: CMAhj: goto C501h; TbyQE: LG9IR: goto Hnbd2; o0pp_: $resultPhoneLead = $customfieldlead->getValuesWithObject("\x6c\x65\141\144\x73", $requesters["\151\x64\155\x6f\x64\x75\x6c\145"], array_column($keyObjectLead_phone, "\137\x69\144")); goto LrP5O; HrQBE: if (empty($ticket["\143\143\163"])) { goto nMbIj; } goto k84cQ; g_7XN: $merge_allow = true; goto yT39m; cbZ6n: unset($ticket["\x62\160\x6d"]); goto uQSfd; ArvEG: $year = date("\131"); goto Tddmp; KLuUu: LzwAU: goto Ofa3w; hc69L: foreach ($keyObjectModules_phone as $keyPhone) { goto bq018; ywSnq: if (!($ticket[$name][$idField] !== '')) { goto p21jx; } goto Z9FrK; mz0bN: e__Py: goto W3rs1; W3rs1: Mkebu: goto oCYOd; bq018: $index = strpos($keyPhone["\x61\154\x69\141\163"], "\x2e"); goto Ydgca; Bt4pJ: p21jx: goto SHbYI; vpgtP: GVQGA: goto GXGtb; oCYOd: ZRI4L: goto X6tqW; e7ifN: $name = substr($keyPhone["\x61\154\x69\x61\x73"], 0, $index); goto Mzi1C; Rcl3Z: if (is_array($ticket[$name][$idField])) { goto GVQGA; } goto ywSnq; Z9FrK: $listPhone[] = $ticket[$name][$idField]; goto Bt4pJ; GXGtb: $listPhone = array_merge($listPhone, $ticket[$name][$idField]); goto mz0bN; Ydgca: $idField = substr($keyPhone["\x61\154\151\x61\x73"], $index + 1); goto e7ifN; Mzi1C: if (!isset($ticket[$name][$idField])) { goto Mkebu; } goto Rcl3Z; SHbYI: goto e__Py; goto vpgtP; X6tqW: } goto kZci_; ErR41: IhZPf: goto GLWP5; vBfcs: $keyObjectAccount = $customfieldaccount->getKeysObject(["\x61\x63\x63\157\x75\x6e\x74\x73"], ["\156\x61\x6d\145", "\160\x68\157\x6e\x65", "\145\x6d\141\x69\154"]); goto uudD9; tEFdp: if (!isset($req["\x74\x61\153\145\x4e\x65\167\104\141\x74\x61"])) { goto Vi9a_; } goto mPWOn; NgNEQ: $checkPermission = false; goto wrg45; mY4mo: if (!(!empty($ticket["\155\145\x72\x67\x65\164\x79\160\145"]) || !empty($ticket["\x6d\x65\162\147\145\151\x6e\x66\157"]) || !empty($ticket["\x6d\x65\162\147\145"]))) { goto KaFwY; } goto Xfz33; pJ7HO: DUllC: goto vCEAx; StTh3: $id = substr($ticket["\x6f\167\x6e\x65\162"], $index + 1); goto INUXf; Mm6DZ: $keyObjectLead = $customfieldlead->getKeysObject(["\154\x65\x61\x64\x73"], ["\156\141\x6d\145", "\x70\150\157\x6e\x65", "\x65\155\x61\x69\154"]); goto hq9qt; y1IMj: $flagday = intval(date("\x77", time())); goto Fbk1r; lET7h: goto Kgw0a; goto ywRyy; Tddmp: foreach ($workinghours["\163\160\145\x63\x69\141\154\x64\x61\164\145"] as $spec) { goto H6VuF; GcE27: $endSpecialDay = "\x32\x33\72\65\x39\72\65\71" . $spec["\x64\x61\164\145"] . "\57" . $year; goto ylShe; C3EiA: $endSpecialDay = str_replace("\x2f", "\55", $endSpecialDay); goto jC1k3; BSyvB: $flagWorkingHours = false; goto TqedZ; JsiYh: if (!(time() >= $startSP && time() < $endSP)) { goto IIhQu; } goto BSyvB; ylShe: $startSpecialDay = str_replace("\x2f", "\x2d", $startSpecialDay); goto C3EiA; HHOLe: $endSP = strtotime($endSpecialDay); goto JsiYh; kUWxD: IIhQu: goto wL2Eg; jC1k3: $startSP = strtotime($startSpecialDay); goto HHOLe; wL2Eg: yO_j3: goto nDE5v; TqedZ: goto IPEt7; goto kUWxD; H6VuF: $startSpecialDay = "\x30\60\x3a\60\60\x3a\60\x30" . $spec["\x64\141\x74\145"] . "\57" . $year; goto GcE27; nDE5v: } goto UsBxK; eePhE: $topic["\154\x69\156\153\157\x62\152\145\143\x74"] = $this->getlinkobjectcrm(["\x6d\157\x64\x75\x6c\x65" => $topic["\154\151\x6e\x6b\x5f\x6d\157\x64\165\154\145"], "\151\144" => $topic["\154\x69\x6e\153\x5f\151\x64"]]); goto S4psw; CmFVT: $resultPhoneLead = $customfieldlead->getValuesWithObject("\x6c\145\141\144\163", $requesters["\x69\x64\x6d\157\x64\165\x6c\x65"], array_column($keyObjectLead_phone, "\137\151\x64")); goto E4xZl; hlCvG: PGCMQ: goto T07Uk; F4g0J: $this->data["\x62\160\155\137\151\x73\x45\x6e\x64\x65\144"] = $ticket["\x62\x70\155"]["\x69\x73\105\156\144\x65\x64"]; goto dkpiN; Gcm2v: $keyObjectAccount_phone = $customfieldaccount->getFieldsConfigByType("\x61\143\143\x6f\165\x6e\x74\x73", ["\x70\x68\x6f\156\145"]); goto e_ClA; QiNXQ: $ticket["\x70\x61\162\145\x6e\x74\137\x63\141\x74\x65\147\x6f\x72\x79\137\x6e\141\x6d\145"] = $parent_category["\164\x65\x78\x74"]; goto fijzC; dAc3c: $index = strpos($ticket["\x6f\167\156\145\162"], "\x5f"); goto StTh3; xDjMX: if (!isset($ticket["\143\x63\163"])) { goto LG9IR; } goto HrQBE; u6Ckf: $updated = $this->notifications_m->db_update($notify["\137\x69\144"], ["\163\145\145\x6e" => $notify["\x73\145\x65\156"], "\x75\x6e\163\x65\145\x6e" => $notify["\165\x6e\163\145\x65\x6e"]], ["\165\x73\145\x72\160\145\162\x6d\x69\x73\x73\151\x6f\x6e\155\157\144\x69\146\x79" => false]); goto nMV6a; ndq9y: XM9Rn: goto U2AWQ; GLWP5: $ticket["\x61\x63\143\x6f\165\156\164\162\145\154\x61\x74\145\x64\137\163\164\162\x69\156\x67"] = $account["\143\157\155\160\141\x6e\171\156\x61\155\x65"]; goto hZfbP; v71Vo: $type = substr($configslaticket["\167\157\x72\153\151\156\x67\x68\x6f\x75\x72\163"], 0, $index); goto W_hm7; KKrYa: $info .= "\40\x2d\x20" . $getPublicFieldLeads["\145\x6d\x61\x69\154\143\x75\163\x74\157\155"]; goto zhTos; ePm7L: $topic["\143\x75\162\162\x65\x6e\164\165\x73\x65\x72"]["\x61\x76\x61\164\x61\162"] = isset($user["\141\x76\x61\x74\x61\x72"]) && $user["\141\x76\141\164\x61\162"] !== '' ? CONFIG_URLCDN_V3_1 . $user["\x61\166\x61\164\x61\162"] : ''; goto v_482; yDEOu: $keyObjectContact = isset($keyObjectContact[0]) ? $keyObjectContact[0] : $keyObjectContact; goto szXx3; ECjst: $getPublicFieldLeads = $this->getPublicField($keyObjectLead, $lead); goto xCq8R; UmSZP: $keyObjectModules_phone = $customfield->getFieldsConfigByType($this->module, ["\160\x68\x6f\156\145"]); goto s46W3; ZSuPe: WzvFp: goto z24r3; Fz4Qu: $getPublicField = $this->getPublicField($keyObjectAccount, $account); goto xw00t; vNBhk: foreach ($groups as $group) { goto HE3rK; QcxBF: Hy_eS: goto pSXOn; pSXOn: L8wqt: goto cIV3w; wmsyb: foreach ($group["\146\151\145\x6c\144\x73"] as $field) { goto lIuZd; E25as: kZJTm: goto vX9C9; hQNjt: $city = $this->mongo_db->where(array("\x63\157\144\145" => $valAddress))->getOne("\166\x6e\x6c\x6f\x63\x61\164\151\x6f\156\137\x70\x72\x6f\166\151\x6e\143\x65"); goto kpHVZ; LLY6R: $valAddress = $ticket[$group["\x61\x6c\151\x61\163"]][$field["\141\x6c\151\141\x73"]] ?? ''; goto hQNjt; kpHVZ: $ticket[$group["\x61\x6c\151\141\x73"]][$field["\141\x6c\x69\x61\163"] . "\137\163\x74\x72\151\x6e\x67"] = isset($city["\156\x61\x6d\x65"]) ? $city["\156\141\x6d\145"] : ''; goto E25as; WsvRN: $ticket[$group["\x61\x6c\151\141\163"]][$field["\x61\x6c\x69\x61\x73"] . "\x5f\163\164\162\x69\x6e\x67"] = isset($district["\x6e\141\155\145"]) ? $district["\156\x61\155\145"] : ''; goto LZBsO; p4009: $ticket[$group["\141\x6c\151\141\x73"]][$field["\141\x6c\151\141\x73"] . "\x5f\163\164\162\x69\156\x67"] = isset($ward["\156\141\155\145"]) ? $ward["\156\x61\155\x65"] : ''; goto DzLNT; DzLNT: B7ik_: goto agfzn; nyVbi: ET92s: goto kX8lu; lIuZd: if ($field["\x61\x6c\x69\141\x73"] == "\x63\151\x74\171") { goto DoQAx; } goto Go12U; UHO5j: DoQAx: goto LLY6R; Q736E: if (!($field["\x61\154\x69\x61\163"] == "\x77\x61\162\x64")) { goto B7ik_; } goto R7q1s; LZBsO: BV8NB: goto XQ8o6; Q7Aip: $ward = $this->mongo_db->where(array("\143\x6f\144\145" => $valAddress))->getOne("\x76\156\154\x6f\143\141\x74\151\x6f\x6e\137\143\x6f\x6d\155\x75\156\145"); goto p4009; nuh99: $district = $this->mongo_db->where(array("\x63\x6f\144\145" => $valAddress))->getOne("\166\x6e\x6c\157\x63\x61\164\151\157\x6e\137\144\x69\163\x74\162\151\143\x74"); goto WsvRN; agfzn: goto BV8NB; goto nyVbi; R7q1s: $valAddress = $ticket[$group["\141\154\x69\141\x73"]][$field["\x61\154\x69\x61\x73"]] ?? ''; goto Q7Aip; Go12U: if ($field["\x61\x6c\x69\x61\163"] == "\x64\x69\163\164\162\151\x63\x74") { goto ET92s; } goto Q736E; kX8lu: $valAddress = $ticket[$group["\x61\154\151\141\x73"]][$field["\x61\x6c\x69\x61\163"]] ?? ''; goto nuh99; XQ8o6: goto kZJTm; goto UHO5j; vX9C9: ZDo5n: goto UwqyC; UwqyC: } goto QcxBF; cIV3w: p71_2: goto ZaIMd; HE3rK: if (!($group["\x61\x6c\x69\141\x73"] !== "\142\x61\163\151\x63\151\156\x66\x6f")) { goto L8wqt; } goto wmsyb; ZaIMd: } goto jUflQ; V9kaL: if (!($keyUnSeen !== false)) { goto JKAM2; } goto i9eOK; N28hY: H0Dcd: goto ATssb; MKxjt: $this->mongo_db->switch_db(DBCONF); goto W3kLW; rIUc9: fDyFE: goto mjDTP; Fbk1r: $keyofday = $array_dayofweek[$flagday]; goto hJ0Id; qRiJQ: if ($takeNewData) { goto cC1dR; } goto RRpmY; e9LZd: $ticket = $this->tickets_m->db_oneoptions([], ["\x77\150\145\162\x65" => ["\x5f\x69\x64" => new \MongoDB\BSON\ObjectId($id)]]); goto RyBRV; Znvs1: jXDIJ: goto b2b5X; GFd4d: goto Kgw0a; goto bsRhy; jUflQ: FKrwi: goto nYujI; ReOvZ: $topic["\x6c\151\156\x6b\x6f\x62\x6a\145\143\x74"] = $topic["\x6c\151\x6e\153\x6f\x62\x6a\x65\x63\164"]["\x64\x61\x74\141"]; goto YoQ9O; MY2h3: $resultEmail = $customfield->getValuesWithObject($this->module, $id, array_column($keyObjectModules_email, "\137\151\144")); goto jOWwq; ydB3q: EiB2j: goto vsr0I; mPWOn: $takeNewData = $req["\x74\141\153\145\116\x65\167\104\141\164\141"]; goto u4iMq; sMHp3: $ticket["\141\x73\x73\x69\x67\156\x65\145\137\163\x74\162\151\156\x67"] = langJS("\x6d\x6f\x64\165\154\145\x5f\x72\x75\154\145\144\151\163\164\162\x69\x62\165\x74\145\x73\x2e\x64\x69\163\164\162\151\142\165\164\145\x5f\x64\145\x6c\145\164\145\x64"); goto xkRi1; lVwSI: $this->data["\155\145\x72\x67\x65\137\x61\x6c\x6c\157\167"] = $merge_allow; goto WpBJ7; O2rvo: $ticket["\x61\143\143\157\165\x6e\x74\162\145\154\x61\164\x65\x64\x5f\x73\x74\x72\151\x6e\x67"] .= "\40\x2d\x20" . $getPublicField["\145\155\141\151\154\143\165\x73\x74\157\155"]; goto N28hY; TNHNs: $category = $this->configcategoryticket_m->db_getbyid($ticket["\x63\141\164\x65\x67\x6f\162\x79"], ["\164\x65\x78\164"]); goto IJ8cC; ssaTE: foreach ($ticket["\x74\141\x67\163"] as $tag) { goto FXsgS; FXsgS: if ($this->mongo_db->isValidObjectID($tag)) { goto CPQbd; } goto OBEDz; ckUIm: wBN17: goto G1fx7; PBfH4: rHr0L: goto sjUHV; G6ewM: goto YlI7S; goto KrChc; KrChc: CPQbd: goto qUUCC; sBu8F: goto SGC35; goto ckUIm; c837B: YlI7S: goto PBfH4; qUUCC: $tagFromSetting = $this->tags_m->db_getbyid($tag, ["\156\141\155\145", "\143\157\x6c\x6f\162"]); goto Ghdp1; Ghdp1: if (is_array($tagFromSetting) && count($tagFromSetting) > 0 && array_key_exists("\137\x69\x64", $tagFromSetting)) { goto wBN17; } goto tYAsQ; T6V28: SGC35: goto c837B; tYAsQ: $ticket["\164\141\147\x73\137\x69\156\x66\x6f"][] = ["\156\141\x6d\145" => $tag]; goto sBu8F; G1fx7: $ticket["\164\141\147\163\137\151\156\146\157"][] = $tagFromSetting; goto T6V28; OBEDz: $ticket["\x74\x61\x67\x73\x5f\x69\x6e\146\157"][] = ["\156\x61\x6d\145" => $tag]; goto G6ewM; sjUHV: } goto FqAgO; K4ZdA: $ticket["\x70\x65\162\x6d\x69\163\x73\x69\157\x6e"] = $permission; goto EExO3; exviB: $this->load->library("\x74\151\143\x6b\x65\164\x73\x5f\x6c\x69\x62\x72\x61\162\171"); goto Z1Ax5; v_482: $topic["\x63\165\x72\x72\145\156\164\x75\x73\145\162"]["\x6e\141\x6d\145"] = isset($user["\156\x61\155\x65"]) && $user["\156\x61\155\x65"] !== '' ? $user["\x75\163\x65\162\x6e\x61\155\x65"] . "\55" . $user["\x6e\x61\x6d\145"] : $user["\x75\x73\145\x72\x6e\x61\x6d\145"]; goto GFFCE; EvRu1: dKXeD: goto u3P9u; ZVrik: Qx27B: goto S3che; EGUzj: $this->mongo_db->switch_db(DBCONF); goto vNBhk; pLaJa: YwmGc: goto HeBig; iUeJ0: $bu = $this->businessunit_m->db_oneoptions([], ["\167\150\145\x72\x65" => ["\137\151\144" => new \MongoDB\BSON\ObjectID($topic["\x63\165\162\x72\x65\156\x74\165\x73\145\x72"]["\x61\x73\x73\x69\147\x6e\x65\x65"])]]); goto RC3CS; c5CY3: t4KRS: goto rIUc9; nNQdg: $ticket["\x63\143\x73\x5f\163\x74\162\151\x6e\x67"] = ''; goto xDjMX; tTmGT: if (empty($workinghours)) { goto sKKX5; } goto RbtS4; LKBCm: wOfIM: goto Uvs3g; hRQFT: if (!array_key_exists("\164\145\x78\x74", $category)) { goto JuaW5; } goto zgeaI; INUXf: $name = substr($ticket["\x6f\x77\156\x65\x72"], 0, $index); goto hQtgO; VJkc9: EGGBa: goto pxIsL; UB9lp: goto Kgw0a; goto pLaJa; vwwx_: $customfield = new Field(false, $this->data["\160\142\170\x5f\143\165\163\164\157\x6d\x65\x72\x5f\143\157\144\x65"]); goto UmSZP; zhTos: x9xpv: goto fRqII; c_z5Y: if (!($ticket["\143\x72\145\141\164\x65\144\137\x73\164\x72\151\x6e\147"] === false)) { goto EiB2j; } goto aQq4r; Ge721: goto KwDWT; goto ndq9y; fvoDB: $this->load->model("\143\x72\x6d\57\x6c\145\141\144\x73\137\155"); goto PbmMS; L6oOu: $this->data["\164\157\x70\151\x63"] = $topic; goto auyq6; d6cmY: $mergetype = $config["\x74\x79\x70\x65"]; goto s31Pa; GZSYA: $this->data["\x74\x69\x63\153\x65\164\x46\x6c\x6f\x77\122\157\x61\144"] = $this->bpm_library->getFlowRoad($pathBPM, $ticket["\x62\160\155"]["\x74\x6f\153\145\x6e"]); goto F4g0J; VN9lR: $user = $this->wf4x_users_m->getUserById($topic["\x63\x75\162\162\145\156\x74\x75\x73\145\162"]["\141\x73\163\x69\147\x6e\145\x65"]); goto ePm7L; wCvBx: if (empty($getPublicField["\160\150\x6f\156\145\143\x75\163\x74\x6f\x6d"])) { goto fF7UP; } goto HZXDO; b37WJ: d3e79: goto FuD0N; Hnbd2: $ticket["\x6f\167\x6e\x65\x72\137\x73\x74\162\151\x6e\x67"] = ''; goto Dpimb; Rejbr: txwAb: goto bRO2u; pKR3e: $topic = $this->mailbox_topics_m->db_getbyid($ticket["\141\x64\144\x6f\156\120\141\x72\141\155\x73"]["\x74\157\x70\x69\143\x5f\151\x64"]); goto q_2ch; fslMH: $bpmConfig["\160\x72\x6f\143\x65\163\x73\x5f\x69\156\x5f\144\x62"] = true; goto Wzz3w; RII6i: if (!($permission["\160\x65\x72\x6d\x69\x73\163\x69\157\x6e"] === false)) { goto o9v8z; } goto JVuyd; LV5jC: if (!(isset($datascope["\x6c\151\x73\x74\142\x75"]) && is_array($datascope["\x6c\x69\x73\164\142\165"]))) { goto LtOT1; } goto pgP_3; jFCRR: $ticket["\157\167\x6e\145\x72\137\163\x74\x72\151\x6e\147"] = $bu_username["\x74\145\x78\x74"]; goto LwBwF; xI3I2: Tn6WO: goto vrvy5; HUoG_: $workinghours = $this->mongo_db->where("\x5f\151\144", new \MongoDB\BSON\ObjectId($idworkinghour))->getOne($this->data["\160\142\x78\x5f\143\165\x73\164\x6f\x6d\145\162\137\x63\157\144\x65"] . "\x5f\167\x6f\x72\153\151\x6e\x67\x68\157\165\x72\163"); goto Bdd2E; E4xZl: foreach ($resultPhoneLead as $valLead) { goto ahRT_; YgMuc: PBdTZ: goto x5kN0; At1K4: rZURa: goto YzpJ8; ahRT_: if (is_array($valLead)) { goto RshRE; } goto lru8L; VnqwK: ZcWad: goto YgMuc; YzpJ8: goto ZcWad; goto zKDuO; ax4nl: $listPhoneLead[] = $valLead; goto At1K4; eQ215: $listPhoneLead = array_merge($listPhoneLead, $valLead); goto VnqwK; lru8L: if (!($valLead !== '')) { goto rZURa; } goto ax4nl; zKDuO: RshRE: goto eQ215; x5kN0: } goto NIIBz; N9LT5: $topic["\154\151\x6e\x6b\x43\x52\x4d\117\142\152\x65\x63\164"]["\141\166\141\x74\x61\162"] = $topic["\154\x69\156\153\157\142\152\145\143\x74"]["\x61\166\x61\164\x61\x72"]; goto tsC_l; IJ8cC: if (!is_array($category)) { goto jXDIJ; } goto hRQFT; Ofa3w: UCjbA: goto YCiL8; lHwFz: foreach ($listPhoneLead as $phonelead) { $resPhone[] = ["\166\x61\154\x75\145" => $phonelead, "\x74\145\x78\164" => $phonelead . "\137" . $lead["\146\151\162\163\x74\x5f\x6e\x61\x6d\x65"], "\155\157\144\x75\x6c\x65" => "\x6c\145\x61\144\x73", "\x6f\142\x6a\145\x63\x74\x69\x64" => $requesters["\151\x64\x6d\x6f\x64\165\x6c\x65"]]; ZLLsF: } goto blgO2; q_2ch: uuSSQ: goto YG3sa; pxIsL: $ticket["\x61\x63\x63\x6f\165\156\x74\x72\145\x6c\141\x74\x65\144\x5f\x73\164\x72\x69\x6e\147"] = ''; goto lezLl; Dpimb: if (!isset($ticket["\157\167\x6e\145\x72"])) { goto wqIQN; } goto csaHZ; z24r3: nMbIj: goto TbyQE; QNSZX: foreach ($listPhoneAccount as $phoneaccount) { $resPhone[] = ["\166\x61\x6c\165\145" => $phoneaccount, "\x74\145\170\164" => $phoneaccount . "\x5f" . $account["\x63\157\155\160\x61\x6e\x79\156\x61\155\x65"], "\x6d\x6f\x64\x75\x6c\x65" => "\141\143\x63\x6f\165\156\164\163", "\x6f\x62\x6a\145\143\x74\151\144" => $ticket["\x61\143\143\x6f\x75\x6e\164\x5f\162\x65\154\141\164\x65\144"]]; BZcBA: } goto hSyCn; nMeSl: if (!in_array($topic["\x73\x74\x61\164\145"], ["\x69\x6e\160\x72\157\143\145\x73\x73", "\x63\154\157\x73\145\x64", "\156\145\167"])) { goto QkPgw; } goto TTZp_; SY0_K: if (empty($requesters)) { goto mRW62; } goto m7tfG; tmLj4: $ticket["\163\x74\141\x74\165\x73\137\164\x65\170\x74"] = "\155\157\x64\165\154\x65\137\143\157\x6e\146\x69\x67\x70\162\x6f\x63\145\x73\x73\x74\151\x63\153\145\164\x2e\x73\164\x61\x74\x75\163\x2e" . strtolower($ticket["\x73\x74\141\164\165\x73"]) != langJS("\155\x6f\144\x75\154\x65\x5f\x63\157\156\146\151\x67\x70\x72\157\x63\145\163\x73\x74\151\143\153\145\x74\x2e\x73\x74\x61\x74\x75\x73\56" . strtolower($ticket["\163\164\x61\x74\x75\x73"])) ? langJS("\x6d\x6f\x64\x75\154\x65\x5f\x63\157\x6e\x66\x69\147\x70\162\157\x63\x65\163\x73\164\x69\143\x6b\145\164\x2e\163\164\141\x74\x75\163\x2e" . strtolower($ticket["\x73\164\141\x74\165\x73"])) : $ticket["\163\164\141\164\165\163"]; goto f6Xe4; GMLqq: $notify["\163\x65\x65\x6e"] = array_values(array_unique($notify["\x73\x65\145\x6e"])); goto u6Ckf; sY_8U: $id = substr($ticket["\141\x73\163\151\x67\156\x65\145"], $index + 1); goto JbLqd; wU_IF: wgHfR: goto ECjst; PnEaL: Ulbgn: goto pO6qZ; knzRU: $takeNewData = false; goto tEFdp; otKvG: $this->bpm_library->settingConfig($bpmConfig); goto GZSYA; sznYz: if ($this->mongo_db->isValidObjectID($id)) { goto LLDjx; } goto MeZc2; Bivyb: $this->data["\x63\x68\x65\143\153\x53\164\141\164\x75\163\124\x69\143\153\145\164"] = $this->checkStatusTicket(); goto oeRy6; dU7sY: if (!isset($ticket["\155\x65\x72\x67\145"])) { goto McHEq; } goto PxjiR; phZ7V: $resultPhoneContact = $customfieldcontact->getValuesWithObject("\143\x6f\x6e\164\141\143\x74\163", $requesters["\x69\x64\155\157\144\165\x6c\145"], array_column($keyObjectContact_phone, "\x5f\x69\144")); goto T7obt; DarrI: $array_dayofweek = ["\x73\x75\156\144\x61\171", "\x6d\x6f\156\x64\141\x79", "\164\165\x65\x73\144\141\x79", "\x77\x65\x64\156\145\x73\144\141\x79", "\164\150\x75\162\163\x64\141\x79", "\146\162\151\x64\x61\x79", "\163\141\x74\165\x72\x64\141\x79"]; goto y1IMj; pO6qZ: mRW62: goto aE70M; z7ABN: foreach ($resultPhoneContact as $valContact) { goto nPIl5; u2LKw: $listPhoneContact[] = $valContact; goto bY2To; bY2To: aczVd: goto zgWdt; N9SIT: jvevs: goto mXFxR; ziTVT: IwAQ8: goto XajUP; nPIl5: if (is_array($valContact)) { goto IwAQ8; } goto sfrsQ; zgWdt: goto jvevs; goto ziTVT; sfrsQ: if (!($valContact !== '')) { goto aczVd; } goto u2LKw; XajUP: $listPhoneContact = array_merge($listPhoneContact, $valContact); goto N9SIT; mXFxR: yIj3w: goto ZRc9E; ZRc9E: } goto FF4us; IV1tW: $this->load->model("\x73\145\x74\164\151\x6e\147\163\57\x63\x6f\156\146\151\x67\164\x69\143\x6b\145\164\163\x2f\143\157\x6e\x66\x69\x67\x63\x61\x74\x65\x67\x6f\x72\x79\x74\151\143\153\x65\164\x5f\155"); goto chMoA; x8G8f: O7FXL: goto zJXvR; aY4u9: McHEq: goto MDDtK; v3xLJ: $keyObjectContact = $customfieldcontact->getKeysObject(["\143\157\x6e\x74\x61\143\x74\x73"], ["\156\141\155\x65", "\x70\x68\x6f\156\145", "\x65\155\141\151\154"]); goto VF7xl; UX74p: $keyObjectLead = isset($keyObjectLead[0]) ? $keyObjectLead[0] : $keyObjectLead; goto e7Bbu; MZUr_: if (!isset($topic["\x63\x75\x72\162\145\x6e\x74\165\x73\x65\162"]["\141\x73\x73\151\147\156\145\x65"])) { goto cXXiv; } goto hylli; ZwP8v: $this->data["\x63\x6c\x61\x73\163\160\x61\x6e\145\x6c\154\x65\x66\164"] = "\143\157\156\164\x65\156\x74\55\163\x63\x72\x6f\154\x6c\55\x64\x65\x73\x69\x67\156"; goto MMS0K; Yz8kh: if (!empty($config)) { goto L4GZe; } goto rjZnv; jjvwm: foreach ($listPhoneContact as $phonecontact) { $resPhone[] = ["\x76\141\x6c\x75\145" => $phonecontact, "\x74\x65\x78\x74" => $phonecontact . "\137" . $contact["\146\151\162\x73\164\x5f\156\141\x6d\x65"], "\155\157\144\x75\x6c\145" => "\x63\x6f\x6e\x74\x61\x63\164\x73", "\x6f\x62\x6a\x65\x63\164\x69\x64" => $requesters["\151\x64\155\157\144\x75\x6c\x65"]]; ZJebg: } goto DjnZv; mjDTP: sKKX5: goto obhi3; NyUM2: if ($ticket["\x62\x70\155"]["\143\x75\162\162\145\156\164\x53\164\x61\164\145"] == false) { goto LfqJu; } goto NWB2K; Speqa: $req = json_decode(file_get_contents("\x70\x68\160\x3a\57\x2f\x69\156\160\165\164"), true); goto knzRU; uJ18y: $this->load->model("\x77\146\64\x78\x2f\167\146\64\170\x5f\x75\x73\145\x72\x73\137\155"); goto VN9lR; teJC_: Kgw0a: goto LKBCm; hJ0Id: if (!(array_key_exists($keyofday, $workinghours["\162\x61\156\x67\x65\163"]) && count($workinghours["\162\x61\x6e\x67\x65\163"][$keyofday]) > 0)) { goto lBhSH; } goto is3Bi; yOmAI: $notify = $this->notifications_m->db_oneoptions([], $options); goto oQcGm; qtUes: RgUfH: goto dc8Fx; pGCXq: $this->tickets_library->db_setcollection($id); goto e9LZd; YB0Hb: $options = ["\x77\x68\x65\162\x65" => ["\155\157\144\x75\x6c\x65" => "\x74\x69\143\x6b\x65\x74\163", "\x6f\x70\164\x69\157\156\163\x2e\x74\151\143\x6b\x65\164\137\151\x64" => $ticket["\x5f\151\x64"]], "\x77\x68\145\x72\145\x5f\x69\156" => ["\x75\156\x73\145\x65\156" => [$this->data["\x75\x73\x65\162\151\x64"]]]]; goto yOmAI; e7Bbu: $keyObjectLead_phone = $customfieldlead->getFieldsConfigByType("\x6c\145\141\x64\x73", ["\160\x68\x6f\x6e\x65"]); goto o0pp_; htjfN: $this->accounts_library->db_setcollection($ticket["\x61\x63\x63\x6f\x75\x6e\164\137\162\145\154\141\164\x65\144"]); goto VC9Gc; CHlPZ: $topic["\154\x69\156\153\103\122\115\117\142\152\x65\143\x74"] = ["\165\156\154\151\x6e\153\157\142\x6a\x65\x63\x74" => true, "\154\x69\x6e\x6b\157\x62\x6a\x65\143\164" => false, "\154\157\x61\x64\x69\x6e\147" => false, "\x6e\141\155\x65" => '', "\144\141\x74\141\103\x52\115" => [], "\141\x76\141\x74\x61\x72" => base_url("\160\165\x62\x6c\151\x63\57\151\155\x67\57\160\154\x61\x63\x65\150\157\x6c\x64\x65\x72\163\57\141\x76\x61\164\141\x72\x73\x2f\x61\166\141\164\141\162\167\146\x40\62\x78\56\x70\x6e\147")]; goto Y3wqJ; f6Xe4: fiTWv: goto ow1GS; MZAx1: ajZGj: goto wgOwx; qfJO1: o2LrW: goto qRiJQ; Mhkm1: Cfq0r: goto UX74p; Hihu2: $dataTagsTicket = $this->tags_m->db_alloptions(["\137\x69\x64", "\x6e\x61\x6d\145", "\x6d\157\x64\165\154\x65"], ["\167\x68\x65\x72\145" => ["\x6d\157\x64\165\154\145" => "\164\151\x63\x6b\x65\x74\x73"], "\x77\150\x65\162\145\x5f\x6e\x65" => ["\144\145\x6c\145\x74\145" => 1]]); goto Ffo3H; kdW4Y: $ticket["\160\141\x72\145\156\164\x5f\x63\x61\164\145\147\x6f\x72\171\x5f\156\x61\x6d\145"] = false; goto IV1tW; i9eOK: unset($notify["\x75\156\x73\145\145\x6e"][$keyUnSeen]); goto PmguG; RbtS4: if (!($workinghours["\x74\171\160\x65"] !== "\146\165\x6c\x6c")) { goto fDyFE; } goto DarrI; yT39m: gt4Nz: goto lVwSI; ATssb: ORg4j: goto MZAx1; BIwnv: if (!(is_array($topic) && array_key_exists("\x5f\151\x64", $topic))) { goto snNRc; } goto C0kKb; G5L9J: oAcZ9: goto KBuar; obhi3: KwDWT: goto KmY7I; H8qyl: $listPhoneLead = []; goto CfXo_; QRT8A: $keyObjectAccount_phone = $customfieldaccount->getFieldsConfigByType("\141\x63\x63\x6f\x75\x6e\x74\163", ["\x70\150\157\x6e\145"]); goto DBu3M; nqE9P: h2ehv: goto CnODL; hSyCn: bwttE: goto wCvBx; gE08w: $topic = []; goto VF1NN; Bb8IS: $this->load->library("\x74\x69\x63\153\x65\x74\163\x5f\x6c\151\142\162\x61\162\x79"); goto FgevA; kSfPN: d_5Vz: goto sMHp3; LKG4i: header("\103\157\156\164\x65\x6e\164\55\124\171\160\x65\x3a\x20\141\160\x70\154\151\x63\x61\x74\151\157\156\x2f\x6a\163\x6f\156"); goto Lqywh; Xmn5D: $topic["\154\x69\x6e\153\x43\122\x4d\117\142\x6a\x65\x63\x74"]["\x6c\x69\156\x6b\157\x62\x6a\145\x63\x74"] = true; goto kcSjN; WKnvA: $info .= "\40\x2d\40" . $getPublicFieldContacts["\x65\155\141\151\154\143\x75\163\x74\157\155"]; goto Ry2dk; zgeaI: $ticket["\x63\x61\164\x65\x67\157\162\171\137\x6e\141\x6d\145"] = $category["\164\145\x78\164"]; goto ngwa1; UAL8f: $index = strpos($configslaticket["\x77\157\x72\153\151\156\147\150\157\165\x72\x73"], "\x5f"); goto mQvC1; U2jWD: $info = ''; goto SY0_K; GFFCE: Pio7a: goto lQQ13; PbmMS: $this->load->library("\x6c\x65\141\144\x73\137\154\x69\x62\162\141\x72\171"); goto EngQF; VF1NN: $this->load->model("\x73\145\x72\166\x69\x63\x65\x73\57\155\141\x69\x6c\x62\x6f\170\x2f\x6d\141\x69\154\x62\157\170\x5f\x74\157\160\151\143\x73\137\x6d"); goto j8IvG; W_hm7: $flagWorkingHours = true; goto Mqz0T; udu2B: $topic["\x63\165\x72\162\145\x6e\164\165\x73\145\x72"]["\141\x76\141\x74\x61\162"] = ''; goto lgVoy; o_oEW: lH8Dd: goto WevAB; SQN98: nNEEp: goto S41ns; CGh2N: $info .= "\x20\x2d\40" . $getPublicFieldContacts["\x70\150\157\156\x65\143\165\x73\164\x6f\x6d"]; goto aqZ6D; lgVoy: if ($topic["\x63\165\x72\x72\145\x6e\x74\x75\x73\x65\162"]["\x74\171\x70\145"] === "\x75\163\145\162") { goto RV92a; } goto Zgx1q; Wzz3w: $pathBPM = "\x63\150\x65\143\153\x69\156\147\137\160\x72\x6f\143\145\x73\163\137\144\x62"; goto AeN3A; RC3CS: $topic["\x63\x75\x72\x72\x65\156\164\165\163\x65\x72"]["\156\141\x6d\145"] = $bu["\164\145\170\x74"]; goto Tjncu; HZ1BW: $ticket["\x74\x61\x67\x73\x5f\x69\x6e\146\x6f"] = []; goto v2_cR; Zgx1q: $this->load->model("\160\145\162\155\151\163\163\x69\157\x6e\x2f\142\165\163\x69\156\x65\163\163\x75\x6e\151\x74\137\x6d"); goto iUeJ0; KX78y: $mergetype = "\x64\151\x73\141\142\154\x65\137\164\x69\143\x6b\x65\164\155\x65\162\x67\x65"; goto Yz8kh; nYujI: $this->mongo_db->switch_db(DBMAIN); goto Mkxjd; NU_eY: if ($name == "\x62\x75") { goto L180H; } goto dcCtH; vrvy5: QkPgw: goto bBtu6; kZci_: Ug8hr: goto SQN98; aqZ6D: AOEkb: goto dmh22; fRqII: SnKow: goto qtUes; L3OXG: $this->contacts_library->db_setcollection($requesters["\151\144\155\x6f\144\x75\154\145"]); goto JMx1H; fJSWj: fXX11: goto b37WJ; Xfz33: $this->data["\155\x65\162\147\145\x63\157\155\155\145\x6e\164"] = true; goto AWnKR; V64Sc: $this->load->model("\143\x72\x6d\x2f\x61\x63\143\157\x75\156\x74\163\x5f\155"); goto hwruv; sd91O: LtOT1: goto Wzn19; CdE1h: $ticket["\163\x74\141\164\x75\163\x5f\164\x65\x78\164"] = $ticket["\x62\160\x6d"]["\x63\x75\162\x72\x65\x6e\x74\123\164\141\x74\x65"]["\156\141\x6d\x65"]; goto p8J5f; dc8Fx: UHq20: goto VXU_Q; Zd_Q6: $client = new ClientSend(); goto yfwfA; sbAxH: $ticket["\154\x61\142\145\x6c\164\x79\160\145\x5f\x6c\151\x6e\153"] = langJS("\x6d\x6f\x64\x75\x6c\x65\137\x74\151\x63\x6b\145\x74\163\x2e\154\151\156\x6b\x2e" . $ticket["\154\151\156\x6b\137\x74\x79\160\145"]); goto hPNCI; Cq9bn: GWRcP: goto GjWOs; WevAB: W2lUM: goto LAhQB; hPNCI: XSU7s: goto Mdavr; E7Aad: if (empty($workinghours["\163\160\145\143\151\141\x6c\x64\x61\164\145"])) { goto t4KRS; } goto ArvEG; zKzdi: if (!isset($ticket["\142\x70\x6d"]["\x70\x72\x6f\143\x65\163\163\137\x69\156\137\x64\142"])) { goto az8F1; } goto fslMH; WTjY1: LLDjx: goto pL3eE; xiS3w: if (empty($lead)) { goto RgUfH; } goto H8qyl; eKRLQ: foreach ($this->data["\146\151\145\x6c\144\x41\154\154\124\151\x63\153\x65\x74"] as &$fieldall) { goto qnwSr; NQFaH: $fieldall["\x63\x61\164\145\147\157\162\x79"] = $datagroup["\x63\x61\164\145\x67\157\x72\x79"]; goto vHnDC; qnwSr: $datagroup = $this->fieldgroup_m->db_getbyid($fieldall["\147\162\157\165\160\x66\x69\x65\154\x64"]); goto kw9rl; vHnDC: tr5Ew: goto nnrQK; kw9rl: if (!(isset($datagroup["\x63\141\x74\145\147\x6f\x72\171"]) && !empty($datagroup["\143\141\x74\x65\147\x6f\x72\x79"]))) { goto tr5Ew; } goto NQFaH; nnrQK: Ln7AM: goto uBdid; uBdid: } goto sre2H; U2AWQ: $configslaticket = $this->configslaticket_m->db_getbyid($ticket["\163\x6c\141"]["\x69\144\x73\154\141"]); goto UAL8f; PxjiR: $merge_allow = false; goto aY4u9; N9GiT: $keyObjectContact_phone = $customfieldcontact->getFieldsConfigByType("\x63\x6f\156\164\141\143\x74\x73", ["\x70\x68\x6f\156\145"]); goto phZ7V; oQcGm: if (!isset($notify["\x5f\151\144"])) { goto o2LrW; } goto l12ny; ur_3d: $this->data["\163\x74\171\x6c\145\160\141\156\x65\x6c\154\145\x66\164"] = "\160\141\144\144\x69\x6e\x67\72\40\x35\160\x78\x20\x35\160\x78\40\x30\x70\x78\x3b\x20\157\166\145\x72\146\x6c\x6f\167\55\170\x3a\x20\143\154\151\160\73"; goto fmV8i; bBtu6: wE127: goto Ir7PN; PmguG: $notify["\165\156\163\x65\x65\x6e"] = array_values(array_unique($notify["\x75\156\x73\x65\x65\x6e"])); goto Cl8bE; X92ZH: $keyObjectModules_email = $customfield->getFieldsConfigByType($this->module, ["\145\x6d\141\151\154"]); goto icTiM; Y5_LR: if (empty($config)) { goto AFchO; } goto d6cmY; Mdavr: $this->data["\x74\151\x63\x6b\x65\164"] = $ticket; goto FhjUn; En7VX: $this->data["\151\144\x54\141\142"] = "\x74\x69\x63\x6b\145\164\144\145\x74\x61\151\x6c\x5f" . $ticket["\137\x69\144"]; goto AtThQ; lQPoX: $ticket["\x6c\141\142\x65\x6c\x74\171\160\x65\x5f\154\x69\156\x6b"] = ''; goto Ho1I1; kcSjN: $topic["\x6c\x69\156\x6b\x43\x52\x4d\x4f\x62\x6a\145\143\x74"]["\144\x61\x74\x61\103\x52\115"] = $topic["\x6c\151\x6e\x6b\x6f\x62\x6a\145\x63\x74"]; goto NSZI5; e8l2U: $lead = $this->leads_m->db_getbyid($requesters["\x69\144\155\x6f\x64\165\x6c\x65"]); goto xiS3w; csaHZ: if (!($ticket["\x6f\x77\156\145\162"] !== '')) { goto ijicR; } goto dAc3c; DjnZv: YeYAh: goto I1Tws; nMV6a: if (!$updated["\x73\164\x74"]) { goto Y0L3r; } goto Zd_Q6; b2b5X: xqAAf: goto gMmIo; kDnyv: $checkPermission = true; goto Vz9c0; DdE9M: cXXiv: goto VX766; e_ClA: $resultPhoneAccount = $customfieldaccount->getValuesWithObject("\x61\x63\143\x6f\165\x6e\x74\163", $ticket["\141\143\x63\157\165\x6e\164\137\x72\x65\x6c\141\164\145\144"], array_column($keyObjectAccount_phone, "\137\151\x64")); goto TqoCv; Z9uZg: $index = strpos($ticket["\x61\163\163\151\147\x6e\145\145"], "\x5f"); goto sY_8U; DBu3M: $resultPhoneAccount = $customfieldaccount->getValuesWithObject("\x61\143\x63\157\165\x6e\164\x73", $ticket["\x61\x63\x63\x6f\x75\x6e\x74\137\x72\145\154\141\x74\x65\x64"], array_column($keyObjectAccount_phone, "\x5f\x69\x64")); goto d9Bxa; UAJHt: $ticket["\x63\162\145\x61\164\145\x64\144\x61\164\145\x5f\x73\x74\x72\151\x6e\147"] = date("\144\57\x6d\57\x59", $ticket["\143\x72\x65\x61\x74\145\144"]["\164\x69\155\x65"]); goto BL6LX; f3I6A: $this->data["\146\x69\x65\154\144\117\166\145\162\x76\151\145\x77\x53\157\x72\164"] = $this->returnOverviewSortID(); goto lQPoX; m7tfG: if ($requesters["\x66\x72\x6f\155\155\x6f\x64\165\154\x65"] === "\165\163\145\162\x73") { goto QB6s9; } goto AhOKS; T7obt: foreach ($resultPhoneContact as $valContact) { goto aJ38j; a11FD: goto TWa3Q; goto EdlZG; aJ38j: if (is_array($valContact)) { goto oRvme; } goto WmEvx; WmEvx: if (!($valContact !== '')) { goto dFmPG; } goto wWwEd; yaVyY: vDsSh: goto lUNeF; xTjnm: dFmPG: goto a11FD; D1UVM: TWa3Q: goto yaVyY; wWwEd: $listPhoneContact[] = $valContact; goto xTjnm; FhuBx: $listPhoneContact = array_merge($listPhoneContact, $valContact); goto D1UVM; EdlZG: oRvme: goto FhuBx; lUNeF: } goto Xch3Z; HR3Ls: goto DUllC; goto XHMmC; zjpBj: $resultPhoneContact = $customfieldcontact->getValuesWithObject("\143\157\156\x74\141\143\164\163", $requesters["\x69\x64\x6d\157\144\x75\154\145"], array_column($keyObjectContact_phone, "\137\151\x64")); goto z7ABN; EMHdC: $keyObjectAccount = isset($keyObjectAccount[0]) ? $keyObjectAccount[0] : $keyObjectAccount; goto Fz4Qu; KpSAk: $keyObjectLead_phone = $customfieldlead->getFieldsConfigByType("\x6c\x65\x61\144\x73", ["\x70\x68\157\156\145"]); goto CmFVT; Qav7M: o9v8z: goto K4ZdA; g9ySC: $listPhoneContact = []; goto kkrFr; cnMiY: lsdTy: goto nMeSl; Vh_0K: $this->load->model("\x73\145\x72\166\151\x63\x65\x73\x2f\x74\x69\x63\153\145\x74\163\x2f\162\x65\x71\x75\145\163\x74\145\x72\x73\x5f\x6d"); goto escB_; AWnKR: KaFwY: goto PGtMH; Wzn19: goto KmJSq; goto RGp2l; gzIGM: if (!isset($distribute) || empty($distribute)) { goto d_5Vz; } goto iAUnh; CcT5B: if ($name == "\x75\163\x65\x72") { goto ZGqeJ; } goto NU_eY; AeN3A: az8F1: goto AsYVg; JMx1H: $contact = $this->contacts_m->db_getbyid($requesters["\151\144\x6d\157\144\165\154\x65"]); goto WFunY; ZbTsH: $listEmail = []; goto X92ZH; AHDxo: $this->data["\155\x65\162\x67\x65\143\157\155\x6d\145\x6e\164"] = false; goto mY4mo; u3P9u: KOWD_: goto vNO79; rku0M: L4GZe: goto Y5_LR; usnsP: $ticket["\167\x61\x73\154\151\156\x6b\x65\x64\137\x6f\142\152\x65\143\164"] = true; goto PnEaL; CfXo_: $customfieldlead = new Field(false, $this->data["\x70\x62\170\137\x63\165\x73\164\x6f\155\145\x72\137\143\157\x64\145"]); goto Mm6DZ; whaN5: if (!($requesters["\x66\162\x6f\x6d\155\157\x64\165\x6c\145"] == "\154\x65\x61\x64\x73")) { goto UHq20; } goto fvoDB; cQ6q2: $keyObjectContact_phone = $customfieldcontact->getFieldsConfigByType("\143\157\x6e\164\141\143\x74\163", ["\x70\x68\157\156\145"]); goto zjpBj; hQtgO: if ($name == "\165\x73\145\162") { goto WuWuO; } goto X5XGm; wgOwx: rKAj6: goto UHHvf; pYCBQ: gLpUt: goto UB9lp; BL6LX: $ticket["\x72\145\x71\165\x65\163\164\145\x72\137\163\x74\162\151\156\147"] = ''; goto JTuon; MWqEn: $groups = $this->returnGroupOverview(); goto EGUzj; qx4V_: if (empty($getPublicFieldContacts["\x70\150\157\156\145\x63\165\x73\164\x6f\155"])) { goto AOEkb; } goto CGh2N; Jx4ir: goto SnKow; goto Mhkm1; Tjncu: goto Pio7a; goto vdpsF; dmh22: if (empty($getPublicFieldContacts["\x65\155\141\x69\x6c\x63\165\163\164\157\x6d"])) { goto nE2Gs; } goto WKnvA; E70TY: if (!isset($ticket["\x62\160\x6d"]) || !isset($ticket["\142\x70\155"]["\x63\165\162\x72\x65\156\x74\123\x74\x61\x74\145"])) { goto k2vuL; } goto NyUM2; s31Pa: AFchO: goto bl31U; NSZI5: $topic["\x6c\151\x6e\153\103\122\115\x4f\x62\152\x65\x63\x74"]["\156\141\155\x65"] = $topic["\154\151\x6e\x6b\157\x62\152\145\143\x74"]["\x6e\x61\x6d\x65"]; goto N9LT5; vLHvq: if (empty($getPublicField["\x65\155\x61\151\154\x63\165\163\164\157\x6d"])) { goto H0Dcd; } goto O2rvo; OoxAZ: $listPhoneAccount = []; goto EYeaw; PqufA: $this->data["\x73\154\141\143\x6f\x6d\x6d\x65\x6e\x74"] = true; goto z3UM0; ya0Uo: throw new Exception(langJS("\x6d\157\x64\165\x6c\145\x5f\x74\x69\143\153\x65\164\x73\x2e\x64\x65\x74\x61\151\x6c\x2e\156\157\164\x66\x6f\165\156\x64\x5f\155\163\147"), 404); goto cwP6j; qllJ4: $info .= "\x20\55\40" . $getPublicFieldLeads["\160\x68\157\x6e\145\x63\x75\x73\x74\157\155"]; goto mEgH8; k84cQ: $i = 0; goto qP_gh; cwP6j: KOl9e: goto FKlv9; WpBJ7: $listPhone = []; goto vwwx_; lQQ13: IXpnN: goto M7vKf; dNRUx: W14Jo: goto MKxjt; S4psw: if (!($topic["\154\151\156\153\157\142\x6a\145\143\x74"] !== false)) { goto yiFk8; } goto ReOvZ; fmV8i: $ticket["\x63\141\x74\145\x67\x6f\162\x79\x5f\x6e\141\155\145"] = false; goto kdW4Y; blgO2: AFLe9: goto Jx4ir; HeBig: $this->load->model("\163\x65\x74\x74\151\x6e\x67\163\57\162\165\x6c\x65\144\x69\163\164\162\x69\x62\x75\164\x65\163\57\x72\x75\x6c\145\144\151\163\164\x72\151\142\165\x74\145\x73\x5f\155"); goto HmrPv; AsYVg: if (!(!is_array($ticket) || is_array($ticket) && !array_key_exists("\x5f\151\144", $ticket) || !empty($ticket["\144\145\154\145\x74\145"]))) { goto CMAhj; } goto jB3aO; kEIDU: gTSSg: goto MWqEn; lezLl: if (!isset($ticket["\x61\x63\143\157\x75\156\164\x5f\162\x65\154\x61\164\145\x64"])) { goto taOfF; } goto fpKI6; cjt9r: ELYl_: goto tTmGT; j_RKv: $checkPermission = true; goto o3Vfs; kQOzz: goto XP0u8; goto w01RG; vsr0I: W9AWI: goto gE08w; Ffo3H: $this->data["\144\x61\x74\x61\x54\141\147\163\124\x69\143\x6b\x65\x74"] = $dataTagsTicket; goto L6oOu; X5XGm: $bu_username = searchbu($id); goto jFCRR; MeZc2: throw new Exception(langJS("\155\157\x64\x75\x6c\x65\x5f\x74\x69\143\153\x65\164\x73\56\144\x65\164\141\151\154\x2e\x6e\x6f\x74\146\x6f\x75\156\x64\x5f\155\x73\x67"), 404); goto WTjY1; ZGL_Y: if (!(!empty($ticket["\x73\154\141\143\157\155\x6d\x65\x6e\x74"]) || !empty($ticket["\155\x65\x72\x67\145\151\x6e\x66\157"]) || !empty($ticket["\x6d\145\x72\x67\145"]))) { goto VfZd1; } goto PqufA; CU9_h: $this->data["\141\x76\x74\151\x76\145\164\x61\x62"] = $avtivetab; goto w4ZfO; AhOKS: $info = $requesters["\156\141\x6d\145"]; goto kQOzz; GjWOs: if (!(!is_array($ticket) || is_array($ticket) && !array_key_exists("\137\151\144", $ticket) || !empty($ticket["\x64\145\154\145\164\145"]))) { goto KOl9e; } goto ya0Uo; Z1Ax5: $permission = $this->tickets_library->permission("\143\x68\x65\143\153\160\x65\x72\155\x69\x73\x73\x69\157\x6e", $ticket); goto RII6i; bJCW1: $info = !empty($requesters["\x6e\141\x6d\145"]) ? $requesters["\x6e\x61\155\x65"] : $requesters["\165\163\x65\x72\156\x61\155\x65"]; goto olKZW; FqAgO: UTbJ0: goto KLuUu; rq7GF: if (!($ticket["\x61\163\163\x69\147\x6e\x65\145"] !== '')) { goto wOfIM; } goto Z9uZg; Vz9c0: goto wE127; goto cnMiY; jOWwq: foreach ($resultEmail as $val) { goto QW1_4; UqV2R: $listEmail = array_merge($listEmail, $val); goto QCde1; QCde1: lEzt6: goto WRkxq; eugy_: $listEmail[] = $val; goto neAb5; neAb5: wmjUs: goto neL0B; qBYz8: if (!($val !== '')) { goto wmjUs; } goto eugy_; WRkxq: C4vfP: goto Hwnn3; QW1_4: if (is_array($val)) { goto Daf6X; } goto qBYz8; PUFLc: Daf6X: goto UqV2R; neL0B: goto lEzt6; goto PUFLc; Hwnn3: } goto ZB0XU; olKZW: XP0u8: goto whaN5; hq9qt: if (is_array($keyObjectLead)) { goto Cfq0r; } goto KpSAk; HIehI: wqIQN: goto jdPY_; E_Roj: YR6Wl: goto sd91O; fpKI6: if (!($ticket["\141\143\143\157\x75\156\164\x5f\x72\145\154\x61\x74\145\x64"] !== '')) { goto rKAj6; } goto V64Sc; Y3wqJ: if (!keyExistsArray(["\x6c\151\x6e\x6b\x5f\155\157\144\165\154\145", "\x6c\151\x6e\x6b\137\151\144"], $topic)) { goto O7FXL; } goto eePhE; qP_gh: foreach ($ticket["\x63\143\163"] as $ccs) { goto qutqv; jxXoL: $id = substr($ccs, $index + 1); goto I9D0n; YuWZF: $ticket["\x63\x63\x73\137\163\164\162\151\156\x67"] = $ticket["\143\x63\x73\x5f\x73\164\162\151\x6e\147"] . $bu_username["\164\145\170\x74"]; goto ecUNQ; I9D0n: $name = substr($ccs, 0, $index); goto BkCbY; tOc4P: if ($name == "\165\x73\145\x72") { goto MFHuR; } goto qZWid; D7fcl: BwWO0: goto zd58C; uDd0L: goto BwWO0; goto XDryE; akSF6: if (!isset($bu_username["\x74\x65\x78\x74"])) { goto MNqhO; } goto YuWZF; cLXD9: Hnv2L: goto D7fcl; qZWid: $bu_username = searchbu($id); goto CoTzH; PeQBm: if ($name == "\x75\163\145\x72") { goto SqRV0; } goto w3bSw; ecUNQ: MNqhO: goto NSz6L; XDryE: SGqJb: goto tOc4P; NSz6L: goto lHP0H; goto ELn7Q; ELn7Q: SqRV0: goto FpL85; AqMGG: goto Hnv2L; goto wAZ4u; u5olV: $ticket["\143\x63\163\x5f\163\x74\x72\151\156\147"] = $ticket["\x63\x63\x73\x5f\163\164\x72\x69\x6e\x67"] . "\74\142\x72\x3e" . searchnameuser($id); goto cLXD9; w3bSw: $bu_username = searchbu($id); goto akSF6; FpL85: $ticket["\x63\143\x73\x5f\163\x74\162\151\156\147"] = $ticket["\x63\x63\x73\x5f\x73\x74\162\151\x6e\x67"] . searchnameuser($id); goto f2arb; CoTzH: $ticket["\143\143\x73\137\x73\164\x72\151\x6e\x67"] = $ticket["\143\143\163\137\163\164\162\x69\156\147"] . "\74\142\162\76" . @$bu_username["\164\x65\x78\164"]; goto AqMGG; qutqv: $index = strpos($ccs, "\137"); goto jxXoL; BkCbY: if ($i > 0) { goto SGqJb; } goto PeQBm; zd58C: $i++; goto u6uHp; u6uHp: tIxXJ: goto N4uYV; wAZ4u: MFHuR: goto u5olV; f2arb: lHP0H: goto uDd0L; N4uYV: } goto ZSuPe; FhjUn: $this->data["\x6c\x69\x73\164\x70\x68\157\x6e\145"] = $resPhone; goto AHDxo; uQSfd: $this->data["\164\x69\164\x6c\x65"] = "\124\151\143\153\x65\x74\40\144\x65\164\141\151\154\x3a\40" . $ticket["\164\151\143\153\x65\164\x5f\151\x64"]; goto En7VX; o3Vfs: KmJSq: goto DdE9M; ig0_x: if (!($ticket["\160\141\x72\x65\x6e\164\x5f\x63\x61\x74\x65\147\157\x72\x79"] !== $ticket["\143\141\x74\145\147\157\x72\171"])) { goto lH8Dd; } goto RfbLB; AtThQ: $this->data["\164\151\x74\154\145\124\x61\142"] = langJS("\x6d\x6f\144\165\x6c\145\x5f\x74\x69\x63\x6b\145\x74\x73\x2e\x64\x65\x74\x61\151\x6c\x74\151\143\153\x65\x74") . "\72\40" . $ticket["\164\151\143\x6b\145\164\137\151\144"]; goto ZwP8v; vdpsF: RV92a: goto uJ18y; dkpiN: $this->data["\142\x70\155\x5f\143\x75\162\x72\x65\156\164\x53\164\141\164\x65"] = @$ticket["\x62\x70\155"]["\x63\x75\162\162\x65\x6e\x74\x53\x74\x61\x74\x65"]; goto E70TY; FH8ib: $ticket["\x6f\167\156\145\162\137\x73\164\x72\x69\x6e\147"] = searchnameuser($id); goto ZVrik; p2NNX: foreach ($listPhoneAccount as $phoneaccount) { $resPhone[] = ["\166\x61\154\x75\x65" => $phoneaccount, "\164\x65\170\164" => $phoneaccount . "\x5f" . $account["\143\x6f\x6d\160\141\x6e\171\x6e\141\155\x65"], "\155\x6f\x64\165\154\x65" => "\141\x63\x63\157\x75\156\164\x73", "\x6f\x62\152\145\143\164\151\x64" => $ticket["\x61\x63\143\157\x75\156\164\137\162\145\154\x61\164\x65\x64"]]; Xrzv7: } goto ErR41; mEgH8: rBNcf: goto ThuNN; mcJwM: WuWuO: goto FH8ib; sre2H: PPG3P: goto cne2A; JZ0XX: $datascope = $this->wf4x_permission->getdatascope($this->module); goto LV5jC; qWfzJ: $this->data["\x63\150\x65\143\x6b\x43\x61\164\145\147\157\162\x79\x54\x69\143\153\x65\x74"] = $this->checkCategoryTicket(); goto Bivyb; d9Bxa: foreach ($resultPhoneAccount as $valAccount) { goto h3hki; b2Ic0: bNTkW: goto LHRYJ; LHRYJ: goto OBfyN; goto kBtct; kBtct: bmoaw: goto p16Y3; ZhXgD: OBfyN: goto mDz3M; h3hki: if (is_array($valAccount)) { goto bmoaw; } goto HGq07; HGq07: if (!($valAccount !== '')) { goto bNTkW; } goto V6NTv; p16Y3: $listPhoneAccount = array_merge($listPhoneAccount, $valAccount); goto ZhXgD; V6NTv: $listPhoneAccount[] = $valAccount; goto b2Ic0; mDz3M: eJoDi: goto v6LcN; v6LcN: } goto G7Jii; Ne1DH: $bu_username = searchbu($id); goto BhNC5; YCiL8: $ticket["\141\163\x73\x69\x67\x6e\x65\145\x5f\163\x74\162\x69\156\x67"] = ''; goto kIIcK; ow1GS: goto mZpzv; goto kI50B; pgP_3: if (!in_array($topic["\x63\x75\x72\x72\x65\156\164\165\163\x65\x72"]["\141\x73\163\151\147\x6e\x65\145"], $datascope["\154\151\x73\x74\x62\x75"])) { goto YR6Wl; } goto MHndq; OQND1: vHv1R: goto ZbTsH; gMmIo: if (!(array_key_exists("\160\141\x72\x65\x6e\164\x5f\x63\141\x74\x65\x67\157\162\171", $ticket) && $ticket["\160\x61\162\145\x6e\164\137\x63\141\164\145\x67\157\x72\171"] !== '')) { goto W2lUM; } goto ig0_x; FgevA: $this->load->model("\x73\145\164\x74\151\156\x67\163\x2f\x63\x75\x73\x74\157\155\146\x69\x65\x6c\x64\x2f\146\x69\145\154\144\147\162\157\x75\x70\x5f\x6d"); goto pGCXq; K5bA1: $ticket["\x73\x6f\165\x72\x63\x65\x64\151\163\x70\154\141\x79"] = "\160\x6f\162\x74"; goto Cq9bn; WFunY: if (!(is_array($contact) && isset($contact["\x5f\x69\144"]))) { goto KOWD_; } goto g9ySC; LIb2d: $ticket["\x61\x73\x73\x69\x67\156\x65\x65\x5f\x73\164\x72\x69\156\x67"] = $bu_username["\164\145\x78\x74"]; goto pYCBQ; bl31U: $merge_allow = true; goto dU7sY; iBzrB: mZpzv: goto cbZ6n; tsC_l: yiFk8: goto x8G8f; s46W3: if (empty($keyObjectModules_phone)) { goto nNEEp; } goto hc69L; DDPTz: $this->load->model("\163\145\x72\x76\151\143\x65\x73\x2f\x74\x69\x63\x6b\x65\164\163\x2f\x74\x69\x63\x6b\x65\x74\x73\137\x6d"); goto Bb8IS; Cl8bE: $notify["\163\x65\x65\x6e"][] = $this->data["\x75\x73\x65\x72\151\x64"]; goto GMLqq; LAhQB: $ticket["\x63\x72\145\141\x74\145\144\x74\x69\x6d\145\x5f\163\164\x72\x69\156\147"] = date("\x48\72\151\72\x73", $ticket["\143\162\x65\x61\x74\145\x64"]["\164\151\x6d\145"]); goto UAJHt; wN1ae: JKAM2: goto qfJO1; szXx3: $getPublicFieldContacts = $this->getPublicField($keyObjectContact, $contact); goto N9GiT; SFMya: goto WPeot; goto kSfPN; m3tR7: CQScU: goto fpQFq; fpQFq: $ticket["\x73\x74\141\164\165\163"] = $ticket["\x62\160\x6d"]["\x63\165\x72\162\x65\156\164\123\x74\x61\164\145"]["\x6e\x61\x6d\145"]; goto CdE1h; xkRi1: WPeot: goto teJC_; Sm8NO: $ticket["\163\164\x61\x74\165\x73\x5f\164\145\170\x74"] = "\x6d\157\144\165\154\x65\x5f\143\x6f\156\146\151\147\160\x72\157\143\145\x73\x73\x74\151\143\153\145\x74\56\x73\x74\141\164\x75\x73\x2e" . strtolower($ticket["\163\164\141\x74\165\163"]) != langJS("\155\157\x64\x75\154\x65\137\x63\157\x6e\x66\151\147\160\x72\x6f\x63\x65\163\x73\x74\151\143\153\145\164\x2e\163\x74\141\164\165\163\x2e" . strtolower($ticket["\163\x74\141\164\x75\163"])) ? langJS("\x6d\x6f\x64\x75\x6c\x65\137\143\x6f\x6e\146\151\x67\160\162\x6f\x63\x65\163\x73\164\x69\143\x6b\145\164\56\x73\x74\141\x74\165\163\x2e" . strtolower($ticket["\163\164\x61\164\165\163"])) : $ticket["\x73\x74\141\164\x75\x73"]; goto iBzrB; RfbLB: $parent_category = $this->configcategoryticket_m->db_getbyid($ticket["\160\x61\x72\145\156\x74\137\143\x61\164\x65\147\x6f\162\171"], ["\x74\x65\170\164"]); goto GKRT2; BhNC5: if (!isset($bu_username["\x74\x65\x78\x74"])) { goto gLpUt; } goto LIb2d; MDDtK: if (!(isset($ticket["\x6d\145\x72\147\x65\164\x79\160\x65"]) && isset($ticket["\x6d\145\x72\x67\x65\160\162\151\x6d\141\162\171"]) && $ticket["\x6d\145\x72\x67\x65\164\171\160\x65"] === $mergetype && $ticket["\155\x65\x72\x67\145\x70\162\151\155\141\x72\171"] === true)) { goto gt4Nz; } goto g_7XN; kPLFZ: if (isset($ticket["\x73\x6c\x61"])) { goto XM9Rn; } goto TUamE; PGtMH: $this->data["\163\x6c\x61\x63\157\x6d\x6d\x65\x6e\x74"] = false; goto ZGL_Y; pL3eE: $this->load->model("\x73\145\x74\x74\151\x6e\x67\x73\57\x67\x65\156\x65\162\141\x6c\x63\157\156\x66\x69\147\57\x74\141\x67\163\x5f\x6d"); goto DDPTz; M7vKf: $topic["\x73\x74\x61\164\145"] = isset($topic["\163\x74\141\164\145"]) ? $topic["\163\x74\141\164\145"] : "\x6e\x65\167"; goto o5MR5; FKlv9: $this->load->model("\163\145\164\x74\151\x6e\x67\x73\x2f\143\157\156\x66\x69\147\164\x69\143\153\x65\x74\163\x2f\143\x6f\156\x66\x69\x67\x6d\x65\x72\x67\145\x74\151\143\x6b\x65\x74\x5f\x6d"); goto w81yx; ThuNN: if (empty($getPublicFieldLeads["\x65\155\x61\x69\x6c\x63\165\163\x74\x6f\x6d"])) { goto x9xpv; } goto KKrYa; TTZp_: if ($topic["\163\164\141\x74\x65"] === "\156\145\167") { goto oAcZ9; } goto MZUr_; v_x_k: if (empty($topic)) { goto gTSSg; } goto BIwnv; T60ja: $ticket["\143\x72\145\141\164\x65\144\137\x73\164\162\x69\x6e\147"] = searchnameuser($ticket["\143\162\x65\x61\x74\145\x64"]["\142\171\151\x64"]); goto c_z5Y; T07Uk: $this->data["\x6c\x69\x73\x74\x65\x6d\x61\x69\154"] = $listEmail; goto exviB; yfwfA: $client->toUser($this->data["\160\142\170\x5f\x63\165\163\164\x6f\x6d\145\x72\137\x63\157\144\x65"], $this->data["\165\163\145\x72\x6e\x61\x6d\145"], "\116\157\x74\x69\x66\x69\x63\x61\x74\x69\x6f\156\163\137\x73\145\145\156\x54\151\x63\153\x65\164\x73", ["\151\x64" => $notify["\x5f\x69\144"]]); goto psS2H; xCq8R: if (empty($getPublicFieldLeads["\x70\150\x6f\156\x65\143\x75\x73\164\157\155"])) { goto rBNcf; } goto qllJ4; Lqywh: $ticket["\144\165\145\x64\x61\x74\x65\x5f\163\x74\162\x69\x6e\147"] = $ticket["\144\x75\145\x64\141\164\x65"] > 0 ? date("\144\x2d\155\55\x59\x20\x48\x3a\151\x3a\163", $ticket["\x64\x75\145\x64\141\164\x65"]) : ''; goto TtIsF; HmrPv: $distribute = $this->ruledistributes_m->db_getbyid($id); goto gzIGM; vmqBS: goto VAIEU; goto otG0C; S3che: ijicR: goto HIehI; oeRy6: $this->data["\x63\150\145\143\153\111\x44\x54\151\143\x6b\x65\x74"] = $this->checkIDTicket(); goto f3I6A; fijzC: mqxV8: goto o_oEW; aE70M: $ticket["\x72\145\161\165\145\x73\164\145\x72\137\163\164\x72\151\x6e\x67"] = $info; goto VJkc9; hZfbP: goto ORg4j; goto p3PnK; wrg45: if (isset($topic["\x73\x74\141\164\x65"])) { goto lsdTy; } goto kDnyv; MMS0K: $this->data["\163\164\171\154\x65\160\141\x6e\x65\x6c\162\x69\147\x68\164"] = "\160\x61\144\x64\x69\156\x67\72\x20\x30\x3b"; goto ur_3d; RGp2l: Uu73D: goto j_RKv; W3kLW: $workinghours = $this->mongo_db->where("\x5f\x69\144", new \MongoDB\BSON\ObjectId($idworkinghour))->getOne("\167\x6f\x72\x6b\x69\156\x67\x68\x6f\165\162\x73\x5f\144\x65\x66\x61\x75\154\x74"); goto cjt9r; Lh4QO: $bpmConfig = ["\x73\x61\x76\145\x48\x61\163\150\104\x42" => true, "\155\157\x64\x75\154\x65" => "\x74\151\143\x6b\x65\164", "\x74\151\x63\153\x65\164\104\x61\x74\x61" => ["\151\144\164\151\143\153\145\164" => $ticket["\x5f\151\144"], "\164\151\x63\x6b\145\x74\x5f\x69\x64" => $ticket["\164\x69\143\153\x65\164\x5f\151\x64"], "\143\x72\x65\141\164\x65\x64\x74\151\155\145" => $ticket["\x63\162\145\x61\x74\x65\144"]["\164\x69\155\x65"]]]; goto AkzKU; KA061: if (!($ticket["\x73\x6f\165\x72\x63\145\151\x64"] !== '')) { goto fXX11; } goto fqic1; cne2A: $this->data["\146\x69\145\x6c\x64\x4f\x76\145\162\166\151\145\167"] = $this->returnGroupOverview(); goto qWfzJ; auyq6: $this->data["\x66\151\x65\154\x64\x41\154\154\124\151\x63\153\145\164"] = $customfield->getAllFieldByModule("\164\x69\143\153\x65\164\x73", []); goto eKRLQ; Upcpb: $ticket["\143\162\x65\141\x74\145\144\x5f\163\x74\162\x69\156\147"] = ''; goto M891A; aQq4r: $ticket["\143\x72\x65\141\x74\x65\x64\137\163\164\162\x69\x6e\147"] = $ticket["\143\162\x65\x61\x74\145\x64"]["\x62\171\151\x64"]; goto ydB3q; BMw5z: foreach ($listPhoneContact as $phonecontact) { $resPhone[] = ["\x76\141\154\x75\145" => $phonecontact, "\164\x65\x78\164" => $phonecontact . "\x5f" . $contact["\146\151\x72\x73\164\137\x6e\x61\x6d\145"], "\x6d\x6f\144\x75\x6c\145" => "\143\x6f\x6e\164\x61\x63\164\x73", "\x6f\x62\x6a\145\143\x74\x69\144" => $requesters["\151\x64\155\x6f\144\x75\x6c\x65"]]; Y91RH: } goto jQ6_W; dcCtH: if ($name == "\141\165\x74\157") { goto YwmGc; } goto GFd4d; CisZK: $topic["\143\x75\162\162\x65\x6e\x74\165\163\145\162"]["\x6e\x61\x6d\x65"] = ''; goto udu2B; v2_cR: if (!isset($ticket["\164\x61\147\163"])) { goto UCjbA; } goto kKLa_; NIIBz: TuzxK: goto lHwFz; TUamE: $flagWorkingHours = false; goto Ge721; hwruv: $this->load->library("\x61\x63\x63\x6f\x75\156\164\163\137\154\x69\142\x72\x61\162\x79"); goto htjfN; HZXDO: $ticket["\141\143\143\157\165\x6e\164\x72\145\x6c\141\x74\145\x64\x5f\163\x74\162\x69\156\x67"] .= "\40\55\40" . $getPublicField["\160\x68\x6f\x6e\x65\x63\165\163\164\157\155"]; goto Mzeio; VX766: goto Tn6WO; goto G5L9J; Ho1I1: if (!isset($ticket["\x6c\x69\156\x6b\x5f\x74\171\x70\145"])) { goto XSU7s; } goto sbAxH; XHMmC: cC1dR: goto LKG4i; ywRyy: L180H: goto Ne1DH; t3cR9: $ticket["\x61\163\x73\x69\x67\x6e\x65\145\137\163\x74\x72\x69\x6e\x67"] = searchnameuser($id); goto lET7h; LwBwF: goto Qx27B; goto mcJwM; MHndq: $checkPermission = true; goto E_Roj; bRO2u: lBhSH: goto E7Aad; xw00t: $ticket["\x61\143\x63\x6f\x75\156\x74\162\x65\x6c\x61\164\x65\x64\x5f\163\164\x72\151\x6e\x67"] = $account["\x63\157\x6d\160\141\156\x79\x6e\x61\155\x65"]; goto QRT8A; qs2P8: $this->load->library("\143\x6f\156\164\x61\x63\164\x73\x5f\x6c\x69\142\x72\x61\x72\171"); goto L3OXG; TQ7gH: goto Z2Il7; goto m3tR7; vCEAx: } catch (Exception $ex) { goto zsDou; WIS81: jTXOz: goto oOg9B; oOg9B: Ang2y: goto Y13ZS; zsDou: switch ($ex->getCode()) { case 50: $this->loadView("\145\162\162\x6f\162\x2f\x63\x75\x73\164\x6f\x6d", array_merge($this->data, ["\x74\151\x74\x6c\x65" => "\x54\151\143\153\145\x74\x20\x50\145\162\x6d\x69\x73\x73\x69\x6f\156", "\x74\151\x74\x6c\145\x54\x61\x62" => langJS("\x6d\x6f\144\165\154\145\137\x74\x69\x63\x6b\145\x74\163\56\x64\145\x74\141\x69\154\x74\x69\143\x6b\x65\164") . "\72\40" . $id, "\164\x69\164\x6c\145\x45\x72\162" => langJS("\x76\x61\x6c\151\144\x61\164\x65\x5f\162\145\x73\x70\157\x6e\x73\145\x2e\171\x6f\x75\162\x75\163\x65\x72\141\x63\143\x6f\x75\x6e\164"), "\155\145\163\163\x61\147\145" => langJS("\155\x6f\x64\165\x6c\145\137\x74\151\x63\153\x65\x74\163\x2e\x6d\x73\x67\x5f\x6e\x6f\164\150\141\166\145\160\145\x72\155\x69\x73\x73\x69\x6f\156")])); goto Ang2y; case 404: $this->loadView("\x65\162\162\157\x72\x2f\64\60\x34", array_merge($this->data, ["\164\x69\164\154\x65" => "\x45\x72\x72\157\x72\40\x54\x69\143\x6b\145\164", "\x74\x69\x74\154\145\x54\141\x62" => langJS("\155\157\x64\165\154\145\137\164\x69\x63\153\145\164\163\x2e\144\x65\164\x61\151\x6c\164\151\x63\x6b\x65\164") . "\x3a\x20" . $id, "\x6d\145\163\x73\141\x67\145" => $ex->getMessage()])); goto Ang2y; default: $this->loadView("\145\162\x72\157\x72\x2f\x35\60\x30", array_merge($this->data, ["\x74\x69\x74\154\145" => "\x45\x72\x72\x6f\162\40\x54\151\143\x6b\x65\164", "\x74\x69\x74\x6c\145\x54\141\x62" => langJS("\x6d\x6f\x64\x75\154\x65\x5f\164\151\143\x6b\x65\164\163\56\144\x65\164\x61\x69\x6c\164\x69\x63\x6b\x65\164") . "\72\40" . $id, "\x6d\145\163\163\x61\147\145" => $ex->getMessage()])); goto Ang2y; } goto WIS81; Y13ZS: } goto Qhs12; LmkT8: KAhs0: goto Y56uX; Z7KuB: if (!($this->_detectBrowserMobileRoutingSetupPage() === true)) { goto KAhs0; } goto roYiQ; roYiQ: $this->loadView("\145\x72\162\157\x72\x2f\x63\x75\163\164\157\x6d", array_merge($this->data, ["\164\151\x74\x6c\x65" => "\x4d\157\x62\x69\x6c\145\40\101\x70\160\40\x52\145\161\165\151\162\x65\x64", "\x74\151\164\154\145\124\x61\142" => '', "\164\x69\x74\x6c\x65\105\x72\x72" => "\131\157\x75\x20\x6d\165\x73\x74\40\x75\x73\145\x20\155\x6f\142\151\x6c\x65\x20\x61\x70\x70\40\x66\x6f\x72\40\x74\x68\x69\163\x20\x66\165\156\143\164\151\157\156", "\155\x65\x73\x73\x61\147\x65" => "\x54\150\141\156\153\x73\x20\171\x6f\x75\x21"])); goto DVsyD; Y56uX: x2_s6: goto svg2r; Qhs12: } public function readfile($idticket) { goto Q23HX; xMPZU: goto E3DVv; goto irsbV; A0Bvs: if ($this->mongo_db->isValidObjectID($idticket)) { goto JVbGw; } goto CL6DU; irsbV: JVbGw: goto n92c0; V2JG7: $collectionModel = new CollectionModel($this->data["\x70\x62\170\x5f\143\165\x73\x74\x6f\155\145\x72\x5f\x63\157\x64\x65"], DBMAIN, false, ["\x74\x69\x6d\x65\172\x6f\x6e\145" => $this->sessionData["\164\x69\x6d\x65\172\x6f\x6e\145"]]); goto iP16u; pfedT: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\164\151\x63\x6b\x65\164\x5f\151\x64", "\145\161", $idticket), $request); goto zgAAE; nIsyY: $this->tickets_upload_files_m->setCollection($collectionUpFiles); goto pfedT; RCTMi: foreach ($result["\x64\141\164\x61"] as &$log) { goto KhjjB; eGIP9: eSVfQ: goto MFppk; Wvbko: $log["\143\162\x65\141\164\x65\x64\x5f\165\x73\x65\162\156\x61\x6d\x65"] = searchnameuser($log["\143\162\x65\x61\x74\145\144"]["\x62\171\x69\144"]); goto U0vpm; U0vpm: if (!($log["\x63\x72\x65\x61\164\145\144\137\165\163\145\x72\156\x61\155\145"] === false)) { goto ovSvP; } goto ik5d2; ik5d2: $log["\143\162\x65\x61\164\145\144\x5f\165\163\145\162\x6e\x61\155\x65"] = $log["\x63\x72\x65\x61\x74\x65\x64"]["\x62\x79\x69\x64"]; goto C90ov; MFppk: ORrGa: goto LKCBM; KhjjB: $log["\143\x72\145\x61\164\145\x64\x5f\165\163\145\162\156\x61\155\145"] = ''; goto YPiqv; C90ov: ovSvP: goto eGIP9; YPiqv: if (!array_key_exists("\x63\x72\145\x61\x74\x65\x64", $log)) { goto eSVfQ; } goto Wvbko; LKCBM: } goto xVn04; Rm53P: $this->load->model("\163\x65\162\x76\151\x63\145\163\x2f\x74\151\x63\x6b\x65\164\x73\x2f\164\x69\143\153\145\164\x73\137\x75\160\x6c\x6f\141\x64\x5f\146\x69\154\145\x73\137\155"); goto V2JG7; ca3k_: goto FuiYY; goto UfmYR; IdwXO: if (is_array($ticket) && count($ticket) > 0 && array_key_exists("\143\162\145\x61\164\145\x64", $ticket)) { goto Q6emj; } goto LdXLl; iP16u: $collectionUpFiles = $collectionModel->NameOneCollection("\x74\x69\143\153\145\164\163\137\x75\x70\x6c\157\141\144\137\146\x69\154\145\163", $ticket["\143\162\x65\141\x74\145\x64"]["\x74\x69\155\x65"]); goto nIsyY; Q23HX: header("\x43\157\x6e\164\145\x6e\164\x2d\x54\x79\x70\145\72\40\141\160\160\154\x69\x63\141\x74\x69\157\156\x2f\x6a\x73\157\156"); goto A0Bvs; n92c0: $request = json_decode(file_get_contents("\x70\x68\160\x3a\57\57\151\x6e\x70\165\x74")); goto clzS1; xVn04: Rn2Tl: goto iZuGB; j3kFg: FuiYY: goto HbbMM; c1N8s: $this->tickets_library->db_setcollection($idticket); goto slVSV; zgAAE: $result = $this->tickets_upload_files_m->db_kendogrid_read($request); goto RCTMi; fxppv: $this->load->library("\x74\x69\x63\153\145\164\x73\137\x6c\151\x62\x72\x61\162\171"); goto c1N8s; HbbMM: E3DVv: goto EUAvQ; clzS1: $this->load->model("\x73\145\162\x76\x69\x63\x65\163\57\x74\151\143\x6b\x65\x74\163\57\x74\x69\x63\153\145\164\x73\x5f\x6d"); goto fxppv; LdXLl: echo json_encode(["\x64\x61\164\141" => [], "\x74\x6f\164\x61\x6c" => [], "\145\162\x72\157\162\x73" => "\x54\x69\143\x6b\145\164\40\156\x6f\164\x20\x66\x6f\x75\x6e\x64"]); goto ca3k_; slVSV: $ticket = $this->tickets_m->db_getbyid($idticket, ["\x63\162\145\x61\164\x65\x64"]); goto IdwXO; UfmYR: Q6emj: goto Rm53P; iZuGB: echo json_encode($result); goto j3kFg; CL6DU: echo json_encode(["\x64\x61\x74\141" => [], "\x74\157\x74\x61\154" => [], "\145\162\162\x6f\162\163" => "\x4f\x62\152\x65\x63\x74\40\167\x72\x6f\x6e\x67"]); goto xMPZU; EUAvQ: } public function addfile($idticket) { try { goto qhEne; ym2bL: if (!($uploadmultifiles["\163\x74\x61\164\x75\x73"] === true && array_key_exists("\144\x61\x74\141", $uploadmultifiles))) { goto cUs9P; } goto ptTU2; lLP5k: wZ3DL: goto XDl0y; xS9Wv: if (count($ticket) > 0 && array_key_exists("\x63\x72\145\x61\x74\145\x64", $ticket)) { goto HKlP5; } goto e7AJT; CGyEV: $uploadmultifiles = $this->wf_cdn->uploadmultifiles($this->module . "\x2f" . @$ticket["\x63\144\156\137\160\x72\x65\x70\141\x72\145"] . "\57" . $idticket . "\57\x75\160\x6c\x6f\x61\144", "\146\x69\x6c\x65\163"); goto ym2bL; nN_AY: d_bkn: goto KBBts; RpflE: goto wn6Zo; goto Ym_10; XDl0y: $this->load->library("\142\x70\155\137\x6c\151\142\162\141\162\171"); goto XpxY0; gFebu: $ticket = $this->tickets_m->db_getbyid($idticket, ["\143\144\x6e\x5f\x70\x72\145\x70\141\162\145", "\164\151\x63\153\x65\x74\137\x69\144", "\x61\x73\x73\151\x67\x6e\x65\145\x5f\x68\x69\x73\164\157\162\171", "\x61\163\163\151\147\x6e\x65\145", "\x61\x73\163\x69\x67\156\145\145\x5f\x69\156\x66\x6f", "\x63\x63\x73", "\x63\162\x65\x61\x74\145\144", "\142\160\x6d"]); goto b5mvn; PUX3V: if (!array_key_exists("\x66\x69\154\145\x73", $_FILES)) { goto d_bkn; } goto bfJdz; qlLN8: jkGFJ: goto CEDcs; W1I2O: $collectionModel = new CollectionModel($this->data["\x70\142\x78\x5f\143\x75\163\x74\157\x6d\x65\x72\x5f\x63\157\x64\145"], DBMAIN, false, ["\164\x69\x6d\x65\x7a\x6f\x6e\145" => $this->sessionData["\164\151\x6d\145\x7a\x6f\x6e\x65"]]); goto nHBGL; W6Uwq: if (!$processEnded["\163\x74\x74"]) { goto xqr0Z; } goto m3BLC; fd6oY: k14mX: goto RE78s; Tg9B0: $this->tickets_upload_files_m->setCollection($this->data["\x70\142\170\x5f\143\x75\x73\x74\x6f\155\145\162\x5f\143\157\144\145"] . "\x5f\164\x69\143\x6b\x65\x74\163\137\165\x70\154\157\x61\x64\x5f\146\151\154\145\163\137" . date("\x59", $ticket["\x63\162\x65\141\164\145\x64"]["\164\x69\x6d\x65"])); goto o7BwN; k0_RQ: $dataCreated = []; goto PUX3V; cepFC: cUs9P: goto nN_AY; Nsf2b: exit; goto YGr2m; z8z01: if (!($permission["\163\164\x74"] === false)) { goto wZ3DL; } goto HcLmC; elexn: wn6Zo: goto WVP4k; kt4N0: $this->load->model("\x73\145\x72\166\x69\143\145\163\57\164\x69\143\153\145\164\x73\57\x74\151\x63\x6b\145\x74\x73\137\x6d"); goto S0Q3N; yDZ2K: $this->tickets_timeline_m->setCollection($collectionTimeline); goto AnpX3; YGr2m: KSwXN: goto elexn; o7BwN: foreach ($dataCreated["\x75\160\x6c\x6f\141\144\137\x64\x61\164\x61"] as $index => $file) { goto tN5WW; TW479: $this->tickets_upload_files_m->db_insert(array_merge($file, ["\164\151\143\x6b\x65\x74\137\x69\x64" => $idticket, "\x66\162\x6f\x6d" => "\x6d\x61\x6e\165\141\x6c"])); goto r181C; r181C: TdY7W: goto N44NP; tN5WW: $file["\x6e\141\155\x65\x52\x65\141\x6c\x34\163\x65\x61\162\143\150"] = toStringNoUTF8($file["\156\x61\155\x65\122\145\141\x6c"]); goto TW479; N44NP: } goto fuUiF; OPwdm: goto KSwXN; goto fd6oY; xoVT3: echo json_encode(["\163\x74\x74" => true]); goto Nsf2b; AnpX3: $this->tickets_timeline_m->db_insert(["\164\151\x63\x6b\x65\164\x5f\x69\144" => $idticket, "\x74\171\x70\145" => "\141\x64\144\146\151\x6c\145", "\154\157\x67\x43\150\141\156\x67\145" => $dataCreated["\x75\x70\154\x6f\x61\x64\x5f\x64\x61\164\x61"], "\x63\x72\145\x61\164\x65\x64" => ["\142\171\151\144" => $this->data["\x75\x73\145\162\151\x64"], "\x74\151\x6d\x65" => time()]], ["\165\163\145\162\160\145\162\x6d\151\x73\163\151\x6f\156\x6d\x6f\x64\151\146\x79" => false]); goto NdNL7; CEDcs: $this->bpm_library->settingConfig($bpmConfig); goto Oq6ti; K6YMV: $bpmConfig["\160\162\x6f\143\145\163\x73\137\151\156\x5f\x64\x62"] = true; goto H9W3c; bfJdz: $this->load->library("\167\146\x5f\143\x64\x6e"); goto CGyEV; Vgc3c: exit; goto VP3Vm; xbX9I: $pathBPM = @$ticket["\142\x70\155"]["\x66\x6c\x6f\x77\103\104\x4e"]["\160\x61\x74\150"] . @$ticket["\142\x70\x6d"]["\146\154\157\167\103\104\x4e"]["\x6e\141\x6d\145\x43\104\116"]; goto Q3PPO; ZXYPv: xqr0Z: goto xS9Wv; NdNL7: $this->load->model("\x73\x65\162\166\151\143\x65\163\57\164\151\x63\x6b\x65\164\x73\x2f\x74\151\x63\153\x65\164\163\137\x75\x70\154\x6f\141\144\137\146\151\x6c\x65\163\x5f\x6d"); goto Tg9B0; nHBGL: $collectionTimeline = $collectionModel->NameOneCollection("\164\151\x63\x6b\x65\164\x73\x5f\x74\x69\155\x65\x6c\x69\156\145", $ticket["\143\162\x65\141\x74\x65\x64"]["\164\x69\x6d\145"]); goto yDZ2K; H9W3c: $pathBPM = "\143\150\145\143\153\151\x6e\147\x5f\x70\162\x6f\143\x65\163\163\x5f\x64\142"; goto qlLN8; S0Q3N: $this->load->library("\x74\151\x63\x6b\x65\x74\x73\x5f\154\151\x62\162\141\x72\171"); goto VSyfN; KBBts: if (array_key_exists("\x75\160\154\157\141\144\x5f\144\141\164\x61", $dataCreated)) { goto k14mX; } goto hP5Ne; XpxY0: $bpmConfig = ["\163\x61\166\x65\110\141\163\150\x44\x42" => true, "\155\x6f\x64\x75\x6c\x65" => "\x74\x69\143\153\x65\x74", "\164\x69\x63\153\x65\164\x44\141\x74\x61" => ["\x69\x64\164\x69\143\x6b\x65\164" => $ticket["\137\151\144"], "\x74\151\143\x6b\x65\164\137\151\x64" => $ticket["\164\x69\x63\x6b\145\x74\137\x69\144"], "\143\162\145\141\x74\145\x64\x74\151\x6d\145" => $ticket["\143\162\145\141\164\145\x64"]["\164\x69\x6d\x65"]]]; goto xbX9I; erZbR: exit; goto ZXYPv; hP5Ne: throw new Exception("\x46\x69\x6c\145\40\x6e\157\164\x20\x74\162\x61\x6e\x73\146\145\162"); goto OPwdm; Ym_10: HKlP5: goto k0_RQ; RE78s: $this->load->model("\x73\x65\162\x76\151\143\x65\163\x2f\x74\x69\143\x6b\x65\x74\163\x2f\x74\151\x63\x6b\x65\164\x73\x5f\x74\x69\x6d\145\154\151\156\x65\137\155"); goto W1I2O; m3BLC: echo json_encode(["\x73\x74\164" => false, "\x6d\163\147" => langJS("\x6d\x6f\144\x75\x6c\145\x5f\x63\x6f\156\146\151\147\x70\x72\x6f\x63\145\x73\x73\x74\x69\x63\x6b\145\164\x2e\x77\x6f\162\x6b\146\154\157\167\x5f\x69\163\x65\156\x64\145\x64")]); goto erZbR; Us15N: echo json_encode(["\163\x74\x74" => false, "\155\x73\x67" => langJS("\x6d\x6f\144\165\x6c\145\x5f\164\151\x63\x6b\145\x74\x73\56\x64\x65\164\141\x69\154\56\x6e\x6f\164\146\x6f\x75\156\144\137\x6d\163\147")]); goto Vgc3c; qhEne: if ($this->mongo_db->isValidObjectID($idticket)) { goto gEFt_; } goto Us15N; b5mvn: $permission = $this->tickets_library->permission("\x63\150\145\143\153\x70\x65\x72\x6d\x69\163\x73\151\157\x6e", $ticket); goto z8z01; Oq6ti: $processEnded = $this->bpm_library->checkIsEnded($pathBPM, $ticket["\142\160\155"]["\x74\x6f\x6b\145\156"]); goto W6Uwq; ptTU2: $dataCreated["\165\160\154\157\141\144\137\144\141\x74\x61"] = $uploadmultifiles["\144\141\164\x61"]; goto cepFC; HcLmC: http_response_code(403); goto G4vDR; fuUiF: sUL7I: goto xoVT3; Q3PPO: if (!isset($ticket["\x62\160\x6d"]["\x70\162\x6f\x63\145\163\x73\x5f\151\x6e\137\x64\x62"])) { goto jkGFJ; } goto K6YMV; VP3Vm: gEFt_: goto kt4N0; VSyfN: $this->tickets_library->db_setcollection($idticket); goto gFebu; G4vDR: exit; goto lLP5k; e7AJT: throw new Exception("\x54\151\143\x6b\x65\x74\40\x6e\x6f\x74\40\x66\157\165\x6e\x64"); goto RpflE; WVP4k: } catch (Exception $ex) { http_response_code(500); echo $ex->getMessage() . "\x20\x7e\176\40" . $ex->getLine(); } } public function readlog($idticket) { goto VWciQ; SHzbA: $this->load->model("\163\145\x72\x76\x69\143\x65\163\57\164\151\x63\153\145\164\163\57\164\151\143\153\x65\x74\x73\137\155"); goto bXnFH; WZdP2: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\x74\x69\143\153\x65\164\137\151\x64", "\145\x71", $idticket), $request); goto XTPLU; G4zxP: $this->load->model("\143\x72\x6d\57\x63\157\x6e\164\141\143\x74\x73\x5f\x6d"); goto ARCls; c3Yjf: zLcwm: goto h4eJD; cBuSy: z8dwq: goto OC4lG; weSUk: if (is_array($ticket) && count($ticket) > 0 && array_key_exists("\x63\x72\145\141\164\x65\144", $ticket)) { goto zLcwm; } goto RJQsv; YCRM8: $moduleTags = new ModuleTags(false, $this->data["\160\x62\170\x5f\x63\165\x73\x74\x6f\155\145\x72\x5f\143\x6f\144\145"]); goto DVaIL; Y0Oq5: exit; goto hsAJT; rp0uQ: $customfield = new Field(false, $this->data["\160\142\170\x5f\143\165\x73\164\x6f\155\x65\162\x5f\x63\157\x64\145"], $this->data["\154\141\x6e\x67\165\x61\147\x65"]); goto WRb3h; h4eJD: $this->load->model("\163\x65\x72\166\x69\143\145\x73\x2f\164\151\x63\x6b\145\x74\163\57\164\x69\x63\x6b\x65\x74\163\137\164\151\155\145\154\x69\x6e\145\x5f\x6d"); goto c9c0p; AL6PE: $permission = $this->tickets_library->permission("\x63\150\x65\143\153\x70\x65\162\155\x69\163\x73\151\x6f\x6e", $ticket); goto wj5Rd; kW9IA: $request = json_decode(file_get_contents("\x70\150\x70\x3a\57\x2f\x69\x6e\160\x75\164")); goto SHzbA; y58u2: echo json_encode($result); goto QEWzP; nenLA: $this->tickets_library->db_setcollection($idticket); goto mNG2d; dr36u: http_response_code(403); goto Y0Oq5; mNG2d: $ticket = $this->tickets_m->db_getbyid($idticket, ["\164\151\143\153\x65\x74\x5f\151\x64", "\141\163\163\151\147\x6e\145\145\137\150\x69\163\x74\x6f\162\x79", "\141\163\x73\151\x67\156\x65\x65", "\x61\x73\163\151\147\x6e\x65\145\x5f\x69\156\x66\x6f", "\143\143\163", "\x63\x72\x65\x61\x74\x65\x64"]); goto AL6PE; ENo0Y: echo json_encode(["\x64\141\164\x61" => [], "\164\157\x74\x61\x6c" => [], "\145\x72\162\x6f\x72\x73" => "\117\142\152\145\143\164\x20\x77\x72\x6f\156\147"]); goto tK2kW; VWciQ: header("\x43\157\x6e\164\x65\x6e\164\55\124\171\x70\x65\x3a\40\141\160\160\154\x69\143\x61\164\x69\157\156\57\152\x73\157\156"); goto YTI5T; DVaIL: foreach ($result["\144\141\x74\141"] as &$log) { goto Y2mld; PinxW: KD7EB: goto sPFD6; XIBu4: if (is_array($datatoAccount) && $datatoAccount["\143\x6f\155\x70\141\156\x79\156\141\155\x65"] !== '') { goto bYnPN; } goto Z_nWi; X86TJ: if (empty($log["\x6c\157\x67\x43\x68\x61\x6e\147\145"]["\164\x61\x67\x73"]["\x61\x64\144"])) { goto I57nQ; } goto dMrtZ; pjzQL: if (empty($log["\x6c\157\147\103\150\x61\156\x67\x65"])) { goto OH4Ru; } goto g72gw; abSml: $bu_username = searchbu($id); goto S119H; xhE5n: saw0S: goto KSA0U; X9woF: $log["\143\x72\x65\x61\x74\145\144\x5f\165\163\145\162\x6e\141\155\x65"] = ''; goto Ill5w; m1Tqx: $index = explode("\137", $log["\x74\x69\143\x6b\x65\164"]["\141\163\163\151\x67\x6e\x65\x65"]); goto f2Kfq; HTFif: goto OWcOB; goto uAWG6; iK3Jo: AemFt: goto QHY7F; MbNhI: if (!(isset($log["\x6c\157\147\x43\150\x61\x6e\x67\145"]["\141\143\x63\157\165\156\164\137\x72\x65\154\x61\164\145\144"]["\146\162\157\155"]) && $log["\x6c\x6f\x67\x43\150\x61\156\147\x65"]["\141\143\143\x6f\165\x6e\164\137\x72\x65\154\141\x74\x65\144"]["\164\157"] !== '')) { goto i8rVM; } goto CDszj; zrC8S: $datafrom = $this->requesters_m->db_oneoptions([], ["\x77\x68\145\162\x65" => ["\x5f\x69\144" => new \MongoDB\BSON\ObjectID($log["\154\x6f\x67\103\150\141\x6e\147\x65"]["\162\x65\161\165\x65\163\164\x65\x72\137\x69\144"]["\x66\162\157\x6d"])]]); goto FwtcF; l2HWT: $template = $this->configtemplateticket_m->db_oneoptions([], ["\x77\x68\145\x72\145" => ["\137\151\144" => new \MongoDB\BSON\ObjectID($log["\164\x69\x63\x6b\x65\164"]["\x74\145\155\x70\154\x61\x74\x65\x5f\151\x64"])]]); goto YEc56; lFb5A: $log["\x66\x6f\x72\155\101\x64\166\141\156\143\145"] = json_decode($log["\146\157\162\155\x41\144\x76\141\x6e\143\145"], true); goto rvj0A; rz9yL: $log["\x6c\157\147\x43\150\x61\156\147\x65"]["\x74\151\x6d\145\x70\x65\156\144\151\156\147\x5f\163\x74\x72\x69\156\x67"] = date("\144\57\x6d\57\x59\x20\110\x3a\x69\x3a\163", $log["\154\157\x67\x43\x68\x61\x6e\147\x65"]["\x74\x69\155\x65\160\145\156\144\x69\x6e\x67"]); goto qShh7; FRXw2: Ghn0M: goto X9woF; UXxtV: fscyF: goto FRXw2; ZKwBS: if (isset($datatoAccount)) { goto btOH6; } goto nvBAK; M16s0: $log["\143\x72\x65\x61\164\x65\144\137\x75\163\145\162\x6e\141\x6d\x65"] = $log["\143\x72\x65\x61\164\x65\144"]["\142\171\x69\144"]; goto uQEKD; w9sOv: goto nP6gj; goto bQDhW; sPFD6: if (empty($log["\x6c\157\147\x43\150\141\x6e\147\145"]["\164\x61\x67\163"]["\164\x6f"])) { goto gfkpZ; } goto gC7TV; zO_KS: $log["\x6c\x6f\147\103\150\x61\156\147\x65"]["\162\145\x71\165\x65\x73\164\x65\x72\x5f\x69\x64"]["\x66\162\x6f\155"] = $datafrom["\165\163\x65\162\x6e\x61\155\x65"]; goto aJX02; eawwJ: btOH6: goto XIBu4; UkTyL: $log["\154\x6f\147\103\150\141\x6e\147\x65"]["\x61\143\x63\157\x75\x6e\164\137\x72\x65\154\141\x74\145\x64"]["\146\x72\157\x6d"] = ''; goto xARP0; CUTS0: if (!(!isset($distribute) || empty($distribute))) { goto AVxvF; } goto QKubp; pX_EU: $log["\x6c\x6f\147\x43\150\x61\x6e\x67\x65"]["\162\145\161\x75\145\x73\164\x65\162\x5f\151\144"]["\x66\162\157\x6d"] = $datafrom["\156\x61\155\x65"]; goto q3RaL; dGes8: OH4Ru: goto ZtegU; Yp2pE: I57nQ: goto wFLxM; q7nem: if (is_array($datafromAccount) && $datafromAccount["\x63\x6f\155\x70\x61\156\x79\156\141\155\145"] !== '') { goto JgL3s; } goto GT9NM; MRluN: $to =& $log["\x6c\157\147\103\150\141\x6e\147\x65"]["\x6f\167\x6e\145\162"]["\164\x6f"]; goto s9g6z; bUedT: QTtaf: goto q7nem; uEzsC: $macro_orginal = $this->macroticket_m->db_getbyid($log["\x6d\141\143\x72\157\x5f\x69\x64"], ["\156\141\x6d\145"]); goto fzvL7; O0PKM: $to = $bu_username["\x74\145\x78\164"]; goto hI7j5; c7ANW: $type = substr($from, 0, $idx); goto cONKF; tf_vL: if (!(!empty($log["\x6c\157\147\103\150\x61\156\147\145"]) && !empty($log["\154\157\x67\x43\x68\141\156\147\x65"]["\164\x61\x67\163"]))) { goto Ghn0M; } goto JhBLM; v_FS5: $to = searchnameuser($id); goto MNFce; dMrtZ: $log["\154\x6f\x67\x43\x68\x61\156\147\145"]["\x74\141\x67\163"]["\141\x64\144"] = $moduleTags->getTagsObject($log["\x6c\157\x67\103\x68\x61\156\x67\x65"]["\164\141\147\163"]["\x61\144\x64"], ["\x74\x79\160\145" => "\156\x61\155\145"]); goto Yp2pE; qyGKB: $datato = $this->requesters_m->db_oneoptions([], ["\x77\150\145\162\x65" => ["\x5f\151\144" => new \MongoDB\BSON\ObjectID($log["\154\x6f\147\103\150\141\x6e\147\145"]["\x72\145\x71\165\145\x73\x74\145\x72\x5f\x69\x64"]["\164\157"])]]); goto GfkG2; g72gw: foreach ($log["\154\x6f\147\x43\150\141\x6e\147\145"] as $alias => $change) { goto kIxOA; Q1ray: oKg7t: goto TylfH; D0eFJ: odzvu: goto DlOkz; zm0ar: $contact = $this->contacts_m->db_getbyid($change["\x74\x6f"]); goto eT3L0; jgTL0: iQP6T: goto ALrY8; XuW7l: if (!empty($contact)) { goto iMGHu; } goto liNRE; GyM1y: x4aj5: goto XuW7l; WFBbt: goto u2HnX; goto vlS_q; tUS8p: if (!empty($lead)) { goto zst5F; } goto Xj1tk; eT3L0: $account = $this->accounts_m->db_getbyid($change["\x74\157"]); goto mLXda; vlS_q: iMGHu: goto x9alF; QxY1H: if (!empty($account)) { goto mSils; } goto KW2Q2; KzXYP: goto FKgmD; goto Zu2dL; YicrV: nBMAt: goto Q6L2G; DlOkz: $log["\x6c\157\x67\x43\150\x61\x6e\147\x65"][$alias]["\x74\157"] = $contact["\x66\151\162\x73\164\x5f\x6e\141\155\145"]; goto L2Qdl; OO3Fv: goto ShjH8; goto D0eFJ; Xj1tk: $log["\x6c\157\147\x43\x68\141\156\x67\x65"][$alias]["\146\162\157\x6d"] = $change["\146\x72\157\x6d"]; goto kkEiN; kkEiN: goto GC9dy; goto KjYYA; i9N0y: $lead = $this->leads_m->db_getbyid($change["\x66\x72\x6f\x6d"]); goto GyM1y; Zu2dL: mSils: goto Y4dXm; x9alF: $log["\x6c\157\147\103\150\x61\156\x67\145"][$alias]["\146\162\x6f\x6d"] = $contact["\146\151\162\163\164\x5f\x6e\141\155\x65"]; goto EMdGS; Ng1No: z7sBR: goto Xi7UX; EMdGS: u2HnX: goto YicrV; uzP0x: f4s0C: goto flxPo; j0Gox: if (gettype($change["\x74\x6f"]) == "\x73\164\x72\151\x6e\147") { goto ADVAl; } goto fVR4K; JyAuG: $contact = $this->contacts_m->db_getbyid($change["\x66\x72\157\155"]); goto wAkRr; PL2Xy: FKgmD: goto OO3Fv; Q6L2G: if (!$this->mongo_db->isValidObjectID($change["\164\x6f"])) { goto cvWbl; } goto j0Gox; mLXda: $lead = $this->leads_m->db_getbyid($change["\164\157"]); goto U_OYl; flxPo: $log["\154\157\x67\103\x68\141\156\x67\145"][$alias]["\164\157"] = $lead["\x66\x69\x72\163\x74\137\156\x61\155\145"]; goto Suwsd; Uwqo2: GC9dy: goto augtp; Q4zI0: o0VNE: goto Ng1No; TylfH: goto x4aj5; goto tzFWh; djb4v: if (!empty($contact)) { goto odzvu; } goto QxY1H; wAkRr: $account = $this->accounts_m->db_getbyid($change["\146\162\x6f\155"]); goto i9N0y; Y4dXm: $log["\154\157\x67\x43\x68\x61\156\147\x65"][$alias]["\164\x6f"] = $account["\143\157\155\x70\141\156\171\156\141\155\145"]; goto PL2Xy; KW2Q2: if (!empty($lead)) { goto f4s0C; } goto Um6K5; VN9KQ: hVjL4: goto WFBbt; sUCQA: foreach ($change["\146\162\x6f\x6d"] as $from) { goto nlV_u; ctiJv: $account = $this->accounts_m->db_getbyid($from); goto oPs2I; oPs2I: $lead = $this->leads_m->db_getbyid($from); goto NnPhK; nlV_u: $contact = $this->contacts_m->db_getbyid($from); goto ctiJv; NnPhK: Br2FP: goto em2sF; em2sF: } goto Q1ray; d9c35: goto aOPCX; goto uzP0x; Ls_6z: goto f8_Ep; goto nkDR2; liNRE: if (!empty($account)) { goto iQP6T; } goto tUS8p; Suwsd: aOPCX: goto KzXYP; kIxOA: if (!(isset($change["\146\162\x6f\155"]) && isset($change["\x74\x6f"]))) { goto o0VNE; } goto p2MqA; U_OYl: f8_Ep: goto djb4v; tzFWh: OJ12H: goto JyAuG; p2MqA: if (!$this->mongo_db->isValidObjectID($change["\x66\162\157\x6d"])) { goto nBMAt; } goto bDY2E; fVR4K: foreach ($change["\164\157"] as $to) { goto JdLvo; t5JiG: $account = $this->accounts_m->db_getbyid($to); goto O2Uns; JdLvo: $contact = $this->contacts_m->db_getbyid($to); goto t5JiG; O2Uns: $lead = $this->leads_m->db_getbyid($to); goto RMqR0; RMqR0: ZLGFm: goto pVKmL; pVKmL: } goto l4gAo; Um6K5: $log["\x6c\x6f\x67\x43\150\x61\x6e\147\x65"][$alias]["\x74\157"] = $change["\x74\157"]; goto d9c35; dC0en: $log["\x6c\157\147\103\150\x61\156\x67\145"][$alias]["\146\x72\x6f\155"] = $lead["\146\151\x72\x73\164\x5f\x6e\141\x6d\x65"]; goto Uwqo2; ALrY8: $log["\x6c\157\x67\103\150\x61\x6e\147\145"][$alias]["\x66\x72\x6f\155"] = $account["\143\157\x6d\160\141\156\171\156\141\x6d\145"]; goto VN9KQ; KjYYA: zst5F: goto dC0en; augtp: goto hVjL4; goto jgTL0; L2Qdl: ShjH8: goto mX1Am; mX1Am: cvWbl: goto Q4zI0; l4gAo: n9KuB: goto Ls_6z; bDY2E: if (gettype($change["\x66\x72\157\x6d"]) == "\x73\164\x72\151\x6e\147") { goto OJ12H; } goto sUCQA; nkDR2: ADVAl: goto zm0ar; Xi7UX: } goto ZR78T; dud_5: huCNd: goto tDi7A; AWH4c: $distribute = $this->ruledistributes_m->db_getbyid($index[1]); goto CUTS0; q3RaL: RM3gc: goto iBKrA; CA4nD: OWcOB: goto Elh1j; ngvmV: $id = substr($from, $idx + 1); goto c7ANW; tbdYM: MEkwg: goto FXZBZ; i04RM: $log["\154\157\147\x43\150\141\x6e\147\145"]["\162\145\x71\x75\145\163\164\145\x72\137\x69\x64"]["\x66\x72\x6f\x6d"] = ''; goto w9sOv; g3ITM: if (!(isset($log["\x66\157\162\155\101\144\166\141\156\143\145"]) && is_string($log["\146\x6f\162\155\x41\x64\166\141\x6e\x63\145"]) && $log["\146\x6f\162\155\101\x64\166\141\x6e\143\145"] !== '')) { goto MVLMB; } goto lFb5A; GT9NM: $log["\154\x6f\x67\103\150\141\156\x67\x65"]["\141\143\143\157\165\156\164\137\162\x65\154\141\164\145\144"]["\x66\162\x6f\155"] = ''; goto mqoMv; xARP0: goto mHJKF; goto bUedT; NsTzi: if (isset($datafromAccount)) { goto QTtaf; } goto UkTyL; Wj7BC: bYnPN: goto SA3W5; WGOvo: goto ECTo9; goto Wj7BC; QulmF: if (!(!isset($distribute) || empty($distribute))) { goto DrtPj; } goto tn2G7; a0PCk: if (!(!empty($log["\154\x6f\147\103\x68\x61\x6e\x67\145"]) && !empty($log["\154\x6f\x67\103\150\141\156\147\145"]["\157\x77\x6e\x65\162"]))) { goto gZu7q; } goto apaBI; ZtegU: GcMFN: goto JGWEq; Er7O2: DrtPj: goto ubsHF; Y2mld: if (!(isset($log["\x74\x69\143\153\x65\x74"]["\x74\145\155\160\154\141\164\x65\x5f\x69\x64"]) && !empty($log["\164\151\143\x6b\145\x74"]["\164\145\155\x70\154\x61\x74\145\137\x69\144"]))) { goto MEkwg; } goto aHLqv; iqXTj: LrtXl: goto raB6B; PSw0k: gZu7q: goto KuMC2; QVzTJ: $from = ''; goto Ms8R1; xDj4T: $from =& $log["\154\x6f\147\103\150\x61\156\x67\145"]["\141\x73\x73\x69\147\156\x65\145"]["\x66\162\x6f\x6d"]; goto NbTH_; mmG_u: $log["\x6d\x61\143\x72\157\137\156\141\x6d\x65"] = $macro_orginal["\x6e\x61\155\x65"]; goto XLkOc; yea72: tdKLN: goto rsF1l; uQEKD: nLPi3: goto xhE5n; CK3RL: goto AemFt; goto iqXTj; Iusp7: AVxvF: goto PiN63; cbRm6: $log["\154\x6f\x67\103\150\x61\x6e\x67\145"]["\164\141\x67\163"]["\x66\x72\x6f\155"] = $moduleTags->getTagsObject($log["\154\157\x67\x43\150\141\x6e\x67\x65"]["\x74\141\x67\163"]["\x66\x72\157\155"], ["\164\x79\x70\x65" => "\156\x61\x6d\x65"]); goto PinxW; IKVxL: ECTo9: goto NVJ1H; OY6SY: C2sZU: goto pX_EU; mWK34: tPXsh: goto g3ITM; Kn64c: $datafromAccount = $this->accounts_m->db_oneoptions([], ["\x77\x68\145\162\145" => ["\x5f\151\144" => new \MongoDB\BSON\ObjectID($log["\154\157\147\103\150\x61\x6e\x67\145"]["\141\143\143\x6f\x75\x6e\164\137\x72\x65\154\141\x74\145\x64"]["\146\162\x6f\155"])], "\x77\150\x65\x72\x65\137\x6e\x65" => ["\144\x65\154\145\x74\x65" => 1]]); goto NsTzi; dHH_k: if (empty($log["\x6c\x6f\147\103\150\x61\x6e\147\x65"]["\x74\141\x67\163"]["\x66\x72\157\155"])) { goto KD7EB; } goto cbRm6; QHY7F: YG8yY: goto cSwka; g9XVg: if (!isset($log["\x6c\157\x67\103\150\141\156\x67\145"]["\x74\151\x6d\145\x70\x65\x6e\144\151\156\147"])) { goto N6fLY; } goto rz9yL; GfkG2: if (isset($datato)) { goto huCNd; } goto uyLKc; FwtcF: if (isset($datafrom)) { goto Rvn5D; } goto i04RM; iBKrA: nP6gj: goto qyGKB; AfqJp: OxBz2: goto a0PCk; aHLqv: $this->load->model("\x73\145\164\x74\x69\156\x67\163\57\143\157\156\146\151\x67\x74\x69\143\153\145\164\163\57\x63\x6f\156\x66\x69\x67\x74\145\155\x70\x6c\141\x74\145\164\x69\143\153\x65\x74\x5f\155"); goto l2HWT; rf5pO: if ($type == "\165\163\145\x72") { goto fD0ob; } goto uNge6; MNFce: mv2UO: goto tplAW; DJjYU: $type = substr($to, 0, $idx); goto rf5pO; gc3XY: $this->load->model("\163\x65\164\164\x69\156\x67\163\x2f\143\157\156\x66\151\x67\x74\x69\143\x6b\145\x74\x73\57\x6d\x61\x63\x72\157\x74\x69\143\x6b\x65\x74\137\x6d"); goto uEzsC; JhBLM: if (empty($log["\x6c\x6f\x67\x43\x68\141\156\x67\145"]["\164\141\147\163"]["\157\162\x69\x67\x69\x6e"])) { goto ZfKE9; } goto bAdke; QJ9jL: $log["\154\157\x67\103\150\x61\156\147\x65"]["\x72\x65\x71\x75\x65\x73\164\x65\x72\137\151\x64"]["\x74\157"] = $datato["\165\x73\145\x72\x6e\141\155\x65"]; goto HTFif; KuMC2: if (!(!empty($log["\154\157\x67\x43\150\141\x6e\x67\145"]) && !empty($log["\x6c\x6f\147\103\x68\141\x6e\147\x65"]["\141\163\163\x69\147\156\x65\x65"]))) { goto DrVJi; } goto xDj4T; NVJ1H: hRGRL: goto kCATW; bJlUg: $this->load->model("\x63\x72\x6d\57\x61\x63\x63\x6f\165\156\164\x73\x5f\155"); goto HNhgD; Ow5NW: x6XrY: goto pjzQL; vHI04: ym4EM: goto Ow5NW; cONKF: if ($type == "\x75\x73\145\162") { goto LrtXl; } goto abSml; wFLxM: if (empty($log["\154\x6f\x67\103\x68\x61\156\x67\x65"]["\164\x61\x67\163"]["\x72\x65\x6d\x6f\x76\145"])) { goto I1rGm; } goto U2giX; P8HvD: $to = ''; goto MqW3t; W7sAE: $index = explode("\x5f", $to); goto J7QTY; YEc56: if (empty($template)) { goto vUnKn; } goto RmOOj; qShh7: N6fLY: goto AfqJp; ZR78T: drll6: goto dGes8; iOP0w: if (!(!isset($distribute) || empty($distribute))) { goto rle9O; } goto YfgBd; Ee0a8: $this->load->model("\163\x65\162\166\x69\x63\145\x73\57\x74\151\143\153\145\x74\x73\x2f\x72\145\161\165\145\163\x74\145\162\163\137\155"); goto zrC8S; YfgBd: $distribute["\156\141\x6d\x65"] = langJS("\155\157\144\x75\x6c\145\x5f\162\165\x6c\x65\x64\151\163\164\x72\151\x62\x75\164\x65\x73\56\144\x69\x73\164\x72\x69\x62\165\x74\145\x5f\144\x65\154\x65\x74\145\144"); goto ssXxQ; s9g6z: $idx = strpos($to, "\x5f"); goto OiU_G; rsF1l: $to =& $log["\x6c\x6f\147\x43\150\141\156\x67\x65"]["\x61\x73\163\x69\147\x6e\x65\x65"]["\164\x6f"]; goto W7sAE; raB6B: $from = searchnameuser($id); goto iK3Jo; D1nBI: if (!($log["\164\x79\x70\145"] == "\141\x66\164\x65\x72\163\x74\x61\x72\164" || $log["\x74\x79\160\x65"] == "\141\143\164\x69\157\156")) { goto x6XrY; } goto eS3Rx; gNSOr: vUnKn: goto tbdYM; PiN63: $to = $distribute["\156\x61\155\145"]; goto h0V9b; SA3W5: $log["\154\157\147\103\x68\141\156\147\x65"]["\x61\143\143\157\165\x6e\x74\137\x72\x65\x6c\141\x74\145\x64"]["\x74\157"] = $datatoAccount["\143\157\x6d\160\x61\156\x79\156\x61\x6d\145"]; goto IKVxL; h0V9b: qBzM3: goto FSBve; goisB: mHJKF: goto zcQyo; QKubp: $distribute["\156\x61\x6d\145"] = langJS("\155\157\144\165\x6c\145\x5f\x72\165\154\x65\144\151\163\164\x72\x69\x62\x75\164\145\x73\56\x64\151\x73\164\162\x69\x62\165\x74\x65\137\144\x65\154\x65\164\x65\x64"); goto Iusp7; auCQJ: $this->load->model("\163\x65\x74\164\151\x6e\x67\163\x2f\162\165\154\x65\144\151\163\x74\162\151\x62\165\x74\145\163\x2f\x72\165\154\x65\x64\151\x73\164\162\151\142\x75\164\x65\163\x5f\x6d"); goto AWH4c; ubsHF: $log["\x74\151\x63\x6b\145\x74"]["\x61\x73\x73\151\147\x6e\145\145"] = $distribute["\x6e\x61\x6d\x65"]; goto TyZ2S; apaBI: if ($log["\x6c\157\147\103\x68\x61\x6e\147\145"]["\x6f\167\x6e\145\162"]["\x66\x72\x6f\x6d"] !== '') { goto zUAFt; } goto QVzTJ; nIzmA: if (!(isset($index[0]) && $index[0] == "\141\165\164\157")) { goto tdKLN; } goto UixOj; LklVi: if (!($log["\x63\162\x65\x61\164\145\144\137\165\x73\x65\162\156\x61\x6d\x65"] === false)) { goto nLPi3; } goto M16s0; KSA0U: if (!($log["\x74\x79\x70\x65"] == "\160\x65\156\144\151\x6e\147\163\x6c\x61")) { goto OxBz2; } goto iQp8U; kCATW: i8rVM: goto vHI04; J7QTY: if (!(isset($index[0]) && $index[0] == "\x61\165\164\x6f")) { goto qBzM3; } goto auCQJ; UixOj: $this->load->model("\x73\x65\164\164\151\x6e\147\x73\57\x72\x75\154\x65\x64\151\163\164\162\x69\142\165\x74\145\163\57\162\x75\154\x65\144\x69\x73\x74\162\x69\142\165\164\145\x73\137\x6d"); goto jAP3i; J6Jxl: if (empty($log["\155\141\x63\x72\x6f\x5f\x69\144"])) { goto fscyF; } goto gc3XY; QBv00: $idx = strpos($from, "\x5f"); goto ngvmV; j9163: $distribute = $this->ruledistributes_m->db_getbyid($index[1]); goto QulmF; U2giX: $log["\154\157\x67\x43\x68\141\156\147\145"]["\164\141\147\x73"]["\x72\x65\x6d\x6f\166\145"] = $moduleTags->getTagsObject($log["\x6c\157\147\x43\150\141\x6e\147\145"]["\164\141\147\163"]["\162\145\x6d\x6f\x76\x65"], ["\x74\171\160\x65" => "\156\141\155\145"]); goto gUTRj; gC7TV: $log["\x6c\157\147\103\150\141\156\147\x65"]["\x74\x61\x67\163"]["\164\157"] = $moduleTags->getTagsObject($log["\x6c\157\x67\103\150\141\156\147\x65"]["\164\141\x67\163"]["\164\x6f"], ["\164\171\x70\x65" => "\156\141\x6d\x65"]); goto YQtu4; RmOOj: $log["\164\151\x63\x6b\x65\164"]["\164\145\155\160\x6c\141\164\145\137\x6e\141\x6d\145"] = $template["\x6e\141\155\x65"]; goto gNSOr; YQtu4: gfkpZ: goto J6Jxl; hI7j5: goto mv2UO; goto TCICZ; jAP3i: $distribute = $this->ruledistributes_m->db_getbyid($index[1]); goto iOP0w; tn2G7: $distribute["\156\x61\155\145"] = langJS("\155\157\144\165\154\x65\x5f\162\165\154\145\x64\x69\x73\x74\162\151\x62\165\x74\145\x73\56\x64\x69\163\x74\x72\x69\142\x75\164\x65\x5f\144\x65\154\x65\x74\x65\x64"); goto Er7O2; Z_nWi: $log["\154\157\x67\103\x68\141\x6e\147\x65"]["\141\143\143\157\165\156\164\137\162\x65\154\141\x74\x65\144"]["\164\157"] = ''; goto WGOvo; WURjv: goto eSYhH; goto dud_5; FXZBZ: if (!(isset($log["\x74\151\143\x6b\145\x74"]["\x61\x73\x73\x69\147\x6e\x65\x65"]) && !empty($log["\164\x69\143\153\x65\x74"]["\x61\x73\163\151\x67\x6e\145\x65"]))) { goto zc17U; } goto m1Tqx; cXHp_: $log["\x6c\x6f\x67\103\150\x61\x6e\x67\x65"]["\162\x65\161\x75\145\x73\x74\145\162\x5f\151\x64"]["\x74\x6f"] = $datato["\156\x61\x6d\145"]; goto CA4nD; Myku1: zc17U: goto JcSuL; NbTH_: $index = explode("\x5f", $from); goto nIzmA; I_t8i: $from = $distribute["\156\x61\x6d\x65"]; goto yea72; f2Kfq: if (!(isset($index[0]) && $index[0] == "\141\165\x74\157")) { goto Ajaof; } goto iDmht; uNge6: $bu_username = searchbu($id); goto O0PKM; bAdke: $log["\x6c\157\147\103\150\141\156\147\145"]["\x74\x61\x67\163"]["\157\162\151\147\x69\156"] = $moduleTags->getTagsObject($log["\154\157\147\103\150\x61\x6e\147\145"]["\x74\x61\x67\x73"]["\x6f\162\x69\x67\151\x6e"], ["\x74\171\160\145" => "\156\x61\155\145"]); goto dQHrr; bQDhW: Rvn5D: goto YSzRn; uyLKc: $log["\154\157\x67\x43\x68\x61\x6e\x67\145"]["\x72\x65\161\x75\x65\163\x74\x65\162\137\x69\x64"]["\x74\157"] = ''; goto WURjv; dQHrr: ZfKE9: goto X86TJ; YSzRn: if (is_array($datafrom) && $datafrom["\x6e\141\155\x65"] !== '') { goto C2sZU; } goto zO_KS; fZ6TW: $log["\x63\x72\x65\x61\x74\145\x64\x5f\x75\x73\145\x72\x6e\x61\155\x65"] = searchnameuser($log["\143\x72\x65\141\164\x65\x64"]["\x62\171\x69\144"]); goto LklVi; TCICZ: fD0ob: goto v_FS5; mqoMv: goto D4Dqa; goto YZvGX; TyZ2S: Ajaof: goto Myku1; VvXGd: zUAFt: goto tKtAO; S119H: $from = $bu_username["\164\x65\170\164"]; goto CK3RL; XLkOc: VYOl6: goto UXxtV; MqW3t: goto u5xgF; goto goj0T; aJX02: goto RM3gc; goto OY6SY; uAWG6: cGR3P: goto cXHp_; goj0T: Oc16s: goto MRluN; Ms8R1: goto YG8yY; goto VvXGd; tRbPp: $log["\x6c\157\147\x43\x68\x61\156\147\145"]["\x61\143\x63\x6f\165\x6e\x74\x5f\x72\145\x6c\x61\164\x65\x64"]["\146\162\157\x6d"] = $datafromAccount["\x63\157\155\160\x61\156\171\x6e\141\x6d\x65"]; goto ZDpEH; ZDpEH: D4Dqa: goto goisB; eS3Rx: if (!(!empty($log["\154\x6f\x67\103\x68\x61\156\147\x65"]) && !empty($log["\154\x6f\147\103\x68\x61\x6e\147\145"]["\162\x65\x71\165\145\163\x74\145\162\x5f\151\x64"]))) { goto Z3MgU; } goto Ee0a8; cSwka: if ($log["\x6c\x6f\x67\x43\x68\141\156\147\145"]["\x6f\167\x6e\x65\x72"]["\164\x6f"] !== '') { goto Oc16s; } goto P8HvD; nvBAK: $log["\154\157\x67\103\150\141\x6e\x67\x65"]["\141\143\143\157\165\x6e\164\x5f\x72\x65\154\141\x74\x65\x64"]["\x74\157"] = ''; goto HbETP; EwLgE: Z3MgU: goto DHsmf; zcQyo: MRPyD: goto MbNhI; HbETP: goto hRGRL; goto eawwJ; gUTRj: I1rGm: goto dHH_k; fzvL7: if (empty($macro_orginal)) { goto VYOl6; } goto mmG_u; iQp8U: $log["\x6c\157\x67\x43\x68\x61\156\x67\145"]["\164\x69\x6d\x65\x70\145\156\144\x69\x6e\147\137\x73\164\x72\151\156\147"] = ''; goto g9XVg; Ill5w: if (!array_key_exists("\x63\162\145\x61\164\145\x64", $log)) { goto saw0S; } goto fZ6TW; tplAW: u5xgF: goto PSw0k; JcSuL: if (!(isset($log["\143\157\155\155\x65\x6e\164"]) && is_string($log["\143\x6f\x6d\x6d\145\x6e\164"]) && $log["\143\x6f\x6d\x6d\x65\x6e\164"] !== '')) { goto tPXsh; } goto EErE6; EErE6: $log["\143\157\155\155\145\156\x74"] = json_decode($log["\143\157\x6d\x6d\145\x6e\164"], true); goto mWK34; tKtAO: $from =& $log["\x6c\x6f\147\x43\x68\141\x6e\147\x65"]["\x6f\x77\x6e\145\x72"]["\146\x72\x6f\x6d"]; goto QBv00; Elh1j: eSYhH: goto EwLgE; CDszj: $datatoAccount = $this->accounts_m->db_oneoptions([], ["\x77\x68\145\x72\145" => ["\x5f\x69\x64" => new \MongoDB\BSON\ObjectID($log["\x6c\x6f\147\103\150\141\156\x67\x65"]["\x61\x63\143\157\165\156\164\x5f\x72\x65\154\141\164\145\144"]["\x74\x6f"])], "\x77\x68\145\x72\x65\137\156\x65" => ["\144\145\x6c\x65\x74\x65" => 1]]); goto ZKwBS; FSBve: DrVJi: goto D1nBI; OiU_G: $id = substr($to, $idx + 1); goto DJjYU; tDi7A: if (is_array($datato) && $datato["\156\x61\155\145"] !== '') { goto cGR3P; } goto QJ9jL; HNhgD: if (!(isset($log["\154\x6f\x67\103\x68\141\156\147\145"]["\141\143\143\x6f\x75\x6e\164\137\162\x65\154\141\164\x65\x64"]["\x66\162\x6f\x6d"]) && $log["\154\x6f\x67\x43\x68\x61\156\147\x65"]["\x61\x63\143\x6f\165\156\x74\x5f\x72\x65\154\x61\164\x65\x64"]["\146\162\x6f\x6d"] !== '')) { goto MRPyD; } goto Kn64c; rvj0A: MVLMB: goto tf_vL; ssXxQ: rle9O: goto I_t8i; iDmht: $this->load->model("\163\x65\x74\164\x69\x6e\x67\163\57\162\x75\x6c\145\144\151\163\164\162\151\142\165\x74\x65\x73\57\x72\165\154\145\144\x69\x73\x74\162\151\142\x75\x74\x65\163\137\x6d"); goto j9163; YZvGX: JgL3s: goto tRbPp; DHsmf: if (!(!empty($log["\x6c\157\147\x43\150\141\156\x67\145"]) && !empty($log["\154\157\x67\103\150\x61\156\147\x65"]["\x61\143\x63\x6f\165\156\164\x5f\162\145\x6c\141\164\x65\144"]))) { goto ym4EM; } goto bJlUg; JGWEq: } goto dA9L1; hsAJT: tlSxB: goto weSUk; OC4lG: lU3a8: goto Q1mfp; wj5Rd: if (!($permission["\163\x74\164"] === false)) { goto tlSxB; } goto dr36u; dA9L1: O42ei: goto rp0uQ; ARCls: $this->load->model("\x63\162\x6d\57\154\145\141\144\163\x5f\155"); goto nenLA; Z8vpB: $this->load->model("\143\x72\155\x2f\141\x63\x63\x6f\x75\x6e\x74\163\x5f\x6d"); goto G4zxP; QDw2b: $collectionModel = new CollectionModel($this->data["\160\x62\170\x5f\143\x75\x73\x74\x6f\x6d\145\162\x5f\x63\x6f\144\145"], DBMAIN, false, ["\164\x69\x6d\x65\x7a\x6f\156\145" => $this->sessionData["\x74\x69\x6d\x65\172\157\x6e\145"]]); goto vGJ9q; bXnFH: $this->load->library("\164\151\143\x6b\145\164\x73\x5f\x6c\x69\x62\x72\x61\x72\171"); goto Z8vpB; XTPLU: $result = $this->tickets_timeline_m->db_kendogrid_read($request); goto YCRM8; vGJ9q: $collectionTimeline = $collectionModel->NameOneCollection("\164\151\143\153\x65\164\163\x5f\164\x69\155\145\154\x69\x6e\145", $ticket["\143\x72\145\141\164\x65\144"]["\x74\151\x6d\x65"]); goto oIQc1; oIQc1: $this->tickets_timeline_m->setCollection($collectionTimeline); goto WZdP2; qksJ4: goto z8dwq; goto c3Yjf; c9c0p: $this->load->model("\163\x65\164\164\151\156\x67\x73\x2f\147\x65\156\145\162\141\x6c\143\157\x6e\x66\151\147\x2f\164\x61\147\x73\x5f\x6d"); goto QDw2b; RJQsv: echo json_encode(["\x64\x61\164\x61" => [], "\x74\x6f\x74\141\x6c" => [], "\145\x72\162\157\x72\x73" => "\x54\151\143\153\x65\164\x20\x6e\x6f\164\40\x66\157\x75\156\144"]); goto qksJ4; MheTs: QgUT7: goto kW9IA; YTI5T: if ($this->mongo_db->isValidObjectID($idticket)) { goto QgUT7; } goto ENo0Y; WRb3h: $datafield = $customfield->getAllFieldByModule($this->module); goto wsu0N; tK2kW: goto lU3a8; goto MheTs; QEWzP: exit; goto cBuSy; wsu0N: $result["\144\x61\164\141\x66\x69\x65\x6c\144"] = $datafield; goto y58u2; Q1mfp: } public function readinteraction($idticket) { goto bgkaS; Yh2p5: $endtime = time(); goto lsTnQ; cFPxT: $starttime = $this->wf4xconfig["\164\x69\155\145\x73\x74\141\x6d\x70"]; goto krw8A; WiVDi: echo json_encode($dataResponse); goto HOg09; EYFfX: if (is_array($ticket) && count($ticket) > 0 && array_key_exists("\x63\162\145\x61\x74\145\x64", $ticket)) { goto T3AVA; } goto ZU3Gm; lsTnQ: if (!(isset($ticket["\142\x70\155"]) && is_array($ticket["\142\160\155"]) && isset($ticket["\x62\160\x6d"]["\151\163\x45\156\144\145\144"]) && $ticket["\142\x70\155"]["\x69\x73\105\156\x64\x65\144"] && isset($ticket["\x62\x70\155"]["\154\141\163\x74\x61\143\x74\151\166\145"]) && isset($ticket["\142\160\x6d"]["\x6c\x61\163\x74\141\143\164\151\166\x65"]["\x74\151\x6d\x65"]))) { goto YOI6R; } goto KgPES; ylOMb: $dataResponse = $this->interaction_library->get($request, ["\x73\x74\x61\x72\x74\x74\151\x6d\x65" => $starttime, "\x65\156\144\164\151\155\x65" => $endtime]); goto WiVDi; HOg09: exit; goto SvuPC; KyBxm: if (!isset($this->wf4xconfig["\x74\x69\x6d\x65\163\164\141\155\x70"])) { goto A0B94; } goto cFPxT; krw8A: A0B94: goto Yh2p5; GoVln: Rb8NU: goto EYFfX; PxXkc: $filter_ticket = $this->mongodatasourceresult->initFilterWithSub("\157\162", [$this->mongodatasourceresult->initFilter("\164\151\x63\x6b\x65\x74\x5f\x69\144", "\x65\x71", $ticket["\x74\151\143\153\x65\164\137\151\144"]), $this->mongodatasourceresult->initFilterWithSub("\x61\x6e\144", [$this->mongodatasourceresult->initFilter("\157\142\152\x65\x63\164\x5f\x69\144", "\145\161", $idticket), $this->mongodatasourceresult->initFilter("\x6f\142\x6a\x65\143\x74\x5f\x74\x79\160\145", "\145\161", "\164\x69\x63\x6b\145\x74\163")])]); goto w_4_o; p2Iwc: YOI6R: goto ylOMb; fbbq2: $this->tickets_library->db_setcollection($idticket); goto LG5TZ; FEeUR: wSVoB: goto jrev7; tyEQA: $request = json_decode(file_get_contents("\x70\150\x70\72\x2f\57\151\156\160\x75\x74")); goto GFoji; jzuWT: $starttime = $ticket["\143\x72\145\x61\164\x65\x64"]["\x74\x69\155\x65"]; goto KyBxm; idDWN: $typeOfInteraction = $this->interaction_library->getTypeOfInteractionByChannels($channels, ["\143\x61\154\x6c" => ["\x63\x61\154\154", "\143\141\154\x6c\157\142\x6a\145\143\164\146\x72\157\x6d\x5f\x74\151\143\153\x65\164\163"], "\x65\x6d\141\x69\x6c" => ["\x65\155\141\x69\x6c\x6f\142\x6a\x65\143\164\x66\162\x6f\x6d\137\x74\x69\x63\x6b\x65\x74\163"], "\x73\x6d\x73" => ["\163\155\x73\157\142\152\145\x63\x74\x66\x72\x6f\155\137\x74\151\143\x6b\x65\164\163"], "\143\x61\155\x70\x61\151\147\156" => []]); goto Awsbe; JZRPd: $channels = []; goto Q2qr4; khDuU: F38by: goto idDWN; ZU3Gm: echo json_encode(["\144\x61\x74\x61" => [], "\164\157\164\x61\154" => [], "\x65\x72\x72\157\162\163" => "\124\151\x63\x6b\145\x74\40\156\x6f\x74\40\146\157\x75\156\144"]); goto tce89; KGYfF: HKAA9: goto PxXkc; KLkQE: echo json_encode(["\144\141\164\141" => [], "\164\157\x74\x61\x6c" => [], "\x65\162\162\x6f\x72\163" => "\117\142\152\x65\143\164\x20\x77\162\157\x6e\147"]); goto pDOVH; oggSP: exit; goto GoVln; UUvRV: if ($this->mongo_db->isValidObjectID($idticket)) { goto aNWEy; } goto KLkQE; KgPES: $endtime = $ticket["\142\160\x6d"]["\154\x61\163\164\x61\x63\x74\151\166\145"]["\x74\151\155\x65"]; goto p2Iwc; zzw_h: goto HKAA9; goto FEeUR; w_4_o: $this->mongodatasourceresult->addFilterRequest($filter_ticket, $request); goto jzuWT; fUoke: $permission = $this->tickets_library->permission("\x63\x68\x65\143\x6b\160\x65\x72\x6d\x69\163\163\151\x6f\x6e", $ticket); goto qGXgA; vOHKs: aNWEy: goto tyEQA; Q2qr4: if (!(property_exists($request, "\143\x68\141\156\156\145\x6c") && is_array($request->channel))) { goto F38by; } goto M_V0K; tce89: goto IHou7; goto ensTZ; uSwXH: http_response_code(403); goto oggSP; k6xb4: $this->load->library("\x69\156\x74\145\162\141\143\164\151\x6f\156\x5f\x6c\x69\x62\x72\x61\x72\171"); goto JZRPd; SvuPC: IHou7: goto id3AG; bgkaS: header("\x43\157\x6e\164\145\156\x74\55\x54\x79\160\145\72\40\x61\x70\x70\154\x69\x63\141\164\151\157\x6e\x2f\x6a\163\157\x6e"); goto UUvRV; Awsbe: if (count($typeOfInteraction) > 0) { goto wSVoB; } goto kw17b; ensTZ: T3AVA: goto k6xb4; NW8A7: exit; goto zzw_h; GFoji: $this->load->model("\163\x65\x72\166\x69\x63\145\163\57\164\151\143\153\x65\164\x73\57\164\x69\x63\153\145\164\x73\137\155"); goto jeMDD; jeMDD: $this->load->library("\164\x69\143\153\145\164\x73\137\x6c\x69\x62\x72\141\162\x79"); goto fbbq2; LG5TZ: $ticket = $this->tickets_m->db_getbyid($idticket, ["\164\151\x63\x6b\145\164\x5f\x69\x64", "\142\160\x6d", "\141\x73\x73\151\147\156\x65\145\137\150\151\163\164\157\x72\x79", "\141\x73\x73\151\147\156\145\x65", "\x61\x73\x73\x69\x67\156\145\145\x5f\151\156\146\x6f", "\x63\143\163", "\x63\162\145\141\x74\x65\144", "\x72\x65\x71\x75\x65\163\x74\x65\162\137\x69\x64", "\141\x63\x63\157\165\x6e\164\x5f\162\145\154\141\x74\145\x64"]); goto fUoke; M_V0K: $channels = $request->channel; goto khDuU; kw17b: echo json_encode(["\x64\x61\164\x61" => [], "\x74\157\164\x61\154" => [], "\x65\162\162\157\x72\x73" => "\111\x6e\x74\x65\162\x61\x63\164\151\157\156\40\x65\155\x70\164\x79"]); goto NW8A7; pDOVH: goto MfzCM; goto vOHKs; id3AG: MfzCM: goto tldbn; jrev7: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\x74\171\160\145", "\x69\156", $typeOfInteraction), $request); goto KGYfF; qGXgA: if (!($permission["\x73\x74\164"] === false)) { goto Rb8NU; } goto uSwXH; tldbn: } public function gettingparam4logdetail($idticket) { try { goto ZdFXa; dVTvD: $this->load->library("\141\x63\x63\x6f\165\x6e\x74\x73\x5f\154\x69\142\x72\x61\162\171"); goto JIBLm; PIx83: i6MjL: goto uxF4w; F48yc: HGYXu: goto tO_rd; n10jx: $requesters = $this->requesters_m->db_getbylistid($listidrequester, ["\156\x61\x6d\x65", "\165\x73\x65\x72\x6e\141\x6d\145", "\x70\150\x6f\x6e\145", "\145\155\141\151\x6c", "\x66\162\x6f\155\x6d\157\144\x75\154\x65", "\151\x64\x6d\x6f\144\165\x6c\145"]); goto b5DU6; Yd3AT: $result = []; goto lS1RT; IkL0E: if (!(count($listidrequester) > 0)) { goto ZbvhL; } goto tdl3k; EKc2T: if (!array_key_exists("\143\x61\x74\x65\147\x6f\x72\x79", $request)) { goto wobYf; } goto ty1uP; tdl3k: $this->load->model("\x73\145\162\x76\151\x63\145\163\x2f\164\151\143\153\145\x74\163\57\x72\x65\x71\x75\x65\163\164\x65\162\163\x5f\155"); goto n10jx; wDlTG: foreach ($listidrequester as $valueID) { goto NC6fQ; XtL_8: bK6fM: goto rvGNg; dhFAi: $listid[] = new \MongoDB\BSON\ObjectID($valueID); goto XtL_8; NC6fQ: if (!$this->mongo_db->isValidObjectID($valueID)) { goto bK6fM; } goto dhFAi; rvGNg: tys_G: goto SkanX; SkanX: } goto PIx83; bRt7X: throw new Exception("\124\151\x63\x6b\x65\164\x20\156\x6f\164\40\146\x6f\165\156\144"); goto PSEwi; ePQ5i: $this->load->model("\163\x65\x72\x76\x69\143\x65\163\x2f\164\x69\x63\153\x65\x74\x73\57\x74\x69\143\153\145\164\x73\137\x6d"); goto C0HfV; C0HfV: $this->load->library("\x74\x69\x63\x6b\x65\164\163\x5f\154\151\x62\x72\x61\162\x79"); goto NcLCA; lS1RT: if ($this->mongo_db->isValidObjectID($idticket)) { goto UQisg; } goto bRt7X; ITb4D: $listidrequester = []; goto ksKo0; DTS_0: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\x5f\151\144", "\151\156", $listid), $filter); goto eN2Bw; b5DU6: foreach ($requesters as $requester) { goto RLTgJ; OhSwO: nb8bd: goto MEjis; WTwPl: if (preg_match("\x2f\134\x53\57", $requester["\156\x61\x6d\145"]) === 1) { goto M30vW; } goto RDPIc; HaKfm: $name = $requester["\156\x61\x6d\x65"]; goto ydva1; xzir9: $result["\x72\x65\161\165\x65\163\164\x65\x72\137\x69\x64\137" . $requester["\x5f\x69\144"]] .= "\40\55\x20" . $requester["\x70\x68\x6f\x6e\145"]; goto OOt9N; g2Y4y: Nn_bF: goto OhSwO; O_qJb: $result["\162\145\161\x75\x65\163\164\145\162\137\151\144\x5f" . $requester["\137\151\144"]] = $name; goto G9m1r; RLTgJ: $name = ''; goto WTwPl; cHqnS: R5tax: goto Ji2Ch; RLp3u: $name .= "\x20\50" . $requester["\165\x73\x65\x72\156\x61\155\145"] . "\x29"; goto MNpc9; G9m1r: if (!is_string($request)) { goto nb8bd; } goto Ym05k; IM7h9: $result["\x72\x65\x71\x75\x65\x73\x74\x65\162\137\151\144\x5f" . $requester["\x5f\x69\x64"]] .= "\x20\x2d\40" . $requester["\145\x6d\x61\151\154"]; goto g2Y4y; rWdGA: g3_lg: goto O_qJb; Ym05k: if (!(preg_match("\57\134\123\x2f", $requester["\x70\x68\x6f\x6e\x65"]) === 1)) { goto zaZat; } goto xzir9; ydva1: if (!array_key_exists("\x75\x73\145\162\x6e\141\155\x65", $requester)) { goto UOSd9; } goto RLp3u; MNpc9: UOSd9: goto rWdGA; OOt9N: zaZat: goto G12AZ; Ji2Ch: goto g3_lg; goto aILTK; MEjis: HAJon: goto u479g; aILTK: M30vW: goto HaKfm; KqDDw: $name = $requester["\x75\x73\x65\x72\156\x61\x6d\145"]; goto cHqnS; RDPIc: if (!array_key_exists("\x75\x73\x65\x72\156\x61\155\145", $requester)) { goto R5tax; } goto KqDDw; G12AZ: if (!(preg_match("\57\x5c\x53\x2f", $requester["\145\x6d\x61\151\x6c"]) === 1)) { goto Nn_bF; } goto IM7h9; u479g: } goto mA96A; OAopp: $this->load->model("\x63\x72\155\57\141\143\x63\157\x75\156\x74\x73\x5f\x6d"); goto dVTvD; ZdFXa: $request = json_decode(file_get_contents("\x70\150\160\x3a\x2f\57\151\156\x70\165\164"), true); goto Yd3AT; h0LLP: BBGwN: goto P_HmN; eN2Bw: $accounts = $this->accounts_library->db_read($filter, ["\x63\157\x6d\x70\141\x6e\x79\x6e\141\155\145", "\155\141\x69\x6e\137\x62\x75\x73\x69\x6e\x65\163\163\137\x70\x68\157\156\145", "\155\141\x69\156\x5f\142\x75\x73\x69\x6e\x65\x73\163\137\145\x6d\141\x69\x6c"])["\144\x61\x74\141"]; goto vGbs0; NcLCA: $this->tickets_library->db_setcollection($idticket); goto PiMvF; YOOWG: foreach (["\x66\162\x6f\155", "\164\x6f"] as $key) { goto Y0k9o; Jz2bI: AFNSW: goto asJo2; Y0k9o: if (!array_key_exists($key, $request["\141\143\143\157\x75\156\164\x5f\x72\x65\154\x61\164\x65\x64"])) { goto mBgEj; } goto CwB_C; CwB_C: $listidrequester[] = $request["\x61\x63\143\x6f\165\x6e\164\137\x72\x65\x6c\141\164\x65\x64"][$key]; goto M15FG; M15FG: mBgEj: goto Jz2bI; asJo2: } goto uRR7N; uRR7N: oltOq: goto SDaG6; WtL8q: vCXXu: goto Ky5bR; vGbs0: foreach ($accounts as $account) { goto RUiba; nrSGp: $result["\141\143\143\x6f\x75\156\164\137\x72\x65\x6c\x61\164\x65\x64\x5f" . $account["\137\x69\x64"]] .= "\40\x2d\40" . $account["\x6d\x61\x69\x6e\137\x62\x75\x73\151\x6e\145\x73\163\137\160\x68\157\x6e\145"]; goto VcyX6; KFRjw: bg808: goto mNALd; V_lnY: $result["\141\x63\143\157\x75\x6e\164\x5f\162\x65\154\x61\164\x65\144\x5f" . $account["\137\x69\x64"]] = $account["\x63\x6f\155\x70\x61\x6e\x79\156\141\x6d\145"]; goto WYx1e; ej_aI: $result["\141\143\x63\x6f\x75\x6e\x74\137\x72\145\x6c\141\164\145\x64\137" . $account["\x5f\x69\x64"]] .= "\x20\x2d\x20" . $account["\155\141\x69\156\137\x62\x75\x73\151\156\x65\163\163\x5f\x65\155\141\x69\x6c"]; goto KFRjw; hTSdA: if (!(preg_match("\57\x5c\x53\x2f", $account["\x6d\141\x69\156\137\142\165\163\151\x6e\145\x73\163\137\145\x6d\141\x69\x6c"]) === 1)) { goto bg808; } goto ej_aI; mNALd: lYW5x: goto EwVB4; gOD3f: if (!(preg_match("\57\134\x53\x2f", $account["\x6d\x61\151\x6e\x5f\142\165\x73\151\x6e\x65\163\x73\x5f\x70\150\157\x6e\x65"]) === 1)) { goto v9DDf; } goto nrSGp; WYx1e: TGwRA: goto gOD3f; TJ4Nj: if (!(preg_match("\x2f\134\x53\x2f", $account["\x63\157\x6d\160\141\156\x79\x6e\x61\x6d\x65"]) === 1)) { goto TGwRA; } goto V_lnY; RUiba: $result["\x61\143\143\157\x75\x6e\x74\137\x72\x65\x6c\x61\164\x65\x64\x5f" . $account["\137\151\x64"]] = "\56\56\56"; goto TJ4Nj; VcyX6: v9DDf: goto hTSdA; EwVB4: } goto h0LLP; JIBLm: $listid = []; goto wDlTG; LDBq4: if (!array_key_exists("\162\x65\x71\165\x65\x73\164\x65\162\x5f\151\x64", $request)) { goto HGYXu; } goto ITb4D; PSEwi: UQisg: goto ePQ5i; ty1uP: $listidcategory = []; goto pAeUB; uxF4w: $filter = new stdClass(); goto DTS_0; UJWzi: throw new Exception("\x50\145\x72\155\x69\163\x73\x69\157\x6e\40\146\x61\151\154\x65\x64"); goto LLGRN; SDaG6: if (!(count($listidrequester) > 0)) { goto O8jRw; } goto OAopp; ksKo0: foreach (["\146\162\x6f\155", "\164\x6f"] as $key) { goto BxFjW; BxFjW: if (!array_key_exists($key, $request["\162\x65\x71\165\x65\163\164\145\x72\137\151\x64"])) { goto S4jCP; } goto kTK2M; kTK2M: $listidrequester[] = $request["\x72\145\161\165\145\x73\x74\145\162\x5f\151\x64"][$key]; goto hbemM; hbemM: S4jCP: goto glVGf; glVGf: r0DPf: goto mDWPO; mDWPO: } goto lDyIy; N1D90: Jyd1R: goto WtL8q; Eh_l1: $permission = $this->tickets_library->permission("\x63\150\145\143\x6b\160\145\162\155\x69\163\163\151\157\x6e", $ticket); goto nup58; gZ1nk: $listcategory = $this->configcategoryticket_m->db_all_withcache(); goto d9MeJ; UDlvn: if (!(count($listidcategory) > 0)) { goto vCXXu; } goto ql7FJ; mixPO: $listidrequester = []; goto YOOWG; AUxsa: H4bkc: goto UDlvn; tO_rd: if (!array_key_exists("\x61\143\143\x6f\x75\156\x74\x5f\x72\145\154\x61\164\x65\144", $request)) { goto OekD9; } goto mixPO; ql7FJ: $this->load->model("\x73\145\164\x74\x69\156\147\x73\57\x63\x6f\x6e\146\x69\147\164\x69\143\x6b\x65\164\x73\x2f\x63\157\156\x66\x69\x67\143\141\x74\x65\x67\157\x72\x79\x74\151\143\153\x65\x74\137\x6d"); goto gZ1nk; k1q47: echo json_encode(["\x64\x61\164\x61" => $result]); goto i4Tue; lDyIy: N1PtU: goto IkL0E; tn7yO: ZbvhL: goto F48yc; LLGRN: bL3lb: goto LDBq4; pAeUB: foreach (["\x66\162\x6f\x6d", "\164\x6f"] as $key) { goto NFS3P; cHlCv: $listidcategory[] = $request["\x63\x61\x74\x65\147\157\x72\x79"][$key]; goto jQAFd; NFS3P: if (!array_key_exists($key, $request["\143\x61\x74\145\147\x6f\x72\171"])) { goto qU54W; } goto cHlCv; jQAFd: qU54W: goto gJGv1; gJGv1: a1HYx: goto bI0Fg; bI0Fg: } goto AUxsa; d9MeJ: foreach ($listidcategory as $idcategory) { goto BqNz9; DZgnT: $result["\x63\x61\x74\145\x67\x6f\x72\x79\x5f" . $idcategory] = $listcategory[$key]["\x74\145\x78\164"]; goto LLCz2; OTuM2: if (!($key !== false)) { goto Lp2RF; } goto DZgnT; qzbzN: ZlhCb: goto yofww; LLCz2: Lp2RF: goto qzbzN; BqNz9: $key = array_search($idcategory, array_column($listcategory, "\137\x69\x64")); goto OTuM2; yofww: } goto N1D90; PiMvF: $ticket = $this->tickets_m->db_getbyid($idticket, ["\164\x69\x63\x6b\x65\x74\x5f\x69\144", "\141\163\163\151\x67\x6e\145\145\137\x68\151\x73\x74\157\x72\x79", "\x61\x73\163\151\147\x6e\145\x65", "\x61\x73\x73\151\147\156\145\145\x5f\151\x6e\146\157", "\x63\x63\163", "\143\162\x65\x61\x74\x65\x64"]); goto Eh_l1; nup58: if (!($permission["\163\x74\x74"] === false)) { goto bL3lb; } goto UJWzi; mA96A: HVBZ1: goto tn7yO; qcV5W: OekD9: goto EKc2T; P_HmN: O8jRw: goto qcV5W; Ky5bR: wobYf: goto k1q47; i4Tue: } catch (Exception $ex) { echo json_encode(["\144\x61\164\x61" => [], "\x65\x72\x72\x6f\x72\163" => $ex->getMessage() . "\x20\x7e\x7e\40" . $ex->getLine()]); } } public function getxmlBPMN($idticket) { try { goto znAoX; aJctm: $this->load->model("\x73\x65\x72\x76\151\x63\145\x73\57\x74\151\x63\153\145\x74\163\x2f\164\151\143\153\145\x74\x73\137\x6d"); goto S9c7l; GGQVf: $this->load->library("\167\x66\137\143\144\156"); goto W8uPb; XI7RR: throw new Exception("\x50\x72\x6f\143\x65\x73\163\40\x66\x61\151\x6c\145\x64"); goto ZusQo; XNugc: curl_setopt($ch, CURLOPT_URL, base_url($processConfig["\x70\x61\164\150\137\x73\164\x61\156\144\x61\162\144"])); goto mLDM8; Qb5Pk: dSjZJ: goto aJctm; W8uPb: $xml = $this->wf_cdn->openfile($processConfig["\160\x61\x74\150\137\x73\164\x61\x6e\144\141\162\x64"]); goto YRXhu; XO8XM: echo json_encode(["\170\155\154" => $xml]); goto jGPbQ; znAoX: if ($this->mongo_db->isValidObjectID($idticket)) { goto dSjZJ; } goto rVmyF; RqW27: if (!($permission["\163\x74\x74"] === false)) { goto Xdyc0; } goto NFoB2; ML3BW: throw new Exception("\120\x72\x6f\143\x65\x73\163\x20\x73\x74\141\156\x64\141\x72\x64\x20\x66\x61\x69\154\x65\x64"); goto uvgqO; T3iO0: throw new Exception("\120\162\157\x63\145\x73\163\40\163\164\141\156\144\141\162\x64\x20\x66\141\x69\154\145\x64"); goto NqArI; NFoB2: throw new Exception("\120\x65\162\x6d\x69\163\x73\151\157\x6e\40\x66\x61\x69\x6c\x65\144"); goto opbCr; YRXhu: PQjgU: goto XO8XM; o64hN: if ($ticket["\142\160\155"]["\164\171\x70\x65"] === "\x64\x65\146\151\156\145\144") { goto D3hbh; } goto C7JpR; vU25v: $ticket = $this->tickets_m->db_getbyid($idticket, ["\x74\x69\x63\153\x65\164\137\151\144", "\x61\163\x73\151\147\156\x65\145\x5f\150\151\163\x74\157\x72\x79", "\141\x73\x73\x69\147\x6e\x65\x65", "\x61\163\163\151\147\x6e\x65\145\137\151\156\146\157", "\x63\x63\163", "\x63\x72\x65\141\164\x65\144", "\142\x70\x6d"]); goto OC9aN; rVmyF: throw new Exception("\x54\151\x63\x6b\145\x74\40\156\157\x74\40\x66\157\x75\156\x64"); goto Qb5Pk; mLDM8: curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); goto JUNpn; S9c7l: $this->load->library("\164\x69\143\153\145\x74\x73\137\x6c\151\142\x72\141\162\171"); goto gerOP; opbCr: Xdyc0: goto YxrPW; JUNpn: $xml = curl_exec($ch); goto y0vyX; C7JpR: $this->load->model("\x77\x66\x34\x78\x2f\x62\160\155\137\x70\x72\x6f\x63\145\163\163\164\x69\143\x6b\145\x74\137\x64\145\146\x61\165\154\x74\x5f\x6d"); goto MuHAg; hCasG: if (array_key_exists("\x70\141\164\150\x5f\163\164\141\x6e\144\141\x72\x64", $processConfig)) { goto vkWs2; } goto T3iO0; gerOP: $this->tickets_library->db_setcollection($idticket); goto vU25v; nQ4w9: goto PQjgU; goto xGXh1; HskGO: $ch = curl_init(); goto XNugc; OC9aN: $permission = $this->tickets_library->permission("\143\x68\x65\143\x6b\x70\x65\162\155\151\x73\163\x69\157\x6e", $ticket); goto RqW27; uvgqO: g25Bo: goto HskGO; NqArI: vkWs2: goto GGQVf; ZusQo: xRwpM: goto o64hN; nbxBD: if (array_key_exists("\x70\x61\x74\150\137\x73\x74\141\156\x64\141\x72\144", $processConfig)) { goto g25Bo; } goto ML3BW; MMXXs: $this->load->model("\163\x65\164\164\151\x6e\x67\163\57\x63\x6f\x6e\146\x69\x67\x74\151\x63\153\145\164\x73\x2f\x63\157\156\x66\151\147\160\162\x6f\x63\x65\x73\163\x74\151\x63\x6b\x65\x74\x5f\154\x6f\x67\137\x6d"); goto Auz0u; MuHAg: $processConfig = $this->bpm_processticket_default_m->db_getbyid($ticket["\142\160\155"]["\146\x6c\157\x77\x69\144"], ["\x70\x61\164\x68\137\163\164\x61\x6e\x64\x61\x72\x64"]); goto nbxBD; y0vyX: curl_close($ch); goto nQ4w9; YxrPW: if (array_key_exists("\x62\x70\155", $ticket)) { goto xRwpM; } goto XI7RR; Auz0u: $processConfig = $this->configprocessticket_log_m->db_oneoptions(["\160\141\164\x68\x5f\163\164\141\x6e\x64\141\162\x64"], ["\167\150\145\x72\145" => ["\x66\154\157\x77\151\144" => $ticket["\142\160\x6d"]["\x66\x6c\x6f\x77\x69\144"], "\166\145\x72\163\x69\x6f\156" => $ticket["\x62\x70\155"]["\166\x65\162\x73\x69\157\156"]]]); goto hCasG; xGXh1: D3hbh: goto MMXXs; jGPbQ: } catch (Exception $ex) { http_response_code(500); echo $ex->getMessage() . "\40\176\x7e\40" . $ex->getLine(); } } public function ticketStatistic() { goto svipv; xWYzj: $startDate = strtotime(date("\131\x2d\155\55\x64\40\x30\60\72\x30\x30\x3a\x30\60", $last7day)); goto xbQOY; RGlak: $endDate = strtotime(date("\131\x2d\x6d\x2d\x64\x20\x32\x33\x3a\65\71\72\65\x39")); goto lwida; j26_1: $endDate = strtotime(date("\131\x2d\x6d\55\144\x20\x32\x33\72\x35\x39\72\x35\x39")); goto h1LFg; HQWo1: $endDate = strtotime(date("\x59\x2d\x6d\55\x64\40\x32\x33\72\x35\x39\72\x35\71", $lastmonth_last)); goto i5Axj; Oe8Pa: $startDate = strtotime(date("\x59\x2d\155\x2d\x64\40\60\60\x3a\60\60\x3a\60\60", $thismonth)); goto NZk0S; d3vbp: Hh192: goto JiC8d; EuUj4: $data = []; goto kY8Ul; Jv07W: $this->load->model("\x73\x65\162\166\x69\x63\145\163\57\164\151\x63\153\x65\x74\x73\x2f\164\151\x63\x6b\145\x74\x73\137\155"); goto WkFCD; u3U23: $lastmonth = strtotime("\x66\151\162\163\164\x20\144\141\x79\40\x6f\x66\40\154\x61\163\164\x20\x6d\157\156\164\x68"); goto RFAOi; lv1QV: if (!($request["\x74\x79\160\x65"] == "\164\150\151\x73\155\157\x6e\164\150")) { goto Hh192; } goto DXaYz; IsJEC: $data["\143\x63\163"] = $this->tickets_library->db_count($this->wf4xconfig["\164\x69\x6d\145\x73\x74\141\x6d\160"], time(), $filter_5); goto wON33; y02AL: if (!(isset($this->data["\142\165\144\x65\146\x61\x75\154\164"]) && $this->data["\x62\165\144\x65\146\141\x75\154\x74"] != '')) { goto sjSi1; } goto Y2L0t; Mb6Tz: if ($this->data["\x69\x73\117\167\x6e\145\162"]) { goto vl1kR; } goto z_b8O; UFoFS: if (!($request["\164\x79\160\x65"] == "\x6c\141\163\164\67\144\141\171")) { goto xQ8ne; } goto kd6AQ; DXaYz: $thismonth = strtotime("\x66\151\162\x73\x74\40\x64\141\x79\40\157\146\x20\x74\150\151\163\x20\x6d\157\x6e\x74\x68"); goto t9nI2; oP_Y6: $data["\141\163\163\151\x67\x6e\x65\145\x5f\150\151\x73\x74\157\x72\171"] = $this->tickets_library->db_count($this->wf4xconfig["\164\x69\155\145\x73\164\141\x6d\x70"], time(), $filter_4); goto IsJEC; V2K1M: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\143\x63\163", "\151\x6e", ["\165\x73\x65\162\137" . $this->data["\165\x73\x65\x72\x69\x64"]]), $filter_5); goto oc0UW; oNupn: if (!($request["\x74\x79\x70\x65"] != "\x61\x6c\154")) { goto AKbj_; } goto Jnw_n; pnFv5: foreach ($list_user as $user) { goto IyoIC; IyoIC: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\143\x72\x65\141\164\x65\144\56\142\x79\151\x64", "\145\161", $user["\x5f\151\x64"]), $filter_1); goto iOrNV; iOrNV: $temp = $temp + $this->tickets_library->db_count($this->wf4xconfig["\164\x69\x6d\x65\x73\164\x61\x6d\x70"], time(), $filter_1); goto HJ77z; HJ77z: SHBrM: goto Z9iHV; Z9iHV: } goto S56bM; sdQnr: $endDate = strtotime(date("\x59\55\x6d\x2d\144\40\62\x33\x3a\65\71\72\65\71", $last_day)); goto DC5Fa; h1LFg: gm5FY: goto dpUIi; dkZo6: $endDate = ''; goto EuUj4; DC5Fa: a9Czd: goto UFoFS; TCZY6: sjSi1: goto V4zoN; qYeBk: $filter_5 = new stdClass(); goto oNupn; UrzTz: $temp = $this->tickets_library->db_count($this->wf4xconfig["\164\151\155\145\163\164\x61\155\160"], time(), $filter_1); goto Kmb_g; UPABo: $startDate = strtotime(date("\x59\55\x6d\55\144\x20\60\x30\x3a\60\60\x3a\x30\60")); goto j26_1; MExOs: zy6A7: goto CYXew; oc0UW: $data["\x69\x6e\x5f\142\165"] = $temp; goto fzqFa; dpUIi: if (!($request["\x74\171\160\145"] == "\171\145\x73\164\x65\x72\144\141\x79")) { goto a9Czd; } goto krl44; OuR44: $this->load->library("\x74\x69\143\x6b\x65\164\163\137\154\x69\x62\x72\141\x72\171"); goto DmBYV; svipv: date_default_timezone_set("\101\163\x69\141\x2f\x48\157\137\103\x68\x69\137\115\151\x6e\x68"); goto psIiN; i5Axj: r7A0r: goto x1naf; Jnw_n: foreach ([$filter_1, $filter_2, $filter_3, $filter_4, $filter_5] as $key) { goto Gl2a2; Gl2a2: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\154\x61\163\x74\137\155\157\x64\x69\x66\151\145\144\56\164\x69\x6d\x65", "\147\x74\x65", $startDate), $key); goto eHfN9; rRzXp: mvgvd: goto y1UUG; eHfN9: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\x6c\x61\163\164\137\x6d\x6f\x64\x69\x66\151\145\144\x2e\x74\x69\x6d\145", "\154\x74\x65", $endDate), $key); goto rRzXp; y1UUG: } goto PjefD; KUH4v: $filter_2 = new stdClass(); goto CL6ta; psIiN: $request = json_decode(file_get_contents("\x70\150\x70\x3a\57\x2f\151\156\x70\165\x74"), true); goto Jv07W; Vd4ZR: $list_user = []; goto y02AL; kY8Ul: $temp = 0; goto Vd4ZR; DmBYV: $startDate = ''; goto dkZo6; GONJO: $startDate = strtotime(date("\131\55\x6d\x2d\x64\x20\60\60\x3a\x30\x30\x3a\x30\60", $lastmonth)); goto HQWo1; aqKza: $last30days = strtotime("\x2d\x32\x39\40\x64\x61\171"); goto fZZCL; CL6ta: $filter_3 = new stdClass(); goto QzjpF; QzjpF: $filter_4 = new stdClass(); goto qYeBk; WkFCD: $this->load->model("\x77\x66\64\170\x2f\x77\146\x34\170\137\x75\x73\x65\x72\163\137\x6d"); goto OuR44; M3_EN: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\x63\162\x65\x61\x74\x65\x64\x2e\x62\171\x69\x64", "\145\161", $this->data["\x75\163\145\x72\x69\144"]), $filter_2); goto KQKfI; P6J_8: $startDate = strtotime(date("\x59\55\155\55\x64\40\60\x30\72\60\60\x3a\x30\60", $last_day)); goto sdQnr; pEZI0: echo json_encode($data); goto v1NbN; wON33: header("\103\x6f\156\x74\145\156\x74\55\x54\x79\x70\x65\x3a\40\141\x70\160\x6c\151\x63\x61\x74\151\x6f\156\x2f\152\163\157\x6e"); goto pEZI0; t9nI2: $thismonth_last = strtotime("\154\x61\x73\164\x20\x64\x61\x79\40\x6f\146\x20\164\150\x69\163\x20\x6d\157\156\164\150"); goto Oe8Pa; mfOwy: xQ8ne: goto xmL3K; krl44: $last_day = strtotime("\154\141\163\164\40\144\x61\x79"); goto P6J_8; kd6AQ: $last7day = strtotime("\x2d\x36\40\x64\x61\171"); goto xWYzj; PjefD: DIobP: goto yHoEE; xbQOY: $endDate = strtotime(date("\x59\x2d\x6d\x2d\144\40\x32\x33\x3a\x35\71\x3a\x35\x39")); goto mfOwy; fZZCL: $startDate = strtotime(date("\131\x2d\155\x2d\x64\40\x30\x30\x3a\60\60\x3a\60\60", $last30days)); goto RGlak; lwida: mynDP: goto lv1QV; JiC8d: if (!($request["\164\171\160\x65"] == "\x6c\141\x73\164\155\157\156\164\x68")) { goto r7A0r; } goto u3U23; CYXew: goto kAZcl; goto Z4zKU; S56bM: WWmBJ: goto MExOs; KQKfI: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\x61\x73\163\x69\x67\x6e\145\145", "\145\161", "\165\x73\145\x72\x5f" . $this->data["\165\x73\145\162\x69\x64"]), $filter_3); goto PA1r7; x1naf: $filter_1 = new stdClass(); goto KUH4v; NZk0S: $endDate = strtotime(date("\131\55\x6d\x2d\x64\40\62\63\x3a\65\x39\72\x35\71", $thismonth_last)); goto d3vbp; fzqFa: $data["\143\x72\x65\x61\164\x65\144"] = $this->tickets_library->db_count($this->wf4xconfig["\x74\x69\155\x65\163\x74\x61\155\x70"], time(), $filter_2); goto tcKhk; tcKhk: $data["\141\x73\163\x69\147\156\145\x65"] = $this->tickets_library->db_count($this->wf4xconfig["\164\x69\x6d\145\x73\x74\141\x6d\160"], time(), $filter_3); goto oP_Y6; xmL3K: if (!($request["\x74\x79\160\145"] == "\x6c\141\163\x74\63\60\x64\x61\171\163")) { goto mynDP; } goto aqKza; Kmb_g: kAZcl: goto M3_EN; PA1r7: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\141\163\163\x69\x67\156\x65\x65\x5f\x68\x69\163\164\x6f\162\x79", "\x69\x6e", ["\165\163\145\162\137" . $this->data["\165\163\145\x72\151\144"]]), $filter_4); goto V2K1M; Z4zKU: vl1kR: goto UrzTz; z_b8O: if (!(is_array($list_user) && count($list_user) > 0)) { goto zy6A7; } goto pnFv5; yHoEE: AKbj_: goto Mb6Tz; V4zoN: if (!($request["\x74\x79\160\145"] == "\164\157\x64\x61\171")) { goto gm5FY; } goto UPABo; RFAOi: $lastmonth_last = strtotime("\x6c\x61\x73\x74\40\144\x61\x79\x20\157\x66\40\x6c\x61\x73\164\x20\155\x6f\156\164\150"); goto GONJO; Y2L0t: $list_user = $this->wf4x_users_m->getallusersinbusinessunit($this->data["\142\x75\144\145\146\141\165\x6c\164"], ["\x69\x64"]); goto TCZY6; v1NbN: } public function getTemplateAddContact() { goto z23L_; qvZKs: echo json_encode(["\163\164\x74" => 1, "\146\x69\x65\154\x64\x53\x6f\x72\x74" => $fieldAddSort, "\146\151\x65\x6c\144\101\x64\144" => $fieldAdd]); goto UEfYV; VMV7a: $fieldAddSort = $this->returnGroupAddSortID(); goto qvZKs; z23L_: $fieldAdd = $this->fieldAddSort(); goto VMV7a; UEfYV: } public function getTemplateAddLead() { goto QLWIu; K7kxV: $fieldAddSort = $this->returnGroupAddSortIDLead(); goto Jz7no; Jz7no: echo json_encode(["\x73\164\164" => 1, "\x66\x69\x65\154\x64\123\157\162\x74" => $fieldAddSort, "\x66\x69\145\154\x64\101\144\144" => $fieldAdd]); goto oHC1L; QLWIu: $fieldAdd = $this->fieldAddSortLead(); goto K7kxV; oHC1L: } public function getTemplateAddAccount() { goto cCmnd; yYkdt: echo json_encode(["\x73\164\164" => 1, "\x66\151\x65\x6c\x64\123\x6f\x72\164" => $fieldAddSort, "\146\x69\145\x6c\144\101\x64\144" => $fieldAdd]); goto gkIsQ; U5wKv: $fieldAddSort = $this->returnGroupAddSortIDAccount(); goto yYkdt; cCmnd: $fieldAdd = $this->fieldAddSortAccount(); goto U5wKv; gkIsQ: } public function getFieldAddSortTicket() { $fieldAdd = $this->returnGroupAddTicket(); echo json_encode(["\163\x74\x74" => 1, "\146\x69\145\154\144\x53\157\x72\164" => $fieldAdd, "\146\x69\x65\x6c\144\x41\x64\x64" => $fieldAdd]); } public function returnGroupAddSortID() { goto Iameo; zKkL0: return $group; goto Xz92H; RuwZg: MovUz: goto zKkL0; tnVXE: $optionSort = ["\167\150\x65\x72\145" => ["\155\x6f\x64\165\154\145" => "\x63\x6f\156\164\141\143\x74\163", "\163\x68\x6f\x77" => 1], "\163\157\162\x74" => ["\x70\x6f\x73\x69\164\x69\157\x6e" => 1]]; goto i0T7c; ayvWt: $this->load->model("\163\x65\x74\x74\151\x6e\x67\163\x2f\x63\165\163\x74\157\155\146\x69\x65\x6c\x64\57\146\151\x65\154\144\x61\x6c\x6c\137\x6d"); goto tnVXE; PEOXe: foreach ($group as &$valgroup) { goto HlMxe; qZKpF: $valgroup["\x6e\141\x6d\x65\x4c\141\156\x67"] = langJS("\155\157\144\165\x6c\x65\x5f\143\x75\163\164\x6f\x6d\x66\x69\x65\154\144\56\156\x61\155\145\x5f\x6c\x61\156\x67\x2e" . $valgroup["\141\154\x69\x61\163"]) !== "\x6d\157\144\165\154\145\137\x63\x75\163\x74\157\155\x66\151\145\154\x64\56\x6e\x61\155\145\137\154\141\156\147\56" . $valgroup["\x61\x6c\x69\141\x73"] ? langJS("\x6d\x6f\x64\165\154\x65\137\143\x75\163\164\157\155\x66\151\145\154\x64\56\156\x61\x6d\145\137\154\141\156\x67\56" . $valgroup["\x61\x6c\151\141\163"]) : $valgroup["\x6e\141\x6d\x65"]; goto AnhQE; Ix_u_: SwDFk: goto iOwkc; HlMxe: $option = ["\167\150\x65\162\x65" => ["\147\162\x6f\165\160\146\x69\145\154\144" => $valgroup["\137\x69\144"], "\x73\150\x6f\x77" => 1, "\160\141\147\x65\123\150\x6f\167\56\x76\151\145\x77\141\144\x64" => 1], "\163\x6f\x72\x74" => ["\x5f\x69\x64" => 1, "\141\x72\x72\104\145\x70\145\x6e\x64" => 1]]; goto KRBTy; u17Gg: WSN7e: goto U3sCA; sk4ms: if (isset($valgroup["\145\x64\x69\164\144\145\x66\141\x75\x6c\164"])) { goto SwDFk; } goto qZKpF; j8Quc: foreach ($field as $key => &$data) { goto BeZ7f; wHc0O: I3_vL: goto aqKVo; O4Qzb: $optionFieldAll = ["\167\150\145\x72\x65" => ["\137\x69\144" => new \MongoDB\BSON\ObjectID($data["\146\151\x65\154\144\141\154\x6c"]), "\x73\150\x6f\167" => 1], "\x73\157\x72\164" => ["\160\157\x73\x69\x74\151\157\156\x61\x64\x64" => 1]]; goto XUmg1; yzZRd: $data["\164\157\x6f\x6c\x74\151\160"] = $tooltiptemp; goto AI8xN; XUmg1: $fieldall = $this->fieldall_m->db_oneoptions([], $optionFieldAll); goto pKewn; yvX8a: ozOGA: goto wHc0O; fqT5D: $data["\137\x69\x64"] = $idFieldAll; goto Dl8_w; sBALk: $data["\x6e\x61\x6d\x65\x4c\141\156\x67"] = langJS("\x6d\x6f\x64\165\154\x65\137\143\165\163\164\x6f\x6d\x66\x69\145\x6c\x64\56\156\x61\x6d\145\137\154\x61\x6e\x67\56" . $data["\x61\154\x69\141\x73"]) !== "\155\x6f\x64\165\x6c\145\137\143\x75\163\x74\x6f\x6d\146\151\145\154\x64\56\x6e\x61\x6d\145\x5f\x6c\x61\156\147\x2e" . $data["\x61\x6c\151\x61\x73"] ? langJS("\155\x6f\x64\x75\154\145\x5f\x63\x75\x73\164\x6f\x6d\x66\151\145\x6c\x64\x2e\x6e\x61\x6d\x65\x5f\154\x61\156\147\56" . $data["\x61\x6c\x69\141\163"]) : $data["\156\x61\155\145"]; goto S7_P3; Dl8_w: lYl3z: goto lqknK; uc5lR: $data["\x63\x68\157\x6f\163\145\x66\x69\145\154\144\x61\x6c\x6c"] = 1; goto xfjci; O2_aN: if (!array_key_exists("\157\x77\x6e\x65\x72", $data)) { goto fOFBn; } goto stPs3; knP61: $data["\143\x72\145\141\x74\145\144\x5f\x75\x73\145\x72\x6e\141\155\x65"] = searchnameuser($data["\143\162\x65\141\164\145\x64"]["\x62\171\151\144"]); goto CAbHs; BkVPR: $data["\x6f\x77\156\145\x72\137\x75\163\145\162\156\x61\x6d\x65"] = $owner_username["\x74\x65\x78\164"]; goto gosBx; hVzDz: unset($fieldall["\x5f\151\144"]); goto oZwXB; ByBsP: xvDzw: goto wfYQu; m_JdJ: eDntj: goto yKVFg; AI8xN: $data["\156\x6f\x74\145"] = $notetemp; goto G8t66; aqKVo: $data["\x6c\x61\x73\x74\137\155\157\144\x69\x66\151\145\x64\137\165\x73\145\162\156\141\155\x65"] = ''; goto GID4e; xfjci: $data["\x69\144\x46\x69\x65\154\x64\x41\x6c\154"] = $idFieldAll; goto fqT5D; vS9Zx: t3Yev: goto zcLZM; WREjw: unset($fieldall["\x74\x6f\157\154\164\x69\160"]); goto sQ_Ig; yKVFg: fOFBn: goto ByBsP; HlI_z: if ($name == "\165\163\x65\x72") { goto t3Yev; } goto YIM3d; gosBx: goto eDntj; goto vS9Zx; wY7MY: g9K5q: goto O4Qzb; vpiwI: VZzaI: goto GGjxt; ge0m2: DTs4G: goto aRxFm; uqpyx: if (isset($data["\x65\144\151\x74\x64\x65\146\x61\x75\x6c\164"]) || !(isset($data["\163\x79\x73\x74\145\x6d"]) && $data["\163\171\x73\x74\x65\155"] == 1 || isset($data["\144\145\x66\x61\x75\x6c\164"]) && $data["\x64\145\146\141\165\154\164"] == 1)) { goto VZzaI; } goto sBALk; fjj53: $data["\163\x68\157\x77"] = $showtemp; goto yzZRd; stPs3: $index = strpos($data["\x6f\x77\x6e\145\162"], "\137"); goto M9BeW; zx4PM: $data["\154\141\x73\164\x5f\155\157\144\x69\x66\x69\145\144\x5f\x75\x73\145\x72\156\x61\x6d\x65"] = $data["\154\x61\163\164\137\x6d\157\144\151\x66\x69\x65\144"]["\142\171\x69\144"]; goto ge0m2; d6zKH: $data["\154\141\x73\164\x5f\155\x6f\x64\151\146\x69\x65\x64\137\165\163\x65\x72\156\141\155\145"] = searchnameuser($data["\x6c\x61\163\164\x5f\x6d\x6f\144\x69\x66\x69\145\144"]["\x62\171\x69\144"]); goto vaJjl; N3_Ve: $tooltiptemp = $data["\x74\157\157\154\164\x69\160"]; goto DwZCA; IV8JR: $data["\143\x72\145\x61\164\x65\144\137\x75\x73\x65\x72\156\x61\x6d\x65"] = $data["\x63\162\x65\x61\164\145\x64"]["\x62\171\151\x64"]; goto yvX8a; ZZqmS: o_3lR: goto C1cY1; zcLZM: $data["\x6f\167\156\x65\162\x5f\x75\163\145\x72\156\141\155\145"] = searchnameuser($id); goto m_JdJ; aRxFm: uCNSr: goto O2_aN; pKewn: $showtemp = $data["\163\150\x6f\167"]; goto IFAsx; GGjxt: $data["\156\x61\155\x65\x4c\x61\x6e\147"] = $data["\x6e\141\155\x65"]; goto ZZqmS; M9BeW: $id = substr($data["\x6f\167\156\x65\x72"], $index + 1); goto W45NH; YIM3d: $owner_username = searchbu($id); goto BkVPR; IFAsx: $coltemp = $data["\143\157\154"]; goto N3_Ve; W45NH: $name = substr($data["\x6f\167\x6e\x65\162"], 0, $index); goto HlI_z; lqknK: $data["\x67\x72\157\x75\160\156\x61\x6d\145"] = $valgroup["\x61\x6c\x69\x61\x73"]; goto PLYf1; E9yYH: $data["\x6e\141\x6d\145\114\x61\x6e\147"] = langJS("\x6d\x6f\144\165\x6c\145\137\143\165\x73\x74\157\155\146\151\145\x6c\x64\56\156\141\x6d\145\x5f\x6c\141\x6e\147\x2e" . $data["\x61\x6c\151\x61\x73"]) !== "\155\x6f\144\165\x6c\x65\137\x63\x75\163\x74\x6f\155\146\151\x65\154\144\56\x6e\141\x6d\x65\x5f\x6c\x61\x6e\147\x2e" . $data["\x61\x6c\x69\141\x73"] ? langJS("\155\x6f\144\165\x6c\x65\x5f\143\x75\163\x74\157\x6d\x66\151\145\x6c\144\x2e\x6e\x61\155\x65\x5f\154\x61\x6e\x67\x2e" . $data["\x61\x6c\151\x61\163"]) : $data["\156\x61\155\145"]; goto uc5lR; DwZCA: $notetemp = $data["\x6e\x6f\164\x65"]; goto kLnAk; vaJjl: if (!($data["\x6c\141\x73\x74\137\x6d\157\144\x69\x66\x69\145\144\x5f\x75\x73\x65\x72\x6e\x61\x6d\x65"] === false)) { goto DTs4G; } goto zx4PM; oZwXB: $data = $fieldall; goto fjj53; CAbHs: if (!($data["\143\162\145\141\164\145\144\x5f\165\x73\145\x72\x6e\x61\x6d\145"] === false)) { goto ozOGA; } goto IV8JR; PLYf1: $data["\143\x72\x65\x61\x74\x65\x64\137\165\x73\x65\162\156\141\x6d\x65"] = ''; goto QQ6AV; BeZ7f: if (isset($data["\x66\x69\x65\x6c\144\x61\154\x6c"])) { goto g9K5q; } goto uqpyx; G8t66: $data["\x63\157\x6c"] = $coltemp; goto E9yYH; C1cY1: $data["\x63\150\157\157\163\145\x66\x69\x65\x6c\144\141\x6c\x6c"] = 0; goto YIacD; YIacD: goto lYl3z; goto wY7MY; GID4e: if (!array_key_exists("\154\x61\163\164\x5f\x6d\157\144\x69\x66\151\145\x64", $data)) { goto uCNSr; } goto d6zKH; QQ6AV: if (!array_key_exists("\x63\162\145\141\x74\x65\x64", $data)) { goto I3_vL; } goto knP61; sQ_Ig: unset($fieldall["\x6e\157\x74\145"]); goto IwQQE; kLnAk: unset($fieldall["\163\x68\157\167"]); goto WREjw; IwQQE: $idFieldAll = $data["\137\x69\144"]; goto hVzDz; S7_P3: goto o_3lR; goto vpiwI; wfYQu: } goto r_dfB; bH8E6: $field = $this->field_m->db_get_withcache_custom($option, $this->data["\x70\x62\x78\x5f\x63\x75\163\164\x6f\155\145\162\137\143\157\x64\145"] . "\x5f\x66\151\x65\154\144\x5f\141\x64\144\x73\x6f\162\164\x69\144\x63\x6f\x6e\x74\x61\143\x74\x73\x5f" . $valgroup["\x5f\151\144"], 600); goto j8Quc; r_dfB: BWw_o: goto REUoq; iOwkc: $valgroup["\x6e\x61\155\x65\x4c\141\x6e\x67"] = $valgroup["\x6e\x61\x6d\145"]; goto u17Gg; KRBTy: $this->load->model("\163\x65\x74\x74\151\x6e\x67\163\57\143\x75\163\x74\x6f\x6d\146\x69\145\154\144\x2f\146\x69\x65\154\144\137\x6d"); goto bH8E6; AnhQE: goto WSN7e; goto Ix_u_; U3sCA: bEySk: goto RNk0Y; REUoq: $valgroup["\x66\151\x65\154\144\163"] = $field; goto sk4ms; RNk0Y: } goto RuwZg; i0T7c: $group = $this->fieldgroup_m->db_get_withcache_custom($optionSort, $this->data["\x70\142\170\137\x63\165\163\x74\157\155\145\162\x5f\143\157\144\x65"] . "\137\146\x69\x65\154\144\x67\162\157\165\160\x5f\141\144\x64\x73\157\162\164\151\x64\x63\157\x6e\x74\141\x63\164\163", 600); goto PEOXe; Iameo: $this->load->model("\x73\145\x74\x74\151\156\x67\x73\57\143\x75\163\x74\157\155\146\x69\x65\154\x64\x2f\146\x69\x65\154\x64\147\x72\157\165\x70\x5f\x6d"); goto ayvWt; Xz92H: } public function fieldAddSort() { goto xaWkf; URAXx: return $group; goto XcmTb; tvYOZ: ObMbd: goto URAXx; xaWkf: $this->load->model("\163\x65\164\x74\151\x6e\147\163\x2f\x63\x75\163\164\157\155\146\151\x65\x6c\x64\57\x66\151\145\x6c\x64\147\x72\x6f\165\160\x5f\x6d"); goto H2Jlv; H2Jlv: $this->load->model("\163\x65\x74\x74\151\156\147\x73\57\x63\x75\x73\164\x6f\155\x66\x69\145\154\144\57\x66\151\145\154\144\x61\154\x6c\x5f\x6d"); goto LMxvD; Q18zY: foreach ($group as &$valgroup) { goto aYI5Z; OADOS: a4aLA: goto DDAET; GrRRT: $valgroup["\156\141\155\145\x4c\141\156\x67"] = langJS("\x6d\x6f\144\x75\x6c\x65\x5f\x63\165\163\x74\157\155\146\151\145\154\144\56\x6e\141\x6d\145\x5f\154\141\x6e\x67\x2e" . $valgroup["\x61\154\x69\141\163"]) !== "\155\x6f\x64\x75\154\x65\x5f\x63\x75\163\164\157\155\x66\x69\145\x6c\144\x2e\x6e\x61\155\x65\137\x6c\141\x6e\147\x2e" . $valgroup["\141\154\x69\x61\x73"] ? langJS("\155\157\144\165\154\145\137\x63\x75\x73\164\x6f\155\146\x69\145\154\144\x2e\x6e\x61\x6d\x65\x5f\x6c\x61\x6e\x67\56" . $valgroup["\141\x6c\x69\141\x73"]) : $valgroup["\156\141\155\x65"]; goto DcQeo; Uu5D9: nQvcS: goto QXqkH; fHo5X: Ai97T: goto T_b2S; sSgve: goto Ai97T; goto TnYgR; QXqkH: $valgroup["\146\x69\x65\x6c\144\x73"] = $field; goto H8dza; SskM6: NQQCj: goto xoBK_; n79Z4: foreach ($field as &$data) { goto dmBjM; mdYBD: $idFieldAll = $data["\x5f\x69\x64"]; goto BO2N8; j51tY: rJJGp: goto h_Apy; ZWY98: DBtVp: goto LVNjv; sUh6Y: $data["\143\x72\x65\x61\164\x65\144\137\x75\x73\x65\162\156\x61\155\145"] = ''; goto bkdwk; KkPHF: bDElW: goto FjfPO; Bm4T6: $coltemp = $data["\143\x6f\154"]; goto UrMSe; cHdOG: $data["\163\x68\157\167"] = $showtemp; goto YxIJw; h_Apy: $data["\157\167\x6e\x65\162\x5f\165\163\x65\x72\x6e\x61\x6d\x65"] = searchnameuser($id); goto AbQQL; fJrVa: $data["\x6f\167\156\145\162\137\x75\x73\145\x72\x6e\x61\155\x65"] = $owner_username["\164\145\170\x74"]; goto dLlm3; xgGv2: $data["\147\x72\x6f\165\160\156\141\155\x65"] = $valgroup["\x61\x6c\x69\141\163"]; goto sUh6Y; Rt7u8: $data["\x6c\141\x73\x74\x5f\x6d\157\144\x69\146\151\x65\144\x5f\x75\163\x65\x72\x6e\x61\x6d\x65"] = searchnameuser($data["\x6c\x61\163\x74\137\155\x6f\x64\151\146\x69\145\144"]["\142\171\x69\x64"]); goto ySq9T; Ws0vN: $data["\x6e\157\164\x65"] = $notetemp; goto DgF5Q; pPFPd: unset($fieldall["\x74\x6f\157\154\x74\x69\160"]); goto DVzzD; fDLUk: $data["\x63\162\x65\x61\164\x65\x64\137\x75\x73\x65\162\x6e\141\155\x65"] = searchnameuser($data["\143\162\x65\x61\x74\145\x64"]["\x62\171\x69\x64"]); goto Yi5tk; UrMSe: $tooltiptemp = $data["\x74\157\x6f\154\164\151\160"]; goto Nc4Sm; dBSji: $data["\143\150\x6f\157\163\x65\x66\x69\145\x6c\x64\x61\154\154"] = 1; goto DOYa5; GrzdU: goto II9q6; goto eqh7s; sAnFc: lfqA3: goto QcDM7; FjfPO: $data["\143\x68\x6f\157\163\145\x66\151\145\x6c\x64\x61\x6c\x6c"] = 0; goto GrzdU; HY2co: if (!array_key_exists("\154\x61\x73\164\137\155\x6f\144\151\x66\151\145\144", $data)) { goto TJaOm; } goto Rt7u8; tZS2i: $data["\x6e\141\x6d\145\114\141\156\x67"] = langJS("\155\x6f\144\x75\x6c\x65\x5f\143\x75\x73\164\x6f\x6d\x66\151\145\x6c\144\56\156\x61\x6d\x65\x5f\x6c\x61\156\147\x2e" . $data["\141\154\151\x61\x73"]) !== "\x6d\x6f\144\165\154\145\137\x63\165\163\164\157\155\x66\x69\145\154\x64\56\156\141\x6d\145\x5f\x6c\x61\x6e\147\x2e" . $data["\141\x6c\151\x61\x73"] ? langJS("\x6d\157\144\165\154\145\x5f\x63\165\x73\x74\x6f\x6d\x66\151\x65\154\x64\x2e\x6e\x61\155\145\137\x6c\141\156\x67\56" . $data["\141\154\x69\141\163"]) : $data["\156\141\155\x65"]; goto mcLPW; Nc4Sm: $notetemp = $data["\156\x6f\x74\145"]; goto oxB4n; PAgiq: if ($name == "\x75\163\x65\162") { goto rJJGp; } goto KH7T0; N4J6j: $data = $fieldall; goto cHdOG; n9Y3l: $data["\x63\162\145\141\164\x65\144\x5f\165\x73\145\x72\156\141\x6d\x65"] = $data["\x63\x72\145\x61\164\x65\144"]["\142\x79\x69\144"]; goto uvkVC; DVzzD: unset($fieldall["\x6e\157\164\x65"]); goto mdYBD; QcDM7: $data["\154\141\163\164\137\x6d\x6f\x64\151\146\151\145\144\137\x75\163\x65\162\156\x61\x6d\145"] = ''; goto HY2co; LKZBS: TJaOm: goto xK2eT; yI0ZT: $optionFieldAll = ["\x77\150\x65\162\145" => ["\x5f\151\x64" => new \MongoDB\BSON\ObjectID($data["\x66\151\145\x6c\x64\141\x6c\154"]), "\163\150\x6f\167" => 1], "\163\157\x72\x74" => ["\x70\157\163\x69\164\x69\x6f\156" => 1]]; goto DULaa; eqh7s: kAf_S: goto yI0ZT; qJe91: $data["\x6c\x61\163\164\137\155\157\144\x69\x66\151\145\144\x5f\165\163\145\x72\x6e\x61\155\x65"] = $data["\154\x61\x73\164\137\155\157\144\x69\x66\151\x65\x64"]["\x62\171\x69\x64"]; goto AYaU5; DULaa: $fieldall = $this->fieldall_m->db_oneoptions([], $optionFieldAll); goto FFCXA; L7uqu: $data["\164\157\x6f\x6c\x74\151\x70"] = $tooltiptemp; goto Ws0vN; xK2eT: if (!array_key_exists("\x6f\167\x6e\145\162", $data)) { goto DBtVp; } goto XL3c8; uvkVC: XhmyS: goto sAnFc; FFCXA: $showtemp = $data["\163\150\x6f\167"]; goto Bm4T6; ySq9T: if (!($data["\154\x61\x73\x74\x5f\x6d\157\144\x69\146\151\145\144\137\x75\x73\x65\x72\156\x61\x6d\x65"] === false)) { goto Eh_oL; } goto qJe91; MmzWu: $data["\137\x69\144"] = $idFieldAll; goto Z32AY; Qawpx: $data["\156\141\x6d\x65\114\141\x6e\x67"] = $data["\156\x61\155\145"]; goto KkPHF; fynsY: if (isset($data["\x65\144\151\x74\144\145\146\141\165\x6c\164"]) || !(isset($data["\163\x79\x73\x74\x65\x6d"]) && $data["\163\x79\163\x74\145\155"] == 1 || isset($data["\x64\x65\146\x61\x75\154\164"]) && $data["\144\x65\146\x61\x75\154\164"] == 1)) { goto bAj5N; } goto tZS2i; BO2N8: unset($fieldall["\x5f\x69\x64"]); goto N4J6j; dLlm3: goto Px9Xf; goto j51tY; oxB4n: unset($fieldall["\163\150\x6f\x77"]); goto pPFPd; DgF5Q: $data["\156\x61\x6d\145\114\x61\x6e\147"] = langJS("\x6d\x6f\x64\165\154\x65\x5f\143\x75\163\x74\x6f\x6d\146\x69\x65\x6c\144\56\x6e\141\x6d\x65\137\x6c\141\156\x67\56" . $data["\x61\154\x69\141\x73"]) !== "\x6d\157\x64\165\154\145\x5f\143\x75\163\164\x6f\x6d\146\x69\x65\154\x64\56\x6e\x61\155\145\137\x6c\x61\156\147\x2e" . $data["\141\154\x69\141\163"] ? langJS("\x6d\x6f\x64\x75\154\145\x5f\x63\x75\163\x74\x6f\155\146\151\x65\x6c\144\x2e\x6e\141\x6d\145\x5f\154\141\x6e\147\56" . $data["\141\154\151\141\163"]) : $data["\x6e\141\x6d\145"]; goto dBSji; qhjNG: $name = substr($data["\157\x77\156\x65\x72"], 0, $index); goto PAgiq; mcLPW: goto bDElW; goto frSrN; AYaU5: Eh_oL: goto LKZBS; bkdwk: if (!array_key_exists("\143\162\x65\x61\x74\x65\144", $data)) { goto lfqA3; } goto fDLUk; zKH66: $id = substr($data["\x6f\167\x6e\x65\x72"], $index + 1); goto qhjNG; AbQQL: Px9Xf: goto ZWY98; Z32AY: II9q6: goto xgGv2; dmBjM: if (isset($data["\x66\151\145\154\x64\141\x6c\154"])) { goto kAf_S; } goto fynsY; XL3c8: $index = strpos($data["\x6f\x77\156\x65\x72"], "\x5f"); goto zKH66; KH7T0: $owner_username = searchbu($id); goto fJrVa; Yi5tk: if (!($data["\x63\162\145\141\164\x65\144\x5f\x75\x73\145\x72\x6e\x61\x6d\145"] === false)) { goto XhmyS; } goto n9Y3l; DOYa5: $data["\x69\144\106\151\145\x6c\144\101\x6c\154"] = $idFieldAll; goto MmzWu; LVNjv: svdaC: goto bf2LH; frSrN: bAj5N: goto Qawpx; YxIJw: $data["\x63\157\x6c"] = $coltemp; goto L7uqu; bf2LH: } goto Uu5D9; Ex8__: $option = ["\167\x68\145\x72\145" => ["\x67\162\157\165\160\x66\x69\145\x6c\x64" => $valgroup["\137\151\144"], "\163\x68\x6f\x77" => 1, "\160\141\x67\145\x53\x68\x6f\x77\56\x76\151\x65\x77\141\144\144" => 1], "\x73\x6f\x72\164" => ["\143\157\154" => 1, "\x70\x6f\163\x63\157\154\61" => 1, "\x70\157\163\143\157\154\x32" => 1]]; goto cCVF9; Oxt9R: $field = $this->field_m->db_get_withcache_custom($option, $this->data["\x70\142\x78\137\x63\x75\x73\164\157\155\x65\x72\x5f\x63\x6f\x64\145"] . "\137\146\151\x65\x6c\x64\x5f\x61\x64\144\x73\157\x72\x74\143\x6f\156\164\x61\143\x74\x73\137" . $valgroup["\x5f\151\144"], 600); goto n79Z4; bPt2f: QOjo2: goto gmEYs; cCVF9: goto O3ZuM; goto OADOS; DDAET: $option = ["\167\150\x65\162\x65" => ["\x67\162\157\165\x70\146\151\145\154\x64" => $valgroup["\x5f\151\144"], "\163\150\157\x77" => 1, "\160\x61\147\145\x53\x68\157\167\x2e\166\x69\145\167\141\144\144" => 1], "\x73\157\x72\164" => ["\160\157\x73\x69\164\151\157\x6e\141\144\144" => 1]]; goto rkAOU; aYI5Z: if (isset($valgroup["\143\x6f\x6c\141\x64\x64"])) { goto vGR1M; } goto yAhiO; TnYgR: vGR1M: goto LDQ60; H8dza: if (isset($valgroup["\x65\144\x69\164\144\145\x66\141\x75\154\164"])) { goto NQQCj; } goto GrRRT; xoBK_: $valgroup["\x6e\141\155\145\114\141\x6e\x67"] = $valgroup["\x6e\141\x6d\x65"]; goto bPt2f; yAhiO: $option = ["\167\x68\x65\162\145" => ["\x67\x72\x6f\x75\x70\146\x69\x65\154\x64" => $valgroup["\137\151\144"], "\x73\150\157\x77" => 1, "\160\x61\147\x65\123\x68\x6f\167\56\166\x69\x65\167\141\144\x64" => 1], "\x73\157\x72\x74" => ["\160\x6f\163\x69\x74\x69\157\156\x61\144\144" => 1]]; goto sSgve; T_b2S: $this->load->model("\x73\145\x74\x74\x69\x6e\x67\163\57\x63\165\163\x74\157\x6d\146\x69\x65\154\x64\x2f\146\151\x65\154\x64\x5f\x6d"); goto Oxt9R; gmEYs: rRLOw: goto Ukdo2; rkAOU: O3ZuM: goto fHo5X; DcQeo: goto QOjo2; goto SskM6; LDQ60: if ($valgroup["\x63\x6f\x6c\x61\144\x64"] == "\x6f\156\145\143\x6f\x6c\165\x6d\156") { goto a4aLA; } goto Ex8__; Ukdo2: } goto tvYOZ; bAgAa: $group = $this->fieldgroup_m->db_get_withcache_custom($optionSort, $this->data["\x70\x62\170\x5f\x63\x75\x73\164\157\155\145\x72\x5f\143\x6f\x64\x65"] . "\x5f\146\151\145\x6c\144\147\162\157\165\x70\x5f\141\x64\144\x73\157\x72\164\143\157\x6e\164\x61\x63\x74\163", 600); goto Q18zY; LMxvD: $optionSort = ["\x77\x68\145\162\145" => ["\155\x6f\x64\165\154\x65" => "\x63\x6f\x6e\x74\141\143\164\163", "\163\150\x6f\167" => 1], "\163\x6f\x72\x74" => ["\x70\x6f\163\151\164\x69\157\x6e" => 1]]; goto bAgAa; XcmTb: } public function returnGroupAddSortIDLead() { goto KsnD9; ZI6fP: $group = $this->fieldgroup_m->db_get_withcache_custom($optionSort, $this->data["\160\x62\170\137\143\165\x73\x74\157\155\145\x72\137\x63\x6f\x64\x65"] . "\x5f\x66\151\145\x6c\x64\x67\x72\157\x75\160\137\x61\144\x64\x73\x6f\162\164\151\x64\154\145\141\x64\163", 600); goto iPATH; txt4P: $optionSort = ["\167\x68\x65\x72\x65" => ["\155\x6f\x64\x75\x6c\145" => "\154\x65\x61\x64\163", "\x73\x68\157\167" => 1], "\163\157\x72\x74" => ["\160\x6f\163\x69\164\x69\157\x6e" => 1]]; goto ZI6fP; KsnD9: $this->load->model("\163\x65\164\164\151\x6e\147\163\57\x63\x75\163\x74\x6f\155\x66\x69\x65\x6c\144\x2f\146\x69\145\x6c\144\147\162\x6f\165\160\137\155"); goto Tf7LW; iPATH: foreach ($group as &$valgroup) { goto X0aWk; yFBef: $field = $this->field_m->db_get_withcache_custom($option, $this->data["\x70\142\x78\137\143\165\x73\x74\x6f\155\x65\162\137\x63\x6f\144\145"] . "\x5f\x66\151\145\x6c\x64\137\141\144\x64\x73\157\162\164\x69\x64\154\x65\141\x64\x73\x5f" . $valgroup["\x5f\151\144"], 600); goto V8glK; dZEfs: $valgroup["\156\x61\155\x65\x4c\141\x6e\147"] = $valgroup["\156\141\x6d\145"]; goto rA98M; H4QOD: $this->load->model("\163\x65\164\x74\151\x6e\147\163\x2f\143\165\x73\164\157\x6d\x66\151\x65\154\144\57\146\151\x65\x6c\x64\x5f\155"); goto yFBef; mbeOG: $valgroup["\146\151\145\x6c\144\163"] = $field; goto bMYoB; qY7Jo: goto hEKK2; goto rrk6Z; V8glK: foreach ($field as $key => &$data) { goto ZLfDG; TLBDq: goto Wzy1Q; goto XSj5n; MOnRv: jvQq5: goto Ta8eQ; IJAvO: RC4k2: goto Rr9GO; Sowt7: $data["\x69\144\106\x69\x65\x6c\x64\101\154\x6c"] = $idFieldAll; goto uijGx; ZLfDG: if (isset($data["\146\x69\x65\154\144\141\x6c\x6c"])) { goto v8BzE; } goto PN1SY; l02BB: if (!array_key_exists("\x63\162\x65\141\x74\x65\x64", $data)) { goto aUkoD; } goto XFHVR; PJ3Wh: unset($fieldall["\156\x6f\164\145"]); goto uJ7ZQ; mHDpx: $data["\143\150\157\157\x73\x65\146\x69\x65\154\144\141\154\154"] = 1; goto Sowt7; BK9Nj: if (!($data["\x6c\x61\x73\164\x5f\155\157\144\151\x66\151\145\144\137\x75\163\x65\x72\x6e\141\155\145"] === false)) { goto HJB31; } goto NvfdW; GRQ8t: $coltemp = $data["\x63\157\154"]; goto Vh7FI; U6HSq: $data["\x6e\x61\155\x65\114\141\156\x67"] = langJS("\x6d\157\144\x75\x6c\145\137\x63\x75\x73\x74\157\155\146\x69\145\154\144\56\x6e\x61\x6d\145\137\154\x61\x6e\x67\56" . $data["\141\154\x69\141\163"]) !== "\155\x6f\x64\165\154\x65\137\x63\165\x73\x74\157\x6d\x66\x69\145\x6c\144\56\x6e\141\x6d\145\137\154\x61\156\x67\56" . $data["\x61\x6c\x69\141\163"] ? langJS("\x6d\157\x64\165\154\145\137\143\x75\163\x74\157\155\146\151\145\154\144\x2e\x6e\141\155\145\x5f\x6c\x61\156\x67\56" . $data["\x61\154\x69\141\x73"]) : $data["\156\x61\x6d\145"]; goto mHDpx; khB22: VCenk: goto Fk3Zz; RJOVW: $index = strpos($data["\x6f\x77\156\x65\x72"], "\137"); goto XPK1J; VAOgv: if ($name == "\x75\163\x65\x72") { goto VCenk; } goto I_G2R; mLBLz: HJB31: goto IuuCI; cdRYW: $data["\156\141\155\x65\x4c\x61\156\147"] = $data["\x6e\141\x6d\145"]; goto IJAvO; qFT4z: $data["\x67\x72\x6f\x75\x70\x6e\x61\x6d\145"] = $valgroup["\141\x6c\151\x61\163"]; goto kGpkg; P_VSa: unset($fieldall["\x74\157\157\x6c\164\x69\160"]); goto PJ3Wh; lqLXj: $data["\x6f\167\156\145\x72\x5f\165\163\145\162\156\141\x6d\145"] = $owner_username["\x74\145\x78\164"]; goto J1XH_; pGtBj: a57Id: goto GdY65; U9xYL: $showtemp = $data["\163\x68\157\167"]; goto GRQ8t; btd3l: $data["\x6c\141\163\x74\137\x6d\x6f\x64\x69\x66\x69\x65\x64\137\165\163\x65\162\156\x61\155\x65"] = ''; goto zlfoG; uAk9E: $data["\x6c\141\163\164\137\155\x6f\144\x69\146\151\145\x64\137\x75\x73\145\x72\x6e\141\155\x65"] = searchnameuser($data["\x6c\141\x73\164\x5f\155\157\144\x69\146\151\145\x64"]["\142\171\151\144"]); goto BK9Nj; uijGx: $data["\137\x69\x64"] = $idFieldAll; goto X6CIW; GdY65: HHV1q: goto TGfvt; uJ7ZQ: $idFieldAll = $data["\x5f\151\x64"]; goto BYcK7; oCdF9: $optionFieldAll = ["\x77\150\145\x72\145" => ["\x5f\151\144" => new \MongoDB\BSON\ObjectID($data["\146\x69\145\x6c\x64\141\x6c\x6c"]), "\x73\150\x6f\x77" => 1], "\x73\x6f\x72\x74" => ["\160\x6f\x73\x69\164\151\157\156\141\144\x64" => 1]]; goto cI9_n; uFDUX: if (!($data["\143\162\x65\141\164\x65\144\137\x75\163\x65\x72\156\141\x6d\x65"] === false)) { goto jvQq5; } goto AUcw1; kGpkg: $data["\143\162\145\x61\x74\145\x64\137\x75\163\x65\162\x6e\x61\155\145"] = ''; goto l02BB; fwx1_: if (!array_key_exists("\x6f\x77\x6e\145\x72", $data)) { goto HHV1q; } goto RJOVW; itCf_: $data["\156\141\x6d\x65\x4c\x61\x6e\147"] = langJS("\155\x6f\144\x75\154\145\x5f\143\x75\x73\164\x6f\x6d\x66\151\145\x6c\144\x2e\x6e\141\155\x65\x5f\x6c\x61\x6e\x67\56" . $data["\x61\x6c\151\x61\163"]) !== "\x6d\x6f\x64\x75\x6c\145\137\x63\165\x73\164\x6f\x6d\146\x69\x65\154\144\x2e\x6e\141\x6d\145\137\154\141\x6e\x67\56" . $data["\141\154\151\141\163"] ? langJS("\x6d\157\144\165\154\x65\x5f\x63\165\x73\x74\157\x6d\146\151\x65\x6c\144\56\156\141\155\145\137\x6c\x61\156\147\56" . $data["\141\154\151\141\163"]) : $data["\156\141\x6d\x65"]; goto raJt9; cI9_n: $fieldall = $this->fieldall_m->db_oneoptions([], $optionFieldAll); goto U9xYL; BYcK7: unset($fieldall["\x5f\x69\x64"]); goto Q2_tN; NvfdW: $data["\154\141\163\x74\x5f\x6d\x6f\x64\151\146\x69\145\144\137\165\163\x65\x72\x6e\141\155\145"] = $data["\154\141\x73\164\137\155\157\x64\151\146\x69\x65\x64"]["\x62\171\151\x64"]; goto mLBLz; IuuCI: it7hB: goto fwx1_; X6CIW: Wzy1Q: goto qFT4z; qaZtD: $data["\163\x68\157\167"] = $showtemp; goto cc13x; Q2_tN: $data = $fieldall; goto qaZtD; XFHVR: $data["\x63\162\145\141\x74\x65\144\137\x75\163\145\x72\156\x61\x6d\145"] = searchnameuser($data["\143\162\x65\141\x74\x65\x64"]["\142\x79\151\x64"]); goto uFDUX; Rr9GO: $data["\143\x68\157\x6f\x73\145\146\x69\145\x6c\x64\141\154\x6c"] = 0; goto TLBDq; raJt9: goto RC4k2; goto GgJVK; Fk3Zz: $data["\x6f\167\x6e\145\x72\x5f\x75\x73\x65\162\x6e\141\x6d\145"] = searchnameuser($id); goto pGtBj; m1Oy4: unset($fieldall["\x73\x68\x6f\x77"]); goto P_VSa; TGfvt: xExkm: goto ZqXTh; GgJVK: ZWffy: goto cdRYW; XSj5n: v8BzE: goto oCdF9; Vh7FI: $tooltiptemp = $data["\164\x6f\157\x6c\164\x69\x70"]; goto jR__r; K5KTa: $data["\156\157\164\145"] = $notetemp; goto BoOQF; cc13x: $data["\164\x6f\x6f\x6c\x74\151\x70"] = $tooltiptemp; goto K5KTa; Ta8eQ: aUkoD: goto btd3l; Dk6PU: $name = substr($data["\x6f\167\156\145\162"], 0, $index); goto VAOgv; BoOQF: $data["\x63\x6f\x6c"] = $coltemp; goto U6HSq; zlfoG: if (!array_key_exists("\x6c\x61\x73\164\x5f\155\x6f\144\151\x66\151\145\144", $data)) { goto it7hB; } goto uAk9E; J1XH_: goto a57Id; goto khB22; PN1SY: if (isset($data["\145\x64\x69\164\x64\x65\x66\x61\x75\x6c\164"]) || !(isset($data["\x73\171\x73\x74\145\x6d"]) && $data["\x73\x79\x73\x74\145\x6d"] == 1 || isset($data["\144\x65\146\141\165\154\x74"]) && $data["\144\x65\146\x61\165\x6c\164"] == 1)) { goto ZWffy; } goto itCf_; jR__r: $notetemp = $data["\x6e\x6f\x74\x65"]; goto m1Oy4; I_G2R: $owner_username = searchbu($id); goto lqLXj; AUcw1: $data["\x63\x72\x65\141\x74\145\x64\x5f\165\x73\145\162\x6e\141\x6d\145"] = $data["\x63\162\x65\141\x74\145\x64"]["\142\171\151\144"]; goto MOnRv; XPK1J: $id = substr($data["\x6f\167\x6e\145\162"], $index + 1); goto Dk6PU; ZqXTh: } goto OlXTi; lPZRg: tti7P: goto vVbna; PdGSP: $valgroup["\x6e\141\x6d\145\114\141\x6e\147"] = langJS("\155\x6f\x64\165\x6c\x65\x5f\143\165\163\x74\157\155\146\151\x65\154\x64\x2e\x6e\141\155\145\137\x6c\x61\156\147\56" . $valgroup["\x61\x6c\x69\141\x73"]) !== "\155\x6f\x64\165\x6c\x65\137\143\x75\163\164\x6f\x6d\146\151\145\154\x64\x2e\156\141\155\x65\137\x6c\141\x6e\x67\x2e" . $valgroup["\141\x6c\151\x61\163"] ? langJS("\x6d\157\144\165\154\145\137\143\165\x73\164\157\155\146\x69\x65\154\144\56\156\141\155\145\x5f\154\141\x6e\x67\56" . $valgroup["\141\154\x69\x61\x73"]) : $valgroup["\156\x61\155\145"]; goto qY7Jo; rA98M: hEKK2: goto lPZRg; bMYoB: if (isset($valgroup["\x65\144\151\x74\144\145\x66\x61\165\x6c\164"])) { goto vRDc6; } goto PdGSP; rrk6Z: vRDc6: goto dZEfs; X0aWk: $option = ["\x77\x68\145\162\145" => ["\147\x72\157\165\x70\146\151\x65\154\144" => $valgroup["\137\151\144"], "\163\x68\157\167" => 1, "\x70\x61\147\145\123\x68\x6f\167\x2e\166\151\145\x77\x61\x64\144" => 1], "\163\157\x72\164" => ["\137\x69\x64" => 1, "\141\162\162\104\x65\x70\x65\156\x64" => 1]]; goto H4QOD; OlXTi: SNotU: goto mbeOG; vVbna: } goto hsT20; hsT20: RnKdJ: goto FEAYu; Tf7LW: $this->load->model("\163\x65\x74\164\x69\x6e\x67\x73\x2f\143\x75\163\164\157\155\146\151\145\154\x64\57\146\151\x65\x6c\144\141\154\154\137\155"); goto txt4P; FEAYu: return $group; goto WmlVu; WmlVu: } public function fieldAddSortLead() { goto f0AnN; oBXWb: UVZC0: goto nfCBG; wvLX_: $optionSort = ["\167\150\x65\x72\x65" => ["\x6d\157\x64\165\x6c\x65" => "\154\145\x61\x64\x73", "\163\150\157\x77" => 1], "\x73\x6f\x72\x74" => ["\160\157\163\151\x74\x69\x6f\156" => 1]]; goto iMxBS; iMxBS: $group = $this->fieldgroup_m->db_get_withcache_custom($optionSort, $this->data["\x70\142\170\x5f\143\165\163\x74\x6f\155\x65\x72\x5f\143\x6f\x64\x65"] . "\x5f\x66\151\145\154\144\147\x72\x6f\165\x70\x5f\141\x64\x64\163\x6f\x72\x74\154\145\x61\144\163", 600); goto w1CVc; aWJ8G: $this->load->model("\x73\145\x74\164\151\x6e\147\x73\57\143\x75\163\x74\x6f\x6d\146\x69\145\154\144\x2f\x66\151\x65\154\144\141\154\x6c\x5f\155"); goto wvLX_; w1CVc: foreach ($group as &$valgroup) { goto MijNF; LQ5lw: foreach ($field as &$data) { goto bLq10; crmFX: $data["\x6e\141\x6d\145\114\141\156\147"] = langJS("\x6d\x6f\144\x75\154\x65\x5f\x63\165\x73\x74\157\x6d\146\x69\x65\154\x64\x2e\156\141\x6d\x65\x5f\154\x61\156\x67\x2e" . $data["\x61\x6c\151\x61\x73"]) !== "\155\157\x64\165\x6c\x65\x5f\x63\x75\163\x74\157\x6d\146\151\x65\x6c\144\56\156\x61\x6d\145\x5f\x6c\141\x6e\147\56" . $data["\141\154\x69\141\163"] ? langJS("\155\x6f\144\x75\x6c\145\137\x63\x75\163\164\x6f\x6d\x66\151\145\154\144\56\x6e\141\x6d\x65\137\x6c\x61\x6e\x67\56" . $data["\141\154\x69\x61\163"]) : $data["\x6e\x61\155\x65"]; goto eEDB6; FSwRO: $data["\x67\162\157\165\160\x6e\141\155\x65"] = $valgroup["\x61\x6c\151\141\163"]; goto JfRo4; Y36q2: $id = substr($data["\x6f\x77\156\x65\x72"], $index + 1); goto NOUvi; le7dl: $index = strpos($data["\157\x77\156\x65\162"], "\137"); goto Y36q2; VSDXK: if (isset($data["\x65\x64\x69\164\x64\145\x66\141\165\x6c\x74"]) || !(isset($data["\163\171\x73\164\145\155"]) && $data["\163\171\x73\164\145\x6d"] == 1 || isset($data["\144\x65\x66\141\x75\154\x74"]) && $data["\x64\x65\x66\141\x75\x6c\x74"] == 1)) { goto VY_33; } goto Qkljy; Qkljy: $data["\x6e\141\155\145\x4c\x61\x6e\147"] = langJS("\155\x6f\144\165\154\145\137\143\165\163\x74\x6f\155\146\x69\145\154\144\56\156\x61\155\x65\x5f\x6c\141\x6e\x67\x2e" . $data["\x61\x6c\151\141\163"]) !== "\155\x6f\144\165\x6c\x65\137\x63\165\163\164\157\155\146\x69\145\x6c\x64\x2e\x6e\x61\x6d\x65\137\154\x61\156\x67\56" . $data["\x61\154\151\x61\163"] ? langJS("\155\x6f\144\165\x6c\145\137\x63\165\163\x74\x6f\x6d\146\x69\x65\154\144\x2e\x6e\141\155\145\137\154\x61\x6e\147\56" . $data["\x61\x6c\x69\x61\163"]) : $data["\156\141\x6d\145"]; goto gholW; xQhaw: unset($fieldall["\137\151\144"]); goto iZNb8; lk0uB: UtDbo: goto P3bQ9; LPjF7: $data["\x5f\x69\x64"] = $idFieldAll; goto CtT93; SZnWF: if (!($data["\143\162\145\x61\x74\x65\144\137\165\163\145\162\156\141\x6d\145"] === false)) { goto qP6O7; } goto kQSm9; HBThD: UcVgn: goto Gp6sz; drmfT: goto UXvqU; goto PgCsE; eF8PI: $tooltiptemp = $data["\164\x6f\157\x6c\x74\x69\160"]; goto UcbN3; YbOkd: $data["\x6f\167\x6e\x65\x72\x5f\165\x73\145\x72\x6e\x61\x6d\x65"] = searchnameuser($id); goto HBThD; JHKuJ: if (!array_key_exists("\154\141\x73\164\137\x6d\157\x64\x69\146\151\x65\x64", $data)) { goto bNKqJ; } goto Xfa8M; mU4Ed: unset($fieldall["\x6e\157\x74\145"]); goto KdndW; JpNLe: g6s8m: goto sa9Ud; e6OGD: $data["\157\167\156\145\162\x5f\x75\x73\x65\162\x6e\141\155\145"] = $owner_username["\164\145\x78\x74"]; goto CKaEY; NOUvi: $name = substr($data["\157\167\156\145\x72"], 0, $index); goto YcrLo; PIPah: $data["\143\157\154"] = $coltemp; goto f2UYz; bgZ3S: $data["\156\157\164\145"] = $notetemp; goto crmFX; zsK50: $data["\156\141\155\145\114\x61\156\147"] = $data["\x6e\141\155\145"]; goto SjP47; YcrLo: if ($name == "\165\x73\x65\162") { goto vACqq; } goto VJxN5; wDW3S: if (!array_key_exists("\x63\162\x65\141\164\x65\144", $data)) { goto g6s8m; } goto bL27R; A9HF5: $coltemp = $data["\x63\157\154"]; goto eF8PI; gholW: goto bo2zX; goto t6aAt; UcbN3: $notetemp = $data["\x6e\x6f\164\x65"]; goto rEDL7; eEDB6: $data["\143\150\x6f\x6f\163\145\146\x69\145\x6c\x64\x61\154\154"] = 1; goto so_BX; ytco0: $data["\154\141\163\164\x5f\x6d\157\x64\x69\146\x69\145\x64\x5f\165\x73\145\x72\156\141\155\x65"] = $data["\x6c\x61\x73\164\x5f\x6d\x6f\144\x69\x66\151\145\144"]["\142\171\x69\x64"]; goto VJ6Em; JfRo4: $data["\x63\162\x65\x61\164\145\x64\137\x75\x73\145\x72\156\141\155\145"] = ''; goto wDW3S; so_BX: $data["\x69\144\x46\151\x65\x6c\x64\x41\154\154"] = $idFieldAll; goto LPjF7; VJxN5: $owner_username = searchbu($id); goto e6OGD; Zlzne: $showtemp = $data["\x73\x68\157\167"]; goto A9HF5; t6aAt: VY_33: goto zsK50; ZEiRX: $data["\163\150\x6f\x77"] = $showtemp; goto PIPah; cLnQq: if (!($data["\x6c\x61\163\164\137\155\157\144\x69\146\x69\145\x64\x5f\165\163\145\x72\156\141\x6d\145"] === false)) { goto IJhjQ; } goto ytco0; bL27R: $data["\x63\x72\145\141\x74\x65\x64\x5f\165\163\x65\x72\156\141\x6d\x65"] = searchnameuser($data["\143\x72\145\x61\164\145\144"]["\x62\171\x69\x64"]); goto SZnWF; aoWNy: vACqq: goto YbOkd; bLq10: if (isset($data["\x66\151\145\154\x64\141\x6c\x6c"])) { goto mMxz5; } goto VSDXK; loM0T: unset($fieldall["\x74\x6f\x6f\x6c\164\151\160"]); goto mU4Ed; Xfa8M: $data["\154\x61\x73\x74\137\155\x6f\x64\151\x66\x69\145\144\137\165\163\x65\162\x6e\x61\x6d\x65"] = searchnameuser($data["\x6c\x61\163\164\137\155\157\x64\151\x66\x69\145\x64"]["\142\x79\x69\144"]); goto cLnQq; PgCsE: mMxz5: goto op36M; rEDL7: unset($fieldall["\x73\150\157\x77"]); goto loM0T; IHwoA: $fieldall = $this->fieldall_m->db_oneoptions([], $optionFieldAll); goto Zlzne; Gp6sz: BDfOs: goto lk0uB; Qzuqe: $data["\143\x68\157\x6f\x73\145\x66\x69\145\x6c\x64\x61\x6c\154"] = 0; goto drmfT; CtT93: UXvqU: goto FSwRO; VJ6Em: IJhjQ: goto KXtNd; op36M: $optionFieldAll = ["\x77\150\145\x72\145" => ["\137\x69\144" => new \MongoDB\BSON\ObjectID($data["\146\x69\145\x6c\144\x61\x6c\154"]), "\163\150\157\x77" => 1], "\163\x6f\162\164" => ["\x70\157\x73\151\164\x69\157\156" => 1]]; goto IHwoA; KdndW: $idFieldAll = $data["\137\151\144"]; goto xQhaw; f2UYz: $data["\164\157\157\x6c\x74\x69\x70"] = $tooltiptemp; goto bgZ3S; SjP47: bo2zX: goto Qzuqe; KXtNd: bNKqJ: goto KXaj7; CKaEY: goto UcVgn; goto aoWNy; kQSm9: $data["\x63\162\145\141\x74\x65\x64\137\x75\163\x65\162\x6e\141\155\x65"] = $data["\x63\162\x65\x61\164\145\144"]["\x62\x79\151\144"]; goto lAm1I; lAm1I: qP6O7: goto JpNLe; sa9Ud: $data["\x6c\141\x73\x74\x5f\155\157\x64\x69\x66\x69\x65\144\x5f\165\163\145\162\156\x61\x6d\x65"] = ''; goto JHKuJ; iZNb8: $data = $fieldall; goto ZEiRX; KXaj7: if (!array_key_exists("\x6f\167\156\145\162", $data)) { goto BDfOs; } goto le7dl; P3bQ9: } goto tF45P; F4Cai: a8DdP: goto sxqeI; O5DVp: $field = $this->field_m->db_get_withcache_custom($option, $this->data["\x70\x62\x78\137\143\165\x73\164\157\155\x65\x72\137\x63\157\144\x65"] . "\x5f\x66\151\145\x6c\144\x5f\141\x64\144\163\157\x72\164\x6c\x65\141\144\x73\137" . $valgroup["\x5f\151\x64"], 600); goto LQ5lw; bvPYz: $valgroup["\x6e\x61\155\145\x4c\141\x6e\147"] = $valgroup["\x6e\x61\155\x65"]; goto G_fru; Qgo0e: $option = ["\x77\150\145\162\x65" => ["\147\162\x6f\x75\x70\x66\151\x65\x6c\144" => $valgroup["\137\x69\144"], "\163\x68\157\x77" => 1, "\160\x61\147\x65\x53\150\157\167\x2e\x76\x69\145\167\x61\144\x64" => 1], "\x73\157\162\164" => ["\x70\157\163\x69\164\151\157\x6e\141\144\144" => 1]]; goto sH2me; Qf7ce: $option = ["\167\150\145\x72\x65" => ["\x67\x72\157\x75\160\146\151\x65\154\x64" => $valgroup["\x5f\x69\144"], "\x73\150\x6f\167" => 1, "\x70\141\x67\145\123\150\x6f\x77\x2e\x76\x69\145\x77\x61\144\144" => 1], "\163\x6f\x72\164" => ["\143\157\154" => 1, "\160\157\x73\x63\x6f\154\x31" => 1, "\x70\x6f\163\143\157\154\62" => 1]]; goto K14uw; W4A1e: if ($valgroup["\x63\157\x6c\141\x64\144"] == "\157\156\145\x63\157\154\x75\x6d\156") { goto QyMex; } goto Qf7ce; Hv6g4: RRkrO: goto W4A1e; K7bJV: $valgroup["\146\151\x65\154\144\163"] = $field; goto bCVm2; bCVm2: if (isset($valgroup["\145\144\x69\164\x64\145\146\x61\165\154\164"])) { goto n6Faj; } goto ukiP8; LRG6k: $this->load->model("\x73\x65\x74\164\151\x6e\x67\163\x2f\x63\165\x73\x74\157\x6d\x66\151\145\154\x64\57\146\x69\x65\x6c\x64\137\x6d"); goto O5DVp; G_fru: UOG8S: goto F4Cai; PHGPM: Rbip3: goto LRG6k; sH2me: goto Rbip3; goto Hv6g4; K14uw: goto wrU6b; goto JTBQ7; ODivo: goto UOG8S; goto TRz4U; ukiP8: $valgroup["\x6e\x61\155\145\114\x61\x6e\x67"] = langJS("\155\157\144\165\x6c\145\x5f\143\x75\163\164\x6f\155\x66\151\x65\154\144\x2e\156\141\155\145\137\x6c\141\156\147\56" . $valgroup["\x61\154\151\141\163"]) !== "\155\x6f\x64\165\x6c\145\x5f\x63\x75\163\x74\157\x6d\146\151\x65\154\144\x2e\x6e\x61\155\145\137\154\x61\x6e\x67\x2e" . $valgroup["\x61\x6c\151\x61\x73"] ? langJS("\155\x6f\144\x75\154\145\137\x63\165\x73\164\x6f\x6d\x66\x69\x65\x6c\x64\x2e\156\x61\155\x65\137\x6c\x61\x6e\x67\56" . $valgroup["\141\x6c\151\x61\163"]) : $valgroup["\156\x61\155\145"]; goto ODivo; MijNF: if (isset($valgroup["\x63\157\154\141\x64\144"])) { goto RRkrO; } goto Qgo0e; TRz4U: n6Faj: goto bvPYz; S7bt7: wrU6b: goto PHGPM; tF45P: rtg83: goto K7bJV; IU9s1: $option = ["\167\150\x65\162\x65" => ["\x67\x72\x6f\x75\160\146\x69\145\x6c\144" => $valgroup["\137\151\x64"], "\x73\150\x6f\x77" => 1, "\160\141\147\x65\123\150\157\x77\56\x76\x69\145\167\141\x64\144" => 1], "\x73\157\162\164" => ["\x70\157\x73\x69\164\x69\157\x6e\141\x64\x64" => 1]]; goto S7bt7; JTBQ7: QyMex: goto IU9s1; sxqeI: } goto oBXWb; nfCBG: return $group; goto FaPQY; f0AnN: $this->load->model("\163\145\164\x74\151\156\147\163\x2f\143\165\163\x74\157\x6d\x66\x69\145\x6c\144\x2f\x66\151\x65\154\x64\147\x72\x6f\x75\x70\x5f\x6d"); goto aWJ8G; FaPQY: } public function returnGroupAddSortIDAccount() { goto T8b3Q; ZTBkU: $optionSort = ["\167\150\x65\x72\x65" => ["\x6d\x6f\x64\165\x6c\x65" => "\141\143\x63\157\165\156\164\x73", "\163\x68\157\167" => 1], "\x73\157\x72\x74" => ["\160\157\163\151\x74\151\157\x6e" => 1]]; goto C6wrQ; nkrwo: v1Iue: goto Tyjvc; iiHb6: foreach ($group as &$valgroup) { goto dWn_m; NI0t6: foreach ($field as $key => &$data) { goto ACprF; SCTAP: $showtemp = $data["\163\150\157\167"]; goto rruGX; CL1A4: unset($fieldall["\x73\x68\x6f\x77"]); goto cX8JY; EOGQ7: $data["\x6c\x61\163\x74\x5f\155\x6f\x64\x69\x66\151\x65\144\x5f\x75\x73\x65\x72\156\141\x6d\145"] = searchnameuser($data["\x6c\x61\x73\164\137\x6d\157\144\x69\146\x69\145\x64"]["\x62\171\151\x64"]); goto BXv6L; dbrFJ: BDBd0: goto eKM8l; HMx9E: aNWlz: goto nzJIb; cX8JY: unset($fieldall["\x74\x6f\x6f\154\164\151\x70"]); goto JlQmh; nzJIb: $data["\143\150\x6f\x6f\163\x65\146\x69\145\x6c\144\x61\x6c\x6c"] = 0; goto Qb78X; MRaNc: $index = strpos($data["\x6f\167\156\145\x72"], "\x5f"); goto oU4g3; NQPGH: goto aNWlz; goto BVNmK; ACprF: if (isset($data["\x66\x69\145\x6c\144\x61\x6c\154"])) { goto WsYqf; } goto P3oh8; E0hyK: AE2At: goto fuOhY; jTFaB: $data["\156\x61\155\x65\114\x61\156\x67"] = $data["\x6e\141\155\145"]; goto HMx9E; krDjB: WIVpt: goto ta1uW; RUhI2: $data["\x63\x72\x65\141\x74\145\x64\137\165\163\x65\162\156\141\155\x65"] = $data["\143\162\145\141\x74\x65\x64"]["\142\x79\151\144"]; goto dbrFJ; eEQWO: QZhTA: goto krDjB; B4tKo: $idFieldAll = $data["\137\151\x64"]; goto aWTPV; MllP4: $data["\x6e\141\155\x65\x4c\141\156\147"] = langJS("\155\157\144\165\x6c\145\137\143\165\163\x74\157\x6d\x66\151\145\154\x64\56\156\141\x6d\145\137\x6c\141\x6e\147\56" . $data["\141\154\x69\141\163"]) !== "\x6d\x6f\x64\x75\x6c\145\x5f\143\165\x73\x74\157\x6d\x66\x69\145\x6c\144\x2e\156\x61\155\145\137\x6c\x61\156\x67\56" . $data["\x61\x6c\151\x61\163"] ? langJS("\x6d\157\x64\x75\x6c\x65\137\x63\165\x73\x74\x6f\x6d\x66\151\x65\154\144\x2e\156\141\x6d\145\137\154\x61\156\x67\x2e" . $data["\141\x6c\151\141\163"]) : $data["\x6e\x61\x6d\x65"]; goto NQPGH; HoQua: if (!array_key_exists("\x6f\x77\156\x65\162", $data)) { goto WIVpt; } goto MRaNc; yNJ3d: $data["\156\x6f\164\145"] = $notetemp; goto R19q7; K4d1b: $data["\151\144\106\151\145\x6c\x64\101\x6c\154"] = $idFieldAll; goto H4FGx; eKM8l: C4TRO: goto Ov97s; LHcHH: $notetemp = $data["\x6e\157\x74\x65"]; goto CL1A4; Sie40: $data["\x6e\x61\155\x65\x4c\x61\x6e\147"] = langJS("\155\157\144\165\x6c\145\x5f\143\x75\x73\164\157\155\146\151\x65\154\144\x2e\x6e\141\x6d\x65\137\x6c\141\156\147\56" . $data["\x61\154\x69\x61\163"]) !== "\x6d\x6f\x64\x75\154\x65\x5f\x63\x75\x73\164\x6f\155\x66\151\145\x6c\x64\x2e\x6e\141\155\145\137\x6c\141\156\x67\56" . $data["\x61\154\x69\141\163"] ? langJS("\x6d\157\x64\x75\154\x65\x5f\x63\x75\x73\x74\157\155\x66\151\x65\154\144\56\x6e\x61\155\145\137\x6c\141\x6e\x67\56" . $data["\141\x6c\151\141\x73"]) : $data["\156\141\155\x65"]; goto Azxh_; P3oh8: if (isset($data["\x65\144\151\x74\144\x65\146\141\x75\x6c\164"]) || !(isset($data["\x73\171\163\164\x65\155"]) && $data["\163\x79\x73\164\145\x6d"] == 1 || isset($data["\144\x65\x66\x61\165\x6c\164"]) && $data["\144\x65\x66\141\x75\x6c\164"] == 1)) { goto iwvuI; } goto MllP4; kEru6: $data["\x63\x72\x65\x61\x74\145\144\x5f\165\163\x65\162\x6e\141\155\145"] = ''; goto Fp4Br; rEsIR: $fieldall = $this->fieldall_m->db_oneoptions([], $optionFieldAll); goto SCTAP; Azxh_: $data["\x63\150\157\157\x73\145\x66\x69\145\x6c\144\x61\154\154"] = 1; goto K4d1b; Ov97s: $data["\x6c\x61\163\164\x5f\x6d\157\x64\151\x66\x69\x65\x64\x5f\x75\163\145\x72\x6e\141\155\x65"] = ''; goto Toamk; wPz0Q: PrYNx: goto DLyyA; R19q7: $data["\143\x6f\154"] = $coltemp; goto Sie40; oUCLX: $data["\143\x72\x65\x61\x74\x65\144\x5f\165\163\145\162\156\141\x6d\145"] = searchnameuser($data["\x63\162\x65\141\164\x65\144"]["\x62\171\x69\144"]); goto LCfOA; sBsnJ: goto QZhTA; goto E0hyK; aWTPV: unset($fieldall["\137\x69\144"]); goto DfIYm; eZGfh: $owner_username = searchbu($id); goto wSsUR; ta1uW: DRlXQ: goto o5D4R; rruGX: $coltemp = $data["\143\x6f\x6c"]; goto Wu2l6; H4FGx: $data["\x5f\x69\x64"] = $idFieldAll; goto wPz0Q; Wu2l6: $tooltiptemp = $data["\x74\x6f\157\x6c\164\x69\x70"]; goto LHcHH; JlQmh: unset($fieldall["\x6e\157\x74\x65"]); goto B4tKo; oA3tS: WsYqf: goto V4Kem; DLyyA: $data["\147\162\x6f\x75\x70\x6e\141\155\x65"] = $valgroup["\x61\x6c\x69\x61\163"]; goto kEru6; BXv6L: if (!($data["\154\141\x73\x74\137\x6d\157\x64\x69\146\151\145\x64\137\165\x73\145\162\x6e\141\155\145"] === false)) { goto KUwvN; } goto l35kh; ebYtX: HXaER: goto HoQua; Fp4Br: if (!array_key_exists("\143\x72\x65\141\164\x65\144", $data)) { goto C4TRO; } goto oUCLX; Toamk: if (!array_key_exists("\154\x61\x73\164\137\x6d\157\144\151\146\x69\145\144", $data)) { goto HXaER; } goto EOGQ7; isuFD: $name = substr($data["\x6f\167\156\145\x72"], 0, $index); goto Y_BFl; wSsUR: $data["\x6f\167\156\145\x72\x5f\x75\163\145\x72\x6e\x61\155\145"] = $owner_username["\164\x65\x78\x74"]; goto sBsnJ; INXkX: $data["\164\x6f\157\x6c\164\151\x70"] = $tooltiptemp; goto yNJ3d; LCfOA: if (!($data["\143\x72\145\x61\x74\145\x64\x5f\x75\163\145\x72\156\x61\x6d\x65"] === false)) { goto BDBd0; } goto RUhI2; DfIYm: $data = $fieldall; goto Dxrvh; C_LfJ: KUwvN: goto ebYtX; oU4g3: $id = substr($data["\157\x77\x6e\x65\x72"], $index + 1); goto isuFD; Y_BFl: if ($name == "\x75\x73\145\x72") { goto AE2At; } goto eZGfh; Dxrvh: $data["\x73\150\x6f\x77"] = $showtemp; goto INXkX; fuOhY: $data["\x6f\x77\156\x65\162\137\165\163\x65\162\156\x61\155\x65"] = searchnameuser($id); goto eEQWO; l35kh: $data["\x6c\x61\163\x74\137\x6d\157\144\151\x66\151\145\x64\137\165\x73\x65\162\x6e\x61\155\x65"] = $data["\154\141\163\164\x5f\155\157\x64\151\146\151\145\x64"]["\142\x79\x69\x64"]; goto C_LfJ; BVNmK: iwvuI: goto jTFaB; V4Kem: $optionFieldAll = ["\167\x68\145\x72\x65" => ["\137\x69\x64" => new \MongoDB\BSON\ObjectID($data["\x66\151\145\154\144\x61\154\154"]), "\163\150\x6f\x77" => 1], "\163\x6f\x72\164" => ["\x70\157\163\151\x74\x69\x6f\x6e\x61\x64\144" => 1]]; goto rEsIR; Qb78X: goto PrYNx; goto oA3tS; o5D4R: } goto B98hR; Th0ra: $valgroup["\x6e\x61\x6d\145\x4c\x61\156\x67"] = $valgroup["\x6e\x61\x6d\x65"]; goto Ua7Fe; TCaJE: $this->load->model("\163\x65\x74\164\x69\x6e\x67\163\57\143\165\x73\x74\157\x6d\146\x69\145\154\x64\57\146\x69\x65\x6c\144\x5f\155"); goto R7oj8; Ua7Fe: eGucl: goto ynA9m; R7oj8: $field = $this->field_m->db_get_withcache_custom($option, $this->data["\160\x62\x78\137\x63\x75\x73\164\157\x6d\x65\x72\x5f\x63\157\144\145"] . "\137\146\151\x65\x6c\x64\x5f\x61\x64\144\163\x6f\162\x74\151\x64\x61\143\x63\x6f\165\156\x74\x73" . $valgroup["\x5f\151\x64"], 600); goto NI0t6; CdmKg: $valgroup["\x6e\x61\155\145\x4c\141\156\147"] = langJS("\155\x6f\144\x75\154\x65\x5f\143\165\163\164\157\155\146\151\145\154\x64\x2e\156\x61\155\x65\137\x6c\x61\156\x67\x2e" . $valgroup["\141\x6c\151\141\163"]) !== "\155\x6f\x64\165\154\145\137\x63\165\x73\164\157\x6d\146\151\x65\x6c\x64\56\x6e\141\155\145\137\154\141\156\147\56" . $valgroup["\x61\x6c\x69\141\x73"] ? langJS("\x6d\157\144\x75\x6c\x65\x5f\x63\x75\163\164\157\155\x66\151\145\154\x64\56\x6e\x61\155\x65\x5f\154\141\156\147\56" . $valgroup["\x61\x6c\x69\x61\x73"]) : $valgroup["\156\x61\x6d\x65"]; goto IHw7W; hg3wV: if (isset($valgroup["\145\x64\x69\x74\x64\145\146\x61\165\154\x74"])) { goto Pj7Xf; } goto CdmKg; qmCKd: Pj7Xf: goto Th0ra; B98hR: wvx1L: goto HTEti; IHw7W: goto eGucl; goto qmCKd; dWn_m: $option = ["\167\x68\x65\162\x65" => ["\147\162\157\165\160\x66\x69\x65\154\144" => $valgroup["\x5f\151\x64"], "\x73\x68\x6f\167" => 1, "\x70\x61\x67\x65\123\x68\x6f\x77\x2e\166\151\145\167\x61\144\144" => 1], "\163\157\x72\164" => ["\x5f\151\144" => 1, "\141\162\x72\104\145\160\x65\x6e\144" => 1]]; goto TCaJE; HTEti: $valgroup["\x66\151\x65\x6c\x64\163"] = $field; goto hg3wV; ynA9m: dVTin: goto mIBKW; mIBKW: } goto nkrwo; Lk_4z: $this->load->model("\163\145\164\164\x69\156\x67\x73\57\x63\165\x73\x74\x6f\155\x66\x69\x65\154\x64\x2f\146\151\x65\x6c\144\141\154\154\137\x6d"); goto ZTBkU; Tyjvc: return $group; goto naE0d; T8b3Q: $this->load->model("\x73\x65\x74\164\151\x6e\147\163\57\143\165\163\x74\x6f\155\x66\x69\145\154\x64\x2f\146\x69\145\x6c\144\147\162\x6f\x75\x70\x5f\155"); goto Lk_4z; C6wrQ: $group = $this->fieldgroup_m->db_get_withcache_custom($optionSort, $this->data["\160\x62\170\137\x63\165\163\x74\x6f\155\145\162\x5f\143\157\x64\x65"] . "\137\x66\x69\x65\x6c\x64\x67\162\x6f\x75\160\x5f\141\x64\x64\163\157\162\164\151\144\141\x63\x63\x6f\x75\156\164\163", 600); goto iiHb6; naE0d: } public function fieldAddSortAccount() { goto Swy2l; Swy2l: $this->load->model("\x73\145\x74\164\151\156\147\163\x2f\x63\x75\x73\164\x6f\155\x66\x69\145\154\x64\x2f\x66\x69\145\x6c\x64\147\x72\x6f\x75\160\137\155"); goto dpQk2; Aj_lj: $group = $this->fieldgroup_m->db_get_withcache_custom($optionSort, $this->data["\x70\142\x78\x5f\143\x75\163\164\157\155\x65\162\137\x63\x6f\x64\145"] . "\137\146\x69\145\x6c\144\x67\162\157\x75\160\x5f\x61\144\144\163\157\162\x74\141\x63\x63\157\165\x6e\164\x73", 600); goto hT0zE; ghocI: return $group; goto dM1Np; hT0zE: foreach ($group as &$valgroup) { goto BHnxj; TtJh3: goto mY7P2; goto bz8oE; MhxDr: $valgroup["\146\x69\x65\x6c\x64\163"] = $field; goto gWUd3; skW8r: goto NsOI7; goto XlBzv; FDdnV: $valgroup["\x6e\x61\155\145\x4c\x61\156\x67"] = langJS("\x6d\x6f\144\165\x6c\145\137\x63\x75\x73\164\x6f\155\x66\x69\145\154\x64\56\x6e\x61\155\145\137\154\x61\x6e\147\56" . $valgroup["\x61\154\151\141\x73"]) !== "\155\157\x64\165\154\145\137\143\x75\163\x74\157\155\146\x69\x65\x6c\144\x2e\156\x61\155\145\x5f\x6c\141\x6e\147\x2e" . $valgroup["\141\x6c\151\141\x73"] ? langJS("\x6d\157\x64\165\x6c\x65\137\143\x75\163\164\x6f\x6d\x66\x69\x65\154\x64\x2e\156\x61\x6d\x65\137\x6c\141\x6e\x67\56" . $valgroup["\x61\154\151\141\163"]) : $valgroup["\156\141\155\145"]; goto TtJh3; YR9OE: $this->load->model("\163\x65\164\164\151\x6e\x67\x73\57\x63\x75\x73\x74\157\155\x66\151\145\154\x64\x2f\146\151\145\154\x64\137\155"); goto SbKqK; ncAII: foreach ($field as &$data) { goto OBv6R; lVr1b: if (!($data["\143\x72\145\x61\164\145\144\x5f\165\x73\x65\162\x6e\141\x6d\x65"] === false)) { goto tp2YY; } goto UAiIg; QsBZM: es7u2: goto zBOoq; OEXFe: if (isset($data["\145\x64\151\164\144\145\x66\141\x75\x6c\164"]) || !(isset($data["\163\x79\163\164\145\155"]) && $data["\x73\x79\x73\x74\145\155"] == 1 || isset($data["\144\x65\146\141\165\x6c\164"]) && $data["\x64\x65\146\141\165\x6c\164"] == 1)) { goto UsV9_; } goto ef8R2; Y9s7R: tp2YY: goto Llt3I; xJzL6: goto sCCTL; goto Cg_s5; nAkgy: if ($name == "\165\163\x65\162") { goto OVA9G; } goto l6amo; ef8R2: $data["\x6e\141\x6d\145\114\x61\x6e\x67"] = langJS("\x6d\157\x64\x75\154\145\x5f\143\165\163\x74\x6f\x6d\x66\x69\x65\x6c\144\x2e\x6e\141\155\x65\x5f\x6c\141\x6e\147\x2e" . $data["\141\x6c\151\x61\163"]) !== "\x6d\x6f\x64\165\154\x65\137\143\165\163\164\x6f\155\146\151\145\154\144\x2e\156\x61\155\x65\137\x6c\141\x6e\x67\56" . $data["\x61\x6c\x69\141\163"] ? langJS("\155\x6f\x64\165\154\x65\137\143\165\x73\x74\157\155\x66\151\x65\154\144\x2e\156\141\x6d\x65\137\x6c\x61\x6e\147\56" . $data["\141\x6c\x69\141\163"]) : $data["\x6e\x61\x6d\145"]; goto kQYHM; rlmFL: $data["\147\162\157\165\x70\x6e\141\155\145"] = $valgroup["\141\154\x69\141\163"]; goto dgoNc; GXESY: sCCTL: goto OMz8L; q2JXA: UsV9_: goto k5064; RCiyL: $data["\x69\x64\x46\x69\145\x6c\x64\101\x6c\154"] = $idFieldAll; goto KoZs0; i1GOY: $data["\143\x6f\x6c"] = $coltemp; goto FcR_o; o19Ul: if (!array_key_exists("\154\x61\x73\164\137\155\x6f\144\x69\146\151\x65\144", $data)) { goto chQw9; } goto E3qfy; QzBS7: $data["\156\x61\x6d\x65\114\141\156\x67"] = langJS("\x6d\157\144\x75\x6c\145\137\143\x75\163\x74\157\x6d\146\x69\145\x6c\x64\56\156\141\155\145\x5f\154\141\x6e\x67\56" . $data["\141\154\151\x61\163"]) !== "\x6d\157\x64\x75\x6c\x65\x5f\x63\x75\163\x74\157\x6d\x66\x69\145\x6c\144\x2e\x6e\x61\155\145\137\154\x61\156\147\56" . $data["\x61\x6c\x69\x61\163"] ? langJS("\x6d\x6f\x64\165\x6c\145\x5f\143\x75\163\164\157\x6d\x66\151\x65\154\144\x2e\156\141\x6d\145\x5f\x6c\x61\x6e\147\56" . $data["\x61\154\151\x61\x73"]) : $data["\x6e\x61\x6d\145"]; goto soUEu; bnNF4: unset($fieldall["\x5f\x69\144"]); goto WYNXi; o2e89: $id = substr($data["\157\x77\x6e\145\162"], $index + 1); goto Xo4SV; R73Qx: $optionFieldAll = ["\x77\x68\x65\162\x65" => ["\x5f\151\x64" => new \MongoDB\BSON\ObjectID($data["\x66\151\145\154\144\x61\x6c\154"]), "\x73\x68\x6f\x77" => 1], "\x73\157\162\164" => ["\x70\157\x73\151\x74\151\x6f\156" => 1]]; goto CvFdy; Llt3I: FYG0E: goto BoXn6; sz8Vx: $showtemp = $data["\163\x68\157\167"]; goto m0JYL; UAiIg: $data["\143\x72\x65\x61\x74\145\x64\137\165\x73\x65\x72\156\x61\155\x65"] = $data["\x63\162\145\x61\164\x65\144"]["\142\x79\x69\x64"]; goto Y9s7R; k5064: $data["\x6e\141\155\x65\114\x61\156\147"] = $data["\x6e\141\x6d\145"]; goto vBeu_; Ecx6R: $idFieldAll = $data["\137\x69\144"]; goto bnNF4; e0GMg: goto bPiBs; goto I8JSk; vU5hf: mHYrs: goto IvIXZ; un0fo: $data["\x6c\x61\163\x74\137\155\157\x64\x69\146\x69\x65\x64\x5f\165\x73\145\162\156\141\x6d\x65"] = $data["\154\x61\163\x74\137\155\157\x64\x69\146\151\x65\x64"]["\142\x79\151\x64"]; goto QsBZM; vBeu_: PRx2I: goto SzZ1Y; zMaxE: if (!($data["\x6c\x61\x73\x74\137\155\x6f\x64\x69\146\x69\145\x64\x5f\x75\x73\145\x72\156\x61\155\x65"] === false)) { goto es7u2; } goto un0fo; wUAfZ: unset($fieldall["\x73\150\x6f\x77"]); goto Zi0TE; WYNXi: $data = $fieldall; goto aD2Or; BoXn6: $data["\154\x61\163\x74\137\155\157\144\x69\146\x69\145\x64\137\165\x73\145\x72\x6e\141\x6d\x65"] = ''; goto o19Ul; I8JSk: yRH4n: goto R73Qx; B24ax: unset($fieldall["\x6e\x6f\x74\145"]); goto Ecx6R; KoZs0: $data["\x5f\x69\x64"] = $idFieldAll; goto Pggr_; m0JYL: $coltemp = $data["\143\x6f\154"]; goto jJl7b; kQYHM: goto PRx2I; goto q2JXA; kqctZ: $notetemp = $data["\x6e\157\x74\145"]; goto wUAfZ; SzZ1Y: $data["\x63\150\x6f\157\x73\145\x66\151\145\x6c\x64\x61\x6c\154"] = 0; goto e0GMg; Zi0TE: unset($fieldall["\164\157\157\x6c\164\151\x70"]); goto B24ax; aD2Or: $data["\163\x68\x6f\167"] = $showtemp; goto i1GOY; E3qfy: $data["\154\x61\163\x74\x5f\x6d\157\x64\151\146\151\x65\x64\x5f\165\163\x65\x72\x6e\x61\155\145"] = searchnameuser($data["\x6c\141\x73\164\x5f\155\157\x64\151\x66\x69\145\144"]["\142\171\151\144"]); goto zMaxE; FcR_o: $data["\x74\157\x6f\x6c\164\x69\160"] = $tooltiptemp; goto cbs_E; Pggr_: bPiBs: goto rlmFL; CvFdy: $fieldall = $this->fieldall_m->db_oneoptions([], $optionFieldAll); goto sz8Vx; d9TRy: $index = strpos($data["\157\167\156\x65\x72"], "\137"); goto o2e89; vTWsg: $data["\x6f\167\156\x65\x72\x5f\165\x73\x65\162\x6e\141\155\x65"] = $owner_username["\164\x65\x78\x74"]; goto xJzL6; cbs_E: $data["\x6e\x6f\x74\x65"] = $notetemp; goto QzBS7; tu0Fh: $data["\157\167\156\145\x72\x5f\165\x73\x65\162\156\x61\x6d\x65"] = searchnameuser($id); goto GXESY; OBv6R: if (isset($data["\146\151\145\x6c\x64\141\154\154"])) { goto yRH4n; } goto OEXFe; OMz8L: JlWw8: goto vU5hf; zBOoq: chQw9: goto gwpU5; Xo4SV: $name = substr($data["\157\x77\156\145\x72"], 0, $index); goto nAkgy; Ymn3V: if (!array_key_exists("\143\162\x65\141\164\x65\144", $data)) { goto FYG0E; } goto hG1PH; gwpU5: if (!array_key_exists("\157\167\x6e\x65\x72", $data)) { goto JlWw8; } goto d9TRy; l6amo: $owner_username = searchbu($id); goto vTWsg; hG1PH: $data["\143\x72\x65\x61\164\x65\x64\x5f\x75\x73\x65\162\x6e\141\155\145"] = searchnameuser($data["\143\x72\x65\141\x74\x65\x64"]["\142\x79\x69\144"]); goto lVr1b; soUEu: $data["\143\150\157\x6f\163\x65\x66\x69\x65\x6c\144\x61\x6c\x6c"] = 1; goto RCiyL; dgoNc: $data["\x63\162\145\x61\164\x65\144\137\x75\x73\145\x72\x6e\141\155\145"] = ''; goto Ymn3V; jJl7b: $tooltiptemp = $data["\x74\x6f\157\x6c\x74\151\160"]; goto kqctZ; Cg_s5: OVA9G: goto tu0Fh; IvIXZ: } goto XmquL; Ng2yz: NXTuS: goto FBWx3; UoUya: $option = ["\x77\150\145\162\145" => ["\x67\162\157\x75\160\146\151\x65\154\x64" => $valgroup["\x5f\x69\144"], "\163\x68\x6f\x77" => 1, "\160\x61\x67\x65\123\150\x6f\167\56\166\x69\145\x77\141\x64\x64" => 1], "\x73\x6f\x72\x74" => ["\x70\157\x73\x69\164\x69\x6f\x6e\141\x64\x64" => 1]]; goto fxzCJ; SbKqK: $field = $this->field_m->db_get_withcache_custom($option, $this->data["\160\142\x78\137\x63\x75\x73\164\157\155\x65\162\x5f\143\x6f\x64\145"] . "\137\146\151\145\154\x64\137\x61\144\x64\x73\x6f\162\164\x61\143\x63\x6f\x75\x6e\164\163\137" . $valgroup["\x5f\x69\144"], 600); goto ncAII; M5VYh: if ($valgroup["\x63\157\x6c\x61\144\144"] == "\x6f\x6e\145\x63\x6f\x6c\165\x6d\x6e") { goto cB_3k; } goto ypFcf; XlBzv: Ead3k: goto M5VYh; BHnxj: if (isset($valgroup["\x63\157\154\141\144\x64"])) { goto Ead3k; } goto BRYD1; gWUd3: if (isset($valgroup["\145\x64\151\x74\144\x65\x66\141\x75\x6c\164"])) { goto xs_FY; } goto FDdnV; y8w1_: goto i82AJ; goto lF2fp; XmquL: TcUmd: goto MhxDr; nqBIM: mY7P2: goto Ng2yz; ypFcf: $option = ["\x77\x68\x65\162\145" => ["\147\x72\157\x75\160\146\151\x65\154\x64" => $valgroup["\137\x69\144"], "\163\x68\157\x77" => 1, "\160\141\147\x65\x53\x68\x6f\167\x2e\166\x69\x65\167\141\x64\144" => 1], "\x73\157\x72\164" => ["\x63\x6f\x6c" => 1, "\x70\x6f\x73\143\x6f\154\61" => 1, "\x70\x6f\163\143\x6f\x6c\62" => 1]]; goto y8w1_; lF2fp: cB_3k: goto UoUya; JbaXb: NsOI7: goto YR9OE; BRYD1: $option = ["\167\x68\x65\162\145" => ["\x67\162\157\x75\x70\146\x69\145\154\x64" => $valgroup["\x5f\x69\144"], "\x73\150\x6f\167" => 1, "\160\x61\147\x65\x53\x68\x6f\167\56\166\151\145\x77\x61\x64\144" => 1], "\x73\157\x72\164" => ["\x70\x6f\x73\x69\x74\x69\157\156\x61\x64\144" => 1]]; goto skW8r; fxzCJ: i82AJ: goto JbaXb; bz8oE: xs_FY: goto L5QQF; L5QQF: $valgroup["\156\x61\x6d\x65\114\141\156\147"] = $valgroup["\156\141\x6d\145"]; goto nqBIM; FBWx3: } goto qkl82; djlqC: $optionSort = ["\x77\150\145\162\x65" => ["\155\x6f\x64\165\154\x65" => "\x61\x63\143\157\x75\x6e\x74\x73", "\x73\150\157\x77" => 1], "\x73\x6f\x72\x74" => ["\x70\157\163\x69\164\151\157\156" => 1]]; goto Aj_lj; qkl82: T821V: goto ghocI; dpQk2: $this->load->model("\x73\145\x74\x74\x69\x6e\147\x73\57\x63\165\x73\164\157\x6d\146\x69\x65\x6c\144\57\x66\x69\x65\154\144\141\x6c\x6c\137\155"); goto djlqC; dM1Np: } public function searchTicket() { goto ECjZr; OVUYb: Z8Yn9: goto uMT1L; ECjZr: header("\103\157\156\x74\145\x6e\x74\55\x54\x79\160\145\72\40\141\160\160\x6c\151\x63\141\164\x69\x6f\x6e\57\152\163\157\x6e"); goto u5uB9; xmta9: if (empty($requesters)) { goto HY82U; } goto v0FDF; QqEfG: exit; goto a4cVT; rd5uy: goto i5Af0; goto dbpBj; sOK9v: YqhAX: goto eMHk_; eMHk_: foreach ($result["\x64\x61\164\x61"] as &$value) { goto hn8EZ; a01PX: HkGDO: goto c51MI; nv5La: $value["\143\162\145\x61\x74\145\x64\144\x61\x74\x65\137\163\x74\x72\151\x6e\x67"] = date("\x64\x2f\x6d\57\x59", $value["\143\162\x65\x61\x74\145\x64"]["\x74\151\x6d\145"]); goto XjQOD; hn8EZ: $value["\x63\x72\145\x61\164\145\x64\x74\151\155\145\x5f\x73\x74\x72\x69\156\147"] = date("\110\x3a\x69\x3a\163", $value["\x63\x72\145\141\x74\145\x64"]["\164\151\155\x65"]); goto nv5La; e2RmO: $value["\143\162\x65\141\164\145\x64\137\163\x74\x72\x69\x6e\147"] = ''; goto lQ3s1; getqm: $value["\143\162\x65\141\x74\x65\144\137\x73\x74\162\x69\156\x67"] = searchnameuser($value["\x63\x72\145\x61\x74\x65\x64"]["\x62\171\x69\x64"]); goto f3k_x; f3k_x: if (!($value["\143\162\x65\x61\164\145\x64\x5f\x73\164\x72\x69\x6e\x67"] === false)) { goto ETdW5; } goto p84AD; p84AD: $value["\143\x72\x65\141\164\145\x64\x5f\x73\164\x72\x69\156\147"] = $value["\x63\162\x65\x61\x74\145\144"]["\142\171\151\x64"]; goto U5cOP; U5cOP: ETdW5: goto a01PX; lQ3s1: if (!array_key_exists("\x63\162\145\141\164\x65\x64", $value)) { goto HkGDO; } goto getqm; c51MI: n0Cg0: goto KPeLI; XjQOD: $value["\162\145\x71\x75\x65\x73\x74\145\x72\x5f\x73\x74\x72\151\x6e\x67"] = !empty($value["\x72\x65\161\165\x65\x73\164\145\162\137\151\x64"]) && array_key_exists($value["\162\145\x71\165\145\x73\x74\x65\162\x5f\x69\144"], $requesters_name) ? $requesters_name[$value["\162\x65\x71\165\145\163\x74\145\x72\137\151\144"]] : ''; goto e2RmO; KPeLI: } goto P8iNg; uMT1L: if ($request->field === "\164\x69\x63\x6b\x65\x74\137\151\x64") { goto Zq0_W; } goto Dty0w; XtkhI: $this->load->model("\x73\145\x72\x76\x69\x63\x65\163\57\x74\x69\143\x6b\x65\164\163\57\164\151\x63\153\x65\164\x73\137\155"); goto pawZO; dYEHx: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\142\160\155\56\x69\x73\105\156\x64\x65\144", "\x6e\145\x71", true), $request); goto XrDIu; n4KVg: $requesters_name = []; goto OIph1; erhzE: $arr_requesterid = array_column($result["\144\x61\x74\141"], "\162\x65\161\x75\145\x73\164\145\162\x5f\x69\144"); goto cv2hH; XrDIu: $sortdatecreated = new stdClass(); goto qFrBs; TJg7d: $request->filter->filters[0]->field = "\x74\x69\143\153\145\164\137\x69\144"; goto COc_G; v0FDF: foreach ($requesters as $req) { goto G697y; nJ9PS: if ($req["\146\162\x6f\x6d\x6d\x6f\144\165\154\145"] === "\165\163\145\x72\163") { goto ZMimY; } goto S8Gf1; YdOs_: $info = !empty($req["\x6e\x61\155\x65"]) ? $req["\x6e\x61\x6d\145"] : $req["\165\x73\x65\162\156\x61\155\x65"]; goto z19b0; S8Gf1: $info = $req["\156\x61\x6d\145"]; goto P2w3i; z19b0: pAaZg: goto kBqBN; P2w3i: goto pAaZg; goto llBxi; tZoR3: d9ZEX: goto tVtM4; llBxi: ZMimY: goto YdOs_; kBqBN: $requesters_name[$req["\x5f\151\x64"]] = $info; goto tZoR3; G697y: $info = ''; goto nJ9PS; tVtM4: } goto ZzGz7; ehdjn: echo json_encode(["\144\141\164\x61" => [], "\164\x6f\x74\141\154" => 0]); goto QqEfG; qFrBs: $sortdatecreated->field = "\143\162\145\141\x74\x65\x64\56\x74\x69\x6d\145"; goto a2TCp; mg645: qwdv2: goto rd5uy; AOSvv: $this->mongodatasourceresult->addFilterRequest($filter_ticket, $request); goto KiuqT; Au9sx: $request->sort = [$sortdatecreated]; goto UuVud; Dty0w: if ($request->field === "\163\165\142\152\x65\x63\164") { goto jlMBp; } goto Nreb7; ZzGz7: mr0oJ: goto ehDDC; gLQeF: $request->filter->filters[0]->field = "\x73\165\142\152\145\x63\164\64\163\145\141\x72\143\150"; goto mg645; F8KSf: $ticket_search[] = $this->mongodatasourceresult->initFilter("\x74\x69\x63\x6b\x65\x74\137\x69\144", "\143\157\x6e\x74\x61\151\x6e\x73", $textsearch); goto HRpCf; pawZO: $this->load->model("\x73\145\164\x74\151\156\x67\163\57\143\x6f\x6e\x66\151\147\x74\151\143\153\145\x74\x73\x2f\143\x6f\156\146\151\x67\155\x65\162\147\x65\164\x69\143\153\x65\x74\x5f\x6d"); goto uBdNG; NiSeT: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\163\x74\141\164\165\x73", "\156\145\x71", "\x45\x6e\x64"), $request); goto dYEHx; HRpCf: $ticket_search[] = $this->mongodatasourceresult->initFilter("\x73\165\142\152\145\143\164\x34\163\x65\141\162\143\x68", "\143\157\156\x74\x61\x69\x6e\163", $textsearch); goto CwU63; WDdal: if (!empty($request->filter->filters)) { goto Z8Yn9; } goto ehdjn; a2TCp: $sortdatecreated->dir = "\x64\x65\163\143"; goto Au9sx; rd8eH: $config = $this->configmergeticket_m->db_oneoptions([], ["\x77\150\x65\162\x65" => ["\163\164\141\164\x75\x73" => "\156\x65\x77"]]); goto BX0iW; kETmV: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\144\x65\154\x65\x74\x65", "\x69\163\x65\155\x70\x74\171", 1), $request); goto NiSeT; a4cVT: goto kcyS0; goto OVUYb; tFOda: $ticket_search = []; goto F8KSf; UuVud: $request->filter->logic = "\141\156\144"; goto xOvU3; e4Z0n: $this->load->model("\x73\145\x72\166\x69\143\x65\x73\x2f\x74\151\143\153\x65\x74\x73\57\162\x65\x71\x75\x65\163\164\145\x72\x73\x5f\155"); goto n4KVg; uBdNG: $this->load->library("\164\151\x63\x6b\145\164\163\x5f\x6c\151\x62\162\141\162\171"); goto rd8eH; xOvU3: kcyS0: goto v98g5; BpmQn: echo json_encode($result); goto d2ywr; cv2hH: $requesters = $this->requesters_m->db_getbylistid($arr_requesterid); goto xmta9; OIph1: if (empty($result["\x64\x61\164\141"])) { goto YqhAX; } goto erhzE; v98g5: $result = $this->tickets_library->db_read($request); goto e4Z0n; BX0iW: $mergetype = !empty($config["\164\x79\x70\145"]) ? $config["\x74\x79\160\x65"] : "\144\x69\x73\141\142\x6c\145\x5f\x74\151\x63\x6b\x65\x74\x6d\145\x72\147\145"; goto WDdal; CwU63: $filter_ticket = $this->mongodatasourceresult->initFilterWithSub("\x6f\x72", $ticket_search); goto AOSvv; Nreb7: $textsearch = $request->filter->filters[0]->value; goto rNOK0; rNOK0: $request->filter->filters = []; goto tFOda; COc_G: i5Af0: goto kETmV; P8iNg: pqa24: goto BpmQn; gkfeZ: jlMBp: goto gLQeF; KiuqT: goto qwdv2; goto gkfeZ; dbpBj: Zq0_W: goto TJg7d; ehDDC: HY82U: goto sOK9v; u5uB9: $request = json_decode(file_get_contents("\160\150\x70\x3a\x2f\x2f\x69\156\160\165\x74")); goto XtkhI; d2ywr: } public function returnOverviewSortID() { goto YWEag; lqoHv: POLAn: goto WoFXE; lbMGO: $optionSort = ["\167\x68\x65\162\145" => ["\x6d\157\144\165\154\x65" => "\x74\x69\143\153\x65\164\x73", "\163\x68\x6f\x77" => 1], "\x73\x6f\162\x74" => ["\x70\157\x73\151\164\x69\157\156\157\166\x65\162\166\x69\145\x77" => 1]]; goto TiTcb; YWEag: $this->load->model("\163\145\164\x74\151\x6e\147\x73\x2f\143\165\163\x74\x6f\x6d\x66\151\x65\154\x64\x2f\146\x69\145\x6c\x64\147\162\x6f\165\160\x5f\155"); goto jnOMl; TiTcb: $group = $this->fieldgroup_m->db_get_withcache_custom($optionSort, $this->data["\x70\x62\x78\137\143\x75\x73\x74\x6f\155\145\x72\137\143\x6f\x64\145"] . "\137\146\x69\145\x6c\x64\147\x72\x6f\x75\x70\x5f\157\x76\145\162\166\x69\145\x77\x73\157\162\164\x69\144\164\151\x63\153\145\164\163", 600); goto Ax_Dw; WoFXE: return $group; goto VK04d; Ax_Dw: foreach ($group as &$valgroup) { goto ur3qY; yxVRx: $field = $this->field_m->db_get_withcache_custom($option, $this->data["\x70\x62\x78\137\143\165\163\x74\157\155\x65\162\x5f\143\157\x64\x65"] . "\137\146\x69\145\154\x64\x67\162\x6f\165\160\137\157\166\145\162\x76\x69\x65\167\163\x6f\162\x74\x69\x64\x74\151\x63\x6b\x65\164\x73\x5f" . $valgroup["\137\151\x64"], 600); goto riZPZ; bgu_Z: Jn04O: goto ixBRN; DLOJp: if (isset($valgroup["\x65\144\151\x74\144\x65\146\141\165\154\x74"])) { goto XyXrr; } goto ytYvL; riZPZ: foreach ($field as $key => &$data) { goto YNIed; jstuV: XPhua: goto KZYYk; nkt4G: IKPMY: goto gCCQX; eFSKU: $data["\x6f\x77\156\145\162\x5f\165\x73\145\162\156\x61\x6d\145"] = searchnameuser($id); goto liPHI; NuxFs: $fieldall = $this->fieldall_m->db_oneoptions([], $optionFieldAll); goto cJ2SK; CE7iz: $optionFieldAll = ["\x77\x68\145\x72\145" => ["\137\151\144" => new \MongoDB\BSON\ObjectID($data["\x66\151\x65\x6c\x64\141\154\154"]), "\163\150\157\167" => 1], "\x73\x6f\162\x74" => ["\x70\x6f\163\151\x74\151\157\156\x61\x64\x64" => 1]]; goto NuxFs; b1Jyt: $index = strpos($data["\x6f\167\x6e\145\x72"], "\137"); goto i3HKN; yjlZE: if (!($data["\x63\162\x65\141\164\x65\144\x5f\x75\x73\145\x72\x6e\x61\x6d\145"] === false)) { goto IKPMY; } goto ApsHj; O2bRU: PYak3: goto sQaEo; A_0Ms: unset($fieldall["\x74\x6f\x6f\154\164\151\160"]); goto k05O3; jZAgT: goto XPhua; goto O2bRU; ZNE5D: $idFieldAll = $data["\x5f\x69\x64"]; goto U6cGZ; K57J3: goto YJg_7; goto ztzOW; lkjHJ: $data["\154\141\163\164\137\155\157\x64\151\146\x69\x65\144\x5f\165\x73\x65\162\156\x61\155\x65"] = searchnameuser($data["\x6c\x61\x73\164\x5f\155\x6f\144\151\146\x69\145\144"]["\142\171\x69\x64"]); goto GHVxU; atz3q: nlPf2: goto SaPur; EeAoB: unset($fieldall["\x73\x68\x6f\x77"]); goto A_0Ms; QO4MZ: $data["\x63\162\145\x61\164\x65\144\137\165\163\145\x72\x6e\141\x6d\145"] = searchnameuser($data["\x63\x72\x65\x61\x74\x65\x64"]["\x62\x79\x69\144"]); goto yjlZE; IsXkv: $data["\x74\x6f\x6f\x6c\164\x69\x70"] = $tooltiptemp; goto vkfRZ; U6cGZ: unset($fieldall["\137\151\x64"]); goto HqkFX; pQ_Jv: Ff6ES: goto aP35t; YVMet: $data["\154\141\x73\164\137\155\x6f\x64\151\146\151\145\144\137\x75\x73\145\162\156\x61\x6d\x65"] = $data["\x6c\x61\163\164\137\155\157\x64\x69\x66\151\145\144"]["\x62\x79\x69\x64"]; goto uexkc; jBXxM: if ($name == "\165\x73\x65\x72") { goto X25uZ; } goto nX1dG; Pjk92: $data["\143\162\x65\x61\164\145\144\137\165\x73\x65\x72\x6e\x61\155\145"] = ''; goto OXPJ2; vqa51: YJg_7: goto PQtZV; sQaEo: $data["\x6e\141\x6d\145\114\141\156\147"] = $data["\x6e\x61\155\145"]; goto jstuV; DAnc8: $data["\151\x64\106\x69\x65\154\144\101\x6c\x6c"] = $idFieldAll; goto qya6C; C2NBU: $data["\x6f\167\x6e\x65\162\137\x75\x73\145\162\x6e\x61\x6d\145"] = $owner_username["\x74\x65\x78\x74"]; goto F1VBL; KZYYk: $data["\x63\x68\x6f\x6f\163\145\146\151\145\x6c\144\141\154\154"] = 0; goto K57J3; ztzOW: uzOev: goto CE7iz; vkfRZ: $data["\x6e\157\x74\x65"] = $notetemp; goto q90Xx; xoyj0: $data["\x6e\x61\x6d\145\x4c\x61\x6e\147"] = langJS("\x6d\157\x64\x75\x6c\x65\x5f\143\165\x73\164\x6f\x6d\x66\x69\145\154\x64\56\156\x61\155\145\137\x6c\141\156\x67\56" . $data["\141\154\151\141\163"]) !== "\x6d\157\x64\x75\x6c\x65\x5f\143\165\163\x74\157\x6d\x66\151\x65\x6c\x64\56\x6e\141\155\x65\x5f\154\x61\x6e\147\56" . $data["\x61\x6c\x69\141\x73"] ? langJS("\155\157\144\x75\x6c\145\x5f\x63\165\x73\164\x6f\155\146\x69\x65\x6c\144\x2e\x6e\141\155\x65\x5f\154\141\x6e\147\56" . $data["\141\x6c\x69\x61\x73"]) : $data["\x6e\141\x6d\x65"]; goto r2oAi; F3ovj: X25uZ: goto eFSKU; qya6C: $data["\137\x69\x64"] = $idFieldAll; goto vqa51; HqkFX: $data = $fieldall; goto YhVRE; i3HKN: $id = substr($data["\x6f\167\x6e\145\162"], $index + 1); goto kJ65V; cJ2SK: $showtemp = $data["\x73\x68\157\x77"]; goto DMesN; r2oAi: $data["\143\x68\157\157\x73\x65\146\151\x65\x6c\x64\141\x6c\154"] = 1; goto DAnc8; YhVRE: $data["\163\x68\x6f\x77"] = $showtemp; goto IsXkv; FX6Hg: if (!array_key_exists("\x6c\x61\x73\164\137\155\157\x64\151\146\151\x65\x64", $data)) { goto nlPf2; } goto lkjHJ; SaPur: if (!array_key_exists("\157\x77\x6e\x65\162", $data)) { goto Ff6ES; } goto b1Jyt; ApsHj: $data["\x63\x72\x65\x61\x74\145\144\x5f\x75\x73\x65\x72\156\x61\x6d\x65"] = $data["\143\x72\145\x61\164\x65\x64"]["\x62\x79\151\144"]; goto nkt4G; q90Xx: $data["\x63\157\154"] = $coltemp; goto xoyj0; kJ65V: $name = substr($data["\x6f\167\x6e\x65\162"], 0, $index); goto jBXxM; YNIed: if (isset($data["\146\151\145\x6c\x64\x61\154\x6c"])) { goto uzOev; } goto UpivR; yEhFC: $data["\x6c\x61\x73\x74\137\155\157\144\151\146\151\145\x64\x5f\x75\x73\x65\x72\x6e\x61\x6d\145"] = ''; goto FX6Hg; PQtZV: $data["\147\162\157\165\160\156\141\155\145"] = $valgroup["\x61\x6c\151\x61\x73"]; goto Pjk92; OXPJ2: if (!array_key_exists("\143\x72\145\141\x74\x65\144", $data)) { goto n0FMk; } goto QO4MZ; liPHI: V2naB: goto pQ_Jv; F1VBL: goto V2naB; goto F3ovj; uexkc: enD2K: goto atz3q; DMesN: $coltemp = $data["\x63\x6f\x6c"]; goto Dcbdc; GHVxU: if (!($data["\154\141\163\x74\137\x6d\x6f\144\151\146\151\145\x64\137\x75\163\x65\x72\156\x61\x6d\x65"] === false)) { goto enD2K; } goto YVMet; fEah0: $data["\x6e\141\x6d\x65\x4c\x61\x6e\x67"] = langJS("\155\157\x64\x75\x6c\x65\137\x63\x75\x73\x74\157\x6d\146\151\145\x6c\x64\56\156\x61\155\x65\x5f\x6c\141\156\147\x2e" . $data["\141\154\151\141\x73"]) !== "\x6d\157\x64\x75\x6c\x65\x5f\143\x75\163\164\x6f\x6d\x66\x69\145\154\144\56\156\x61\x6d\x65\137\154\x61\156\147\x2e" . $data["\141\x6c\151\x61\x73"] ? langJS("\x6d\x6f\144\165\154\x65\137\x63\165\163\x74\x6f\x6d\x66\151\145\x6c\144\x2e\x6e\x61\x6d\x65\x5f\154\141\156\147\56" . $data["\x61\154\151\x61\163"]) : $data["\156\141\155\145"]; goto jZAgT; gCCQX: n0FMk: goto yEhFC; k05O3: unset($fieldall["\156\157\164\145"]); goto ZNE5D; Dcbdc: $tooltiptemp = $data["\x74\x6f\157\x6c\164\x69\x70"]; goto DZrbI; aP35t: se18x: goto jlxDk; UpivR: if (isset($data["\x65\x64\151\164\144\x65\x66\141\x75\x6c\164"]) || !(isset($data["\163\x79\x73\164\x65\x6d"]) && $data["\163\171\163\164\145\x6d"] == 1 || isset($data["\x64\x65\x66\141\165\x6c\x74"]) && $data["\144\x65\x66\x61\165\x6c\x74"] == 1)) { goto PYak3; } goto fEah0; DZrbI: $notetemp = $data["\156\157\164\x65"]; goto EeAoB; nX1dG: $owner_username = searchbu($id); goto C2NBU; jlxDk: } goto eIv99; A2W_t: $valgroup["\143\x61\x74\x65\x67\x6f\162\x79\x5f\x73\164\x72\x69\156\x67"] = ''; goto rEkma; F90eS: $this->load->model("\x73\x65\164\x74\151\x6e\x67\x73\x2f\143\x75\x73\x74\x6f\155\x66\x69\145\154\144\x2f\x66\151\x65\154\x64\x5f\x6d"); goto yxVRx; BuMOB: IUXng: goto ZfFYo; ytYvL: $valgroup["\156\x61\155\145\x4c\141\156\147"] = langJS("\155\157\x64\165\154\145\137\x63\165\x73\x74\x6f\x6d\x66\151\x65\x6c\x64\56\x6e\x61\x6d\145\137\154\141\156\x67\x2e" . $valgroup["\141\x6c\151\x61\x73"]) !== "\x6d\157\144\165\154\145\x5f\x63\x75\x73\164\157\x6d\x66\x69\x65\x6c\144\56\156\141\155\x65\x5f\x6c\x61\x6e\x67\56" . $valgroup["\141\x6c\x69\141\163"] ? langJS("\x6d\x6f\x64\165\154\x65\x5f\x63\x75\x73\x74\x6f\x6d\146\151\x65\x6c\144\x2e\x6e\141\155\x65\x5f\x6c\x61\156\147\x2e" . $valgroup["\141\154\x69\141\163"]) : $valgroup["\x6e\x61\x6d\x65"]; goto PVYpW; mZ4Tt: $valgroup["\143\x68\x65\143\153\137\x63\x61\x74\145"] = 1; goto nyvA4; o18TQ: goto RKBtu; goto uCgSO; R0xfB: $valgroup["\x63\150\145\x63\x6b\x5f\x63\x61\x74\x65"] = 0; goto BuMOB; GiRJw: $valgroup["\143\x61\164\145\147\157\162\x79\137\163\164\162\x69\x6e\147"] = implode("\x2c", $valgroup["\143\141\x74\145\147\x6f\x72\x79"]); goto mZ4Tt; FHiL5: $valgroup["\146\151\145\x6c\144\163"] = $field; goto DLOJp; eIv99: AADX1: goto FHiL5; ur3qY: $option = ["\167\x68\145\x72\145" => ["\147\x72\157\x75\160\x66\x69\x65\x6c\x64" => $valgroup["\x5f\x69\144"], "\160\x61\147\145\x53\x68\157\x77\56\157\x76\x65\x72\166\x69\145\x77" => 1], "\x6f\x72\x5f\167\150\145\x72\145" => ["\x73\150\x6f\167" => 1, "\144\x65\x66\141\165\154\164" => 1], "\163\157\162\x74" => ["\137\x69\x64" => 1, "\x61\x72\162\x44\145\x70\145\x6e\x64" => 1]]; goto RV3UL; uCgSO: MAhS_: goto GiRJw; ZfFYo: RKBtu: goto F90eS; PVYpW: goto Jn04O; goto WKVDW; ixBRN: Kh2uo: goto SjGpn; nyvA4: if (!empty($valgroup["\143\141\x74\145\147\157\162\171"])) { goto IUXng; } goto R0xfB; WKVDW: XyXrr: goto aFLHu; rEkma: $valgroup["\143\x68\x65\143\153\x5f\x63\x61\164\145"] = 0; goto o18TQ; aFLHu: $valgroup["\156\141\155\x65\x4c\x61\156\147"] = $valgroup["\156\141\155\x65"]; goto bgu_Z; RV3UL: if (isset($valgroup["\143\x61\x74\x65\x67\157\x72\171"])) { goto MAhS_; } goto A2W_t; SjGpn: } goto lqoHv; jnOMl: $this->load->model("\x73\145\164\164\151\156\x67\163\x2f\x63\165\163\x74\x6f\x6d\146\151\x65\x6c\144\57\146\151\145\x6c\144\x61\x6c\154\x5f\x6d"); goto lbMGO; VK04d: } public function returnGroupOverview() { goto dwm2x; neoox: $group = $this->fieldgroup_m->db_get_withcache_custom($optionSort, $this->data["\160\142\x78\137\x63\165\x73\x74\x6f\x6d\x65\162\x5f\143\x6f\x64\145"] . "\x5f\146\151\145\154\144\147\x72\x6f\165\x70\x5f\x67\162\x6f\x75\160\x6f\x76\145\162\x76\x69\145\167\x74\151\143\x6b\x65\x74\x73", 600); goto wX3U7; QXPhX: s6PCH: goto k4Ybe; wX3U7: foreach ($group as &$valgroup) { goto vOCW2; skkP3: $valgroup["\x63\x61\164\145\147\x6f\x72\x79\x5f\163\164\x72\151\x6e\x67"] = ''; goto OQ5lT; fJKDw: FSXbv: goto hJ71n; GJ4qG: if (isset($valgroup["\x63\141\x74\145\147\x6f\x72\x79"])) { goto fWUIo; } goto skkP3; gYXs6: if (!empty($valgroup["\x63\141\x74\x65\147\157\x72\x79"])) { goto yzV3o; } goto ea1HP; vOCW2: $option = ["\x77\150\x65\162\145" => ["\x67\162\x6f\x75\x70\146\x69\x65\154\144" => $valgroup["\x5f\x69\x64"], "\x70\x61\x67\x65\123\150\157\x77\56\x6f\x76\145\x72\166\x69\145\x77" => 1], "\157\x72\137\x77\150\x65\162\x65" => ["\163\150\157\x77" => 1, "\144\145\146\x61\165\154\164" => 1], "\x73\x6f\x72\x74" => ["\160\x6f\163\x69\164\151\157\x6e\x6f\x76\145\x72\166\151\x65\x77" => 1]]; goto GJ4qG; m1Gps: goto wEi_p; goto lbXRW; R3HGz: $valgroup["\156\x61\x6d\145\114\x61\x6e\147"] = langJS("\155\x6f\144\x75\154\x65\x5f\x63\x75\163\164\157\x6d\x66\151\x65\154\x64\x2e\156\141\155\x65\137\x6c\141\156\147\x2e" . $valgroup["\x61\154\x69\x61\163"]) !== "\x6d\157\144\x75\154\x65\x5f\143\165\x73\164\157\x6d\146\151\145\154\x64\56\x6e\141\x6d\x65\137\x6c\x61\x6e\147\56" . $valgroup["\x61\x6c\151\141\163"] ? langJS("\155\x6f\x64\165\154\145\137\x63\165\x73\x74\157\x6d\x66\x69\145\x6c\x64\56\x6e\141\155\145\137\x6c\x61\x6e\147\x2e" . $valgroup["\141\x6c\151\141\163"]) : $valgroup["\156\141\x6d\x65"]; goto m1Gps; PhMBw: fWUIo: goto VHP3z; KFHl8: $valgroup["\x63\150\145\x63\x6b\x5f\143\141\x74\x65"] = 1; goto gYXs6; dhDRe: yzV3o: goto xprN1; xprN1: h0JYj: goto Xrx8B; mk7_S: $valgroup["\146\x69\145\x6c\144\x73"] = $field; goto ysBCw; A3mn0: foreach ($field as &$data) { goto EmzHu; VNpIh: if (!array_key_exists("\x63\162\145\141\164\145\x64", $data)) { goto WpQMy; } goto vk1ZD; vk1ZD: $data["\143\162\x65\141\164\145\144\137\x75\163\145\162\156\x61\155\x65"] = searchnameuser($data["\x63\162\145\x61\x74\145\144"]["\142\171\x69\x64"]); goto y8mRN; CkMzT: goto jRZlg; goto wkUPh; b4y7o: Gm9y6: goto KfjtQ; MWSLy: SVy53: goto S1dKw; S1dKw: $data["\x63\x68\157\x6f\163\145\x66\x69\145\x6c\x64\141\154\154"] = 0; goto yQgr4; Ymhi0: $data["\x6c\141\x73\x74\137\155\x6f\144\151\146\151\x65\144\x5f\165\163\x65\162\156\x61\x6d\145"] = $data["\154\x61\x73\164\x5f\x6d\x6f\x64\151\146\151\145\x64"]["\x62\x79\151\x64"]; goto MSR2a; y8mRN: if (!($data["\143\162\x65\141\164\145\144\137\x75\163\x65\162\x6e\x61\155\x65"] === false)) { goto NRNp4; } goto uLzLg; PKtmE: $fieldall = $this->fieldall_m->db_oneoptions([], $optionFieldAll); goto FRnU7; uvE_2: $data["\x63\157\154"] = $coltemp; goto KmvCu; YiyUh: $data["\143\150\x6f\x6f\163\145\x66\151\x65\154\x64\x61\x6c\154"] = 1; goto gW4RU; kby8s: $data["\156\x61\155\145\114\141\x6e\147"] = langJS("\155\x6f\144\165\154\x65\x5f\143\165\x73\164\157\155\x66\151\x65\x6c\x64\x2e\156\x61\x6d\145\137\x6c\141\156\147\56" . $data["\141\154\x69\x61\163"]) !== "\x6d\157\x64\x75\x6c\x65\137\143\x75\163\x74\157\155\x66\x69\145\x6c\x64\56\156\141\x6d\x65\x5f\x6c\141\156\147\56" . $data["\141\154\151\141\163"] ? langJS("\155\157\x64\165\154\x65\137\x63\165\x73\164\x6f\155\146\x69\145\154\x64\56\x6e\141\x6d\145\x5f\154\x61\x6e\147\x2e" . $data["\141\154\x69\141\x73"]) : $data["\156\x61\x6d\x65"]; goto YiyUh; B30Tw: $owner_username = searchbu($id); goto y0MxS; VSxB7: NRNp4: goto RgWMR; Fj6NN: $data["\x73\150\x6f\167"] = $showtemp; goto uvE_2; FRnU7: $showtemp = $data["\163\150\157\167"]; goto Omepu; JLSuV: $data["\x6c\x61\x73\164\x5f\x6d\x6f\144\x69\x66\x69\x65\x64\x5f\x75\163\x65\162\x6e\141\155\x65"] = searchnameuser($data["\x6c\x61\x73\x74\x5f\155\x6f\144\151\x66\151\145\144"]["\x62\171\x69\144"]); goto d7c39; yQgr4: goto T0I6Y; goto GNR7C; Omepu: $coltemp = $data["\143\x6f\154"]; goto V2vPk; GNR7C: p852h: goto eQJMH; fN3ky: unset($fieldall["\164\x6f\157\x6c\164\151\x70"]); goto h1QTr; yVqKI: $data["\154\x61\x73\164\x5f\155\x6f\x64\151\146\151\x65\144\x5f\x75\163\x65\x72\156\x61\x6d\x65"] = ''; goto u7v0r; eCQpQ: $data["\x63\162\145\141\164\145\x64\137\165\163\145\162\x6e\x61\155\x65"] = ''; goto VNpIh; EmzHu: if (isset($data["\146\151\145\x6c\x64\141\x6c\x6c"])) { goto p852h; } goto cL6sq; ByN4g: T0I6Y: goto q_ozp; jq3NF: $idFieldAll = $data["\137\x69\144"]; goto J8wbv; MZUtu: $data["\156\x6f\164\145"] = $notetemp; goto kby8s; urtHa: ryvaR: goto TINg0; ODeLc: SHqa3: goto b4y7o; tX0sC: whb_s: goto HCW_7; wAASg: $notetemp = $data["\x6e\157\x74\x65"]; goto iY7gO; d7c39: if (!($data["\154\x61\163\x74\137\x6d\x6f\x64\x69\x66\151\145\x64\x5f\x75\x73\x65\162\156\141\x6d\x65"] === false)) { goto syR0b; } goto Ymhi0; q_ozp: $data["\147\162\157\x75\160\156\141\x6d\145"] = $valgroup["\141\154\x69\x61\163"]; goto eCQpQ; tDmi_: $data["\157\167\156\145\x72\137\x75\x73\145\x72\x6e\141\x6d\145"] = searchnameuser($id); goto z9_dD; Wu3Gw: $data = $fieldall; goto Fj6NN; bceZm: goto SVy53; goto tX0sC; h1QTr: unset($fieldall["\x6e\x6f\164\x65"]); goto jq3NF; eQJMH: $optionFieldAll = ["\167\x68\145\x72\x65" => ["\137\x69\x64" => new \MongoDB\BSON\ObjectID($data["\x66\151\145\x6c\x64\x61\x6c\x6c"]), "\163\x68\157\x77" => 1], "\163\157\x72\x74" => ["\x70\157\163\151\164\151\157\156" => 1]]; goto PKtmE; mXXU_: $data["\156\141\x6d\145\114\141\x6e\147"] = langJS("\155\157\x64\x75\x6c\x65\137\143\x75\163\164\x6f\x6d\x66\x69\x65\154\144\x2e\x6e\x61\x6d\x65\x5f\154\141\x6e\x67\x2e" . $data["\141\x6c\x69\x61\163"]) !== "\155\157\144\165\154\145\x5f\143\165\163\x74\157\155\x66\151\145\154\x64\56\x6e\141\155\x65\137\x6c\x61\x6e\147\56" . $data["\141\x6c\x69\x61\x73"] ? langJS("\x6d\157\144\165\x6c\145\137\x63\165\163\164\157\x6d\146\x69\145\x6c\x64\x2e\156\x61\x6d\x65\x5f\154\x61\x6e\147\56" . $data["\141\x6c\x69\141\x73"]) : $data["\x6e\x61\155\x65"]; goto bceZm; u7v0r: if (!array_key_exists("\x6c\141\x73\x74\137\155\157\x64\151\x66\x69\145\144", $data)) { goto ryvaR; } goto JLSuV; J8wbv: unset($fieldall["\137\x69\144"]); goto Wu3Gw; TUj7n: $name = substr($data["\x6f\x77\x6e\x65\x72"], 0, $index); goto iWfR3; uLzLg: $data["\143\162\145\141\164\145\144\x5f\165\x73\x65\x72\x6e\141\155\x65"] = $data["\x63\x72\145\141\164\145\x64"]["\142\x79\x69\144"]; goto VSxB7; MSR2a: syR0b: goto urtHa; cL6sq: if (isset($data["\x65\x64\x69\164\144\145\146\141\x75\x6c\x74"]) || !(isset($data["\x73\171\163\x74\145\155"]) && $data["\163\171\163\164\x65\x6d"] == 1 || isset($data["\144\x65\x66\x61\x75\154\164"]) && $data["\x64\x65\x66\141\165\x6c\164"] == 1)) { goto whb_s; } goto mXXU_; TINg0: if (!array_key_exists("\x6f\x77\x6e\145\x72", $data)) { goto SHqa3; } goto EIHz0; y0MxS: $data["\157\x77\156\145\162\137\x75\x73\x65\162\x6e\141\x6d\x65"] = $owner_username["\x74\x65\x78\x74"]; goto CkMzT; iY7gO: unset($fieldall["\x73\x68\157\167"]); goto fN3ky; V2vPk: $tooltiptemp = $data["\x74\x6f\x6f\x6c\x74\x69\160"]; goto wAASg; zQpgQ: $id = substr($data["\157\167\156\x65\162"], $index + 1); goto TUj7n; KmvCu: $data["\164\157\x6f\x6c\x74\x69\160"] = $tooltiptemp; goto MZUtu; gW4RU: $data["\x69\144\x46\151\x65\x6c\144\x41\x6c\154"] = $idFieldAll; goto YpCjp; wkUPh: Xm8Cg: goto tDmi_; z9_dD: jRZlg: goto ODeLc; HCW_7: $data["\x6e\141\155\145\x4c\x61\156\x67"] = $data["\156\x61\x6d\x65"]; goto MWSLy; iWfR3: if ($name == "\165\163\145\x72") { goto Xm8Cg; } goto B30Tw; EIHz0: $index = strpos($data["\x6f\167\156\145\162"], "\137"); goto zQpgQ; RgWMR: WpQMy: goto yVqKI; YpCjp: $data["\137\151\144"] = $idFieldAll; goto ByN4g; KfjtQ: } goto qQmZX; lbXRW: Vy_aZ: goto b6ah8; Xrx8B: $this->load->model("\163\x65\164\x74\151\156\147\x73\57\x63\x75\x73\x74\x6f\155\x66\151\x65\154\x64\x2f\146\x69\145\x6c\144\137\155"); goto iKdA1; iKdA1: $field = $this->field_m->db_get_withcache_custom($option, $this->data["\x70\x62\x78\x5f\x63\165\x73\x74\157\x6d\x65\162\x5f\x63\157\144\x65"] . "\x5f\x66\151\x65\154\144\x5f\x67\x72\x6f\165\x70\157\166\x65\x72\166\x69\x65\x77\x74\151\x63\x6b\145\x74\x73\137" . $valgroup["\137\151\x64"], 600); goto A3mn0; qQmZX: X_bju: goto mk7_S; b6ah8: $valgroup["\156\141\x6d\145\x4c\141\x6e\147"] = $valgroup["\156\x61\x6d\x65"]; goto nkjkw; VHP3z: $valgroup["\x63\x61\164\145\147\157\x72\x79\x5f\163\164\162\151\156\x67"] = implode("\54", $valgroup["\143\x61\164\x65\x67\157\162\171"]); goto KFHl8; ea1HP: $valgroup["\143\150\x65\x63\x6b\x5f\x63\141\164\145"] = 0; goto dhDRe; ysBCw: if (isset($valgroup["\145\x64\151\164\x64\x65\146\x61\165\x6c\x74"])) { goto Vy_aZ; } goto R3HGz; OQ5lT: $valgroup["\143\x68\145\143\153\137\x63\x61\164\x65"] = 0; goto QMAub; QMAub: goto h0JYj; goto PhMBw; nkjkw: wEi_p: goto fJKDw; hJ71n: } goto QXPhX; LWNA3: $this->load->model("\163\x65\x74\x74\x69\x6e\147\163\x2f\143\x75\163\164\157\155\x66\151\145\154\x64\x2f\x66\151\x65\x6c\x64\141\x6c\x6c\137\155"); goto fu0tA; dwm2x: $this->load->model("\x73\145\x74\164\x69\156\x67\163\x2f\x63\x75\x73\164\157\x6d\146\x69\145\154\144\57\x66\151\x65\x6c\x64\147\x72\157\x75\160\x5f\155"); goto LWNA3; k4Ybe: return $group; goto PhGLU; fu0tA: $optionSort = ["\167\x68\x65\162\145" => ["\155\157\144\165\x6c\x65" => "\x74\151\x63\153\x65\164\163", "\x73\x68\157\167" => 1], "\163\x6f\x72\164" => ["\160\x6f\163\x69\164\x69\x6f\x6e\157\166\x65\x72\166\151\145\167" => 1]]; goto neoox; PhGLU: } public function checkCategoryTicket() { goto N0mm8; SWkRI: $this->load->model("\x73\x65\x74\x74\x69\156\x67\163\x2f\x63\165\x73\x74\157\155\x66\151\x65\x6c\x64\57\x66\x69\x65\x6c\144\x5f\155"); goto Dza_C; VRchu: $field = $this->field_m->db_oneoptions([], $option); goto uc1xQ; KzooF: $check = 1; goto rZVr9; rZVr9: AHD9I: goto j3kew; uc1xQ: if (!($field["\x73\x68\157\x77"] == 1)) { goto AHD9I; } goto KzooF; N0mm8: $option = ["\167\x68\x65\162\145" => ["\x6d\157\x64\x75\x6c\x65" => "\x74\x69\143\153\x65\164\x73", "\x61\154\151\141\163" => "\143\x61\x74\x65\147\157\x72\x79"]]; goto SWkRI; j3kew: return $check; goto OExFZ; Dza_C: $check = 0; goto VRchu; OExFZ: } public function checkStatusTicket() { goto EidQ7; uWWji: return $check; goto pneGL; qaY0h: Nm12a: goto uWWji; EidQ7: $option = ["\x77\x68\145\x72\x65" => ["\155\157\144\165\x6c\x65" => "\164\x69\x63\153\x65\x74\163", "\x61\154\x69\141\163" => "\x73\164\x61\x74\x75\x73"]]; goto cwPrr; cwPrr: $this->load->model("\163\x65\164\x74\x69\x6e\147\x73\x2f\x63\x75\163\164\x6f\x6d\x66\x69\145\x6c\144\x2f\x66\151\145\154\x64\x5f\x6d"); goto ubB1b; ubB1b: $check = 0; goto HdoxB; HdoxB: $field = $this->field_m->db_oneoptions([], $option); goto WIY1f; xcy4Q: $check = 1; goto qaY0h; WIY1f: if (!($field["\x73\x68\x6f\167"] == 1)) { goto Nm12a; } goto xcy4Q; pneGL: } public function checkIDTicket() { goto XrPVz; DhWmN: uJ303: goto AbuJ_; v6AEr: $check = 1; goto DhWmN; mzW0X: $this->load->model("\163\x65\164\164\x69\156\x67\163\57\143\x75\x73\164\157\155\x66\151\145\x6c\144\57\x66\151\145\154\144\x5f\155"); goto FNang; XrPVz: $option = ["\x77\150\x65\x72\x65" => ["\155\x6f\x64\165\154\x65" => "\164\x69\x63\x6b\145\164\x73", "\141\x6c\x69\141\x73" => "\164\x69\143\153\x65\164\137\x69\x64"]]; goto mzW0X; jCi2Q: $field = $this->field_m->db_oneoptions([], $option); goto uKWzW; AbuJ_: return $check; goto kof4g; FNang: $check = 0; goto jCi2Q; uKWzW: if (!($field["\x73\x68\x6f\167"] == 1)) { goto uJ303; } goto v6AEr; kof4g: } public function getTicketLinkByGroupID($groupid) { goto L9tST; yyaMH: echo json_encode($results); goto g2fFL; ujvIJ: foreach ($results as &$value) { goto CERvl; O3h8h: $value["\143\x72\x65\141\164\145\x64\x5f\x73\x74\x72\151\156\147"] = searchnameuser($value["\143\162\145\141\164\145\144"]["\x62\171\151\x64"]); goto ofrm9; FZM27: $value["\x63\162\x65\141\x74\x65\x64\x5f\x73\164\162\151\x6e\x67"] = ''; goto ei2fF; k3NDE: BD4C8: goto afIVv; fD65z: $value["\x61\163\163\151\x67\156\145\145\137\163\x74\x72\151\156\x67"] = searchnameuser($value["\141\x73\163\151\x67\x6e\145\x65\137\151\156\x66\157"]["\151\x64"]); goto syH0D; ofrm9: if (!($value["\x63\162\x65\141\x74\145\x64\137\163\164\162\x69\x6e\147"] === false)) { goto BD4C8; } goto sJD7O; syH0D: bh5Z8: goto s4Zjp; sJD7O: $value["\x63\x72\x65\141\164\x65\144\137\163\164\162\151\156\147"] = $value["\143\x72\145\x61\164\145\x64"]["\x62\x79\151\x64"]; goto k3NDE; t5FwA: $value["\x63\162\145\141\164\145\x64\144\141\x74\145\137\163\x74\162\151\156\147"] = date("\144\x2f\155\x2f\131", $value["\143\x72\x65\x61\164\145\x64"]["\164\151\155\x65"]); goto blMiC; CERvl: $value["\x63\x72\x65\x61\x74\x65\x64\164\151\155\x65\137\163\x74\162\x69\x6e\x67"] = date("\110\x3a\x69\72\x73", $value["\x63\x72\x65\141\x74\x65\x64"]["\x74\151\x6d\x65"]); goto t5FwA; blMiC: $value["\162\x65\161\x75\x65\x73\164\145\162\x5f\x73\164\x72\x69\156\x67"] = !empty($value["\x72\x65\161\165\145\163\164\x65\x72\x5f\x69\x64"]) && array_key_exists($value["\162\x65\161\165\x65\163\x74\x65\162\137\x69\x64"], $requesters_name) ? $requesters_name[$value["\162\x65\x71\165\x65\163\164\145\x72\x5f\x69\144"]] : ''; goto FZM27; ei2fF: if (!array_key_exists("\x63\162\x65\141\x74\145\144", $value)) { goto ABzLc; } goto O3h8h; afIVv: ABzLc: goto fD65z; s4Zjp: } goto ezdq0; PAAI3: if (empty($results)) { goto yCwaI; } goto Ctme1; YGBpn: HZyWQ: goto abRjv; NUEBf: yCwaI: goto ujvIJ; gQ0mz: $requesters_name = []; goto PAAI3; L9tST: $this->load->model("\163\145\x72\x76\151\x63\x65\x73\57\x74\151\x63\x6b\145\164\163\57\164\x69\143\x6b\145\x74\163\x5f\x6d"); goto PGB46; ezdq0: Pwtfb: goto yyaMH; Mwcy4: if (empty($requesters)) { goto VCqkF; } goto MVOwT; abRjv: VCqkF: goto NUEBf; ESsvI: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\x6c\151\156\x6b\137\x69\144", "\x65\x71", $groupid), $filter); goto F6qTS; Ctme1: $arr_requesterid = array_column($results, "\x72\x65\161\165\x65\163\164\145\x72\x5f\151\144"); goto M1rZR; MVOwT: foreach ($requesters as $req) { goto rZsYY; jh02O: goto vVH3B; goto mGKFB; q90KD: $info = $req["\x6e\141\155\x65"]; goto jh02O; C3rqu: if ($req["\x66\162\157\x6d\x6d\157\x64\165\x6c\145"] === "\x75\163\x65\x72\163") { goto KJIN5; } goto q90KD; QTB0l: vVH3B: goto XAOm9; aXG0b: $info = !empty($req["\x6e\x61\x6d\x65"]) ? $req["\x6e\x61\155\x65"] : $req["\165\x73\145\x72\156\141\155\145"]; goto QTB0l; XAOm9: $requesters_name[$req["\x5f\x69\x64"]] = $info; goto WR4fY; WR4fY: GsHAA: goto FX4Vv; mGKFB: KJIN5: goto aXG0b; rZsYY: $info = ''; goto C3rqu; FX4Vv: } goto YGBpn; yFLMu: $this->load->model("\x73\x65\x72\166\151\x63\x65\x73\57\x74\151\x63\153\145\x74\x73\57\x72\x65\161\165\145\163\x74\x65\x72\x73\137\155"); goto gQ0mz; G3xmf: $filter = new stdClass(); goto ESsvI; M1rZR: $requesters = $this->requesters_m->db_getbylistid($arr_requesterid); goto Mwcy4; F6qTS: $results = $this->tickets_library->db_read($filter)["\x64\141\x74\x61"]; goto yFLMu; PGB46: $this->load->library("\x74\151\143\x6b\145\164\x73\137\154\x69\142\x72\x61\x72\x79"); goto G3xmf; g2fFL: } public function readLinkTicket() { goto TgQDP; N4SgU: qMWxT: goto JDMa6; U8e9G: $request = json_decode(file_get_contents("\x70\150\x70\72\57\57\x69\x6e\160\x75\x74"), true); goto aTYSh; wZiVq: VVPlP: goto J5gft; JYUgE: OSTZ6: goto eSvzs; uKu0t: HjPUB: goto ZJko2; pFmJd: YPFde: goto V0olU; tmJg8: $result = $this->tickets_library->db_read($filter); goto Stykp; u7xFh: goto OSTZ6; goto uKu0t; Hj_l9: $data = $this->tickets_links_m->db_alloptions([], $option); goto HGkru; Jfx8P: G5rTM: goto ngJvG; XUwG3: foreach ($requesters as $req) { goto h67WZ; h67WZ: $info = ''; goto zEfha; aUY2I: $info = !empty($req["\x6e\x61\155\x65"]) ? $req["\x6e\x61\x6d\145"] : $req["\x75\163\145\162\x6e\x61\155\x65"]; goto DeRr7; zEfha: if ($req["\146\x72\x6f\x6d\x6d\157\144\x75\x6c\x65"] === "\x75\x73\145\x72\163") { goto gW13Y; } goto i_tg0; AKZFd: $requesters_name[$req["\137\x69\144"]] = $info; goto RX25o; DeRr7: T7awm: goto AKZFd; g95Cw: goto T7awm; goto D4Et_; i_tg0: $info = $req["\156\141\x6d\x65"]; goto g95Cw; D4Et_: gW13Y: goto aUY2I; RX25o: fSO0e: goto wQQeh; wQQeh: } goto VVVDJ; iOdjv: $requesters = $this->requesters_m->db_getbylistid($arr_requesterid); goto XPOHT; TgXeg: $arr_requesterid = array_column($data, "\x72\145\x71\165\x65\x73\x74\145\x72\x5f\151\x64"); goto iOdjv; XPOHT: if (empty($requesters)) { goto qMWxT; } goto XUwG3; TgQDP: header("\103\157\x6e\164\x65\156\x74\55\124\171\160\x65\x3a\x20\141\160\160\x6c\151\143\141\164\x69\x6f\156\x2f\x6a\163\x6f\x6e"); goto U8e9G; PuDLO: $listticket = []; goto SIUHt; Stykp: if (!(isset($result["\144\x61\x74\141"]) && count($result["\x64\141\164\141"]) > 0)) { goto qBPfc; } goto inxBB; ZXLQA: y6bsN: goto jWtEI; V0olU: qBPfc: goto ZXLQA; NnbXE: $this->load->model("\x73\145\x72\x76\x69\143\145\163\57\164\x69\143\x6b\145\164\x73\x2f\162\x65\x71\x75\x65\163\164\x65\x72\x73\x5f\x6d"); goto gh7bS; o0oo0: $option = ["\167\150\145\162\145" => ["\x67\162\157\x75\x70\151\144" => $id], "\163\157\162\164" => ["\x5f\151\144" => -1]]; goto pQPHX; yuHOl: $listid = array_column($data, "\x69\x64\164\151\x63\153\145\x74"); goto PuDLO; polRT: $temp_arr = []; goto EhyGk; jWtEI: foreach ($data as &$value) { goto yUoEV; hXj3F: ke0ig: goto UPGu3; o1eJF: if (!isset($bu_username["\x74\x65\170\x74"])) { goto Uc0_F; } goto nyGdp; TybaS: $value["\143\162\x65\x61\x74\x65\144\x64\141\x74\x65\137\x73\164\162\x69\156\147"] = date("\x64\x2f\x6d\x2f\x59", $value["\x63\x72\x65\x61\164\145\144"]["\164\151\x6d\x65"]); goto MSBc2; P9lnf: $value["\142\141\143\153\x67\x72\157\x75\156\144"] = "\43\x39\x39\71\71\x39\71"; goto vENrY; Ui1Nk: $value["\143\162\x65\x61\164\x65\144\x74\x69\155\145\137\x73\x74\162\x69\x6e\x67"] = date("\110\x3a\151\x3a\x73", $value["\143\x72\x65\141\x74\x65\x64"]["\x74\x69\155\145"]); goto TybaS; C0ZZj: $value["\x63\x72\145\x61\x74\145\144\137\x73\164\162\151\x6e\x67"] = $value["\143\162\x65\x61\164\x65\x64"]["\x62\x79\x69\x64"]; goto Nvxvx; LZyuE: UCOrC: goto copkF; sXnWg: Uc0_F: goto rQVVg; sCwLB: ULy1O: goto v0I3k; tVN2c: ebV7y: goto PggaW; z_4Ko: HrdJO: goto sCwLB; d0HWs: GVJG1: goto LGHac; ddhd5: if (!(isset($value["\164\151\x63\x6b\x65\164\x73"]["\142\x70\x6d"]["\x63\x75\x72\162\145\156\164\x53\x74\x61\x74\x65"]) && $value["\164\x69\x63\153\x65\x74\163"]["\142\x70\155"]["\143\165\x72\x72\145\x6e\x74\x53\164\141\164\x65"] == false)) { goto Zfd21; } goto CKq38; vENrY: Zfd21: goto mPqAa; R0BOv: if (!isset($value["\x74\151\x63\153\x65\164\163"]["\x62\160\155\x5f\143\x75\x72\x72\x65\156\164\x53\x74\141\164\x65"]["\145\170\164\145\x6e\144\103\x6f\156\146\151\x67"]["\x62\141\x63\x6b\147\x72\157\165\x6e\144\103\157\x6c\x6f\162"])) { goto ke0ig; } goto c6SyS; sLN9_: $value["\x62\x61\x63\x6b\x67\x72\x6f\165\156\x64"] = "\43\x65\x36\x37\145\x32\62"; goto Be4oi; UPGu3: goto OssR4; goto Bhewp; copkF: $value["\x74\x69\143\153\145\x74\163"]["\x61\163\163\x69\147\x6e\x65\x65\137\163\164\162\151\x6e\147"] = searchnameuser($id); goto Wl5RH; Lp8aF: p6G9t: goto sLN9_; e8Qf4: $value["\x63\162\x65\x61\164\x65\144\137\163\x74\162\151\x6e\147"] = ''; goto DgZvp; yUoEV: $value["\143\x72\145\141\x74\145\x64"] = $value["\x63\x72\x65\141\x74\145\144\x5f\164\x69\143\x6b\145\164"]; goto v8V5B; Oh7Ik: if ($value["\x74\151\x63\x6b\x65\164\163"]["\x62\160\155\x5f\x63\x75\162\162\x65\x6e\x74\123\x74\x61\x74\x65"]["\156\x61\155\x65"] == "\111\x6e\40\x50\162\x6f\147\x72\145\163\163") { goto p6G9t; } goto QY_7a; rCmV2: $value["\143\x72\145\x61\x74\x65\144\137\165\163\145\162\156\141\x6d\145"] = searchnameuser($value["\143\x72\145\141\164\x65\144"]["\x62\x79\x69\x64"]); goto hUVAV; Nv6ta: if (!($value["\164\x69\x63\x6b\145\x74\x73"]["\x61\x73\x73\151\x67\x6e\x65\145"] !== '')) { goto HrdJO; } goto OJHf0; PggaW: $value["\142\141\143\x6b\x67\x72\x6f\165\x6e\144"] = "\43\145\x37\64\x63\x33\143"; goto tu27c; w20IS: $value["\142\141\143\153\x67\x72\x6f\165\156\x64"] = "\43\x61\x61\144\x31\x37\x38"; goto kQSQt; mPqAa: ba59K: goto aXgL6; ES_yc: if (isset($value["\164\x69\143\153\145\164\x73"]["\x62\160\x6d"]["\143\165\162\x72\x65\156\x74\x53\x74\141\164\x65"]) && $value["\164\151\x63\153\145\x74\163"]["\142\160\155"]["\143\165\x72\162\x65\156\x74\123\x74\141\x74\145"]) { goto UJNcW; } goto j1y1p; CKq38: $value["\x74\x69\x63\x6b\x65\164\163"]["\142\160\x6d\137\143\x75\162\162\x65\x6e\x74\123\164\141\x74\145"] = ["\x6e\141\155\145" => "\105\x6e\x64", "\145\170\164\x65\156\144\x43\x6f\156\x66\151\147" => ["\x73\x74\141\x74\165\163" => "\105\156\144", "\164\x79\x70\x65\x43\x6f\x6c\157\162" => "\x64\145\x66\x61\165\x6c\x74", "\143\x6c\x61\163\163\x42\165\164\x74\x6f\156" => "\167\141\x72\156\151\x6e\147"]]; goto P9lnf; bpXq3: $value["\150\157\x75\x72\x63\162\x65\x61\x74\145"] = date("\x48\x3a\151\x3a\x73", $value["\x63\x72\145\x61\164\x65\x64"]["\x74\151\x6d\145"]); goto Y3mpX; v0I3k: $value["\x62\141\143\x6b\x67\x72\x6f\x75\x6e\x64"] = ''; goto ES_yc; LGHac: $value["\164\151\143\x6b\145\164\163"] = $listticket[$value["\151\x64\x74\151\143\x6b\x65\x74"]] ?? []; goto qygfO; rP9wY: if (!($value["\154\x61\163\x74\137\x6d\x6f\144\x69\x66\x69\x65\x64\137\165\x73\x65\x72\x6e\141\x6d\x65"] === false)) { goto kJnIx; } goto n44yh; DgZvp: if (!array_key_exists("\143\x72\145\141\164\x65\x64", $value)) { goto GVJG1; } goto QHoVf; OJNPA: H0nfb: goto LKMur; v8V5B: $value["\143\162\x65\x61\x74\145\144\137\165\x73\145\162\x6e\141\x6d\145"] = ''; goto xGe_5; xGe_5: if (!array_key_exists("\143\x72\145\x61\164\145\144", $value)) { goto V0V5u; } goto rCmV2; QY_7a: if ($value["\x74\151\143\153\145\x74\x73"]["\x62\x70\155\137\x63\x75\162\x72\145\x6e\164\123\x74\x61\164\145"]["\x6e\141\x6d\x65"] == "\x41\160\160\x72\x6f\166\145\144") { goto xlnBS; } goto J34kP; hqn2A: V0V5u: goto i_4Zd; uVS3P: if ($value["\x74\x79\x70\x65"] == "\x70\141\x72\145\156\164\x6c\x65\166\145\x6c") { goto ZGmsL; } goto v_bkB; TF6VK: $value["\154\x61\x62\145\x6c"] = langJS("\x67\x65\x6e\x65\162\x61\x6c\x2e\163\141\155\x65\x6c\145\x76\145\x6c"); goto RiCe8; chsud: s1GAp: goto bpXq3; MSBc2: $value["\x72\x65\x71\165\x65\163\164\x65\x72\x5f\x73\x74\x72\x69\156\147"] = !empty($value["\x72\x65\x71\x75\145\x73\x74\145\162\137\x69\x64"]) && array_key_exists($value["\162\145\161\165\145\163\164\x65\162\137\151\x64"], $requesters_name) ? $requesters_name[$value["\x72\x65\x71\x75\145\x73\164\x65\162\x5f\x69\144"]] : ''; goto e8Qf4; cRLDU: $bu_username = searchbu($id); goto o1eJF; Nvxvx: gWrG6: goto d0HWs; fmQDh: goto PWEL3; goto tVN2c; skZOD: $value["\x6c\x61\163\x74\137\x6d\157\x64\151\146\151\145\144\x5f\165\163\x65\162\x6e\x61\155\145"] = searchnameuser($value["\x6c\141\x73\x74\137\x6d\157\x64\151\146\x69\145\x64"]["\x62\171\x69\144"]); goto rP9wY; Y3mpX: $value["\144\x61\164\145\x63\162\145\x61\164\145"] = date("\144\57\x6d\x2f\131", $value["\x63\162\x65\x61\164\145\144"]["\x74\x69\155\145"]); goto zdvev; u4YJ1: $value["\x6c\141\x62\x65\x6c"] = langJS("\147\145\x6e\x65\x72\141\154\56\x70\141\x72\145\156\164"); goto oStRK; i_4Zd: $value["\x6c\x61\163\164\137\155\157\144\x69\x66\x69\145\144\137\x75\x73\145\x72\x6e\141\x6d\x65"] = ''; goto Ikyn3; LKMur: $value["\154\141\x62\x65\154"] = langJS("\147\x65\156\145\x72\x61\154\x2e\143\x68\x69\154\x64"); goto njA82; RKfMS: if ($value["\x74\x69\143\153\145\x74\x73"]["\x62\x70\155\137\x63\x75\x72\x72\x65\x6e\x74\123\164\141\164\x65"]["\x6e\x61\x6d\145"] == "\103\x61\x6e\x63\x65\154") { goto ebV7y; } goto Oh7Ik; RiCe8: goto PJJ58; goto OJNPA; OJHf0: $index = strpos($value["\x74\151\x63\x6b\x65\164\163"]["\141\163\163\151\147\156\x65\145"], "\x5f"); goto xXCjF; zdvev: $value["\x6c\141\142\145\x6c"] = ''; goto uVS3P; Bhewp: RAKSL: goto rP2Rl; RmeNX: GFoyZ: goto hqn2A; rP2Rl: $value["\142\141\x63\x6b\147\162\x6f\165\156\144"] = "\43\x30\60\103\x43\106\106"; goto Tg7oq; A1OJi: zIb4F: goto ddhd5; M6H_J: ZGmsL: goto u4YJ1; tjIY4: xlnBS: goto w20IS; xXCjF: $id = substr($value["\x74\151\x63\153\145\x74\163"]["\x61\x73\163\x69\x67\x6e\x65\145"], $index + 1); goto IOdGM; IOdGM: $name = substr($value["\x74\151\143\153\x65\164\x73"]["\141\x73\x73\151\147\156\145\145"], 0, $index); goto ZJScJ; j1y1p: $value["\164\151\x63\153\x65\x74\163"]["\142\x70\x6d\137\x63\165\162\162\x65\156\x74\x53\164\141\164\x65"] = ["\156\141\x6d\145" => "\x6e\145\167", "\145\170\x74\x65\x6e\x64\x43\x6f\x6e\146\151\147" => ["\163\x74\141\164\x75\x73" => "\x6e\145\x77", "\x74\x79\x70\x65\x43\x6f\x6c\157\162" => "\144\x65\x66\x61\165\154\164", "\143\x6c\x61\163\163\102\x75\x74\164\157\156" => "\167\x61\162\156\x69\x6e\147"]]; goto Weuzh; c6SyS: $value["\142\x61\143\x6b\x67\162\x6f\165\156\x64"] = $value["\164\x69\143\x6b\145\x74\163"]["\142\x70\x6d\x5f\143\x75\162\x72\145\156\164\123\164\x61\164\145"]["\x65\x78\164\145\156\144\x43\157\x6e\x66\151\147"]["\x62\x61\143\x6b\147\x72\157\x75\156\x64\103\157\x6c\x6f\162"]; goto hXj3F; hUVAV: if (!($value["\143\x72\145\x61\x74\145\x64\137\165\163\x65\x72\x6e\141\x6d\145"] === false)) { goto GFoyZ; } goto cxJxA; Weuzh: $value["\x62\x61\x63\x6b\147\x72\157\x75\x6e\144"] = "\43\71\x39\71\71\71\x39"; goto N121L; qygfO: if (!isset($value["\x74\x69\143\153\145\164\163"]["\141\163\x73\151\x67\156\x65\x65"])) { goto ULy1O; } goto Nv6ta; n44yh: $value["\x6c\x61\x73\x74\137\155\157\144\x69\146\151\145\x64\137\x75\163\145\x72\x6e\141\155\145"] = $value["\x6c\x61\x73\164\137\155\157\x64\151\146\x69\145\x64"]["\142\171\151\x64"]; goto OCWc9; v_bkB: if ($value["\x74\171\160\x65"] == "\143\150\x69\x6c\144\154\145\x76\145\x6c") { goto H0nfb; } goto TF6VK; IVCzE: goto X227J; goto tjIY4; QHoVf: $value["\x63\x72\x65\141\164\x65\144\137\x73\x74\x72\151\156\147"] = searchnameuser($value["\x63\162\145\x61\x74\x65\144"]["\x62\171\x69\144"]); goto NoD8A; N121L: goto zIb4F; goto SeVnQ; ZJScJ: if ($name == "\165\x73\x65\x72") { goto UCOrC; } goto cRLDU; OCWc9: kJnIx: goto chsud; kQSQt: X227J: goto r3mvi; rQVVg: goto I0tO6; goto LZyuE; vym3N: $value["\x74\151\143\x6b\x65\x74\x73"]["\142\x70\x6d\x5f\x63\x75\162\162\x65\x6e\164\123\164\141\164\x65"] = $value["\x74\151\x63\153\145\164\163"]["\x62\x70\x6d"]["\143\x75\162\x72\x65\156\164\123\x74\141\x74\x65"]; goto RKfMS; tu27c: PWEL3: goto A1OJi; oStRK: j0ZFv: goto Ui1Nk; r3mvi: goto Izb_b; goto Lp8aF; Ikyn3: if (!array_key_exists("\154\141\x73\x74\x5f\x6d\x6f\x64\151\146\151\145\x64", $value)) { goto s1GAp; } goto skZOD; SeVnQ: UJNcW: goto vym3N; nyGdp: $value["\x74\x69\143\x6b\145\164\163"]["\141\x73\163\151\x67\156\145\x65\x5f\x73\x74\x72\151\156\x67"] = $bu_username["\164\x65\x78\164"]; goto sXnWg; cxJxA: $value["\x63\x72\x65\141\164\x65\x64\x5f\165\x73\x65\x72\156\x61\x6d\145"] = $value["\143\162\145\141\164\x65\144"]["\142\171\151\144"]; goto RmeNX; NoD8A: if (!($value["\143\x72\x65\x61\164\145\x64\x5f\x73\164\162\x69\x6e\147"] === false)) { goto gWrG6; } goto C0ZZj; J34kP: if ($value["\x74\x69\143\x6b\145\164\x73"]["\x62\x70\155\x5f\x63\x75\162\162\x65\x6e\x74\x53\x74\x61\x74\x65"]["\x6e\141\155\x65"] == "\x44\x6f\156\145") { goto RAKSL; } goto R0BOv; Tg7oq: OssR4: goto IVCzE; Be4oi: Izb_b: goto fmQDh; njA82: PJJ58: goto YHH2D; Wl5RH: I0tO6: goto z_4Ko; YHH2D: goto j0ZFv; goto M6H_J; aXgL6: } goto wZiVq; ngJvG: $filter = new stdClass(); goto YUqTA; EhyGk: foreach ($listid as $valueID) { $temp_arr[] = new \MongoDB\BSON\ObjectId($valueID); SM1HS: } goto Jfx8P; aTYSh: $id = $request["\151\x64"]; goto tM4Hd; gh7bS: $this->load->model("\163\145\x72\x76\151\x63\x65\x73\57\164\151\143\x6b\x65\164\x73\x2f\x74\x69\143\153\145\x74\x73\137\155"); goto syCa_; SIUHt: if (!(is_array($listid) && count($listid) > 0)) { goto y6bsN; } goto polRT; tM4Hd: if ($id !== '') { goto HjPUB; } goto w2QRj; JDMa6: Olo7F: goto yuHOl; XWWb8: echo json_encode(["\144\141\x74\141" => $data, "\x74\157\164\141\x6c" => count($data)]); goto u7xFh; HGkru: if (empty($data)) { goto Olo7F; } goto TgXeg; VVVDJ: CTwC6: goto N4SgU; syCa_: $this->load->library("\164\x69\x63\153\x65\164\163\x5f\154\x69\x62\162\141\x72\171"); goto o0oo0; pQPHX: $requesters_name = []; goto Hj_l9; J5gft: echo json_encode(["\144\141\164\x61" => $data, "\164\157\x74\x61\x6c" => count($data)]); goto JYUgE; ZJko2: $this->load->model("\x73\x65\162\x76\x69\x63\145\163\57\164\x69\143\153\x65\164\x73\57\164\151\143\153\x65\164\163\137\154\x69\156\153\163\x5f\155"); goto NnbXE; YUqTA: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\x5f\x69\144", "\151\x6e", $temp_arr), $filter); goto tmJg8; inxBB: foreach ($result["\x64\x61\x74\141"] as $item) { $listticket[$item["\x5f\x69\144"]] = $item; nzo1p: } goto pFmJd; w2QRj: $data = []; goto XWWb8; eSvzs: } public function searchTicketByRequesterId() { goto wPXz7; tvbh0: $this->load->model("\x73\x65\x72\x76\x69\143\145\163\57\x74\151\143\x6b\x65\x74\163\57\162\x65\x71\x75\x65\163\164\x65\162\163\137\x6d"); goto c77eB; wPXz7: header("\x43\x6f\156\164\145\156\164\x2d\x54\171\x70\x65\72\40\141\x70\x70\x6c\151\x63\x61\164\x69\157\156\57\152\163\157\x6e"); goto agZOS; CsZ_j: $result = $this->tickets_library->db_read($filter); goto tvbh0; szH59: K_gJo: goto MEgxr; MEgxr: $filter = new stdClass(); goto PphGA; PphGA: $sort = new stdClass(); goto ysN96; c77eB: $requesters_name = []; goto DWsQx; Wl36i: esrAk: goto w95bO; xdanW: $arr_requesterid = array_column($result["\x64\x61\164\x61"], "\x72\x65\x71\165\x65\163\164\x65\x72\x5f\x69\144"); goto mMVLW; c06I4: echo json_encode($result); goto FKeOe; mMVLW: $requesters = $this->requesters_m->db_getbylistid($arr_requesterid); goto PlvwQ; lUmMD: if (!empty($id)) { goto K_gJo; } goto bnZ1Z; ysN96: $sort->field = "\x63\x72\145\x61\164\145\x64\x2e\164\x69\155\145"; goto hYXoq; PlvwQ: if (empty($requesters)) { goto esrAk; } goto eJBub; ZXKmz: $id = $request["\x69\x64\x72\145\161\x75\x65\x73\x74\x65\x72"]; goto FsKw6; eJBub: foreach ($requesters as $req) { goto Zj_pq; unusK: $info = $req["\156\x61\x6d\145"]; goto zugeZ; tVJvl: D2f5H: goto YVTT5; Ev97a: if ($req["\146\162\157\155\x6d\157\144\x75\x6c\x65"] === "\x75\163\145\x72\163") { goto D2f5H; } goto unusK; cdjYV: $requesters_name[$req["\x5f\x69\x64"]] = $info; goto sF3G2; sF3G2: tPs6O: goto lyZ_n; Zj_pq: $info = ''; goto Ev97a; YVTT5: $info = !empty($req["\156\x61\155\x65"]) ? $req["\156\x61\155\x65"] : $req["\x75\x73\145\162\156\x61\x6d\x65"]; goto IJNvY; IJNvY: hbedh: goto cdjYV; zugeZ: goto hbedh; goto tVJvl; lyZ_n: } goto gOtgx; w95bO: tbq1g: goto Fp5V1; bnZ1Z: echo json_encode($result); goto UwzBI; jM6Pp: $result = ["\164\157\164\x61\x6c" => 0, "\144\141\164\141" => []]; goto lUmMD; UwzBI: exit; goto szH59; SDz2K: $filter->sort = [$sort]; goto wuIt7; BTN2u: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\144\x65\154\x65\164\x65", "\156\145\161", 1), $filter); goto CsZ_j; Fp5V1: foreach ($result["\144\x61\164\x61"] as &$value) { goto hX9j2; VghNV: RVmTV: goto STQAU; R1uiQ: $value["\x72\145\x71\x75\145\x73\164\145\x72\x5f\x73\164\x72\151\x6e\x67"] = !empty($value["\162\145\161\165\145\x73\x74\145\162\x5f\x69\144"]) && array_key_exists($value["\x72\145\x71\x75\145\163\x74\145\162\137\x69\144"], $requesters_name) ? $requesters_name[$value["\x72\x65\x71\165\145\x73\164\x65\162\x5f\151\x64"]] : ''; goto HKh8_; kfcQN: if (!in_array($value["\164\151\x63\x6b\x65\164\x5f\x69\144"], $request["\154\x69\163\164\164\x69\143\153\145\164\151\x64"])) { goto NKriy; } goto YxVFA; Cn7iD: $value["\x61\x73\x73\151\147\156\x65\x65\137\x73\x74\162\151\x6e\x67"] = searchnameuser($value["\141\163\163\x69\x67\x6e\x65\x65\137\151\x6e\146\157"]["\151\144"]); goto FaAvK; DaCuY: G4jUu: goto dK9nb; GQlif: if (!array_key_exists("\x63\x72\x65\141\x74\x65\144", $value)) { goto x0Wd0; } goto hmI8f; Tkhwl: if (!($value["\142\x70\155\x5f\143\165\162\162\x65\156\x74\x53\164\x61\x74\145"]["\x6e\141\155\145"] == "\111\x6e\x20\x50\x72\157\x67\162\145\163\x73")) { goto h6w91; } goto R9P_2; g_20e: k4INU: goto Tkhwl; HKh8_: $value["\143\162\145\x61\x74\145\144\137\x73\164\x72\x69\156\x67"] = ''; goto GQlif; YxVFA: $value["\x66\157\x72\155\x65\x78\x69\163\x74\163"] = true; goto f6jpi; WsRPP: if (!($value["\x62\x70\155\x5f\x63\165\162\x72\145\x6e\164\x53\164\141\x74\145"]["\156\141\155\145"] == "\x43\141\x6e\143\x65\x6c")) { goto k4INU; } goto TgKBo; Oyhon: if (!($value["\143\x72\x65\141\164\x65\x64\x5f\x73\x74\x72\x69\x6e\147"] === false)) { goto dmn7V; } goto ILv82; GydMp: JG46B: goto wt5P3; fq80p: x0Wd0: goto nwruV; ILv82: $value["\143\162\145\x61\164\x65\x64\137\x73\x74\162\x69\x6e\147"] = $value["\x63\x72\145\x61\164\x65\x64"]["\142\171\151\x64"]; goto ygxUd; EOQT3: $value["\x66\157\x72\155\144\145\x61\x74\141\x69\x6c"] = true; goto lb2YW; nwruV: $value["\x66\x6f\162\155\145\170\151\163\164\163"] = false; goto OOM6q; knnwE: $value["\142\x70\x6d\137\143\165\x72\162\145\x6e\164\x53\x74\141\x74\145"] = ["\x6e\x61\x6d\145" => "\x6e\x65\167", "\145\170\164\x65\x6e\x64\103\157\156\x66\x69\x67" => ["\163\164\x61\x74\165\163" => "\156\x65\167", "\x74\x79\160\x65\x43\157\x6c\x6f\x72" => "\x64\x65\x66\x61\x75\x6c\x74", "\143\154\141\x73\163\102\165\164\164\157\156" => "\167\141\162\156\x69\x6e\x67"]]; goto pa7D0; hmI8f: $value["\x63\162\x65\141\164\145\144\137\163\x74\162\x69\156\147"] = searchnameuser($value["\143\x72\x65\141\164\x65\144"]["\x62\171\151\144"]); goto Oyhon; STQAU: if (!($value["\142\x70\x6d\137\143\x75\162\x72\x65\156\164\123\x74\141\x74\x65"]["\156\x61\155\145"] == "\x44\x6f\156\145")) { goto G4jUu; } goto i0wVA; Xk0nz: $value["\142\141\143\x6b\x67\x72\x6f\165\156\x64"] = "\x23\141\x61\144\61\x37\70"; goto VghNV; wt5P3: $value["\x62\x70\155\x5f\143\x75\x72\162\x65\156\164\123\x74\x61\164\x65"] = $value["\x62\x70\x6d"]["\x63\165\162\x72\x65\156\x74\123\x74\x61\x74\145"]; goto WsRPP; TgKBo: $value["\142\141\143\153\x67\162\157\165\x6e\x64"] = "\43\145\x37\64\143\x33\x63"; goto g_20e; R9P_2: $value["\x62\141\143\153\147\x72\x6f\x75\156\144"] = "\43\x65\66\67\x65\x32\62"; goto SR0oa; bd6ea: if (!($value["\164\151\x63\x6b\x65\164\137\151\x64"] === $request["\164\151\143\153\x65\164\x69\x64\x66\162\x6f\155\144\x65\164\141\151\154"])) { goto to8Wq; } goto EOQT3; lsmp1: A1FR0: goto CGdCz; pa7D0: $value["\142\x61\x63\x6b\147\162\x6f\x75\x6e\x64"] = "\43\71\x39\x39\71\x39\x39"; goto J1Skg; SR0oa: h6w91: goto sVfXD; sVfXD: if (!($value["\142\x70\155\x5f\143\165\x72\162\x65\x6e\164\123\x74\141\x74\x65"]["\156\x61\155\145"] == "\x41\x70\160\x72\x6f\x76\145\144")) { goto RVmTV; } goto Xk0nz; dK9nb: VvEjv: goto lsmp1; i0wVA: $value["\x62\141\143\153\147\x72\x6f\x75\156\144"] = "\x23\x30\x30\x43\103\106\106"; goto DaCuY; FaAvK: if (isset($value["\x62\x70\155"]["\143\x75\162\x72\x65\156\x74\123\164\141\164\x65"])) { goto JG46B; } goto knnwE; J1Skg: goto VvEjv; goto GydMp; f6jpi: NKriy: goto bd6ea; lb2YW: to8Wq: goto Cn7iD; OOM6q: $value["\146\157\x72\x6d\x64\145\x61\x74\x61\x69\x6c"] = false; goto kfcQN; ygxUd: dmn7V: goto fq80p; hX9j2: $value["\x63\162\145\x61\164\145\x64\164\151\x6d\x65\137\x73\164\162\x69\156\x67"] = date("\110\72\x69\x3a\x73", $value["\x63\x72\145\141\x74\145\x64"]["\x74\151\155\x65"]); goto MNhyZ; MNhyZ: $value["\x63\162\145\141\x74\x65\x64\x64\141\x74\x65\x5f\163\164\x72\x69\156\x67"] = date("\144\x2f\155\57\x59", $value["\143\x72\145\x61\x74\145\144"]["\164\151\155\x65"]); goto R1uiQ; CGdCz: } goto e9QVZ; hYXoq: $sort->dir = "\x64\x65\x73\143"; goto SDz2K; wuIt7: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\162\145\x71\165\x65\163\164\x65\x72\x5f\x69\x64", "\145\161", $id), $filter); goto BTN2u; e9QVZ: t7Ee2: goto FHIhV; agZOS: $request = json_decode(file_get_contents("\160\150\160\x3a\57\57\x69\x6e\160\165\164"), true); goto ZXKmz; FsKw6: $this->load->model("\x73\x65\x72\166\151\x63\x65\163\x2f\164\151\x63\153\x65\164\163\57\164\151\x63\x6b\x65\x74\163\137\155"); goto w3TUP; DWsQx: if (empty($result["\x64\141\x74\141"])) { goto tbq1g; } goto xdanW; w3TUP: $this->load->library("\x74\x69\143\x6b\x65\164\x73\137\154\151\142\x72\x61\162\x79"); goto jM6Pp; gOtgx: D9oRn: goto Wl36i; FHIhV: $result = array_merge($result, $request); goto c06I4; FKeOe: } public function searchTicketMergeForParent() { goto EvZ2X; jPRHp: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\155\145\x72\147\145", "\x6e\145\x71", true), $request); goto kHA4Z; pW76t: ydkW9: goto PsyKB; GVSpE: if ($request->field === "\164\x69\143\153\x65\164\137\151\x64") { goto U0tmQ; } goto D7jQ_; gsmVU: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\142\x70\155\x2e\151\163\x45\x6e\144\145\x64", "\156\x65\x71", true), $request); goto FOxlJ; gtr5Q: goto qpcqw; goto dU9m3; CVqjn: $request->filter->filters = []; goto KvSyG; D7jQ_: if ($request->field === "\163\x75\142\x6a\145\x63\x74") { goto zAHly; } goto rSey5; B6p1n: qpcqw: goto KDemY; lNal5: $arr_requesterid = array_column($result["\x64\141\x74\x61"], "\x72\145\161\x75\145\x73\x74\x65\x72\x5f\x69\144"); goto VcQMF; bPUDO: foreach ($result["\x64\141\164\x61"] as &$value) { goto ePUDJ; kHrO1: Rbmjl: goto mJXl3; HhVWj: $value["\142\160\155\137\143\x75\162\162\145\156\x74\123\164\141\164\145"] = ["\x6e\x61\155\145" => "\156\x65\167", "\145\170\x74\145\156\x64\103\x6f\x6e\146\151\147" => ["\163\164\141\164\x75\x73" => "\x6e\145\x77", "\x74\x79\x70\145\103\x6f\154\x6f\x72" => "\144\x65\146\x61\x75\x6c\164", "\143\x6c\x61\163\x73\x42\x75\164\164\157\156" => "\167\x61\162\156\x69\x6e\147"]]; goto ZqnTw; mJXl3: if (!($value["\142\x70\155\x5f\143\x75\162\x72\x65\x6e\164\x53\x74\x61\x74\x65"]["\x6e\141\x6d\x65"] == "\104\x6f\156\x65")) { goto qax6x; } goto CyCvG; vmTW8: CmtWP: goto PyT1A; PyT1A: if (!($value["\142\x70\x6d\137\143\165\162\x72\x65\156\x74\123\x74\x61\164\145"]["\x6e\141\155\x65"] == "\x41\x70\160\162\157\x76\x65\144")) { goto Rbmjl; } goto ua13F; uuSqN: if (!($value["\142\x70\x6d\x5f\x63\x75\x72\x72\x65\x6e\x74\123\x74\x61\164\145"]["\156\x61\x6d\x65"] == "\x43\141\x6e\143\x65\x6c")) { goto UZPtT; } goto rIKqo; ePUDJ: $value["\x63\162\x65\x61\x74\145\144\x74\x69\x6d\x65\x5f\x73\x74\x72\x69\156\x67"] = date("\110\x3a\151\72\x73", $value["\143\162\x65\141\164\x65\144"]["\164\151\x6d\145"]); goto IIviN; bMNlz: m22p4: goto K59JA; CyCvG: $value["\x62\141\x63\153\147\162\x6f\x75\156\144"] = "\x23\x30\60\x43\103\x46\106"; goto xqjax; oLg5E: $value["\141\x73\x73\x69\x67\156\145\x65\137\163\164\x72\151\156\147"] = searchnameuser($value["\141\163\163\x69\x67\x6e\x65\x65\x5f\151\156\x66\157"]["\x69\144"]); goto ZAYha; KYTXM: $value["\162\145\x71\x75\x65\x73\x74\x65\162\137\x73\164\x72\x69\156\147"] = !empty($value["\162\x65\x71\165\x65\163\164\x65\x72\137\x69\144"]) && array_key_exists($value["\162\x65\161\165\145\x73\x74\x65\162\x5f\x69\x64"], $requesters_name) ? $requesters_name[$value["\x72\x65\161\165\145\x73\x74\x65\162\x5f\151\x64"]] : ''; goto Ypmzs; rIKqo: $value["\x62\141\143\153\147\162\157\165\x6e\144"] = "\43\145\67\x34\143\63\x63"; goto sGFew; QrdIn: jzvVP: goto bMNlz; rJKxg: if (!($value["\142\160\155\137\143\165\162\x72\145\x6e\164\x53\164\141\x74\x65"]["\156\x61\155\145"] == "\x49\x6e\x20\120\162\157\147\x72\145\x73\x73")) { goto CmtWP; } goto ZYueX; IIviN: $value["\143\x72\145\x61\164\x65\x64\x64\x61\164\x65\137\163\164\x72\151\x6e\147"] = date("\x64\x2f\x6d\57\x59", $value["\x63\162\x65\x61\x74\145\144"]["\x74\151\x6d\145"]); goto KYTXM; ZqnTw: $value["\142\x61\143\153\x67\162\x6f\x75\156\144"] = "\x23\x39\71\x39\x39\71\x39"; goto KIEBX; GNUuO: Su1E4: goto OXW0G; pEf5R: if (!array_key_exists("\143\x72\x65\x61\x74\145\x64", $value)) { goto DT1P8; } goto zJrqZ; DIALT: DT1P8: goto oLg5E; NYMf1: if (!($value["\x63\162\x65\x61\164\x65\x64\x5f\163\x74\x72\x69\x6e\x67"] === false)) { goto mCJvG; } goto oPmVv; OXW0G: $value["\142\x70\x6d\137\x63\x75\162\162\x65\156\164\x53\164\141\x74\145"] = $value["\142\x70\x6d"]["\143\165\x72\162\145\x6e\164\x53\164\141\x74\145"]; goto uuSqN; ZAYha: if (isset($value["\142\x70\x6d"]["\x63\x75\x72\x72\x65\156\164\x53\x74\x61\164\x65"])) { goto Su1E4; } goto HhVWj; zJrqZ: $value["\143\162\x65\x61\x74\145\x64\x5f\163\164\162\x69\156\x67"] = searchnameuser($value["\x63\x72\x65\141\x74\145\144"]["\x62\x79\151\144"]); goto NYMf1; oPmVv: $value["\x63\162\145\141\x74\145\x64\137\x73\x74\x72\151\156\147"] = $value["\x63\162\145\141\x74\x65\x64"]["\x62\171\151\x64"]; goto xWVJl; KIEBX: goto jzvVP; goto GNUuO; xqjax: qax6x: goto QrdIn; sGFew: UZPtT: goto rJKxg; Ypmzs: $value["\143\x72\145\x61\x74\145\x64\137\163\164\162\x69\x6e\147"] = ''; goto pEf5R; ZYueX: $value["\142\x61\x63\153\x67\162\157\165\156\x64"] = "\x23\x65\66\x37\145\x32\x32"; goto vmTW8; ua13F: $value["\x62\x61\143\x6b\147\162\157\165\156\x64"] = "\43\x61\141\144\x31\x37\x38"; goto kHrO1; xWVJl: mCJvG: goto DIALT; K59JA: } goto f8IxH; f8IxH: bAE_Z: goto Ha_55; wzQzD: foreach ($requesters as $req) { goto WGWTE; WGWTE: $info = ''; goto yGHzY; xzryj: LwzoZ: goto SEMMJ; qEwwg: $info = !empty($req["\x6e\141\155\145"]) ? $req["\x6e\x61\155\145"] : $req["\165\x73\x65\x72\156\141\x6d\145"]; goto Bm14G; g29aq: goto PvZnx; goto RO5nB; yGHzY: if ($req["\x66\x72\157\155\x6d\x6f\144\165\x6c\x65"] === "\x75\163\145\x72\x73") { goto JmlJW; } goto pkE9J; Bm14G: PvZnx: goto mEON3; RO5nB: JmlJW: goto qEwwg; pkE9J: $info = $req["\156\x61\x6d\145"]; goto g29aq; mEON3: $requesters_name[$req["\137\151\144"]] = $info; goto xzryj; SEMMJ: } goto d1xw6; v4soe: echo json_encode(["\x64\x61\x74\x61" => [], "\x74\157\164\141\154" => 0]); goto x1qRd; KDemY: $result = $this->tickets_library->db_read($request); goto WjA8v; rVpyk: $this->load->model("\163\x65\x72\166\151\143\145\x73\x2f\164\x69\143\153\145\x74\163\57\x74\151\143\153\x65\164\163\x5f\x6d"); goto dJkiv; dU9m3: gU1U4: goto GVSpE; u6vpI: $sortdatecreated->field = "\143\162\145\141\164\x65\144\56\164\151\155\145"; goto SeL19; DbSAI: $ticket_search[] = $this->mongodatasourceresult->initFilter("\163\165\142\x6a\x65\143\164\64\163\x65\141\162\x63\150", "\x63\x6f\x6e\164\141\x69\156\163", $textsearch); goto Gq0Wt; fuD81: $this->mongodatasourceresult->addFilterRequest($filter_ticket, $request); goto cSsZB; VcQMF: $requesters = $this->requesters_m->db_getbylistid($arr_requesterid); goto ZNmez; MaZc1: $sortdatecreated = new stdClass(); goto u6vpI; EvZ2X: header("\103\x6f\x6e\164\145\156\x74\55\x54\171\x70\145\72\x20\141\x70\160\154\151\x63\141\164\151\x6f\156\57\152\163\157\x6e"); goto fK1r4; d1xw6: q_skI: goto pW76t; PsyKB: Y0l_E: goto bPUDO; SkfMF: $request->filter->logic = "\141\x6e\144"; goto B6p1n; dJkiv: $this->load->model("\163\145\x74\x74\x69\156\x67\x73\57\143\157\x6e\x66\x69\x67\x74\151\x63\x6b\x65\x74\x73\x2f\143\x6f\x6e\x66\151\147\155\x65\x72\x67\x65\x74\151\143\153\x65\164\137\155"); goto u7ZqX; cSsZB: goto bpa74; goto BSHZk; Gq0Wt: $filter_ticket = $this->mongodatasourceresult->initFilterWithSub("\x6f\x72", $ticket_search); goto fuD81; zKmLN: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\163\x74\x61\164\165\x73", "\x6e\145\x71", "\x45\156\x64"), $request); goto gsmVU; u7ZqX: $this->load->library("\164\x69\143\153\145\x74\163\137\154\x69\142\162\x61\162\171"); goto h8I39; CzTK_: $request->filter->filters[0]->field = "\x74\151\x63\153\x65\164\137\151\144"; goto nZGNQ; S6Rdy: $requesters_name = []; goto tGr_Q; M0Sr2: U0tmQ: goto CzTK_; KvSyG: $ticket_search = []; goto dr_bo; kHA4Z: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\x64\x65\x6c\145\x74\x65", "\x69\x73\x65\155\x70\x74\x79", 1), $request); goto zKmLN; h8I39: $config = $this->configmergeticket_m->db_oneoptions([], ["\x77\x68\x65\x72\145" => ["\163\x74\x61\x74\x75\x73" => "\x6e\145\x77"]]); goto NAjIe; dr_bo: $ticket_search[] = $this->mongodatasourceresult->initFilter("\x74\x69\143\x6b\145\164\x5f\151\144", "\143\x6f\156\164\141\x69\156\x73", $textsearch); goto DbSAI; SeL19: $sortdatecreated->dir = "\144\x65\163\143"; goto baKuQ; yBs5U: bpa74: goto yr5rH; BSHZk: zAHly: goto r7udZ; nZGNQ: mZJxZ: goto jPRHp; FOxlJ: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\154\151\x6e\x6b", "\156\145\161", true), $request); goto MaZc1; Ha_55: echo json_encode($result); goto F9y0i; baKuQ: $request->sort = [$sortdatecreated]; goto SkfMF; r7udZ: $request->filter->filters[0]->field = "\163\x75\x62\152\145\143\x74\64\x73\x65\141\x72\x63\x68"; goto yBs5U; yr5rH: goto mZJxZ; goto M0Sr2; ZNmez: if (empty($requesters)) { goto ydkW9; } goto wzQzD; WjA8v: $this->load->model("\x73\145\162\x76\151\x63\x65\163\x2f\164\x69\143\x6b\145\x74\x73\57\162\x65\161\165\145\x73\x74\145\x72\x73\137\x6d"); goto S6Rdy; fK1r4: $request = json_decode(file_get_contents("\160\150\160\x3a\x2f\x2f\151\156\x70\x75\x74")); goto rVpyk; rSey5: $textsearch = $request->filter->filters[0]->value; goto CVqjn; NAjIe: $mergetype = !empty($config["\x74\171\160\145"]) ? $config["\x74\x79\x70\x65"] : "\x64\151\163\x61\x62\154\145\x5f\164\x69\x63\x6b\145\x74\155\x65\x72\x67\145"; goto TCXa8; tGr_Q: if (empty($result["\144\x61\x74\x61"])) { goto Y0l_E; } goto lNal5; x1qRd: exit; goto gtr5Q; TCXa8: if (!empty($request->filter->filters)) { goto gU1U4; } goto v4soe; F9y0i: } public function searchTicketMerge() { goto OUUPU; zzTkj: Lvmqo: goto uW3s2; NDa0J: VnlJ3: goto kgiQ0; AdQpg: if ($request->field === "\x73\x75\x62\x6a\x65\143\x74") { goto Lvmqo; } goto K5XKw; sT27X: YG0t2: goto Cpl3w; wWzFf: lg3Ag: goto xJS6o; yPYAc: goto D9qz_; goto NDa0J; jPNqS: $sortdatecreated = new stdClass(); goto XUhQQ; gJXWq: if (empty($requesters)) { goto lg3Ag; } goto jIv4v; XUhQQ: $sortdatecreated->field = "\x63\x72\145\141\164\x65\144\x2e\x74\151\155\145"; goto XRg_Z; K4fHi: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\x64\145\154\145\164\x65", "\x69\x73\x65\155\x70\164\x79", 1), $request); goto epGSn; osqSy: $requesters_name = []; goto UDpMR; N0cry: $ticket_search[] = $this->mongodatasourceresult->initFilter("\163\x75\142\152\x65\143\x74\64\x73\x65\x61\162\x63\x68", "\143\157\156\164\141\151\x6e\x73", $textsearch); goto GyE40; jIv4v: foreach ($requesters as $req) { goto d0TMQ; KhU3N: $info = $req["\x6e\x61\x6d\145"]; goto iL2FM; g3we4: if ($req["\146\162\157\x6d\x6d\157\144\x75\154\x65"] === "\x75\163\145\x72\163") { goto fQtwV; } goto KhU3N; j3uQv: fQtwV: goto YL6z3; yCqn2: hJ2a9: goto gGd8a; iL2FM: goto hJ2a9; goto j3uQv; YL6z3: $info = !empty($req["\x6e\141\x6d\x65"]) ? $req["\x6e\141\155\145"] : $req["\x75\x73\x65\x72\156\x61\x6d\x65"]; goto yCqn2; UaEK3: Ar4AU: goto WSdVF; d0TMQ: $info = ''; goto g3we4; gGd8a: $requesters_name[$req["\137\x69\144"]] = $info; goto UaEK3; WSdVF: } goto HQvnm; OUUPU: header("\103\x6f\156\164\x65\156\164\55\124\x79\x70\145\x3a\40\x61\160\160\x6c\151\x63\141\164\x69\x6f\156\x2f\152\x73\x6f\156"); goto qR3r4; K5XKw: $textsearch = $request->filter->filters[0]->value; goto zPq8H; R3UhT: if (!empty($request->filter->filters)) { goto VnlJ3; } goto L7FRB; FkkxW: D9qz_: goto D9hnd; KO3sw: $this->load->model("\163\145\164\164\151\156\147\x73\x2f\x63\x6f\156\x66\151\147\x74\x69\x63\x6b\145\164\163\x2f\x63\157\156\x66\151\147\155\145\x72\147\x65\x74\151\143\x6b\145\164\137\155"); goto MxHgG; Z2WCA: $this->mongodatasourceresult->addFilterRequest($filter_ticket, $request); goto WEszZ; N0KpZ: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\x62\x70\x6d\x2e\x69\x73\105\156\x64\x65\x64", "\x6e\145\x71", true), $request); goto mnMaP; epGSn: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\163\164\x61\164\x75\x73", "\156\x65\x71", "\x45\x6e\144"), $request); goto N0KpZ; GyE40: $filter_ticket = $this->mongodatasourceresult->initFilterWithSub("\x6f\162", $ticket_search); goto Z2WCA; qBF6L: goto ukEp4; goto pBEjE; mnMaP: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\154\151\x6e\x6b", "\156\145\161", true), $request); goto KVjOi; L7FRB: echo json_encode(["\144\141\164\x61" => [], "\x74\157\x74\x61\x6c" => 0]); goto jiUzw; DH2re: $requesters = $this->requesters_m->db_getbylistid($arr_requesterid); goto gJXWq; j02wO: $this->mongodatasourceresult->addFilterRequest($filter_merge, $request); goto jPNqS; wtGLe: $this->load->model("\163\145\x72\166\x69\x63\145\x73\x2f\x74\x69\x63\x6b\x65\164\163\x2f\x74\151\x63\x6b\x65\x74\163\x5f\x6d"); goto KO3sw; zS3xn: ukEp4: goto K4fHi; D9hnd: $result = $this->tickets_library->db_read($request); goto rv90b; uW3s2: $request->filter->filters[0]->field = "\163\165\142\152\145\x63\164\64\163\145\141\x72\x63\x68"; goto WA3Bk; dvqB3: $request->filter->filters[0]->field = "\164\151\x63\153\145\x74\x5f\151\x64"; goto zS3xn; pBEjE: gpCEy: goto dvqB3; b6fKO: $request->sort = [$sortdatecreated]; goto LAHTf; qR3r4: $request = json_decode(file_get_contents("\x70\150\160\72\57\x2f\151\x6e\x70\x75\x74")); goto wtGLe; jiUzw: exit; goto yPYAc; HQvnm: jMdMK: goto wWzFf; x6YXu: $ticket_search[] = $this->mongodatasourceresult->initFilter("\164\151\143\x6b\x65\x74\x5f\x69\144", "\x63\x6f\156\x74\141\151\x6e\x73", $textsearch); goto N0cry; zPq8H: $request->filter->filters = []; goto iFeOt; xJS6o: c3NTR: goto CZnDo; LAHTf: $request->filter->logic = "\x61\156\x64"; goto FkkxW; WA3Bk: XSs0l: goto qBF6L; rv90b: $this->load->model("\x73\x65\x72\166\151\143\145\163\x2f\x74\151\143\x6b\x65\x74\163\x2f\162\145\x71\165\145\163\164\145\x72\163\x5f\155"); goto osqSy; KVjOi: $filter_merge = $this->mongodatasourceresult->initFilterWithSub("\x6f\162", [$this->mongodatasourceresult->initFilter("\x6d\x65\162\147\x65", "\151\x73\x65\155\x70\164\x79", 1), $this->mongodatasourceresult->initFilterWithSub("\x61\x6e\x64", [$this->mongodatasourceresult->initFilter("\155\x65\162\x67\145\x70\x72\151\155\141\x72\x79", "\x65\x71", true), $this->mongodatasourceresult->initFilter("\155\145\162\147\145\x74\171\160\x65", "\145\161", $mergetype)])]); goto j02wO; iFeOt: $ticket_search = []; goto x6YXu; MxHgG: $this->load->library("\x74\151\143\153\145\164\x73\137\154\x69\x62\162\141\x72\171"); goto boyPt; XRg_Z: $sortdatecreated->dir = "\144\145\163\143"; goto b6fKO; CZnDo: foreach ($result["\144\141\x74\141"] as &$value) { goto ssgsE; CgeTN: $value["\x62\x70\155\x5f\143\165\x72\162\145\156\164\123\164\141\164\x65"] = $value["\x62\160\x6d"]["\143\165\162\x72\x65\156\164\123\164\x61\164\145"]; goto QzMKL; bEsls: aoPWE: goto fRoLM; QMFMF: $value["\x62\141\x63\153\147\x72\x6f\165\156\x64"] = "\43\145\x36\x37\x65\62\62"; goto vWQXW; fRoLM: if (!($value["\142\x70\x6d\x5f\143\165\162\x72\x65\156\164\123\164\x61\164\145"]["\156\141\x6d\x65"] == "\x44\x6f\156\145")) { goto eIAhz; } goto LDpMw; tatdd: if (!($value["\x62\160\155\137\x63\165\x72\x72\x65\x6e\x74\x53\164\x61\164\x65"]["\156\x61\155\145"] == "\x41\160\160\x72\157\x76\x65\x64")) { goto aoPWE; } goto ZlIX0; OgSMC: $value["\x62\x70\x6d\137\143\x75\162\162\x65\156\164\x53\164\x61\164\145"] = ["\x6e\141\x6d\145" => "\x6e\145\167", "\145\x78\164\145\156\x64\103\157\x6e\146\151\x67" => ["\163\164\141\164\165\163" => "\156\x65\167", "\x74\x79\160\x65\x43\x6f\x6c\157\x72" => "\x64\145\x66\141\x75\154\164", "\x63\x6c\x61\163\163\102\x75\x74\x74\x6f\x6e" => "\x77\141\162\x6e\151\x6e\147"]]; goto b_gqZ; ZlIX0: $value["\142\x61\143\x6b\x67\162\157\165\156\144"] = "\43\141\x61\x64\x31\67\x38"; goto bEsls; CJPnO: $value["\142\x61\x63\x6b\147\162\x6f\x75\156\x64"] = "\x23\145\67\64\x63\63\x63"; goto NG0us; ssgsE: $value["\x63\162\145\141\x74\145\144\164\151\155\145\137\163\x74\162\151\156\x67"] = date("\x48\72\151\72\163", $value["\x63\x72\145\141\x74\145\x64"]["\164\151\x6d\x65"]); goto VjYlJ; MSP3G: m0Bdk: goto CgeTN; NG0us: UWBqo: goto dpH82; fDled: ihW8A: goto lQqqa; jH_k6: $value["\162\x65\161\x75\145\163\x74\145\x72\x5f\163\164\x72\151\156\x67"] = !empty($value["\x72\x65\161\x75\145\163\164\x65\x72\137\151\x64"]) && array_key_exists($value["\x72\145\x71\165\145\x73\x74\x65\162\137\151\x64"], $requesters_name) ? $requesters_name[$value["\162\145\161\165\x65\163\x74\x65\162\x5f\151\144"]] : ''; goto muaL4; LDpMw: $value["\142\x61\143\x6b\147\x72\x6f\x75\x6e\144"] = "\43\x30\x30\x43\x43\x46\106"; goto dDynS; vWQXW: PAela: goto tatdd; JQ18W: if (isset($value["\142\160\x6d"]["\143\x75\x72\x72\145\156\x74\x53\x74\x61\164\x65"])) { goto m0Bdk; } goto OgSMC; OZK9E: $value["\x61\x73\163\151\147\156\x65\x65\137\163\164\162\151\156\x67"] = searchnameuser($value["\x61\x73\163\151\x67\156\145\x65\137\x69\156\146\x6f"]["\151\x64"]); goto JQ18W; dpH82: if (!($value["\x62\160\x6d\137\143\165\x72\x72\145\156\x74\123\x74\x61\164\145"]["\x6e\141\155\145"] == "\111\156\40\120\x72\x6f\147\x72\x65\163\163")) { goto PAela; } goto QMFMF; muaL4: $value["\x63\162\x65\141\x74\145\x64\x5f\x73\164\162\151\156\x67"] = ''; goto K7w_8; b_gqZ: $value["\x62\141\143\x6b\147\162\x6f\165\x6e\x64"] = "\43\71\71\71\71\71\x39"; goto CBM3q; CBM3q: goto LRmRl; goto MSP3G; QzMKL: if (!($value["\142\x70\155\137\x63\x75\x72\x72\x65\156\x74\123\164\141\164\145"]["\x6e\141\155\x65"] == "\103\141\x6e\143\145\154")) { goto UWBqo; } goto CJPnO; VFu4K: if (!($value["\x63\162\145\141\164\145\x64\137\163\164\x72\x69\x6e\147"] === false)) { goto od_fx; } goto o3Kxs; Ct1IG: adIHC: goto OZK9E; dDynS: eIAhz: goto e1EQd; o3Kxs: $value["\x63\x72\x65\x61\x74\145\144\137\163\x74\162\x69\x6e\147"] = $value["\143\162\x65\141\164\145\144"]["\142\171\x69\144"]; goto GLR4m; e1EQd: LRmRl: goto fDled; GLR4m: od_fx: goto Ct1IG; VjYlJ: $value["\x63\162\x65\x61\x74\x65\144\144\141\164\x65\137\x73\x74\x72\x69\156\x67"] = date("\x64\x2f\x6d\x2f\131", $value["\x63\x72\x65\x61\x74\145\144"]["\164\151\155\145"]); goto jH_k6; K7w_8: if (!array_key_exists("\x63\x72\x65\141\x74\145\144", $value)) { goto adIHC; } goto CtKG2; CtKG2: $value["\143\x72\145\x61\x74\x65\x64\x5f\163\164\162\x69\x6e\x67"] = searchnameuser($value["\x63\162\145\x61\164\145\144"]["\142\x79\x69\144"]); goto VFu4K; lQqqa: } goto sT27X; UDpMR: if (empty($result["\144\x61\x74\141"])) { goto c3NTR; } goto uHu9r; boyPt: $config = $this->configmergeticket_m->db_oneoptions([], ["\167\x68\145\162\145" => ["\x73\164\141\164\x75\163" => "\156\145\x77"]]); goto rpV0N; Cpl3w: echo json_encode($result); goto Rx3UC; WEszZ: goto XSs0l; goto zzTkj; kgiQ0: if ($request->field === "\164\x69\143\153\145\164\x5f\151\144") { goto gpCEy; } goto AdQpg; rpV0N: $mergetype = !empty($config["\x74\x79\x70\145"]) ? $config["\164\x79\x70\x65"] : "\144\151\x73\141\x62\x6c\145\137\164\x69\x63\153\x65\164\x6d\x65\162\147\145"; goto R3UhT; uHu9r: $arr_requesterid = array_column($result["\144\141\x74\141"], "\162\x65\x71\165\145\x73\x74\145\162\137\151\144"); goto DH2re; Rx3UC: } public function searchTicketMergeByRequesterId() { goto n5pqW; pqmu7: $requesters = $this->requesters_m->db_getbylistid($arr_requesterid); goto p5SVQ; UI52L: $this->mongodatasourceresult->addFilterRequest($filter_merge, $request); goto oOmfp; saTdP: exit; goto j3t50; Ed2er: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\155\x65\162\147\145\160\162\151\x6d\141\x72\x79", "\x6e\x65\x71", true), $request); goto aAr2O; IZ57f: BGdTG: goto ssGdH; oOmfp: $sortdatecreated = new stdClass(); goto FQhq1; OQYis: $filter_merge = $this->mongodatasourceresult->initFilterWithSub("\157\162", [$this->mongodatasourceresult->initFilter("\155\145\162\x67\x65", "\151\163\x65\x6d\160\x74\x79", 1), $this->mongodatasourceresult->initFilterWithSub("\141\x6e\x64", [$this->mongodatasourceresult->initFilter("\x6d\x65\162\x67\145\x70\x72\x69\x6d\141\162\x79", "\145\161", true), $this->mongodatasourceresult->initFilter("\x6d\145\x72\x67\x65\164\171\160\x65", "\145\x71", $mergetype)])]); goto UI52L; xqjdI: $request = json_decode(file_get_contents("\x70\150\x70\72\x2f\x2f\151\x6e\x70\165\164")); goto DMJkM; mDjhz: $this->load->model("\163\145\162\x76\151\x63\x65\x73\x2f\164\151\x63\153\x65\164\163\57\x74\x69\143\153\145\x74\163\137\x6d"); goto KnZaa; AdOCd: $arr_requesterid = array_column($result["\x64\x61\x74\x61"], "\162\145\161\165\145\x73\164\145\162\x5f\151\144"); goto pqmu7; oWpTk: $requesters_name = []; goto b759T; MsT3d: $result = ["\x74\157\x74\141\154" => 0, "\144\141\x74\141" => []]; goto xqjdI; p5SVQ: if (empty($requesters)) { goto P_fjY; } goto wgOK0; FQhq1: $sortdatecreated->field = "\x63\162\x65\141\x74\x65\x64\x2e\x74\151\x6d\x65"; goto VAgKt; yJpAV: $mergetype = !empty($config["\164\171\x70\145"]) ? $config["\164\171\160\145"] : "\x64\151\x73\x61\x62\154\x65\137\x74\151\143\153\145\164\155\x65\162\147\x65"; goto qWaqw; JCWKd: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\142\x70\155\56\x69\x73\105\156\144\x65\144", "\156\145\161", true), $request); goto jHhAs; Kjf7z: exit; goto IZ57f; wgOK0: foreach ($requesters as $req) { goto oRBnw; lCFRL: $requesters_name[$req["\x5f\151\x64"]] = $info; goto s9Q43; oRBnw: $info = ''; goto FgJkB; AFLdz: ZFbFK: goto N4VzR; ZU7SI: goto Ipsqh; goto AFLdz; dC34F: $info = $req["\156\141\x6d\x65"]; goto ZU7SI; s9Q43: WQWxV: goto XfIH4; N4VzR: $info = !empty($req["\156\x61\x6d\145"]) ? $req["\x6e\x61\x6d\145"] : $req["\165\163\x65\162\x6e\141\155\x65"]; goto ZjFeR; ZjFeR: Ipsqh: goto lCFRL; FgJkB: if ($req["\146\162\x6f\155\155\x6f\144\x75\154\145"] === "\x75\163\x65\x72\x73") { goto ZFbFK; } goto dC34F; XfIH4: } goto TW941; aAr2O: LkE7d: goto PJzEW; b759T: if (empty($result["\144\x61\164\x61"])) { goto qlSyv; } goto AdOCd; vM2SG: $listticketid = $request->listticketid; goto jNiET; KnZaa: $getticketdetail = $this->tickets_m->db_alloptions([], ["\167\150\145\x72\x65" => ["\164\151\143\153\145\x74\137\151\144" => $ticketidfromdetail]]); goto yhryV; We4YH: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\144\145\154\145\x74\x65", "\151\163\x65\155\x70\x74\171", 1), $request); goto g7vgX; TRCv8: $result["\x6c\x69\x73\164\x74\151\143\153\145\x74\151\144"] = $listticketid; goto bFOpn; DMJkM: if (!(!isset($request->idrequester) || !isset($request->listticketid) || !isset($request->ticketidfromdetail))) { goto BGdTG; } goto WBy0K; yhryV: if (!empty($idrequester)) { goto pV6yl; } goto OjT_O; j3t50: pV6yl: goto YcreI; g7vgX: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\x73\164\141\164\x75\x73", "\156\x65\x71", "\x45\x6e\144"), $request); goto JCWKd; EVdQe: P_fjY: goto qMVqc; b0SMS: $this->load->library("\x74\151\x63\x6b\145\164\163\137\154\x69\142\162\141\x72\x79"); goto MsT3d; pQCv8: echo json_encode($result); goto sVCMU; OjT_O: echo json_encode($result); goto saTdP; aVlfy: $result = $this->tickets_library->db_read($request); goto LZSKL; LZSKL: $this->load->model("\163\x65\x72\166\151\143\x65\x73\57\164\x69\x63\x6b\x65\164\x73\x2f\162\x65\x71\165\145\x73\x74\145\x72\163\137\x6d"); goto oWpTk; KXscE: $request->filter->logic = "\x61\156\144"; goto aVlfy; VAgKt: $sortdatecreated->dir = "\144\x65\x73\143"; goto X3F8X; X3F8X: $request->sort = [$sortdatecreated]; goto KXscE; n5pqW: header("\103\157\156\x74\x65\156\x74\x2d\x54\x79\160\x65\72\40\141\160\x70\154\151\x63\x61\x74\x69\x6f\156\x2f\x6a\163\x6f\156"); goto b0SMS; XuTC6: $config = $this->configmergeticket_m->db_oneoptions([], ["\x77\150\x65\x72\145" => ["\x73\x74\141\164\x75\x73" => "\x6e\145\167"]]); goto yJpAV; WBy0K: echo json_encode($result); goto Kjf7z; bFOpn: $result["\x74\151\143\153\145\x74\x69\144\146\162\157\155\144\145\164\141\151\154"] = $ticketidfromdetail; goto pQCv8; TW941: O4eng: goto EVdQe; jNiET: $ticketidfromdetail = $request->ticketidfromdetail; goto mDjhz; jeQq1: foreach ($result["\144\141\x74\x61"] as &$value) { goto VHtiB; hEcIL: JpLcB: goto fyvHn; tR9of: if (!($value["\142\x70\155\137\x63\x75\162\x72\145\x6e\x74\123\x74\141\x74\145"]["\156\141\155\x65"] == "\x43\141\156\143\x65\154")) { goto Cw0Zs; } goto kgidr; jncWo: if (isset($value["\142\160\x6d"]["\x63\165\162\x72\x65\x6e\x74\123\164\141\x74\145"])) { goto d_RA4; } goto LQ7nC; G5KmE: Ogmen: goto VyZnE; kgidr: $value["\x62\x61\x63\153\147\x72\x6f\165\156\144"] = "\43\145\67\64\x63\63\143"; goto dMajw; hegmy: $value["\x63\x72\145\141\164\x65\144\x64\x61\x74\x65\137\x73\x74\162\151\156\147"] = date("\x64\57\x6d\x2f\131", $value["\x63\x72\145\141\164\x65\144"]["\x74\x69\155\x65"]); goto fbk86; ihain: $value["\x66\157\162\155\144\145\x61\164\141\x69\x6c"] = true; goto Wk2gy; zMMkR: if (!($value["\x62\160\x6d\137\x63\x75\162\x72\x65\156\x74\x53\164\141\x74\x65"]["\156\x61\x6d\145"] == "\111\x6e\40\120\x72\x6f\147\x72\145\163\x73")) { goto BjWkw; } goto kdWV2; Z6gkF: $value["\143\x72\x65\x61\x74\x65\x64\x5f\163\x74\x72\151\156\x67"] = searchnameuser($value["\143\x72\145\x61\164\145\x64"]["\142\x79\x69\144"]); goto VtckU; jLTeg: goto LTWVf; goto lhott; cRJm0: fZOaL: goto hLs0R; rkJB0: if (!in_array($value["\164\x69\143\x6b\145\x74\137\x69\144"], $listticketid)) { goto yAh4T; } goto nloF0; XPQV0: $value["\142\141\x63\x6b\x67\x72\157\x75\x6e\x64"] = "\x23\x61\141\x64\x31\x37\x38"; goto ln56t; LQ7nC: $value["\x62\x70\x6d\137\143\165\x72\x72\145\156\164\x53\164\141\164\145"] = ["\156\141\155\x65" => "\x6e\145\x77", "\x65\x78\x74\x65\156\144\103\157\156\146\x69\x67" => ["\x73\x74\141\164\165\163" => "\156\145\x77", "\x74\171\160\145\x43\x6f\154\157\x72" => "\144\145\x66\x61\165\154\x74", "\x63\154\141\163\163\x42\165\x74\x74\157\x6e" => "\x77\141\x72\x6e\151\x6e\147"]]; goto dGaKZ; dMajw: Cw0Zs: goto zMMkR; SdFYI: BjWkw: goto xsKda; OdRa6: $value["\x63\x72\x65\141\164\145\x64\x5f\163\164\162\x69\x6e\147"] = $value["\143\162\x65\141\164\145\x64"]["\x62\171\x69\144"]; goto hEcIL; lhott: d_RA4: goto MdhmW; hLs0R: LTWVf: goto G5KmE; If_fX: $value["\x66\x6f\162\x6d\144\x65\141\164\x61\x69\154"] = false; goto rkJB0; ovh49: $value["\x61\x73\163\151\147\x6e\x65\x65\137\163\x74\x72\x69\156\147"] = searchnameuser($value["\141\163\163\151\x67\x6e\145\145\x5f\x69\156\x66\157"]["\151\144"]); goto jncWo; nloF0: $value["\146\157\162\x6d\145\x78\x69\x73\x74\163"] = true; goto PV4ZC; MdhmW: $value["\142\160\x6d\137\143\165\162\162\145\156\x74\x53\164\x61\164\x65"] = $value["\142\x70\155"]["\x63\x75\x72\x72\x65\156\164\123\164\x61\164\145"]; goto tR9of; Cki63: $value["\x62\141\143\x6b\147\162\x6f\x75\x6e\x64"] = "\43\60\x30\x43\103\106\106"; goto cRJm0; Wk2gy: Z6lV0: goto ovh49; VHtiB: $value["\x63\x72\145\141\x74\145\x64\164\151\155\145\x5f\163\164\162\x69\x6e\x67"] = date("\x48\x3a\151\72\x73", $value["\x63\x72\x65\141\164\x65\144"]["\x74\151\x6d\x65"]); goto hegmy; fbk86: $value["\162\x65\x71\x75\x65\163\164\145\x72\137\163\164\162\151\156\x67"] = !empty($value["\x72\x65\161\x75\x65\x73\164\145\x72\x5f\x69\x64"]) && array_key_exists($value["\x72\x65\x71\x75\145\x73\x74\145\162\x5f\151\144"], $requesters_name) ? $requesters_name[$value["\162\x65\161\165\145\163\164\x65\x72\137\151\x64"]] : ''; goto I7c27; kdWV2: $value["\142\141\143\153\x67\x72\x6f\x75\156\144"] = "\43\x65\66\x37\x65\x32\x32"; goto SdFYI; I7c27: $value["\143\x72\145\x61\164\x65\144\x5f\x73\164\x72\151\156\147"] = ''; goto ouAtF; YTJoN: if (!($value["\142\160\155\x5f\143\x75\x72\162\x65\x6e\x74\x53\x74\x61\164\x65"]["\x6e\x61\x6d\145"] == "\x44\157\x6e\145")) { goto fZOaL; } goto Cki63; PV4ZC: yAh4T: goto GQJ6L; VtckU: if (!($value["\143\162\x65\141\x74\x65\144\137\x73\x74\x72\x69\156\147"] === false)) { goto JpLcB; } goto OdRa6; ouAtF: if (!array_key_exists("\143\162\145\x61\x74\x65\x64", $value)) { goto DDBil; } goto Z6gkF; fyvHn: DDBil: goto b8yxO; ln56t: QNH3I: goto YTJoN; b8yxO: $value["\146\x6f\x72\155\145\170\x69\x73\x74\x73"] = false; goto If_fX; GQJ6L: if (!($value["\x74\x69\x63\x6b\x65\164\x5f\x69\144"] === $ticketidfromdetail)) { goto Z6lV0; } goto ihain; dGaKZ: $value["\142\141\143\x6b\147\x72\157\x75\x6e\x64"] = "\x23\71\x39\x39\71\71\71"; goto jLTeg; xsKda: if (!($value["\x62\160\155\137\x63\165\x72\162\145\156\x74\123\x74\141\164\x65"]["\x6e\x61\x6d\145"] == "\101\160\160\162\157\166\145\144")) { goto QNH3I; } goto XPQV0; VyZnE: } goto pjiaZ; YcreI: $this->load->model("\163\x65\x74\164\x69\156\x67\163\57\x63\157\156\x66\x69\x67\x74\151\143\x6b\x65\x74\163\x2f\x63\x6f\156\x66\151\147\x6d\145\x72\147\145\164\151\x63\153\145\164\137\x6d"); goto XuTC6; PJzEW: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\x72\x65\x71\165\145\163\x74\x65\x72\x5f\151\144", "\145\161", $request->idrequester), $request); goto We4YH; jHhAs: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\154\x69\x6e\x6b", "\156\145\161", true), $request); goto OQYis; pjiaZ: Gz9D_: goto TRCv8; qMVqc: qlSyv: goto jeQq1; qWaqw: if (!(isset($getticketdetail[0]["\155\x65\162\147\145\x70\162\x69\155\141\x72\171"]) && $getticketdetail[0]["\155\x65\x72\147\x65\160\162\x69\155\x61\x72\x79"] == true)) { goto LkE7d; } goto Ed2er; ssGdH: $idrequester = $request->idrequester; goto vM2SG; sVCMU: } public function searchTicketLink() { goto ctGa6; B2Ux5: $arr_requesterid = array_column($result["\144\x61\x74\x61"], "\162\x65\161\x75\145\163\164\x65\x72\137\x69\144"); goto ldGZb; twrjQ: $this->load->model("\x73\x65\162\166\151\x63\145\163\57\x74\151\x63\x6b\145\x74\163\57\x74\151\x63\153\x65\x74\x73\x5f\155"); goto dULml; sKlgH: $request->sort = [$sortdatecreated]; goto Jf5kv; dULml: $this->load->model("\163\145\x74\164\151\156\147\x73\x2f\143\157\156\x66\151\x67\x74\151\143\153\x65\x74\x73\57\x63\157\x6e\x66\x69\x67\155\145\x72\147\145\164\151\x63\153\145\x74\137\x6d"); goto fpDNV; HXKQz: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\x6d\x65\x72\x67\x65", "\156\145\161", true), $request); goto R6qpN; P3bbz: HvTJw: goto rVu4y; nqGET: $ticket_search[] = $this->mongodatasourceresult->initFilter("\164\x69\143\x6b\x65\x74\137\x69\144", "\143\157\156\164\141\x69\x6e\163", $textsearch); goto bdGX5; CQd8L: eJF85: goto Nxx7b; NHrDl: $textsearch = $request->filter->filters[0]->value; goto JgXNy; DS_FD: $sortdatecreated->dir = "\144\145\163\143"; goto sKlgH; rVu4y: foreach ($result["\x64\141\164\141"] as &$value) { goto OoHQ4; VwSNN: $value["\142\160\x6d\137\143\165\162\162\x65\x6e\x74\123\x74\x61\x74\145"] = $value["\142\160\155"]["\143\165\162\162\145\156\164\x53\x74\x61\164\x65"]; goto SaASr; VVqhq: lzUK2: goto r2cWY; BIxB7: if (!($value["\x63\x72\x65\141\x74\145\144\x5f\x73\164\x72\x69\x6e\147"] === false)) { goto NUdNh; } goto yFtPr; YdJPK: $value["\x62\x61\143\153\x67\162\x6f\165\x6e\144"] = "\x23\x39\x39\x39\x39\71\x39"; goto e14sb; OoHQ4: $value["\143\162\x65\141\164\x65\x64\x74\151\x6d\x65\x5f\163\164\x72\151\156\x67"] = date("\110\x3a\x69\72\163", $value["\143\162\145\141\164\x65\x64"]["\164\x69\155\145"]); goto a2nNa; dTVJi: $value["\x63\162\x65\x61\x74\145\x64\x5f\163\164\x72\151\x6e\147"] = ''; goto TCO1i; caa5k: $value["\142\141\143\153\147\162\x6f\x75\156\x64"] = "\43\145\x36\67\145\x32\x32"; goto s670i; rwmka: if (!($value["\x62\160\155\137\x63\165\162\x72\145\x6e\x74\123\164\x61\x74\x65"]["\x6e\141\x6d\x65"] == "\x44\157\156\x65")) { goto NQS1O; } goto Y7jq3; Sxicp: if (isset($value["\x62\x70\155"]["\x63\x75\x72\162\145\x6e\x74\123\x74\x61\164\145"])) { goto hSZYL; } goto OpHBV; Y7jq3: $value["\x62\x61\x63\153\x67\x72\157\165\156\x64"] = "\x23\60\60\103\103\x46\106"; goto vPG7x; kiDzK: KOTxo: goto My3P2; a2nNa: $value["\x63\x72\x65\x61\164\145\144\144\x61\x74\x65\137\163\164\x72\x69\156\147"] = date("\144\57\x6d\x2f\131", $value["\x63\x72\x65\x61\x74\145\x64"]["\x74\x69\x6d\145"]); goto wkw83; vPG7x: NQS1O: goto VVqhq; s670i: nViek: goto PT_O2; vgc8f: pUqJs: goto rwmka; NPiIP: hSZYL: goto VwSNN; OpHBV: $value["\142\160\x6d\x5f\x63\x75\162\x72\145\x6e\x74\123\x74\141\164\x65"] = ["\156\x61\155\x65" => "\156\x65\x77", "\x65\170\164\x65\156\144\x43\157\156\146\x69\x67" => ["\163\x74\x61\x74\x75\163" => "\x6e\x65\167", "\164\x79\160\x65\x43\x6f\154\157\x72" => "\144\x65\146\141\x75\154\164", "\143\x6c\x61\163\x73\x42\x75\x74\x74\x6f\x6e" => "\167\141\x72\156\x69\x6e\x67"]]; goto YdJPK; h55B3: $value["\142\141\x63\x6b\147\162\x6f\x75\x6e\144"] = "\43\145\x37\64\143\63\143"; goto JyxEK; My3P2: $value["\141\163\163\151\x67\156\x65\x65\x5f\163\x74\x72\x69\156\147"] = searchnameuser($value["\x61\163\163\151\x67\156\x65\145\x5f\x69\x6e\x66\x6f"]["\151\144"]); goto Sxicp; r2cWY: PgXcR: goto cJgdY; mOT46: if (!($value["\x62\x70\x6d\137\x63\x75\162\x72\x65\156\164\x53\164\x61\x74\x65"]["\156\141\155\145"] == "\111\156\40\x50\162\x6f\147\162\145\x73\x73")) { goto nViek; } goto caa5k; yFtPr: $value["\143\162\x65\x61\164\145\x64\137\163\x74\x72\x69\x6e\x67"] = $value["\x63\x72\x65\141\164\145\x64"]["\x62\x79\x69\144"]; goto OK13y; WdKVG: $value["\x63\x72\x65\141\x74\x65\x64\137\163\164\x72\151\x6e\x67"] = searchnameuser($value["\x63\162\145\141\164\145\144"]["\142\x79\151\144"]); goto BIxB7; OK13y: NUdNh: goto kiDzK; e14sb: goto lzUK2; goto NPiIP; JyxEK: MEyJZ: goto mOT46; UqSZ0: $value["\x62\141\143\153\147\x72\157\x75\156\x64"] = "\43\141\141\144\x31\67\x38"; goto vgc8f; TCO1i: if (!array_key_exists("\x63\162\x65\141\x74\145\144", $value)) { goto KOTxo; } goto WdKVG; SaASr: if (!($value["\142\160\155\x5f\143\165\x72\162\x65\x6e\x74\123\164\x61\x74\x65"]["\156\x61\155\145"] == "\x43\141\156\x63\x65\x6c")) { goto MEyJZ; } goto h55B3; wkw83: $value["\x72\x65\x71\x75\145\163\164\145\x72\x5f\163\164\162\151\156\x67"] = !empty($value["\x72\145\161\165\145\163\x74\x65\162\137\151\x64"]) && array_key_exists($value["\162\145\x71\x75\145\163\x74\x65\162\137\151\144"], $requesters_name) ? $requesters_name[$value["\x72\x65\x71\x75\x65\x73\164\145\162\x5f\151\x64"]] : ''; goto dTVJi; PT_O2: if (!($value["\142\160\155\137\143\165\162\x72\x65\156\x74\123\164\x61\x74\145"]["\156\141\155\x65"] == "\x41\x70\x70\162\157\166\x65\144")) { goto pUqJs; } goto UqSZ0; cJgdY: } goto CQd8L; apA5u: if (!empty($request->filter->filters)) { goto qe_1w; } goto TJqea; fnp8T: $sortdatecreated->field = "\143\x72\145\141\164\x65\144\x2e\164\151\155\145"; goto DS_FD; vLfB5: TN0OQ: goto H7nVg; Jf5kv: $request->filter->logic = "\141\156\x64"; goto MKS_q; bdGX5: $ticket_search[] = $this->mongodatasourceresult->initFilter("\163\165\142\152\145\x63\164\64\x73\x65\141\162\143\x68", "\x63\x6f\156\164\141\151\156\163", $textsearch); goto IcWMU; TJqea: echo json_encode(["\x64\x61\164\x61" => [], "\x74\x6f\164\141\x6c" => 0]); goto sfVrp; ctGa6: header("\x43\157\x6e\x74\145\x6e\x74\55\124\x79\160\x65\72\x20\141\x70\160\154\151\x63\x61\x74\151\157\x6e\57\x6a\163\157\x6e"); goto eJzxJ; FNvz3: $ticket_search = []; goto nqGET; e6wHH: n87QA: goto N8jjo; MKS_q: tigU_: goto po90g; Diw5h: $this->load->model("\x73\145\x72\166\151\143\x65\163\57\x74\151\x63\153\145\x74\163\x2f\162\145\x71\165\x65\x73\x74\x65\x72\163\137\155"); goto wN98H; wN98H: $requesters_name = []; goto vmujz; sfVrp: exit; goto WQTdE; WQTdE: goto tigU_; goto dDtAs; vmujz: if (empty($result["\144\141\164\x61"])) { goto HvTJw; } goto B2Ux5; kSLpr: NoKiU: goto fiNTd; W0zko: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\144\x65\x6c\145\x74\x65", "\x69\163\145\x6d\x70\164\171", 1), $request); goto HXKQz; fpDNV: $this->load->library("\164\151\x63\153\x65\x74\163\137\154\x69\142\162\x61\x72\171"); goto apA5u; Nxx7b: echo json_encode($result); goto gsj4b; H7nVg: $request->filter->filters[0]->field = "\163\x75\142\x6a\145\143\164\64\x73\145\x61\x72\x63\150"; goto dwIjC; d1Itq: x4PfQ: goto W0zko; k5KiX: if ($request->field === "\x73\x75\x62\152\145\143\x74") { goto TN0OQ; } goto NHrDl; eJzxJ: $request = json_decode(file_get_contents("\x70\150\160\72\x2f\x2f\x69\156\x70\x75\x74")); goto twrjQ; po90g: $result = $this->tickets_library->db_read($request); goto Diw5h; uBurZ: if (empty($requesters)) { goto EALcS; } goto OVMtM; kM72w: $this->mongodatasourceresult->addFilterRequest($filter_ticket, $request); goto qzk4v; R6qpN: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\164\151\143\x6b\145\164\143\150\x69\x6c\x64", "\x6e\145\x71", true), $request); goto zAZMQ; zAZMQ: $sortdatecreated = new stdClass(); goto fnp8T; qzk4v: goto snKgX; goto vLfB5; tsVnk: goto x4PfQ; goto kSLpr; JgXNy: $request->filter->filters = []; goto FNvz3; fiNTd: $request->filter->filters[0]->field = "\164\151\x63\x6b\x65\x74\x5f\151\x64"; goto d1Itq; o7juS: if ($request->field === "\164\x69\143\x6b\145\x74\137\x69\144") { goto NoKiU; } goto k5KiX; OVMtM: foreach ($requesters as $req) { goto YBSbd; YBSbd: $info = ''; goto XM3qx; XM3qx: if ($req["\x66\162\157\x6d\155\157\x64\165\x6c\x65"] === "\x75\x73\x65\162\x73") { goto Y4zF7; } goto gW6C6; SfLls: ncfuM: goto T1mCP; MOeBX: Y4zF7: goto k80zx; t707p: goto ncfuM; goto MOeBX; IWZnU: RR2Mh: goto Noi57; T1mCP: $requesters_name[$req["\x5f\151\144"]] = $info; goto IWZnU; k80zx: $info = !empty($req["\x6e\x61\155\x65"]) ? $req["\156\141\155\145"] : $req["\165\x73\145\x72\156\x61\x6d\x65"]; goto SfLls; gW6C6: $info = $req["\156\x61\155\x65"]; goto t707p; Noi57: } goto e6wHH; ldGZb: $requesters = $this->requesters_m->db_getbylistid($arr_requesterid); goto uBurZ; dDtAs: qe_1w: goto o7juS; dwIjC: snKgX: goto tsVnk; N8jjo: EALcS: goto P3bbz; IcWMU: $filter_ticket = $this->mongodatasourceresult->initFilterWithSub("\157\162", $ticket_search); goto kM72w; gsj4b: } public function searchTicketLinkForLinked() { goto rYm9U; PqVKl: goto vXa4F; goto RjKec; fUFOp: if (!empty($request->filter->filters)) { goto R1Lmx; } goto MOBTG; h9HaM: Ee8W9: goto DeZ71; Vgh5J: d5G8E: goto fQmbb; xXQvX: LVFkE: goto nKKKc; TBj2r: $this->load->model("\163\145\162\166\x69\143\x65\x73\57\164\x69\x63\153\145\x74\163\x2f\162\145\x71\x75\x65\x73\x74\145\x72\x73\137\x6d"); goto i2ICP; i2ICP: $requesters_name = []; goto wxVLu; wsSPP: $ticket_search[] = $this->mongodatasourceresult->initFilter("\x73\165\142\152\145\x63\164\64\163\x65\x61\162\143\x68", "\143\x6f\156\x74\141\151\x6e\163", $textsearch); goto XFaTe; Ri05J: vXa4F: goto Y8ZSP; aadaA: $this->load->model("\163\x65\x72\166\x69\143\x65\x73\x2f\x74\x69\x63\153\x65\164\163\57\164\151\143\153\145\164\163\137\x6d"); goto PPlOU; MOBTG: echo json_encode(["\144\141\164\141" => [], "\164\x6f\x74\x61\154" => 0]); goto NY2_t; a61lp: goto fYRqr; goto slfGz; fQmbb: echo json_encode($result); goto hGTOA; JiNt5: $request->filter->filters = []; goto SFE_z; t5fkv: fYRqr: goto LU29Y; sm_i5: if ($request->field === "\164\x69\x63\153\x65\x74\x5f\x69\144") { goto L99xe; } goto yd3bv; ogmKc: $request = json_decode(file_get_contents("\160\150\x70\x3a\57\57\x69\156\160\x75\x74")); goto aadaA; uSsHz: $sortdatecreated = new stdClass(); goto twINv; RjKec: L99xe: goto XQPl2; hoaZO: $sortdatecreated->dir = "\x64\x65\x73\x63"; goto BezfJ; WcWqL: if (empty($requesters)) { goto LVFkE; } goto Qaurn; zwuUY: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\x6c\x69\x6e\x6b", "\156\145\x71", true), $request); goto uSsHz; XGfMZ: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\x6d\145\x72\x67\145", "\156\145\161", true), $request); goto zwuUY; PPlOU: $this->load->model("\x73\145\x74\x74\x69\156\x67\163\x2f\143\x6f\x6e\x66\x69\147\164\x69\x63\153\145\x74\x73\57\x63\x6f\156\x66\151\147\155\x65\x72\x67\145\x74\x69\143\x6b\x65\164\x5f\x6d"); goto pbXAi; XROW4: RhMUd: goto PqVKl; DeZ71: $request->filter->filters[0]->field = "\163\x75\x62\152\x65\x63\x74\x34\163\x65\141\162\143\150"; goto XROW4; Y8ZSP: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\x64\145\x6c\145\x74\x65", "\x69\163\145\155\160\x74\171", 1), $request); goto XGfMZ; qQ029: foreach ($result["\x64\141\164\x61"] as &$value) { goto DChJa; BNzDf: if (!array_key_exists("\143\x72\145\x61\x74\x65\144", $value)) { goto fFuTT; } goto rsj1O; asZRl: ztZjl: goto azOJi; lgUiN: AlqY_: goto sxbxr; meYce: $value["\143\x72\x65\141\164\145\x64\144\x61\x74\x65\x5f\x73\x74\x72\151\x6e\x67"] = date("\x64\x2f\155\57\131", $value["\143\162\x65\x61\164\x65\x64"]["\164\151\x6d\145"]); goto cG_mU; XxoLS: if (!($value["\142\x70\155\x5f\143\165\x72\x72\x65\x6e\164\x53\x74\x61\164\145"]["\156\141\155\145"] == "\104\x6f\x6e\x65")) { goto ztZjl; } goto EEui6; SiBZa: $value["\x63\x72\145\141\x74\145\x64\x5f\x73\x74\162\x69\156\x67"] = $value["\143\162\145\141\x74\145\144"]["\142\x79\151\x64"]; goto lgUiN; GkrDS: if (!($value["\x63\x72\145\x61\164\x65\144\x5f\163\164\162\151\156\147"] === false)) { goto AlqY_; } goto SiBZa; cy91e: $value["\x62\x61\143\153\147\162\157\165\x6e\x64"] = "\43\145\x36\67\145\x32\x32"; goto qGE0d; g89Yy: $value["\x62\x70\155\x5f\x63\165\x72\162\x65\x6e\x74\123\x74\x61\164\x65"] = ["\x6e\141\x6d\145" => "\x6e\145\x77", "\145\170\164\145\x6e\x64\x43\x6f\x6e\x66\151\147" => ["\x73\x74\x61\164\x75\163" => "\x6e\x65\167", "\164\x79\x70\145\x43\157\x6c\157\162" => "\144\x65\x66\x61\165\154\x74", "\x63\x6c\x61\163\x73\x42\x75\164\x74\x6f\156" => "\x77\141\x72\x6e\x69\156\147"]]; goto Dke72; y1Vg1: if (!($value["\x62\x70\155\x5f\143\x75\x72\162\145\156\164\x53\x74\x61\164\x65"]["\x6e\141\x6d\x65"] == "\x49\x6e\x20\120\x72\157\x67\x72\x65\x73\x73")) { goto B2v5r; } goto cy91e; sxbxr: fFuTT: goto GOSTs; GOSTs: $value["\141\x73\x73\151\147\156\x65\x65\137\x73\164\x72\151\156\x67"] = searchnameuser($value["\x61\x73\163\151\x67\x6e\145\145\137\x69\x6e\146\x6f"]["\x69\x64"]); goto R3LhM; wAd4f: $value["\142\x61\x63\x6b\x67\x72\157\x75\x6e\144"] = "\x23\141\x61\144\x31\x37\70"; goto sK09T; qGE0d: B2v5r: goto LsPxD; R3LhM: if (isset($value["\x62\160\x6d"]["\x63\x75\162\162\x65\x6e\164\123\x74\141\164\x65"])) { goto DIIdo; } goto g89Yy; K7Zf2: DIIdo: goto XDqj6; azOJi: TKAzK: goto GIBNQ; LsPxD: if (!($value["\x62\160\155\137\143\x75\x72\x72\145\156\x74\123\164\141\164\145"]["\x6e\141\x6d\145"] == "\101\x70\x70\x72\157\x76\145\x64")) { goto Cjs1v; } goto wAd4f; cG_mU: $value["\x72\145\161\x75\145\x73\x74\x65\x72\x5f\x73\164\x72\151\x6e\147"] = !empty($value["\x72\x65\161\x75\145\163\164\x65\x72\x5f\x69\x64"]) && array_key_exists($value["\x72\x65\x71\x75\x65\163\164\x65\162\x5f\151\x64"], $requesters_name) ? $requesters_name[$value["\162\145\x71\x75\x65\x73\x74\x65\x72\137\x69\144"]] : ''; goto yT7dl; KWL78: goto TKAzK; goto K7Zf2; zO6IW: $value["\x62\141\143\x6b\x67\x72\157\165\x6e\x64"] = "\x23\x65\67\x34\143\63\x63"; goto Stajg; yT7dl: $value["\143\162\145\x61\164\x65\x64\x5f\x73\x74\162\x69\156\147"] = ''; goto BNzDf; CVad0: if (!($value["\142\x70\155\x5f\143\x75\x72\x72\x65\156\164\x53\164\x61\164\145"]["\156\141\155\x65"] == "\103\141\156\143\145\154")) { goto ejBxq; } goto zO6IW; GIBNQ: nIN4G: goto W0dsL; DChJa: $value["\143\162\145\x61\x74\145\144\x74\x69\x6d\145\137\x73\x74\162\151\x6e\147"] = date("\110\72\151\72\163", $value["\143\162\x65\141\164\145\144"]["\x74\151\x6d\145"]); goto meYce; sK09T: Cjs1v: goto XxoLS; EEui6: $value["\x62\141\143\x6b\x67\x72\157\x75\x6e\x64"] = "\43\60\60\x43\103\106\x46"; goto asZRl; XDqj6: $value["\x62\160\155\x5f\x63\x75\162\162\145\x6e\x74\x53\x74\141\164\x65"] = $value["\142\x70\155"]["\143\x75\x72\x72\x65\156\x74\x53\x74\141\x74\145"]; goto CVad0; Dke72: $value["\x62\141\143\x6b\147\x72\x6f\x75\x6e\144"] = "\43\71\x39\71\x39\71\71"; goto KWL78; Stajg: ejBxq: goto y1Vg1; rsj1O: $value["\x63\162\x65\x61\x74\x65\144\x5f\163\x74\x72\x69\x6e\147"] = searchnameuser($value["\143\x72\x65\141\x74\145\144"]["\142\171\151\x64"]); goto GkrDS; W0dsL: } goto Vgh5J; NY2_t: exit; goto a61lp; XFaTe: $filter_ticket = $this->mongodatasourceresult->initFilterWithSub("\157\162", $ticket_search); goto HOs5e; yd3bv: if ($request->field === "\163\165\x62\x6a\x65\143\x74") { goto Ee8W9; } goto XQawc; SFE_z: $ticket_search = []; goto mOcq9; rYm9U: header("\103\157\x6e\164\145\156\x74\55\x54\x79\x70\x65\x3a\x20\x61\x70\160\154\x69\143\x61\x74\x69\157\156\x2f\152\x73\157\156"); goto ogmKc; ntxpX: $arr_requesterid = array_column($result["\x64\x61\164\141"], "\162\145\161\x75\x65\163\x74\145\x72\x5f\x69\144"); goto wfzEw; LU29Y: $result = $this->tickets_library->db_read($request); goto TBj2r; pbXAi: $this->load->library("\x74\x69\143\x6b\145\164\163\137\154\x69\142\162\141\x72\171"); goto fUFOp; wxVLu: if (empty($result["\144\141\164\x61"])) { goto wmu8n; } goto ntxpX; twINv: $sortdatecreated->field = "\143\162\x65\141\x74\x65\144\x2e\x74\x69\155\x65"; goto hoaZO; Au1EI: $request->filter->logic = "\x61\x6e\x64"; goto t5fkv; XQawc: $textsearch = $request->filter->filters[0]->value; goto JiNt5; aG0DX: XEzdJ: goto xXQvX; nKKKc: wmu8n: goto qQ029; BezfJ: $request->sort = [$sortdatecreated]; goto Au1EI; Qaurn: foreach ($requesters as $req) { goto AayAh; kt02p: goto v2os6; goto fSvTh; M0KZv: XjWZF: goto hiMFw; jDyWr: $info = $req["\x6e\141\155\x65"]; goto kt02p; AayAh: $info = ''; goto hmu6H; BeXBC: $info = !empty($req["\x6e\x61\x6d\145"]) ? $req["\x6e\x61\x6d\145"] : $req["\165\163\145\x72\156\141\155\x65"]; goto YuUbM; YuUbM: v2os6: goto ynMwO; ynMwO: $requesters_name[$req["\137\151\144"]] = $info; goto M0KZv; hmu6H: if ($req["\x66\x72\x6f\155\x6d\157\144\165\154\x65"] === "\165\x73\x65\x72\x73") { goto zaWD2; } goto jDyWr; fSvTh: zaWD2: goto BeXBC; hiMFw: } goto aG0DX; HOs5e: $this->mongodatasourceresult->addFilterRequest($filter_ticket, $request); goto SQgTA; mOcq9: $ticket_search[] = $this->mongodatasourceresult->initFilter("\164\151\x63\153\x65\164\x5f\x69\144", "\143\x6f\x6e\164\141\x69\x6e\x73", $textsearch); goto wsSPP; wfzEw: $requesters = $this->requesters_m->db_getbylistid($arr_requesterid); goto WcWqL; XQPl2: $request->filter->filters[0]->field = "\x74\151\143\153\x65\164\137\151\144"; goto Ri05J; SQgTA: goto RhMUd; goto h9HaM; slfGz: R1Lmx: goto sm_i5; hGTOA: } public function searchTicketLinkByRequesterId() { goto pFze9; AF96_: if (empty($requesters)) { goto d3qyl; } goto luVyS; CPXdO: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\x64\145\154\x65\164\145", "\151\x73\145\155\x70\x74\x79", 1), $request); goto EgPro; uB2Ao: echo json_encode($result); goto f_uvK; ydreN: lnELO: goto IoiBA; LkpIN: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\164\151\143\153\x65\x74\x63\x68\151\154\x64", "\156\145\x71", true), $request); goto jEBIT; ZFSe1: $this->load->model("\x73\145\162\166\151\x63\145\163\57\164\151\143\x6b\x65\164\163\x2f\164\x69\143\153\145\x74\x73\137\x6d"); goto PWxhS; zA8ME: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\162\x65\161\165\x65\163\164\x65\x72\x5f\151\144", "\x65\x71", $request->idrequester), $request); goto CPXdO; KqSGB: $result["\x6c\x69\x73\x74\x74\x69\x63\153\x65\x74\x69\x64"] = $listticketid; goto WqNOY; PWxhS: if (!empty($idrequester)) { goto CRVOY; } goto oBMr6; Ko_L4: $request->filter->logic = "\x61\x6e\144"; goto llwWD; IsV_x: foreach ($result["\x64\x61\x74\141"] as &$value) { goto DabXY; nCMOo: $value["\142\160\x6d\137\143\x75\162\162\145\x6e\164\x53\x74\x61\164\x65"] = $value["\142\x70\x6d"]["\143\165\x72\162\x65\x6e\164\x53\164\141\164\145"]; goto L0w2M; KYAr4: EHlrT: goto EAkFN; zKI5G: if (!in_array($value["\x74\151\143\153\145\x74\x5f\x69\144"], $listticketid)) { goto kHuAG; } goto AObTx; AmOsJ: if (!($value["\x74\x69\x63\153\145\x74\x5f\151\x64"] === $ticketidfromdetail)) { goto UuLIs; } goto Yiwvx; D2og9: $value["\143\x72\x65\141\164\145\144\x5f\163\164\x72\151\156\147"] = ''; goto AKw0u; nmoTa: XgG_G: goto kV16r; O5Afm: if (!($value["\x62\160\155\137\143\x75\162\x72\145\156\164\x53\x74\141\x74\x65"]["\x6e\x61\155\x65"] == "\101\160\160\x72\157\166\x65\x64")) { goto EHlrT; } goto Rb4GU; xz7A8: $value["\x62\141\x63\153\x67\162\157\165\x6e\144"] = "\43\145\67\64\143\x33\x63"; goto nIv89; AObTx: $value["\146\157\162\155\x65\170\x69\x73\x74\163"] = true; goto HTUAq; AKw0u: if (!array_key_exists("\143\x72\145\141\164\x65\144", $value)) { goto XgG_G; } goto Gim53; ubV_Y: if (isset($value["\x62\x70\x6d"]["\143\165\x72\162\x65\156\164\123\x74\x61\x74\x65"])) { goto p3iZ6; } goto UGCRc; rBTmB: $value["\143\162\x65\x61\164\145\x64\137\x73\164\x72\x69\156\x67"] = $value["\x63\x72\145\141\x74\x65\x64"]["\142\171\151\x64"]; goto TrMFQ; qYjPs: osQji: goto laDOW; tsbou: $value["\146\157\x72\155\144\x65\141\164\141\151\154"] = false; goto zKI5G; Gim53: $value["\x63\x72\x65\141\164\145\x64\137\163\164\162\x69\156\x67"] = searchnameuser($value["\x63\162\x65\x61\x74\145\x64"]["\142\171\151\x64"]); goto NzXJD; Kp5hp: JlckB: goto qYjPs; DabXY: $value["\143\x72\x65\141\164\x65\144\164\151\155\145\137\x73\x74\x72\x69\x6e\147"] = date("\110\x3a\x69\x3a\163", $value["\143\162\145\x61\x74\145\x64"]["\164\151\155\145"]); goto CGnsk; TXlqw: UuLIs: goto Z9QvW; Yiwvx: $value["\x66\x6f\x72\155\144\145\x61\x74\x61\151\x6c"] = true; goto TXlqw; Rb4GU: $value["\142\141\x63\x6b\x67\162\157\165\x6e\x64"] = "\x23\141\141\x64\x31\67\70"; goto KYAr4; lDkeN: Ty5sD: goto dEZpG; kV16r: $value["\146\x6f\x72\x6d\x65\170\x69\x73\x74\x73"] = false; goto tsbou; nIv89: IUNUZ: goto ys39R; Y_9Nh: $value["\x62\141\x63\153\x67\162\157\x75\156\x64"] = "\x23\x30\x30\x43\x43\x46\106"; goto Kp5hp; TrMFQ: r6MwA: goto nmoTa; L0w2M: if (!($value["\142\x70\155\137\143\165\x72\x72\145\x6e\x74\x53\x74\x61\x74\x65"]["\x6e\141\155\145"] == "\103\x61\x6e\x63\x65\154")) { goto IUNUZ; } goto xz7A8; UGCRc: $value["\x62\160\x6d\x5f\x63\165\x72\x72\145\156\x74\x53\164\141\164\145"] = ["\156\x61\155\x65" => "\156\145\167", "\145\170\164\x65\x6e\x64\x43\157\156\146\x69\x67" => ["\163\164\x61\164\165\163" => "\x6e\145\x77", "\x74\x79\160\x65\x43\157\x6c\157\162" => "\x64\x65\146\x61\x75\154\x74", "\x63\x6c\x61\x73\163\102\165\164\x74\x6f\x6e" => "\x77\141\x72\x6e\x69\156\x67"]]; goto IgBOp; Z9QvW: if (!in_array($value["\164\x69\x63\153\145\x74\x5f\151\x64"], $ticketdisable)) { goto Ty5sD; } goto vzx_D; HTUAq: kHuAG: goto AmOsJ; EAkFN: if (!($value["\x62\160\155\137\x63\x75\162\162\145\x6e\164\123\164\141\x74\145"]["\x6e\141\x6d\145"] == "\104\x6f\156\x65")) { goto JlckB; } goto Y_9Nh; EBh8f: OB4yW: goto O5Afm; IgBOp: $value["\x62\x61\x63\x6b\147\x72\x6f\165\156\x64"] = "\43\x39\71\71\x39\71\71"; goto CpQ93; APTNZ: $value["\x62\x61\143\153\x67\x72\x6f\x75\156\x64"] = "\43\x65\x36\67\145\x32\x32"; goto EBh8f; Zhfyp: $value["\162\x65\x71\x75\145\163\x74\x65\162\137\163\164\x72\x69\x6e\147"] = !empty($value["\162\x65\x71\165\145\163\164\x65\162\137\151\x64"]) && array_key_exists($value["\162\145\x71\165\x65\163\x74\145\x72\x5f\151\x64"], $requesters_name) ? $requesters_name[$value["\x72\x65\161\x75\x65\x73\x74\145\162\x5f\x69\144"]] : ''; goto D2og9; laDOW: bn03c: goto FDwD_; BX8oN: p3iZ6: goto nCMOo; CpQ93: goto osQji; goto BX8oN; CGnsk: $value["\143\162\145\141\x74\145\x64\x64\x61\x74\145\x5f\163\164\x72\x69\x6e\x67"] = date("\x64\57\155\57\x59", $value["\143\162\x65\141\x74\x65\144"]["\164\x69\155\145"]); goto Zhfyp; NzXJD: if (!($value["\143\162\145\141\x74\x65\x64\x5f\x73\164\162\x69\156\147"] === false)) { goto r6MwA; } goto rBTmB; ys39R: if (!($value["\142\160\155\x5f\x63\x75\x72\162\145\x6e\x74\123\164\x61\x74\x65"]["\156\x61\155\145"] == "\111\x6e\40\x50\x72\x6f\x67\162\145\163\163")) { goto OB4yW; } goto APTNZ; dEZpG: $value["\141\x73\163\x69\x67\156\x65\x65\137\163\164\162\151\x6e\147"] = searchnameuser($value["\x61\x73\x73\x69\147\x6e\x65\145\x5f\151\x6e\146\157"]["\x69\144"]); goto ubV_Y; vzx_D: $value["\164\x69\143\x6b\x65\x74\x64\x69\x73\141\x62\x6c\145"] = true; goto lDkeN; FDwD_: } goto M6dJZ; EgPro: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\x6d\x65\x72\x67\x65", "\x6e\145\161", true), $request); goto LkpIN; IaD0Y: $ticketidfromdetail = $request->ticketidfromdetail; goto octSw; PF3jx: $listticketid = $request->listticketid; goto IaD0Y; A5e8Z: $result = ["\164\x6f\x74\x61\154" => 0, "\x64\x61\x74\141" => []]; goto mBFVU; IoiBA: d3qyl: goto qwSgr; qwSgr: Y4hLD: goto IsV_x; mTPNL: if (!(!isset($request->idrequester) || !isset($request->listticketid) || !isset($request->ticketidfromdetail))) { goto RaAYa; } goto slfjf; Yi7uZ: $arr_requesterid = array_column($result["\x64\141\x74\141"], "\162\x65\161\165\x65\x73\164\145\162\x5f\151\144"); goto RqQrr; FfiGl: CRVOY: goto zA8ME; KsZX5: exit; goto FfiGl; tUnYh: exit; goto x0c2A; luVyS: foreach ($requesters as $req) { goto ZIhEp; CO6Ff: $requesters_name[$req["\x5f\151\x64"]] = $info; goto Ym8v0; Ym8v0: X8Ca9: goto VI3IU; ZIhEp: $info = ''; goto Q61Xs; Ougwi: magtD: goto gBgEj; gBgEj: $info = !empty($req["\x6e\x61\155\145"]) ? $req["\x6e\141\x6d\x65"] : $req["\165\x73\x65\162\156\x61\155\x65"]; goto FZ9hA; eM0JF: goto guk94; goto Ougwi; FZ9hA: guk94: goto CO6Ff; IlN5U: $info = $req["\156\x61\x6d\x65"]; goto eM0JF; Q61Xs: if ($req["\x66\x72\157\155\155\x6f\144\165\154\145"] === "\x75\x73\x65\x72\163") { goto magtD; } goto IlN5U; VI3IU: } goto ydreN; x0c2A: RaAYa: goto BnVh0; M6dJZ: WQFUB: goto KqSGB; RqQrr: $requesters = $this->requesters_m->db_getbylistid($arr_requesterid); goto AF96_; BnVh0: $idrequester = $request->idrequester; goto PF3jx; pFze9: header("\103\157\x6e\164\145\156\164\x2d\124\x79\x70\145\72\x20\x61\x70\x70\x6c\x69\x63\x61\164\x69\157\156\57\152\x73\157\156"); goto bhcMG; e0pu_: if (empty($result["\x64\141\x74\x61"])) { goto Y4hLD; } goto Yi7uZ; mBFVU: $request = json_decode(file_get_contents("\160\150\x70\x3a\57\x2f\151\x6e\160\165\164")); goto mTPNL; ygkgj: $sortdatecreated->field = "\143\x72\x65\141\x74\145\144\x2e\x74\151\x6d\145"; goto RQKS_; bhcMG: $this->load->library("\x74\x69\143\153\145\164\x73\x5f\154\x69\142\x72\141\162\171"); goto A5e8Z; WqNOY: $result["\x74\x69\143\153\145\164\x69\x64\146\162\157\x6d\x64\x65\164\x61\151\x6c"] = $ticketidfromdetail; goto uB2Ao; slfjf: echo json_encode($result); goto tUnYh; J5QLM: $requesters_name = []; goto e0pu_; eN29U: $request->sort = [$sortdatecreated]; goto Ko_L4; dsvRy: $this->load->model("\x73\x65\x72\x76\x69\x63\145\163\57\x74\151\x63\x6b\145\164\163\57\162\x65\x71\165\145\x73\x74\x65\x72\x73\137\155"); goto J5QLM; octSw: $ticketdisable = $request->ticketdisable ? $request->ticketdisable : []; goto ZFSe1; jEBIT: $sortdatecreated = new stdClass(); goto ygkgj; oBMr6: echo json_encode($result); goto KsZX5; RQKS_: $sortdatecreated->dir = "\x64\145\163\x63"; goto eN29U; llwWD: $result = $this->tickets_library->db_read($request); goto dsvRy; f_uvK: } public function searchTicketLinkByRequesterIdForLinked() { goto Ye8Me; epFBt: $sortdatecreated->dir = "\x64\145\x73\143"; goto j9vH2; Znrk1: kosp1: goto V8YXM; vssW9: if (empty($result["\x64\141\x74\x61"])) { goto FdzQN; } goto tgpNV; hGrAB: $this->load->model("\163\145\x72\166\151\x63\x65\x73\x2f\x74\151\143\153\x65\x74\x73\x2f\x72\x65\161\165\x65\x73\x74\x65\162\x73\137\x6d"); goto XTl5U; XTl5U: $requesters_name = []; goto vssW9; S3M3W: $this->load->library("\x74\151\143\x6b\145\164\x73\x5f\x6c\151\142\162\x61\x72\171"); goto xf21G; Rp9Bh: $sortdatecreated = new stdClass(); goto hdjem; enj5F: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\155\145\162\x67\145", "\x6e\145\161", true), $request); goto OdlqC; Dy8tT: Tcbx5: goto xifjs; a88A5: $idrequester = $request->idrequester; goto Nn4kX; Ye8Me: header("\x43\x6f\x6e\164\x65\156\x74\55\124\x79\160\x65\72\40\141\160\160\x6c\x69\143\x61\x74\151\157\156\x2f\x6a\x73\x6f\156"); goto S3M3W; bSD_h: echo json_encode($result); goto aG5CD; hdjem: $sortdatecreated->field = "\x63\x72\x65\x61\164\145\x64\x2e\164\x69\x6d\x65"; goto epFBt; Yw_xV: if (!empty($idrequester)) { goto kosp1; } goto vju0b; RPVDC: DVdt0: goto a88A5; vju0b: echo json_encode($result); goto f0KpV; xf21G: $result = ["\x74\x6f\164\141\x6c" => 0, "\x64\x61\164\x61" => []]; goto w9c55; wof2f: foreach ($requesters as $req) { goto snYSs; mKnUn: l9shn: goto geuqF; snYSs: $info = ''; goto TxtUh; Y9u2E: $info = $req["\x6e\141\155\x65"]; goto YCpL0; P158s: $info = !empty($req["\x6e\141\x6d\145"]) ? $req["\156\x61\x6d\x65"] : $req["\165\163\145\x72\156\141\155\145"]; goto AaN2F; QDu2E: $requesters_name[$req["\137\x69\x64"]] = $info; goto mKnUn; Mrywa: I1B7k: goto P158s; TxtUh: if ($req["\146\162\x6f\155\155\157\x64\165\154\145"] === "\x75\x73\x65\x72\x73") { goto I1B7k; } goto Y9u2E; YCpL0: goto RQiHo; goto Mrywa; AaN2F: RQiHo: goto QDu2E; geuqF: } goto gc0TR; mYPZl: $result["\x74\x69\x63\153\x65\164\x69\144\x66\162\157\x6d\x64\x65\164\141\x69\154"] = $ticketidfromdetail; goto iw5Xl; gc0TR: pc5xK: goto PY0NK; tgpNV: $arr_requesterid = array_column($result["\144\141\x74\141"], "\x72\x65\x71\x75\145\x73\x74\x65\162\x5f\x69\x64"); goto RRGPx; iw5Xl: echo json_encode($result); goto fmp9i; ltANx: $ticketdisable = $request->ticketdisable ? $request->ticketdisable : []; goto CvXA2; aJRwR: $result = $this->tickets_library->db_read($request); goto hGrAB; OdlqC: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\x6c\151\156\153", "\156\x65\x71", true), $request); goto Rp9Bh; Zpnmu: FdzQN: goto dw7Ps; dw7Ps: foreach ($result["\x64\x61\x74\141"] as &$value) { goto oHr02; QD8nK: if (!($value["\142\160\x6d\x5f\143\x75\162\x72\145\x6e\x74\x53\x74\x61\x74\145"]["\156\x61\x6d\x65"] == "\103\141\x6e\x63\x65\x6c")) { goto jUlDz; } goto FwCOq; Of2tL: $value["\143\162\145\141\164\x65\144\137\x73\x74\162\x69\156\147"] = searchnameuser($value["\143\x72\145\141\x74\x65\x64"]["\x62\171\x69\x64"]); goto E_d1a; RDgbK: goto AU43g; goto Uq3ih; hHcN8: $value["\x63\162\x65\141\164\x65\x64\x64\141\x74\145\137\x73\164\162\x69\x6e\x67"] = date("\x64\57\x6d\x2f\131", $value["\143\x72\145\141\x74\145\144"]["\164\151\155\145"]); goto Dx3U9; rUoFY: $value["\142\141\143\x6b\147\x72\x6f\x75\x6e\x64"] = "\43\x61\x61\x64\61\67\70"; goto BiOB9; wlfkW: if (!($value["\164\x69\x63\x6b\x65\x74\x5f\151\x64"] === $ticketidfromdetail)) { goto D3jFd; } goto larPK; i9ju1: $value["\x62\x61\x63\153\x67\x72\x6f\165\156\x64"] = "\x23\60\60\103\103\106\x46"; goto QlZ_d; larPK: $value["\146\x6f\x72\155\x64\145\141\x74\141\151\x6c"] = true; goto mZFpo; GBQPz: $value["\x66\x6f\x72\155\x65\170\x69\163\x74\x73"] = false; goto sIuip; FwCOq: $value["\142\141\143\153\x67\162\x6f\165\x6e\144"] = "\x23\145\x37\x34\x63\x33\x63"; goto ld6Rt; wqHiY: AU43g: goto prDKc; ajJtQ: $value["\142\141\x63\153\147\162\157\165\x6e\144"] = "\x23\x65\x36\67\x65\62\x32"; goto I6sTO; Uq3ih: ndS8N: goto MCxj6; BiOB9: hWSq2: goto A0zsH; WpD8G: $value["\164\x69\143\153\x65\164\x64\x69\163\x61\x62\x6c\145"] = true; goto NtaFe; NmPbW: $value["\142\x70\155\x5f\x63\165\162\162\145\156\x74\x53\x74\141\x74\145"] = ["\156\141\x6d\x65" => "\x6e\145\x77", "\145\170\x74\x65\x6e\x64\103\157\x6e\146\x69\x67" => ["\163\x74\141\164\x75\163" => "\156\145\x77", "\x74\x79\160\x65\x43\157\x6c\x6f\162" => "\x64\145\x66\141\165\x6c\x74", "\143\x6c\141\163\163\x42\165\164\x74\157\x6e" => "\x77\141\x72\156\x69\x6e\x67"]]; goto uPLY3; Dx3U9: $value["\x72\145\x71\165\145\x73\164\x65\162\137\x73\x74\162\x69\x6e\x67"] = !empty($value["\162\145\x71\x75\x65\x73\164\x65\x72\137\151\144"]) && array_key_exists($value["\x72\x65\x71\x75\145\x73\164\x65\162\x5f\151\x64"], $requesters_name) ? $requesters_name[$value["\162\x65\x71\x75\x65\163\164\145\162\137\151\x64"]] : ''; goto XpoOz; ld6Rt: jUlDz: goto J8egt; prDKc: nR19w: goto CKImz; K8b3G: JxSfX: goto GBQPz; sIuip: $value["\x66\157\162\155\x64\145\141\164\x61\x69\x6c"] = false; goto T1Kx3; MCxj6: $value["\x62\x70\x6d\x5f\143\165\x72\162\145\156\164\x53\164\x61\164\x65"] = $value["\x62\x70\155"]["\x63\x75\162\162\x65\x6e\x74\x53\164\x61\x74\145"]; goto QD8nK; NtaFe: kz4he: goto imsrB; E_d1a: if (!($value["\x63\x72\x65\x61\164\145\x64\137\x73\x74\x72\x69\156\147"] === false)) { goto IdUQG; } goto FroC8; mZFpo: D3jFd: goto ku5LZ; ORaPs: if (isset($value["\x62\x70\x6d"]["\x63\x75\162\x72\x65\x6e\x74\123\164\141\x74\x65"])) { goto ndS8N; } goto NmPbW; QlZ_d: HAqMK: goto wqHiY; A0zsH: if (!($value["\142\x70\155\137\143\x75\x72\x72\145\156\x74\x53\164\141\x74\145"]["\x6e\141\155\145"] == "\x44\x6f\x6e\145")) { goto HAqMK; } goto i9ju1; imsrB: $value["\x61\163\x73\x69\147\x6e\x65\x65\x5f\163\164\x72\x69\x6e\147"] = searchnameuser($value["\141\x73\163\x69\147\156\x65\x65\x5f\151\156\146\x6f"]["\x69\x64"]); goto ORaPs; S0_BV: if (!array_key_exists("\143\162\145\x61\x74\145\x64", $value)) { goto JxSfX; } goto Of2tL; uPLY3: $value["\x62\141\143\153\x67\x72\157\x75\156\x64"] = "\x23\x39\x39\x39\71\71\x39"; goto RDgbK; oHr02: $value["\x63\x72\145\141\164\x65\x64\164\151\155\x65\137\x73\x74\162\151\x6e\x67"] = date("\110\72\x69\x3a\x73", $value["\143\162\145\x61\x74\145\x64"]["\x74\151\155\145"]); goto hHcN8; J8egt: if (!($value["\142\x70\x6d\x5f\x63\165\162\162\145\x6e\164\123\164\x61\164\x65"]["\156\x61\155\x65"] == "\111\x6e\40\x50\x72\157\x67\x72\145\x73\x73")) { goto XwShB; } goto ajJtQ; X0Nfx: CEgn3: goto wlfkW; T1Kx3: if (!in_array($value["\x74\151\143\x6b\x65\x74\x5f\x69\x64"], $listticketid)) { goto CEgn3; } goto x1wzM; I6sTO: XwShB: goto laSBg; ku5LZ: if (!in_array($value["\164\151\143\153\145\x74\x5f\x69\x64"], $ticketdisable)) { goto kz4he; } goto WpD8G; x1wzM: $value["\x66\157\x72\x6d\145\170\x69\x73\x74\x73"] = true; goto X0Nfx; FroC8: $value["\143\162\x65\141\164\x65\144\137\163\164\x72\x69\156\147"] = $value["\x63\162\x65\141\x74\145\144"]["\x62\171\151\144"]; goto fuojV; XpoOz: $value["\x63\x72\x65\141\x74\145\144\x5f\163\164\162\151\156\147"] = ''; goto S0_BV; laSBg: if (!($value["\142\x70\x6d\x5f\143\x75\x72\162\145\x6e\x74\x53\x74\141\x74\x65"]["\x6e\x61\155\145"] == "\x41\x70\160\x72\x6f\166\x65\144")) { goto hWSq2; } goto rUoFY; fuojV: IdUQG: goto K8b3G; CKImz: } goto Dy8tT; bvzzc: $ticketidfromdetail = $request->ticketidfromdetail; goto ltANx; RRGPx: $requesters = $this->requesters_m->db_getbylistid($arr_requesterid); goto y0x3O; f0KpV: exit; goto Znrk1; MhWdv: $request->filter->logic = "\141\156\144"; goto aJRwR; aG5CD: exit; goto RPVDC; j9vH2: $request->sort = [$sortdatecreated]; goto MhWdv; LTRMa: if (!(!isset($request->idrequester) || !isset($request->listticketid) || !isset($request->ticketidfromdetail))) { goto DVdt0; } goto bSD_h; CvXA2: $this->load->model("\x73\x65\x72\166\x69\x63\145\x73\x2f\x74\151\x63\x6b\145\x74\x73\57\x74\151\143\x6b\x65\x74\x73\137\x6d"); goto Yw_xV; PY0NK: OJMfo: goto Zpnmu; V8YXM: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\162\x65\161\165\x65\x73\x74\x65\162\137\x69\144", "\145\161", $request->idrequester), $request); goto RS6KT; w9c55: $request = json_decode(file_get_contents("\x70\150\x70\x3a\x2f\x2f\151\x6e\160\x75\x74")); goto LTRMa; y0x3O: if (empty($requesters)) { goto OJMfo; } goto wof2f; xifjs: $result["\x6c\x69\163\x74\x74\151\143\x6b\x65\164\x69\144"] = $listticketid; goto mYPZl; RS6KT: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\144\x65\154\x65\164\145", "\151\163\x65\155\160\x74\x79", 1), $request); goto enj5F; Nn4kX: $listticketid = $request->listticketid; goto bvzzc; fmp9i: } public function getlinkobjectcrm($options = array()) { try { goto LUNCU; mWvcy: KJ84I: goto oOCjP; oOCjP: if (!isset($options["\151\x64"])) { goto WVtqb; } goto ABZ2h; YfXPS: B14Wz: goto Ia1ec; pxnck: JSuGi: goto FOCYG; pLgAN: goto PYla6; goto YfXPS; poRAz: KbQWc: goto v47wE; E0Yf6: $result["\x64\x61\x74\x61"]["\x61\x76\x61\x74\141\x72"] = $object["\141\166\141\164\x61\162"]; goto poRAz; Ia1ec: $result = ["\x73\x74\x61\164\x75\x73" => true, "\x64\x61\x74\141" => ["\155\157\x64\x75\x6c\x65" => $request["\x6d\157\144\x75\x6c\x65"], "\x69\x64" => $request["\151\x64"]]]; goto Cpayn; LUNCU: $request = json_decode(file_get_contents("\160\x68\160\72\x2f\57\151\156\x70\165\164"), true); goto vfxKP; oRHX8: tGc1U: goto S6rHu; S6rHu: header("\103\x6f\156\164\145\156\164\55\124\x79\160\145\72\x20\141\160\x70\154\x69\x63\x61\x74\151\157\x6e\57\x6a\x73\157\156"); goto OWswn; tLPbS: $result["\x64\x61\164\x61"]["\141\166\x61\x74\x61\162"] = base_url("\160\x75\142\154\151\143\x2f\x69\x6d\x67\x2f\x63\x72\155\x2f\143\162\155\x5f\145\x6d\160\x74\x79\137\141\166\x61\x74\x61\162\56\160\156\147"); goto j1Y35; Cpayn: switch ($request["\x6d\x6f\144\165\x6c\145"]) { case "\x61\143\x63\157\165\156\x74\163": goto ICVJj; ICVJj: $this->load->model("\x63\162\x6d\57\141\x63\143\x6f\165\156\x74\x73\x5f\155"); goto ycIc6; rROX1: goto D4yMC; goto mYBMd; OPxBH: $object["\x6e\x61\x6d\145"] = @$object["\x63\x6f\155\160\x61\156\x79\156\141\x6d\x65"]; goto rROX1; N5kfF: $object = $this->accounts_m->db_getbyid($request["\x69\144"], ["\x63\x6f\155\160\x61\x6e\171\x6e\141\155\x65", "\155\141\151\156\137\142\165\163\x69\x6e\x65\163\x73\x5f\x70\x68\157\x6e\145", "\x6d\141\151\x6e\137\x62\165\x73\151\x6e\145\163\163\x5f\x65\155\141\x69\154", "\x61\166\x61\164\141\x72", "\164\151\143\x6b\x65\164\x5f\162\x65\x71\x75\145\163\164\145\162\x5f\x69\144"]); goto esc6f; ycIc6: $this->load->library("\141\x63\143\x6f\165\156\164\x73\137\x6c\151\x62\x72\141\162\x79"); goto MRUWm; esc6f: $object["\x6d\157\144\165\x6c\x65\116\141\155\145"] = langJS("\x6d\x6f\144\165\x6c\145\x2e\141\x63\x63\x6f\165\x6e\x74\163"); goto OPxBH; MRUWm: $this->accounts_library->db_setcollection($request["\151\144"]); goto N5kfF; mYBMd: case "\x6c\145\141\144\x73": goto p1HRr; gt29u: $this->load->library("\154\145\141\144\163\x5f\x6c\151\x62\x72\x61\162\x79"); goto t3xrO; GkwOm: $object = $this->leads_m->db_getbyid($request["\x69\144"], ["\x66\x69\162\163\x74\137\x6e\x61\155\145", "\160\x68\157\x6e\145", "\x62\x75\x73\151\x6e\x65\163\x73\137\x70\150\157\156\145", "\145\x6d\x61\x69\x6c", "\142\x75\x73\151\156\145\x73\163\x5f\145\155\x61\151\154", "\141\166\x61\164\141\x72", "\164\x69\143\x6b\145\164\x5f\x72\x65\161\x75\x65\163\164\x65\162\137\x69\144"]); goto CKpoY; t3xrO: $this->leads_library->db_setcollection($request["\x69\x64"]); goto GkwOm; J31M9: $object["\156\x61\155\145"] = @$object["\146\151\162\x73\x74\x5f\x6e\x61\155\x65"]; goto bImif; bImif: goto D4yMC; goto gulfE; CKpoY: $object["\155\157\x64\x75\x6c\x65\116\141\155\x65"] = langJS("\155\157\144\165\154\x65\56\154\145\x61\144\163"); goto J31M9; p1HRr: $this->load->model("\x63\x72\155\57\154\145\x61\x64\x73\x5f\155"); goto gt29u; gulfE: case "\x63\157\x6e\164\141\x63\164\x73": goto Yys6B; ACn7B: $object = $this->contacts_m->db_getbyid($request["\151\144"], ["\146\x69\x72\163\164\x5f\156\141\155\145", "\x6d\x6f\142\151\x5f\x70\x68\157\x6e\145", "\155\141\151\x6e\x5f\145\155\x61\151\154", "\x61\x76\141\164\x61\x72", "\x74\x69\143\x6b\x65\x74\x5f\x72\145\x71\x75\145\163\164\145\x72\137\151\144", "\x61\x63\143\157\x75\x6e\x74"]); goto OvssE; ZStKl: $this->contacts_library->db_setcollection($request["\151\x64"]); goto ACn7B; Mr4NQ: $this->load->library("\x63\157\x6e\x74\141\x63\x74\x73\137\154\151\142\162\x61\x72\171"); goto ZStKl; lKDyI: goto D4yMC; goto djqIL; Yys6B: $this->load->model("\143\162\x6d\57\143\157\156\x74\141\x63\x74\163\x5f\155"); goto Mr4NQ; FLo60: $object["\156\x61\x6d\x65"] = @$object["\146\151\162\x73\x74\x5f\x6e\x61\x6d\145"]; goto lKDyI; OvssE: $object["\x6d\157\x64\165\x6c\145\116\141\155\x65"] = langJS("\x6d\157\144\165\x6c\x65\x2e\x63\x6f\x6e\164\x61\143\164\x73"); goto FLo60; djqIL: default: throw new Exception("\x4d\157\144\x75\x6c\145\40\x77\x72\x6f\x6e\x67\41"); } goto pxnck; OWswn: echo json_encode($result); goto MGwEr; ABZ2h: $request["\x69\144"] = $options["\151\144"]; goto fAV5f; eXXUd: PYla6: goto HXhO3; TNr48: throw new Exception("\x4d\151\163\163\x69\156\147\x20\x70\x61\162\141\155\x73\x21"); goto pLgAN; j1Y35: if (!(array_key_exists("\141\166\x61\x74\141\x72", $object) && $object["\141\x76\141\x74\x61\x72"] !== '')) { goto KbQWc; } goto E0Yf6; FOCYG: D4yMC: goto hon2L; v47wE: if (!(isset($options["\155\x6f\x64\165\x6c\145"]) || isset($options["\x69\x64"]))) { goto tGc1U; } goto MFA1E; vfxKP: if (!isset($options["\x6d\157\x64\165\154\145"])) { goto KJ84I; } goto oEID1; MFA1E: return $result; goto oRHX8; MGwEr: exit; goto eXXUd; oEID1: $request["\x6d\x6f\144\x75\x6c\x65"] = $options["\x6d\157\144\x75\154\145"]; goto mWvcy; fAV5f: WVtqb: goto GSnCG; GSnCG: if (keyExistsArray(["\x6d\x6f\144\x75\154\x65", "\151\x64"], $request)) { goto B14Wz; } goto TNr48; hon2L: $result["\144\141\x74\x61"] = array_merge($result["\144\x61\164\x61"], $object); goto tLPbS; HXhO3: } catch (Exception $ex) { goto saao6; s1fCM: header("\x43\157\x6e\x74\145\156\164\x2d\x54\171\x70\x65\72\x20\141\160\x70\x6c\151\143\141\164\x69\157\x6e\x2f\152\163\x6f\156"); goto niGlN; saao6: if (!(isset($options["\155\157\x64\165\154\145"]) || isset($options["\x69\144"]))) { goto O1iP6; } goto VLQA_; VLQA_: return false; goto nrfmb; niGlN: echo json_encode(["\163\164\141\x74\x75\163" => false, "\x65\162\162\157\162" => $ex->getMessage() . "\x20\176\40" . $ex->getLine()]); goto YcCGp; nrfmb: O1iP6: goto s1fCM; YcCGp: } } public function readNotDelete() { goto wz_eK; j_ICn: $filter_fieldstatus->field = "\x73\x74\141\x74\x75\163"; goto l01j5; OmibH: $listbu = $this->data["\154\151\x73\x74\x62\x75"]; goto L2qZa; PzsiH: foreach ($result["\x64\141\164\141"] as &$ticket) { goto n3wcz; KqdFd: $name = substr($ticket["\157\x77\x6e\x65\162"], 0, $index); goto qI_ao; gcbeM: $ticket["\141\x73\x73\x69\147\x6e\x65\x65\137\x74\145\x78\x74\167\x69\164\150\156\141\x6d\x65"] = searchnameuserwithstatus($ticket["\141\x73\163\151\147\156\x65\145\137\x69\156\146\x6f"]["\151\144"], true); goto yiyde; m1FpW: $ticket["\x6c\x61\x73\164\x5f\x6d\157\144\151\x66\151\x65\x64\x5f\165\163\x65\x72\x6e\x61\x6d\x65"] = $ticket["\x6c\x61\x73\164\137\155\x6f\x64\151\146\151\145\144"]["\x62\171\151\x64"]; goto fRWsf; niBl1: if (!array_key_exists("\x6c\x61\163\164\x5f\155\157\144\151\146\x69\145\144", $ticket)) { goto mhwfS; } goto aWuA1; V21cG: vjHs1: goto e4Lf9; PCmvm: $ticket["\157\x77\156\145\162\x5f\165\163\x65\x72\156\141\x6d\145"] = $owner_username["\164\x65\170\164"]; goto JeDgq; uipJd: $ticket["\x63\162\x65\x61\164\x65\x64\x5f\x73\x74\x72\x69\x6e\147"] = ''; goto BhRX_; UQn6J: $ticket["\143\x72\145\x61\x74\x65\x64\137\163\x74\162\x69\156\x67"] = searchnameuserwithstatus($ticket["\x63\x72\x65\141\x74\x65\x64"]["\142\171\x69\144"]); goto uD2FK; YuSch: $ticket["\x6f\x77\156\145\162\x5f\x75\x73\145\162\x6e\x61\155\x65"] = ''; goto QeKMD; JeDgq: goto JLB22; goto iEAQM; S7jsP: J3Z_W: goto l4vFK; wL81A: OJAuY: goto eAnhY; D05uy: $ticket["\x63\162\x65\x61\x74\145\144\137\165\x73\145\x72\x6e\141\x6d\145"] = ''; goto uOCgq; uOCgq: if (!array_key_exists("\143\162\x65\141\164\x65\144", $ticket)) { goto J3Z_W; } goto bqPp3; hg6Hr: vDZGw: goto reYqM; dysJN: DbDWT: goto D05uy; BuWZu: $ticket["\157\167\156\145\162\x5f\x75\163\145\162\156\x61\x6d\145"] = searchnameuser($id); goto qhw57; KZOU3: $ticket["\160\x72\151\157\162\x69\x74\171\x5f\164\x65\x78\164"] = langJS("\155\x6f\x64\x75\154\x65\137\x74\151\143\x6b\145\164\x73\x2e\164\x69\x63\x6b\x65\164\x70\162\x69\x6f\162\x69\x74\x79\56" . $ticket["\160\x72\151\157\x72\x69\164\x79"]); goto B1zzL; Iqvus: $key = array_search($ticket["\x63\x61\164\145\x67\157\162\x79"], array_column($listcategory, "\x5f\151\x64")); goto Rszlt; PqdCX: $index = strpos($ticket["\157\x77\156\145\162"], "\x5f"); goto X22zy; zIrVP: if (!($ticket["\x6c\x61\163\164\137\x6d\157\144\151\x66\x69\145\144\137\x75\163\145\162\x6e\x61\x6d\145"] === false)) { goto N6oDm; } goto m1FpW; n3wcz: $ticket["\x63\141\x74\145\x67\x6f\162\171\x5f\164\145\170\164"] = ''; goto ZeaID; up0vQ: $ticket["\x63\162\145\141\164\145\x64\137\165\163\145\x72\156\x61\x6d\x65"] = $ticket["\x63\x72\x65\141\x74\145\x64"]["\142\x79\x69\x64"]; goto P9B5p; X22zy: $id = substr($ticket["\157\x77\156\x65\x72"], $index + 1); goto KqdFd; BhRX_: if (!array_key_exists("\143\162\x65\141\164\145\144", $ticket)) { goto OEkgj; } goto UQn6J; ZK25w: goto GTHvu; goto Zk_oK; rpoV_: C1Eoa: goto T1MVF; QU_6u: goto vjHs1; goto nPfCO; iEAQM: sdDI0: goto BuWZu; A3vzC: $ticket["\x63\x72\x65\x61\164\145\x64\x74\151\155\x65\x5f\x73\164\x72\x69\x6e\147"] = date("\x48\x3a\151\72\x73", $ticket["\x63\x72\145\141\164\x65\144"]["\x74\151\155\145"]); goto ZeuXA; B1zzL: smcts: goto A3vzC; ZeuXA: $ticket["\143\x72\145\141\164\x65\x64\144\141\164\145\137\163\x74\162\x69\x6e\147"] = date("\144\x2f\x6d\57\x59", $ticket["\143\162\145\x61\164\x65\144"]["\164\x69\155\145"]); goto OBohq; qI_ao: if ($name == "\165\163\145\162") { goto sdDI0; } goto DFPKe; J_57m: if (!array_key_exists("\141\163\x73\151\x67\x6e\145\x65\x5f\151\156\x66\x6f", $ticket)) { goto DbDWT; } goto M6hJJ; qhw57: JLB22: goto hg6Hr; QeKMD: if (!array_key_exists("\157\167\x6e\x65\x72", $ticket)) { goto qDHp5; } goto poART; fRWsf: N6oDm: goto LqsHM; poART: if (!($ticket["\x6f\x77\156\145\x72"] !== '')) { goto vDZGw; } goto PqdCX; vxXjB: $ticket["\141\163\163\151\147\x6e\145\x65\137\x74\145\x78\x74"] = $ticket["\141\163\x73\x69\147\156\x65\145\137\151\x6e\x66\x6f"]["\151\x64"]; goto QU_6u; OBohq: $ticket["\x72\145\x71\165\x65\x73\164\x65\x72\x5f\x73\x74\162\151\156\x67"] = !empty($ticket["\x72\145\161\x75\145\x73\164\x65\x72\x5f\x69\x64"]) && array_key_exists($ticket["\x72\x65\161\x75\145\163\x74\145\162\137\151\x64"], $requesters_name) ? $requesters_name[$ticket["\162\145\161\165\145\163\164\x65\x72\x5f\x69\x64"]] : ''; goto uipJd; pqtoc: $bu = searchbu($ticket["\x61\163\163\151\147\x6e\x65\x65\137\x69\156\146\157"]["\x69\144"]); goto aC6mt; aWuA1: $ticket["\154\x61\x73\164\137\155\x6f\x64\151\146\x69\x65\144\137\165\x73\x65\162\x6e\x61\155\145"] = searchnameuserwithstatus($ticket["\x6c\x61\163\x74\x5f\x6d\x6f\x64\x69\146\151\145\144"]["\x62\171\151\x64"]); goto zIrVP; CfxkR: $ticket["\143\141\164\145\x67\157\162\171\137\x74\145\x78\x74"] = $listcategory[$key]["\164\145\170\164"]; goto wL81A; DFPKe: $owner_username = searchbu($id); goto PCmvm; uD2FK: if (!($ticket["\x63\162\145\141\x74\145\x64\137\x73\x74\162\x69\x6e\x67"] === false)) { goto wHFxc; } goto t4sx_; bqPp3: $ticket["\x63\162\145\141\x74\145\144\x5f\165\163\145\x72\156\x61\155\145"] = searchnameuserwithstatus($ticket["\x63\162\x65\141\x74\145\x64"]["\x62\x79\151\144"]); goto N0ynw; LqsHM: mhwfS: goto GM8pw; Zk_oK: vlx_N: goto ZtaQz; reYqM: qDHp5: goto rpoV_; eAnhY: LEwdA: goto fcPWj; ZeaID: if (!(array_key_exists("\143\141\164\x65\x67\x6f\162\x79", $ticket) && $this->mongo_db->isValidObjectID($ticket["\x63\141\x74\x65\x67\x6f\x72\x79"]))) { goto LEwdA; } goto Iqvus; N0ynw: if (!($ticket["\x63\x72\145\x61\x74\145\144\x5f\x75\x73\145\162\156\141\155\145"] === false)) { goto quGk2; } goto up0vQ; t4sx_: $ticket["\x63\x72\x65\x61\x74\x65\x64\x5f\163\164\x72\151\156\147"] = $ticket["\143\162\145\x61\x74\x65\144"]["\x62\171\151\x64"]; goto g6qZ3; nPfCO: v0h43: goto Glkec; wGvfE: if (!array_key_exists("\160\162\x69\x6f\162\151\164\171", $ticket)) { goto smcts; } goto KZOU3; gh4F1: OEkgj: goto YuSch; GM8pw: $ticket["\160\162\x69\x6f\x72\151\164\171\x5f\x74\x65\x78\164"] = ''; goto wGvfE; e4Lf9: $ticket["\x61\x73\x73\151\x67\156\x65\145\x5f\164\x65\x78\164\x77\x69\x74\x68\156\x61\155\x65"] = $ticket["\141\163\x73\151\x67\x6e\x65\x65\137\164\145\170\164"]; goto ZK25w; fcPWj: $ticket["\141\x73\x73\x69\x67\x6e\145\145\137\164\145\x78\x74"] = ''; goto J_57m; P9B5p: quGk2: goto S7jsP; ZtaQz: $ticket["\x61\x73\x73\151\x67\156\145\145\x5f\x74\x65\x78\164"] = searchnameuserwithstatus($ticket["\141\163\x73\x69\x67\x6e\x65\x65\137\x69\156\146\x6f"]["\x69\144"]); goto gcbeM; M6hJJ: if ($ticket["\x61\163\x73\151\x67\x6e\145\145\137\151\156\146\157"]["\x74\x79\160\145"] === "\x75\163\145\162") { goto vlx_N; } goto pqtoc; g6qZ3: wHFxc: goto gh4F1; Glkec: $ticket["\141\163\163\151\x67\156\145\145\137\164\145\170\x74"] = $bu["\x74\145\170\x74"]; goto V21cG; l4vFK: $ticket["\154\141\163\x74\137\x6d\x6f\x64\151\x66\151\x65\x64\137\x75\163\x65\x72\x6e\141\x6d\x65"] = ''; goto niBl1; Rszlt: if (!($key !== false)) { goto OJAuY; } goto CfxkR; aC6mt: if ($bu !== false) { goto v0h43; } goto vxXjB; yiyde: GTHvu: goto dysJN; T1MVF: } goto NNsMI; WWwUb: He8CJ: goto gs6Ov; KGLoK: if (property_exists($request, "\x6d\x6f\144\x75\x6c\x65")) { goto gs2f5; } goto cvMJ7; taB0Q: $hasFilterTicketEnd = true; goto t5JCO; cBKlK: $this->mongodatasourceresult->addFilterRequest($listCheck, $request); goto ieGoc; CXkRE: Cg66N: goto skZd5; rtsWS: $filter_fieldstatus = new stdClass(); goto j_ICn; uKEaY: foreach ($listbu as &$bu) { $bu = "\x62\x75\137" . $bu; l2aAP: } goto szLVV; CcnDq: $selectField = $this->tickets_m->getSelectKendoGrid(); goto iEl62; q9MrZ: if (!(property_exists($request, "\x77\x66\64\170\x5f\x70\x72\x6f\143\145\163\163\x69\156\147\x62\x79\163\141\155\145\160\141\x72\145\x6e\x74\x62\x75") && $request->wf4x_processingbysameparentbu === true)) { goto F6uVF; } goto ohe7x; y2irX: $activeView = true; goto vbwt_; lBp31: SEbgQ: goto HBEKV; ZE0S3: MiG1X: goto P_cIe; Ql6eH: echo json_encode(["\x74\157\164\x61\x6c" => 0, "\144\x61\x74\x61" => [], "\x65\x72\x72\x6f\x72\163" => langJS("\x68\x74\x74\x70\x63\x6f\144\x65\56\155\x73\x67\137\x34\x30\x33")]); goto fxcr3; BZqJ8: if (!($permission["\146\151\154\x74\x65\x72"] !== false)) { goto n28JE; } goto asmBk; fxcr3: exit; goto FIpIN; ZtwuK: $this->load->library("\164\x69\x63\x6b\x65\164\163\x5f\154\151\x62\162\x61\162\x79"); goto bTZkL; whnmt: $optionSort = ["\167\x68\145\162\145" => ["\x6d\157\x64\x75\154\145" => "\164\151\143\x6b\145\164\x73", "\163\x68\157\167" => 1], "\x73\157\x72\x74" => ["\x70\x6f\163\151\164\x69\157\x6e" => 1]]; goto SFQxP; B2adQ: if (empty($request->ticket_requester_id)) { goto CuWsY; } goto h6LFQ; ohe7x: $returntype = "\146\x69\154\164\145\x72\x5f\x70\x72\x6f\x63\145\x73\x73\x69\x6e\147\142\x79\163\141\x6d\145\160\x61\162\x65\156\164\142\x75"; goto feQdx; nNsiy: if (!($owner != 1)) { goto QLojG; } goto uKEaY; G1_bR: if ($permission["\x73\x74\164"] === false) { goto caAcG; } goto BZqJ8; ggiNg: foreach ($dataShared as $idc) { $listCategory[] = $idc["\137\151\x64"]; q1rwm: } goto UJ8l0; Ndv1w: foreach ($field as $field) { $tempSelect[] = $field["\141\x6c\151\x61\x73"]; yEYzb: } goto CXkRE; BtZO8: YRTjV: goto Iwjol; sjU4o: $this->mongodatasourceresult->addFilterRequest($permission["\x66\151\x6c\x74\x65\162"], $request); goto BtZO8; NX_E7: S6hdv: goto tKL5k; asmBk: if (property_exists($request, "\155\157\144\x75\x6c\x65")) { goto YRTjV; } goto sjU4o; g1O56: $field = $this->fieldGrid(); goto g10bH; R9A6u: $listcategory = $this->configcategoryticket_m->db_all_withcache(); goto r1gVU; HBEKV: $permission = $this->tickets_library->permission($returntype); goto G1_bR; PpUel: z45Yf: goto ZE0S3; Rr70z: DQGZK: goto CcnDq; rz2CX: if (!(property_exists($request, "\167\x66\x34\170\x5f\155\x69\156\145\164\151\x63\153\145\164") && $request->wf4x_mineticket === true)) { goto mGT3K; } goto ajkxB; Js1Qo: qEMfb: goto WWwUb; a7k_V: yfq2f: goto LXTF_; XYtlu: LndhK: goto q9MrZ; TAHjS: $wf4x_alltickets = isset($request->wf4x_alltickets) ? $request->wf4x_alltickets : false; goto uAvUs; IrmcV: $userid = "\x75\163\145\162\137" . $this->data["\x75\x73\x65\x72\x69\x64"]; goto OmibH; KW1vj: $requesters = $this->requesters_m->db_getbylistid($arr_requesterid); goto wRuat; vbwt_: lwGTF: goto KGLoK; U7qol: $countcondition = $this->mongodatasourceresult->countcondition($this->tickets_m->getSelectKendoGrid(), $request); goto CD8w2; tKL5k: if (!(!$hasFilterTicketEnd && !$wf4x_alltickets)) { goto RRgKM; } goto wUiba; feQdx: F6uVF: goto rz2CX; oWwMY: if (!(property_exists($request, "\x77\x66\x34\170\137\160\x72\x6f\x63\x65\x73\163\x69\156\x67\x62\x79\x73\x75\142\142\x75") && $request->wf4x_processingbysubbu === true)) { goto LndhK; } goto lACEZ; MjKW1: foreach ($requesters as $req) { goto nIXRh; Lm5_Y: $info = !empty($req["\156\141\155\x65"]) ? $req["\x6e\x61\x6d\145"] : $req["\165\163\x65\162\x6e\141\155\145"]; goto OeSj3; TrxFC: $requesters_name[$req["\x5f\151\144"]] = $info; goto t31Sh; MrK3q: if ($req["\146\162\157\155\155\x6f\x64\x75\154\145"] === "\165\x73\145\x72\x73") { goto en7OV; } goto MQlLi; OeSj3: Ia48T: goto TrxFC; Q6br2: en7OV: goto Lm5_Y; g6T5j: goto Ia48T; goto Q6br2; nIXRh: $info = ''; goto MrK3q; t31Sh: KsCT3: goto LP9w8; MQlLi: $info = $req["\x6e\x61\155\145"]; goto g6T5j; LP9w8: } goto Js1Qo; peUko: $this->load->model("\x73\145\164\x74\151\x6e\147\163\57\143\157\x6e\x66\151\x67\164\151\x63\x6b\145\164\x73\57\143\x6f\x6e\146\x69\147\x63\141\x74\x65\x67\x6f\162\x79\x74\x69\143\153\x65\164\137\x6d"); goto R9A6u; r1gVU: $this->load->model("\x73\x65\162\x76\151\x63\145\x73\x2f\x74\x69\x63\x6b\x65\x74\163\57\x72\x65\161\x75\x65\x73\164\145\162\163\x5f\155"); goto r5Aj6; MZwap: BAXDA: goto XvAej; lHLxZ: $this->mongodatasourceresult->addFilterRequest($listC, $request); goto MZwap; vwQXc: $activeView = false; goto TAHjS; FIpIN: BCd7g: goto g1O56; g10bH: $tempSelect = []; goto Ndv1w; JBWQ9: if (!property_exists($request, "\146\x69\154\x74\145\x72")) { goto z45Yf; } goto ctK7F; Iwjol: n28JE: goto dnD3N; skZd5: $this->load->model("\163\x65\164\164\x69\x6e\x67\163\x2f\x63\165\x73\x74\x6f\x6d\146\x69\145\x6c\144\x2f\x66\x69\x65\x6c\x64\x67\x72\x6f\165\160\x5f\x6d"); goto whnmt; ca2yB: $dataShared = $this->configcategoryticket_m->db_alloptions(["\x74\x65\170\164", "\x73\150\141\x72\x65", "\x73\x68\x61\x72\x65\141\x6c\154", "\156\157\164\163\x68\141\162\x65", "\x68\x61\163\x43\150\151\x6c\x64\x72\145\156", "\x70\141\x72\x65\x6e\164\x5f\x69\144", "\164\171\160\x65"], ["\x77\x68\145\162\x65\137\x6e\151\x6e" => ["\x6e\157\x74\163\x68\141\162\145" => $listbu], "\157\162\137\x77\150\145\162\145" => ["\x73\x68\141\162\145" => ["\x24\x69\156" => $listbu], "\x73\150\x61\x72\145\141\154\154" => 1], "\167\x68\145\162\145\137\156\145" => ["\x64\145\x6c\145\x74\x65" => 1]]); goto rhkSD; uAvUs: $hasFilterTicketEnd = false; goto gSgSx; CD8w2: if (!($countcondition === 0)) { goto MiG1X; } goto JBWQ9; BwzgZ: $returntype = "\146\151\x6c\x74\145\x72\x5f\143\162\x65\x61\x74\145\x64\142\171\155\145\141\156\144\163\165\142\142\x75"; goto Uy4TV; XlRAD: echo json_encode($result); goto ayNgS; SO2rf: z6L4Z: goto a7k_V; l01j5: $filter_fieldstatus = json_decode(json_encode($filter_fieldstatus), true); goto hGeF0; O0pee: $result = $this->tickets_library->db_read($request, $select); goto peUko; rhkSD: $listCategory = []; goto ggiNg; an3U5: $this->load->model("\163\x65\x74\x74\151\156\x67\x73\57\x63\x6f\x6e\x66\151\x67\164\x69\143\x6b\x65\164\x73\57\143\x6f\x6e\x66\x69\147\x63\x61\x74\x65\x67\x6f\x72\171\x74\x69\143\x6b\x65\164\137\155"); goto ca2yB; L2qZa: $owner = $this->data["\x69\163\117\x77\156\145\162"]; goto vwQXc; Xn4sj: foreach ($group as $group) { $tempSelect[] = $group["\x61\x6c\151\x61\x73"]; fmo9q: } goto Rr70z; pO9vj: TR_Cq: goto i2LdW; dnD3N: goto BCd7g; goto VEb1R; aJpsH: mGT3K: goto y2irX; szLVV: eMhkH: goto iG5op; i2LdW: goto SEbgQ; goto fP61H; NNMQ6: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\x72\x65\161\x75\x65\x73\164\145\x72\x5f\151\144", "\145\x71", $request->ticket_requester_id), $request); goto pO9vj; fP61H: gs2f5: goto B2adQ; SFQxP: $group = $this->fieldgroup_m->db_alloptions(["\x6e\141\x6d\x65", "\x61\154\151\141\163", "\147\x72\157\x75\160\x69\144", "\143\x6f\x6c\x61\x64\x64", "\163\x68\x6f\167", "\155\x6f\x64\165\154\145", "\146\151\x65\x6c\144\141\x6c\x6c", "\151\x63\157\x6e", "\x68\x61\163\120\x61\x72\145\x6e\164", "\x63\x72\145\141\164\x65\x64", "\x6c\141\163\x74\137\155\x6f\144\151\146\x69\x65\144"], $optionSort); goto Xn4sj; cvMJ7: if (!property_exists($request, "\164\151\143\x6b\x65\x74\137\162\x65\161\165\x65\163\x74\145\x72\137\x69\144")) { goto TR_Cq; } goto NNMQ6; x5hJ9: $listC = $this->mongodatasourceresult->initFilterWithSub("\x6f\162", [$this->mongodatasourceresult->initFilter("\143\141\x74\x65\x67\x6f\x72\171", "\x69\x6e", $listCategory)]); goto lHLxZ; UlEcb: $arr_requesterid = array_column($result["\x64\x61\164\141"], "\x72\145\161\x75\145\163\x74\x65\162\x5f\x69\144"); goto KW1vj; r5Aj6: $requesters_name = []; goto D8p2l; Fbyx1: RRgKM: goto k1UhU; UJ8l0: WV1Nh: goto J3Fzx; gs6Ov: TW2kT: goto PzsiH; wRuat: if (empty($requesters)) { goto He8CJ; } goto MjKW1; VEb1R: caAcG: goto Ql6eH; Uy4TV: f6X4h: goto oWwMY; ieGoc: CuWsY: goto lBp31; NNsMI: RiZ9w: goto XlRAD; XvAej: QLojG: goto O0pee; LXTF_: if (!property_exists($request, "\151\x64\164\157\x70\151\x63")) { goto S6hdv; } goto taB0Q; bTZkL: $returntype = "\x66\151\154\x74\x65\x72"; goto IrmcV; gSgSx: if (!(property_exists($request, "\x66\151\154\x74\x65\162") && property_exists($request->filter, "\x66\151\154\x74\x65\162\x73"))) { goto yfq2f; } goto rtsWS; P_cIe: if (!(property_exists($request, "\x77\146\64\x78\137\143\162\x65\141\x74\145\x64\x62\x79\155\145\x61\156\144\x73\x75\x62\142\x75") && $request->wf4x_createdbymeandsubbu === true)) { goto f6X4h; } goto BwzgZ; D8p2l: if (empty($result["\x64\x61\x74\x61"])) { goto TW2kT; } goto UlEcb; O3kzE: $this->load->model("\163\x65\162\x76\x69\143\145\163\57\x74\x69\x63\x6b\x65\x74\163\x2f\x74\151\143\x6b\x65\x74\163\137\x6d"); goto ZtwuK; k1UhU: if (!(property_exists($request, "\x77\146\x34\170\137\x6e\157\x71\165\145\162\171\x70\x65\x72\x6d\151\x73\163\x69\157\x6e") && $request->wf4x_noquerypermission === true)) { goto lwGTF; } goto U7qol; J3Fzx: if (!(!empty($dataShared) && !property_exists($request, "\155\x6f\144\165\154\x65"))) { goto BAXDA; } goto x5hJ9; iEl62: $select = array_merge($tempSelect, $selectField); goto nNsiy; iG5op: array_push($listbu, $userid); goto an3U5; h6LFQ: $listCheck = $this->mongodatasourceresult->initFilterWithSub("\x6f\162", [$this->mongodatasourceresult->initFilter("\x61\x63\143\157\165\156\164\137\162\145\154\x61\164\x65\144", "\145\x71", $request->ticket_requester_id), $this->mongodatasourceresult->initFilter("\162\145\161\x75\x65\163\164\145\x72\x5f\151\144", "\145\161", $request->ticket_requester_id)]); goto cBKlK; ctK7F: unset($request->filter); goto PpUel; lACEZ: $returntype = "\146\151\154\164\145\162\137\160\x72\x6f\143\x65\x73\163\151\x6e\x67\x62\x79\x73\x75\142\x62\165"; goto XYtlu; wz_eK: header("\103\x6f\156\x74\145\x6e\x74\x2d\124\x79\160\145\x3a\40\141\160\x70\x6c\151\x63\141\x74\151\x6f\156\x2f\152\x73\x6f\x6e"); goto E1pVr; ajkxB: $returntype = "\146\151\x6c\164\x65\x72\137\x6d\151\156\x65\164\151\143\x6b\145\164"; goto aJpsH; t5JCO: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\163\157\x75\x72\143\145\151\x64", "\x65\161", $request->idtopic), $request); goto NX_E7; hGeF0: foreach ($request->filter->filters as $value) { goto o2oKd; p9BrX: Jq9N1: goto ahu90; ahu90: FIBjW: goto YGBGM; qmToj: if (!($exist_status !== false)) { goto Jq9N1; } goto Fnmtz; Fnmtz: $hasFilterTicketEnd = true; goto p9BrX; o2oKd: $arrayTemp = json_decode(json_encode($value), true); goto kFqEH; kFqEH: $exist_status = strpos(json_encode($arrayTemp), "\x22\x66\x69\x65\x6c\x64\x22\72\42\x73\x74\141\x74\165\x73\42"); goto qmToj; YGBGM: } goto SO2rf; E1pVr: $request = json_decode(file_get_contents("\160\x68\x70\72\57\57\151\156\x70\165\x74")); goto O3kzE; wUiba: $this->mongodatasourceresult->addFilterRequest($this->mongodatasourceresult->initFilter("\x73\164\x61\164\165\163", "\x6e\x65\161", "\x45\x6e\x64"), $request); goto Fbyx1; ayNgS: } public function getPublicField($keyObject, $object) { goto KAdbx; Zyi7b: return ["\160\x68\x6f\156\x65\x63\x75\x73\164\x6f\155" => $phonecustom, "\x65\x6d\141\x69\x6c\143\x75\163\x74\157\155" => $emailcustom]; goto xmcFf; Ko_vW: if (!(isset($keyObject["\160\150\157\x6e\145"]) && is_array($keyObject["\x70\x68\x6f\x6e\145"]) && count($keyObject["\160\x68\157\x6e\x65"]) > 0)) { goto nQEMy; } goto fwHXA; x3FwN: foreach ($keyObject["\145\x6d\x61\x69\154"] as $valPublicEmail) { goto x5Gcg; x5Gcg: if (!isset($object[$valPublicEmail])) { goto KzTMf; } goto M85LX; n1dMO: vWMnk: goto ANQUG; UvyBO: KzTMf: goto TIhcJ; lrwcW: $emailcustom = !empty($emailcustom) ? $emailcustom . "\54\x20" . $valueobject : $valueobject; goto KoFhg; Hv5De: goto UySOl; goto n1dMO; YgXRc: $emailcustom = !empty($emailcustom) ? $emailcustom . "\54\x20" . $string_email : $string_email; goto mm7Zb; ANQUG: $string_email = implode("\54\x20", $valueobject); goto YgXRc; TIhcJ: nvaK6: goto mWzoF; M85LX: $field = explode("\56", $valPublicEmail); goto iSOfL; nUwqI: if (!(is_string($valueobject) && !empty($valueobject))) { goto Ae0yv; } goto lrwcW; KoFhg: Ae0yv: goto Hv5De; iSOfL: $valueobject = is_array($field) && count($field) > 1 ? @$object[$field[0]][$field[1]] : @$object[$field[0]]; goto Eet61; mm7Zb: UySOl: goto UvyBO; Eet61: if (is_array($valueobject) && count($valueobject) > 0) { goto vWMnk; } goto nUwqI; mWzoF: } goto gKEva; XNi5u: nQEMy: goto hmapd; gKEva: pwXmX: goto Zk57s; VUxAY: zhUOH: goto XNi5u; hmapd: if (!(isset($keyObject["\145\155\141\151\154"]) && is_array($keyObject["\145\x6d\x61\x69\x6c"]) && count($keyObject["\145\x6d\141\151\154"]) > 0)) { goto YiM7j; } goto x3FwN; Zk57s: YiM7j: goto Zyi7b; fwHXA: foreach ($keyObject["\x70\150\x6f\x6e\145"] as $valPublicPhone) { goto HFpXd; zEcKQ: yXXHu: goto nSbLz; c2mvY: if (!(is_string($valueobject) && !empty($valueobject))) { goto yXXHu; } goto Wpe2w; XxCEv: XdDw8: goto ANHcg; LGjNF: $valueobject = is_array($field) && count($field) > 1 ? @$object[$field[0]][$field[1]] : @$object[$field[0]]; goto pQCgs; Wpe2w: $phonecustom = !empty($phonecustom) ? $phonecustom . "\x2c\40" . $valueobject : $valueobject; goto zEcKQ; vMP_o: $phonecustom = !empty($phonecustom) ? $phonecustom . "\54\x20" . $string_phone : $string_phone; goto Bopwv; nSbLz: goto TEjpn; goto c7utI; xElBx: $string_phone = implode("\x2c\40", $valueobject); goto vMP_o; Bopwv: TEjpn: goto XxCEv; c7utI: JyrWi: goto xElBx; pQCgs: if (is_array($valueobject) && count($valueobject) > 0) { goto JyrWi; } goto c2mvY; HFpXd: $field = explode("\x2e", $valPublicPhone); goto LGjNF; ANHcg: } goto VUxAY; warR3: $emailcustom = ''; goto Ko_vW; KAdbx: $phonecustom = ''; goto warR3; xmcFf: } public function getWorkingHour() { goto zrJ7V; p1wuA: echo json_encode($workinghour); goto hZoTi; zrJ7V: $this->load->model("\x73\x65\164\164\x69\x6e\x67\163\x2f\147\x65\156\145\162\x61\154\x63\x6f\156\x66\151\147\57\167\157\x72\153\151\x6e\x67\x68\157\165\162\x73\x5f\x6d"); goto aZKQ7; aZKQ7: $workinghour = $this->workinghours_m->db_all([]); goto p1wuA; hZoTi: } public function getWorkingHourByid() { goto SaLyS; RGbd1: $this->load->model("\163\145\164\164\151\156\x67\163\x2f\x67\145\x6e\x65\x72\141\x6c\143\x6f\x6e\146\x69\x67\57\x77\157\162\x6b\151\156\x67\150\157\165\x72\163\x5f\155"); goto vP9AV; Ye_W4: echo json_encode($workinghour); goto W5b_B; SaLyS: header("\x43\157\156\x74\145\x6e\164\55\124\x79\160\145\x3a\x20\141\x70\160\154\151\143\x61\x74\x69\x6f\156\x2f\x6a\x73\x6f\x6e"); goto FytMp; FytMp: $request = json_decode(file_get_contents("\x70\x68\x70\x3a\57\x2f\x69\x6e\160\165\164")); goto RGbd1; vP9AV: $workinghour = $this->workinghours_m->db_getbyid($request->workingday); goto Ye_W4; W5b_B: } private function _toStringNoUTF8($str) : string { goto iARUK; UmKhJ: foreach ($unicode as $nonUnicode => $uni) { $str = preg_replace("\57\x28{$uni}\x29\x2f\x69", $nonUnicode, $str); ypNQ1: } goto lRl2C; GAx6R: $str = strtolower($str); goto m7yo_; lRl2C: qrtJ9: goto u01Ak; u01Ak: $str = preg_replace("\x2f\x5b\136\x41\x2d\x5a\141\x2d\x7a\x30\x2d\x39\134\x2d\x5f\x20\56\135\57", '', $str); goto GAx6R; iARUK: $unicode = array("\x61" => "\xc3\241\174\xc3\xa0\174\xe1\xba\xa3\174\xc3\243\x7c\341\xba\xa1\x7c\304\x83\174\341\272\xaf\x7c\341\xba\xb7\x7c\341\xba\261\174\xe1\272\263\174\341\xba\xb5\x7c\303\xa2\174\xe1\272\xa5\174\xe1\272\247\174\xe1\xba\251\174\xe1\272\xab\x7c\341\272\xad\x7c\303\201\x7c\xc3\200\174\xe1\272\xa2\174\303\203\174\341\272\240\x7c\xc4\202\174\341\xba\256\x7c\341\xba\266\174\xe1\272\xb0\x7c\341\272\262\174\xe1\xba\264\174\xc3\x82\x7c\xe1\272\244\174\341\xba\xa6\174\341\272\250\174\xe1\xba\xaa\x7c\341\272\xac", "\x64" => "\304\x91\x7c\xc4\220", "\145" => "\303\251\x7c\xc3\xa8\174\341\xba\xbb\174\341\272\275\x7c\341\272\xb9\174\303\252\x7c\341\272\277\174\xe1\xbb\201\174\341\273\x83\174\xe1\xbb\205\x7c\341\xbb\x87\x7c\xc3\x89\x7c\303\x88\x7c\341\xba\272\174\341\272\274\x7c\xe1\xba\270\174\303\x8a\x7c\xe1\272\xbe\x7c\341\xbb\x80\174\341\xbb\x82\174\341\273\204\x7c\341\xbb\x86", "\x69" => "\xc3\xad\174\xc3\254\x7c\341\xbb\211\x7c\xc4\251\x7c\xe1\273\213\x7c\303\x8d\x7c\xc3\214\x7c\341\273\210\x7c\xc4\xa8\x7c\xe1\273\212", "\x6f" => "\xc3\xb3\174\xc3\262\174\xe1\xbb\217\x7c\303\265\x7c\xe1\xbb\215\x7c\303\264\x7c\xe1\xbb\221\174\341\273\x93\x7c\341\273\225\174\xe1\273\x97\x7c\xe1\xbb\x99\x7c\306\xa1\x7c\xe1\273\x9b\x7c\xe1\273\x9d\x7c\xe1\273\x9f\x7c\xe1\273\241\x7c\341\xbb\xa3\174\xc3\x93\x7c\xc3\222\x7c\341\273\216\174\xc3\x95\x7c\xe1\xbb\x8c\x7c\303\224\174\341\273\220\174\xe1\xbb\x92\x7c\xe1\273\x94\x7c\341\xbb\x96\x7c\341\273\230\174\306\xa0\x7c\xe1\xbb\232\x7c\xe1\xbb\234\174\xe1\xbb\236\174\341\xbb\240\x7c\xe1\273\xa2", "\165" => "\303\xba\174\xc3\271\174\341\xbb\247\174\xc5\xa9\174\xe1\273\245\x7c\306\xb0\x7c\xe1\273\251\174\xe1\273\253\x7c\xe1\273\xad\174\xe1\273\257\x7c\341\273\xb1\174\xc3\232\x7c\xc3\x99\x7c\xe1\273\xa6\x7c\305\xa8\174\xe1\273\244\x7c\306\257\174\xe1\273\xa8\x7c\341\xbb\252\174\xe1\273\xac\174\341\xbb\256\x7c\341\273\xb0", "\x79" => "\xc3\275\x7c\341\273\263\x7c\341\273\xb7\174\341\xbb\271\174\xe1\xbb\xb5\x7c\303\x9d\x7c\341\273\xb2\174\341\273\266\174\341\273\xb8\x7c\341\xbb\xb4"); goto UmKhJ; m7yo_: return $str; goto KpKtB; KpKtB: } private function _updateStatusField($fil, $arrayLanguage) { goto zW3ly; HhOwC: O8ZRN: goto qzXFn; qzXFn: MIvdh: goto gPVkY; vZTe6: IAChW: goto HtuJs; MTyee: foreach ($fil as $item) { $this->_updateStatusField($item, $arrayLanguage); HSa5A: } goto ZvIKT; rsjLJ: wisq5: goto mT1uk; zW3ly: if (is_object($fil)) { goto eUu4U; } goto YbYO6; NYq0c: eUu4U: goto eNsTH; UaF5_: $searchString = $this->_toStringNoUTF8($fil->value); goto IP0ls; ZvIKT: GvlmS: goto vZTe6; YbYO6: if (!is_array($fil)) { goto IAChW; } goto MTyee; HtuJs: goto XglKr; goto NYq0c; mNo96: foreach ($fil->filters as $filter) { $this->_updateStatusField($filter, $arrayLanguage); qKEDr: } goto HhOwC; gPVkY: XglKr: goto Ai_2m; mT1uk: if (!(isset($fil->filters) && is_array($fil->filters))) { goto MIvdh; } goto mNo96; eNsTH: if (!(isset($fil->field) && $fil->field === "\x73\x74\141\164\165\x73")) { goto wisq5; } goto UaF5_; Eniqk: KiwAH: goto rsjLJ; IP0ls: foreach ($arrayLanguage as $key => $value) { goto M_12t; dxskt: $fil->value = $arrayLanguage[$key]; goto yC1ck; DPQIF: YGQZv: goto zTNi9; yC1ck: $fil->valueChecking = $arrayLanguage[$key]; goto nLKO1; zTNi9: NHi10: goto ihDZU; M_12t: $similarity = similar_text(mb_strtolower($this->_toStringNoUTF8($key)), mb_strtolower($searchString), $percent); goto WPF8G; WPF8G: if (!($percent > 70)) { goto YGQZv; } goto dxskt; nLKO1: goto KiwAH; goto DPQIF; ihDZU: } goto Eniqk; Ai_2m: } }

Function Calls

None

Variables

None

Stats

MD5 a6b65811038ad1161e89f3e62df2aa7a
Eval Count 0
Decode Time 256 ms