<?php
/*
Generated by OutputBooks Team
*/

defined("\102\101\123\x45\x50\101\124\x48") or exit("\x4e\157\40\144\x69\162\x65\143\164\x20\x73\x63\162\151\x70\164\x20\141\x63\x63\x65\x73\x73\40\141\154\x6c\x6f\x77\x65\x64");
class Storage_transactions extends MY_Controller
{
    public function __construct()
    {
        goto E3yhA;
        E3yhA:
        parent::__construct();
        goto WzoMf;
        kd61u:
        $this->cId = get_company("\x69\144");
        goto EGy7q;
        WzoMf:
        $this->load->model("\x53\164\x6f\x72\141\x67\x65\x5f\x54\162\x61\x6e\163\x61\143\164\x69\157\x6e\163\115\x6f\144\x65\154");
        goto kd61u;
        EGy7q:
    }
    public function get_list()
    {
        goto HUoLH;
        w3gSK:
        return true;
        goto H2wam;
        N1mO3:
        if (!empty($result["\151\x74\x65\x6d\x73"])) {
            $this->response->set_data("\151\164\145\x6d\163", $result["\151\x74\145\155\x73"], true);
            unset($result["\151\164\145\x6d\x73"]);
        }
        goto K7lR0;
        oW4Co:
        $this->response->write();
        goto w3gSK;
        K7lR0:
        $this->response->set_data($result);
        goto oW4Co;
        HUoLH:
        $data = $this->request->post();
        goto sYiga;
        sYiga:
        $result = $this->Storage_TransactionsModel->getList($data);
        goto N1mO3;
        H2wam:
    }
    public function save()
    {
        goto UevvN;
        koWh5:
        if (!($res = $this->Storage_TransactionsModel->save($data))) {
            goto zWx6j;
            zWx6j:
            $this->response->error($this->Storage_TransactionsModel->message ? $this->Storage_TransactionsModel->message : "\x45\122\122\117\x52\x5f\123\101\x56\x45");
            goto UE1EN;
            AQYtz:
            return false;
            goto FFbIy;
            UE1EN:
            $this->response->write();
            goto AQYtz;
            FFbIy:
        }
        goto P8xVu;
        yOYfo:
        $this->response->set_data($res);
        goto MDvIq;
        P8xVu:
        $this->response->success("\123\125\x43\103\x45\x53\x53\137\123\101\126\x45");
        goto yOYfo;
        B39QF:
        return true;
        goto BV0mB;
        MDvIq:
        $this->response->write();
        goto B39QF;
        UevvN:
        $_POST = $data = $this->request->post();
        goto koWh5;
        BV0mB:
    }
    public function delete()
    {
        goto IhfQz;
        MkmuK:
        $this->response->set_data($res);
        goto NpPi5;
        NpPi5:
        $this->response->write();
        goto mmsd5;
        IhfQz:
        $_POST = $data = $this->request->post();
        goto NJ1zZ;
        mmsd5:
        return true;
        goto EAyJO;
        NJ1zZ:
        if (!($res = $this->Storage_TransactionsModel->delete($data))) {
            goto BdTOV;
            cefkd:
            $this->response->write();
            goto X3204;
            X3204:
            return false;
            goto UhGB_;
            BdTOV:
            $this->response->error($this->Storage_TransactionsModel->message ? $this->Storage_TransactionsModel->message : "\x45\x52\122\117\122\x5f\104\105\114\x45\124\x45");
            goto cefkd;
            UhGB_:
        }
        goto bicwk;
        bicwk:
        $this->response->success("\123\x55\x43\x43\105\123\123\x5f\104\105\114\105\x54\x45");
        goto MkmuK;
        EAyJO:
    }
}
