/* Decoded by unphp.net */ "Permission denied.")); exit; fC: $Ce = sanitize_text_field($_POST["task"]); switch ($Ce) { case "mo_api_fetch_reports": $this->mo_api_fetch_reports(); goto So; case "mo_api_save_report": $this->mo_api_save_report($_POST["payload"]); goto So; case "mo_api_delete_report": $this->mo_api_delete_report($_POST["payload"]); goto So; } qR: So: } private function mo_api_fetch_reports() { $xS = wpWrapper::mo_api_get_option(pluginConstants::pbi_data); if (!empty($xS)) { goto JM; } $xS = []; JM: wp_send_json_success(array_values($xS)); } private function mo_api_save_report($ot) { $xS = wpWrapper::mo_api_get_option(pluginConstants::pbi_data); if (!empty($xS)) { goto S5; } $xS = []; S5: if (!isset($xS[$ot["ID"]])) { goto k8; } unset($xS[$ot["ID"]]); k8: $xS[$ot["ID"]] = $ot; wpWrapper::mo_api_set_option(pluginConstants::pbi_data, $xS); wp_send_json_success($ot); } private function mo_api_delete_report($ot) { $xS = wpWrapper::mo_api_get_option(pluginConstants::pbi_data); if (!empty($xS)) { goto F3; } $xS = []; F3: unset($xS[$ot["ID"]]); wpWrapper::mo_api_set_option(pluginConstants::pbi_data, $xS); wp_send_json_success($ot["ID"]); } } ?>