<?php
/*
Generated by OutputBooks Team
*/

defined("\x42\x41\123\x45\x50\x41\124\x48") or exit("\116\x6f\40\144\151\162\145\x63\164\40\163\143\x72\x69\160\164\40\x61\143\143\145\163\x73\x20\x61\x6c\x6c\x6f\x77\145\x64");
class Device extends MY_Controller
{
    public function __construct()
    {
        parent::__construct();
        $this->load->model("\x64\x65\x76\x69\143\145\115\x6f\x64\145\154");
    }
    public function listing($page = 1)
    {
        goto o31yT;
        Bpdck:
        $data["\160\141\147\145"] = $page;
        goto x88Yk;
        utr5c:
        return true;
        goto w6qpi;
        djXfx:
        $this->response->success();
        goto TGQI1;
        o31yT:
        $data = $this->request->post();
        goto Bpdck;
        romLG:
        $this->response->write();
        goto utr5c;
        TGQI1:
        $this->response->set_data("\151\x74\145\155\163", $result, true);
        goto romLG;
        x88Yk:
        $result = $this->deviceModel->get_list($data);
        goto djXfx;
        w6qpi:
    }
    public function locsave()
    {
        goto g6K6w;
        a6uix:
        return false;
        goto K80l1;
        rSCqg:
        $this->response->error($this->deviceModel->message);
        goto P_luE;
        g6K6w:
        $data = $this->request->post();
        goto fhayn;
        fhayn:
        if (!$this->deviceModel->locsave($data)) {
            goto EAhLj;
            EAhLj:
            $this->response->success("\x53\125\103\x43\x45\x53\123\x5f\123\101\x56\105");
            goto hR3Lo;
            hR3Lo:
            $this->response->write();
            goto acmOs;
            acmOs:
            return true;
            goto w1eZh;
            w1eZh:
        }
        goto rSCqg;
        P_luE:
        $this->response->write();
        goto a6uix;
        K80l1:
    }
    public function locsync()
    {
        goto TUyK1;
        TUyK1:
        $data = $this->request->post();
        goto J92G1;
        J92G1:
        if (!$this->deviceModel->locsync($data)) {
            goto tX6Gd;
            xqSOP:
            return true;
            goto xERZo;
            JvI5Z:
            $this->response->write();
            goto xqSOP;
            tX6Gd:
            $this->response->success("\x53\125\x43\103\x45\123\x53\137\123\x59\116\x43");
            goto JvI5Z;
            xERZo:
        }
        goto oTkY_;
        DgWah:
        return false;
        goto d7wQV;
        St_8m:
        $this->response->write();
        goto DgWah;
        oTkY_:
        $this->response->error($this->deviceModel->message);
        goto St_8m;
        d7wQV:
    }
    public function locations()
    {
        goto BIa4s;
        P50RX:
        $this->response->write();
        goto ouhkP;
        lcZzY:
        $this->response->set_data("\x69\x74\x65\x6d\x73", $result, true);
        goto EOak9;
        L9T4b:
        $result = $this->deviceModel->get_locations($data);
        goto XI7JH;
        TmUtY:
        $this->response->success();
        goto lcZzY;
        BIa4s:
        $data = $this->request->post();
        goto L9T4b;
        EOak9:
        if (!empty($data["\x73\150\157\167\103\157\x6e\164\141\143\x74"]) && !empty($contact_result)) {
            $this->response->set_data("\143\x6f\x6e\x74\x61\143\164", $contact_result);
        }
        goto P50RX;
        ouhkP:
        return true;
        goto jwNxi;
        XI7JH:
        if (!empty($data["\163\150\157\x77\x43\x6f\156\x74\141\143\164"])) {
            $contact_result = $this->deviceModel->get_relative_locations($data);
        }
        goto TmUtY;
        jwNxi:
    }
    public function logout()
    {
        goto HZA5e;
        fByZD:
        $this->response->success();
        goto nM9if;
        HZA5e:
        $data = $this->request->post();
        goto zu28f;
        Djwh_:
        return true;
        goto jXVpk;
        nM9if:
        $this->response->write();
        goto Djwh_;
        zu28f:
        $result = $this->deviceModel->logout($data);
        goto fByZD;
        jXVpk:
    }
    public function idle_device_lock()
    {
        goto lB13k;
        jXwQM:
        $result = $this->deviceModel->idle_device_lock($data);
        goto v5CwD;
        sWvHr:
        $this->response->write();
        goto AWRNN;
        AWRNN:
        return true;
        goto hfXo1;
        v5CwD:
        $this->response->success();
        goto sWvHr;
        lB13k:
        $data = $this->request->post();
        goto jXwQM;
        hfXo1:
    }
}
