<?php
/*
Generated by OutputBooks Team
*/

defined("\102\101\123\x45\120\101\124\110") or exit("\116\157\40\144\x69\162\x65\143\164\x20\163\143\x72\151\160\x74\x20\x61\143\x63\x65\x73\x73\x20\x61\154\154\x6f\167\x65\x64");
class Points extends MY_Controller
{
    public function __construct()
    {
        goto RYhmw;
        AtUNU:
        $this->load->model("\160\157\x69\x6e\164\x73\x4d\x6f\144\x65\154");
        goto R_qRq;
        RYhmw:
        parent::__construct();
        goto DgS6N;
        DgS6N:
        $this->cId = get_company("\151\144");
        goto AtUNU;
        R_qRq:
        $this->isPointMod = sal_mod_active(POINTS_MOD) ? true : false;
        goto WFqMR;
        WFqMR:
    }
    public function index()
    {
        $this->load->page("\x68\157\x6d\x65");
    }
    public function settings()
    {
        goto f6cu0;
        WJe7H:
        return true;
        goto ruR5r;
        eQvzD:
        $this->response->write();
        goto WJe7H;
        LTBJR:
        $this->response->set_data($result);
        goto eQvzD;
        DxS2G:
        $result = $this->pointsModel->getSettings($data);
        goto LTBJR;
        f6cu0:
        $data = $this->request->post();
        goto DxS2G;
        ruR5r:
    }
    public function save()
    {
        goto R2qsq;
        WpFkL:
        $tmp = $this->users->set_default_company($this->cId);
        goto mSIqR;
        YgroS:
        $this->response->success("\123\141\166\145\144\x20\123\165\x63\143\x65\163\163\146\x75\x6c\154\171");
        goto nFQAO;
        mSIqR:
        $this->response->write();
        goto EQZMv;
        R2qsq:
        $data = $this->request->post();
        goto l2uV3;
        l2uV3:
        $result = $this->pointsModel->saveSettings($data);
        goto YgroS;
        nFQAO:
        if (!empty($result)) {
            $this->response->set_data($result);
        }
        goto PSYM6;
        PSYM6:
        $this->load->model("\165\163\x65\x72\163");
        goto WpFkL;
        EQZMv:
        return true;
        goto EJgqt;
        EJgqt:
    }
    public function cal_points()
    {
        goto QBUpN;
        Iqisr:
        return true;
        goto Ctvhg;
        cfGDv:
        $result = $this->pointsModel->cal_points($data);
        goto yg7Jf;
        But_7:
        $this->response->write();
        goto Iqisr;
        QBUpN:
        $data = $this->request->post();
        goto cfGDv;
        RGYlJ:
        if (!empty($result)) {
            $this->response->set_data($result);
        }
        goto But_7;
        yg7Jf:
        $this->response->success("\123\141\166\145\144\x20\123\x75\143\143\x65\163\163\x66\165\154\154\171");
        goto RGYlJ;
        Ctvhg:
    }
    public function reedem_value()
    {
        goto DIH1C;
        aa9h2:
        $res = $this->pointsModel->reedem_value($data);
        goto DpsbQ;
        DIH1C:
        $data = $this->request->post();
        goto aa9h2;
        DpsbQ:
        $this->response->set_data("\160\126\141\x6c\165\x65", $res);
        goto S1mPS;
        S1o1q:
        return true;
        goto wX2ix;
        S1mPS:
        $this->response->write();
        goto S1o1q;
        wX2ix:
    }
}
