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

/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|*/
$route['default_controller'] = 'supervisor';
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;

$route['login'] = 'supervisor/login';
$route['logout'] = 'supervisor/logout';
$route['dashboard'] = 'supervisor/dashboard';
$route['dashboard/attendance'] = 'supervisor/attendance_toggle';
$route['dashboard/tareas-globales/accion'] = 'supervisor/dashboard_global_task_action';
$route['dashboard/exportar-ventas'] = 'supervisor/exportar_ventas';
$route['dashboard/exportar-ventas-diarias'] = 'supervisor/exportar_ventas_diarias';
$route['global'] = 'supervisor/global_modulo';
$route['global/metas/nueva'] = 'supervisor/global_meta_nueva';
$route['global/metas/(:num)'] = 'supervisor/global_meta_editar/$1';
$route['global/metas/(:num)/eliminar'] = 'supervisor/global_meta_eliminar/$1';
$route['global/tareas/nueva'] = 'supervisor/global_tarea_nueva';
$route['global/tareas/(:num)'] = 'supervisor/global_tarea_editar/$1';
$route['global/tareas/(:num)/eliminar'] = 'supervisor/global_tarea_eliminar/$1';
$route['asistencia'] = 'supervisor/asistencia';
$route['asistencia/empleado/(:num)'] = 'supervisor/asistencia_detalle/$1';
$route['asistencia/guardar'] = 'supervisor/asistencia_guardar';
$route['metas'] = 'supervisor/metas';
$route['metas/historicas'] = 'supervisor/metas_historicas';
$route['metas/nueva'] = 'supervisor/meta_nueva';
$route['metas/(:num)/eliminar'] = 'supervisor/meta_eliminar/$1';
$route['metas/(:num)'] = 'supervisor/meta_editar/$1';
$route['metas/exportar'] = 'supervisor/exportar_metas';
$route['metas/exportar-resumen'] = 'supervisor/exportar_resumen_metas';
$route['tareas'] = 'supervisor/tareas';
$route['tareas/rapida'] = 'supervisor/tarea_rapida';
$route['tareas/configuradas'] = 'supervisor/tarea_configuradas';
$route['tareas/plantillas'] = 'supervisor/tarea_plantillas';
$route['tareas/nueva'] = 'supervisor/tarea_nueva';
$route['tareas/plantillas/nueva'] = 'supervisor/tarea_plantilla_nueva';
$route['tareas/plantillas/(:num)/eliminar'] = 'supervisor/tarea_plantilla_eliminar/$1';
$route['tareas/reglas/(:num)'] = 'supervisor/tarea_editar/$1';
$route['tareas/reglas/(:num)/eliminar'] = 'supervisor/tarea_eliminar/$1';
$route['tareas/plantillas/(:num)'] = 'supervisor/tarea_plantilla_editar/$1';
$route['tareas/exportar'] = 'supervisor/exportar_tareas';
$route['tareas/(:num)'] = 'supervisor/tarea/$1';
$route['grupos'] = 'supervisor/grupos';
$route['grupos/nuevo'] = 'supervisor/grupo_nuevo';
$route['grupos/(:num)'] = 'supervisor/grupo_editar/$1';
$route['grupos/exportar'] = 'supervisor/exportar_grupos';
$route['empleados'] = 'supervisor/empleados';
$route['empleados/(:num)'] = 'supervisor/empleado_detalle/$1';
$route['empleados/exportar'] = 'supervisor/exportar_empleados';
$route['configuracion'] = 'supervisor/configuracion';
$route['configuracion/tema'] = 'supervisor/configuracion_tema';
$route['notificaciones'] = 'supervisor/notificaciones';
$route['notificaciones/exportar'] = 'supervisor/exportar_notificaciones';
