<?php

namespace App\Libraries;
use \App\Libraries\Error;
use \App\Libraries\Alertas;

class Globales 
{
    public function urlExternos()
    {
        return array(
            'prueba-verismart',
        );
    }
    
    function estadosPeticion() {
        return array(
            'CREA' => array(
                "PASADO"    => "CREADO",
                "FUTURO"    => "CREAR",
                "FONDO"     => "bg-crea",
                "COLOR"     => "color-crea",
                "ICONO"     => "mdi mdi-creation"
            ),
            'ASIG' => array(
                "PASADO"    => "ASIGNADO",
                "FUTURO"    => "ASIGNAR",
                "FONDO"     => "bg-asig",
                "COLOR"     => "color-asig",
                "ICONO"     => "mdi mdi-account-search"
            ),
            'INIC' => array(
                "PASADO"    => "INICIADO",
                "FUTURO"    => "INICIAR",
                "FONDO"     => "bg-inic",
                "COLOR"     => "color-inic",
                "ICONO"     => "mdi mdi-play-circle"
            ),
            'ESPE' => array(
                "PASADO"    => "EN ESPERA",
                "FUTURO"    => "EN ESPERA",
                "FONDO"     => "bg-espe",
                "COLOR"     => "color-espe",
                "ICONO"     => "mdi mdi-pause-circle"
            ),
            'COMP' => array(
                "PASADO"    => "COMPLETADO",
                "FUTURO"    => "COMPLETAR",
                "FONDO"     => "bg-comp",
                "COLOR"     => "color-comp",
                "ICONO"     => "mdi mdi-stop-circle"
            ),
            'DERI' => array(
                "PASADO"    => "DERIVADO",
                "FUTURO"    => "DERIVAR",
                "FONDO"     => "bg-deri",
                "COLOR"     => "color-deri",
                "ICONO"     => "mdi mdi-share-circle"
            ),
            'APRO' => array(
                "PASADO"    => "APROBADO",
                "FUTURO"    => "APROBAR",
                "FONDO"     => "bg-apro",
                "COLOR"     => "color-apro",
                "ICONO"     => "mdi mdi-check-circle"
            ),
            'REEV' => array(
                "PASADO"    => "REEVALUADO",
                "FUTURO"    => "REEVALUAR",
                "FONDO"     => "bg-reev",
                "COLOR"     => "color-reev",
                "ICONO"     => "mdi mdi-replay"
            ),
            'AA' => array(
                "PASADO"    => "APROBADO AUTOMÁTICO",
                "FUTURO"    => "APROBAR AUTOMÁTICAMENTE",
                "FONDO"     => "bg-aa",
                "COLOR"     => "color-aa",
                "ICONO"     => "mdi mdi-check-circle"
            ),
            'CANC' => array(
                "PASADO"    => "CANCELADO",
                "FUTURO"    => "CANCELAR",
                "FONDO"     => "bg-canc",
                "COLOR"     => "color-canc",
                "ICONO"     => "mdi mdi-cancel"
            ),
            'COME' => array(
                "PASADO"    => "COMENTARIO",
                "FUTURO"    => "COMENTAR",
                "FONDO"     => "bg-come",
                "COLOR"     => "color-come",
                "ICONO"     => "mdi mdi-comment"
            )
        );
    }    

    function listadoCentroCostoCoordinador()
    {
        return array(
            1476 => array(40, 41, 80, 100, 230),
            4093 => array(60, 120, 121, 140, 200),
            1093 => array(152, 154, 155, 158),
            167 => array(130, 150, 151, 156, 157, 159, 252),
            2320 => array(80, 100, 230),
            3998 => array(120, 121),
            4103 => array(120, 140),
            3131 => array(152, 155),
            3298 => array(154),
            1527 => array(156, 157),
            3282 => array(159, 252),
            2319 => array(140, 141),
            112 => array(40, 41, 60, 80, 100, 120, 121, 130, 140, 141, 150, 151, 152, 154, 155, 156, 157, 159, 158, 200, 230, 252)
        );
    }
    
    public function urlLibres()
    {
        return array(
            'cambiar-password',
            'cantidad-notificaciones-header', 
            'registrar-vista-notificacion'
        );
    }  
}
