<?php
/*
Generated by OutputBooks Team
*/

defined("\x42\x41\123\105\120\x41\x54\x48") or exit("\x4e\x6f\40\x64\x69\162\145\143\x74\40\x73\x63\162\151\160\x74\40\x61\143\143\x65\x73\163\x20\x61\x6c\x6c\157\x77\x65\144");
class Obo extends MY_Controller
{
    public function __construct()
    {
        parent::__construct();
        $this->load->model("\157\x62\157\115\157\144\x65\154");
    }
    public function listing()
    {
        goto qze1Z;
        IYNkN:
        $result = $this->oboModel->getlist($data);
        goto U2xbU;
        XfCZd:
        $this->response->write();
        goto geeUP;
        geeUP:
        return true;
        goto ETCLI;
        U2xbU:
        $this->response->set_data("\151\x74\145\x6d\163", $result, true);
        goto XfCZd;
        T_dSf:
        $data["\160\x61\x67\145"] = !empty($data["\160\x61\x67\x65"]) ? $data["\x70\x61\147\x65"] : 1;
        goto IYNkN;
        apxQy:
        $data = $this->request->post();
        goto T_dSf;
        qze1Z:
        valid_permission("\122\x45\103", 1);
        goto apxQy;
        ETCLI:
    }
    public function details($id)
    {
        goto rpFt4;
        bi0Wl:
        $this->response->write();
        goto tGe1e;
        Hb3Ev:
        $this->response->set_data($details);
        goto bi0Wl;
        GCtTV:
        $details = $this->oboModel->get_details($id);
        goto keD8U;
        rpFt4:
        valid_permission("\x52\105\103", empty($id) ? 2 : 3);
        goto GCtTV;
        keD8U:
        if (empty($details)) {
            goto Le2en;
            Le2en:
            $this->response->success("\116\x6f\40\104\141\x74\141\40\x46\157\x75\156\x64");
            goto GNEhs;
            GNEhs:
            $this->response->write();
            goto HWPra;
            HWPra:
            return false;
            goto AZcbJ;
            AZcbJ:
        }
        goto Hb3Ev;
        tGe1e:
        return true;
        goto mKqoD;
        mKqoD:
    }
    public function actions()
    {
        goto sfOux;
        sfOux:
        $actions = $this->oboModel->actions();
        goto FYaRW;
        ZPhIe:
        $this->response->write();
        goto U3sT7;
        U3sT7:
        return true;
        goto GDIcp;
        FYaRW:
        if (!empty($actions)) {
            $this->response->set_data($actions);
        }
        goto ZPhIe;
        GDIcp:
    }
    public function save()
    {
        goto MQ5aw;
        xmbTl:
        $this->response->write();
        goto QOrpy;
        MQ5aw:
        $_POST = $data = $this->request->post();
        goto whQ3M;
        QbDTD:
        if ($id = $this->oboModel->save($data)) {
            $this->response->success("\123\125\103\x43\x45\123\x53\x5f\123\101\126\x45");
            $this->response->set_data("\x69\x64", $id);
        }
        goto xmbTl;
        whQ3M:
        $this->load->library("\x66\157\162\x6d\x5f\166\x61\154\x69\144\x61\x74\151\x6f\x6e");
        goto qF5J8;
        YxxCi:
        if ($this->form_validation->run() == FALSE) {
            goto ZOXTw;
            ZOXTw:
            $this->response->error(validation_errors());
            goto vWJM6;
            vWJM6:
            $this->response->write();
            goto e12Hw;
            e12Hw:
            return false;
            goto rzpgi;
            rzpgi:
        }
        goto QbDTD;
        Jnn76:
        $this->form_validation->set_rules("\x66\162\x65\x71\x54\171\160\x65", "\122\x65\143\165\162\162\151\156\147\40\146\x72\145\161\165\145\x6e\x63\171", "\164\x72\x69\x6d\174\162\145\x71\x75\151\x72\145\x64");
        goto YxxCi;
        QOrpy:
        return true;
        goto SyRXY;
        qF5J8:
        $this->form_validation->set_rules("\156\141\x6d\145", "\x4a\157\142\40\x6e\x61\155\145", "\x74\162\x69\x6d\x7c\162\145\x71\x75\x69\162\x65\144");
        goto Jnn76;
        SyRXY:
    }
    public function save_settings()
    {
        goto M3xUq;
        M3xUq:
        $_POST = $data = $this->request->post();
        goto nlZBd;
        nlZBd:
        if ($res = $this->oboModel->save_settings($data)) {
            $this->response->success("\123\125\103\x43\105\123\123\x5f\x53\101\x56\x45");
            $this->response->set_data($res);
        }
        goto ChDaj;
        ChDaj:
        $this->response->write();
        goto kYwHR;
        kYwHR:
        return true;
        goto Gb7Fo;
        Gb7Fo:
    }
    public function delete($id)
    {
        goto nnGTR;
        oH7ET:
        if ($res) {
            goto vPtGT;
            vPtGT:
            $this->response->success("\104\x65\x6c\x65\x74\145\144\x20\123\x75\143\143\145\163\163\x66\165\x6c\x6c\171");
            goto i30eI;
            vAQ_w:
            return true;
            goto zseW3;
            i30eI:
            $this->response->write();
            goto vAQ_w;
            zseW3:
        }
        goto t_oG9;
        uCrzH:
        $res = $this->oboModel->delete($id);
        goto oH7ET;
        t_oG9:
        $this->response->error();
        goto N3Foc;
        N3Foc:
        $this->response->write();
        goto SNlAk;
        nnGTR:
        valid_permission("\122\x45\103", 4);
        goto uCrzH;
        SNlAk:
        return false;
        goto jqCWy;
        jqCWy:
    }
    public function getJobDetails($actCode = '')
    {
        goto qD6R2;
        OIKvb:
        $this->response->set_data($details);
        goto V9SMk;
        YxqDI:
        if (!empty($details["\141\x63\x74\x43\x6f\156\x66\x69\x67"])) {
            $details["\141\143\x74\103\x6f\156\x66\x69\x67"] = json_decode($details["\x61\143\164\x43\157\x6e\x66\151\x67"]);
        }
        goto OIKvb;
        qD6R2:
        $details = $this->oboModel->get_job_details($actCode);
        goto nNQM9;
        nNQM9:
        if (empty($details)) {
            goto onTvA;
            onTvA:
            $this->response->success('');
            goto uF3ty;
            uF3ty:
            $this->response->write();
            goto EQe_J;
            EQe_J:
            return false;
            goto EL9Wx;
            EL9Wx:
        }
        goto YxqDI;
        V9SMk:
        $this->response->write();
        goto WgTVj;
        WgTVj:
        return true;
        goto YkL4e;
        YkL4e:
    }
    public function getLogList()
    {
        goto Roxku;
        qGlqB:
        return true;
        goto VVdJM;
        kn_m6:
        $this->response->set_data($details);
        goto rnU2f;
        rnU2f:
        $this->response->write();
        goto qGlqB;
        ZiZJx:
        if (empty($details)) {
            goto SNMij;
            SNMij:
            $this->response->success("\x4e\157\x20\x44\141\x74\141\x20\106\x6f\165\x6e\x64");
            goto tODFw;
            tODFw:
            $this->response->write();
            goto x28iT;
            x28iT:
            return false;
            goto IcjRe;
            IcjRe:
        }
        goto kn_m6;
        Roxku:
        $data = $this->request->post();
        goto oROuZ;
        oROuZ:
        $details = $this->oboModel->get_Log_list($data);
        goto ZiZJx;
        VVdJM:
    }
    public function trigger()
    {
        goto rujGc;
        dGx0H:
        $this->response->write();
        goto VrrMn;
        VrrMn:
        return false;
        goto QOCIL;
        nZDnE:
        $this->response->error("\117\102\117\x3a\40" . (empty($this->oboModel->message) ? "\106\x61\x69\154\145\x64" : $this->oboModel->message));
        goto dGx0H;
        rujGc:
        $res = $this->oboModel->trigger();
        goto bLuNi;
        bLuNi:
        if ($res) {
            goto qela4;
            qela4:
            $this->response->success("\x4f\102\117\x3a\40" . (empty($this->oboModel->message) ? "\124\162\x69\x67\x67\x65\162\x65\144\x20\123\165\x63\143\145\x73\x73\x66\165\x6c\x6c\x79" : $this->oboModel->message));
            goto JuCY_;
            m7YfA:
            return true;
            goto J0dOm;
            JuCY_:
            $this->response->write();
            goto m7YfA;
            J0dOm:
        }
        goto nZDnE;
        QOCIL:
    }
}
