function chat_soporte() { $red_temporal = $_GET['id_red']; if (!$this->tank_auth->is_logged_in()) { // logged in redirect('/auth'); } if (!($_COOKIE['red1'] == "3")) { header("Refresh:0;url='/bo/configuracion/chat_soporte?id_red=" . $red_temporal . "'"); } include_once "cometchat/model_soporte_chat.php"; $chat_r = new Red_chat(); $chat_r->soporte_red(); $id = $this->tank_auth->get_user_id(); $style = $this->modelo_dashboard->get_style(1); $this->template->set("style", $style); $this->template->set_theme('desktop'); $this->template->set_layout('website/main'); $this->template->set_partial('header', 'website/bo/header'); $this->template->set_partial('footer', 'website/bo/footer'); $consultar_siesta_asignada = $this->model_soporte_tecnico->consultar_asignacion_de_soporte($id); if ($consultar_siesta_asignada != null) { $this->model_soporte_tecnico->actualizar_asignacion_de_red($id); } else { $this->model_soporte_tecnico->asignar_red_de_soporte($id); } $this->template->build('website/bo/soporteTecnico/chat_soporte'); }