<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Auth_client extends CI_Controller {
    private $isLoggedIn;
    function __construct(){
        parent::__construct();
        cekValidateAjaxRequest();

        $this->load->model('auth_client_model', 'auth_client_m');
    }

    function index(){
        pageNotFound();
    }

    function listData(){
        $this->load->view('auth_client_store');
    }

    function getJsonDataAuthClientStore(){
        $params   = $this->input->post();
        $response = $this->auth_client_m->getDataLaporanDtTable($params);
        echo json_encode($response);
    }

    function getDataDetailAuthClientJson(){
        $params   = $this->input->post();
        $response = $this->auth_client_m->getDataDetailAuthClient($params);
        echo json_encode($response);
    }

    function resetSecretKeyDataAuthClientJson(){
        $params   = $this->input->post();
        $response = $this->auth_client_m->resetSecretKeyDataAuthClient($params);
        echo json_encode($response);
    }

    function addAuthClientStore(){
        $params   = $this->input->post();
        $response = $this->auth_client_m->addDataAuthClientStore($params);
        echo json_encode($response);
    }

    function deleteDataAuthClientJson(){
        $params   = $this->input->post();
        $response = $this->auth_client_m->deleteDataAuthClientStore($params);
        echo json_encode($response);
    }
}
