

-- CREO TABLA acl_roles_resources
CREATE TABLE IF NOT EXISTS logpro_navparedes.acl_roles_resources (
  `id_role` varchar(64) NOT NULL,
  `id_resource` varchar(64) NOT NULL,
  PRIMARY KEY (`id_role`, `id_resource`),
  INDEX `fk_roles_resources_roles` (`id_role` ASC),
  INDEX `fk_roles_resources_resources` (`id_resource` ASC),
  CONSTRAINT `fk_roles_resources_roles`
  FOREIGN KEY (`id_role`)
  REFERENCES `logpro_base`.`acl_roles` (`id_role`)
    ON DELETE RESTRICT
    ON UPDATE CASCADE,
  CONSTRAINT `fk_roles_resources_resources`
  FOREIGN KEY (`id_resource`)
  REFERENCES `logpro_base`.`acl_resources` (`id_resource`)
    ON DELETE RESTRICT
    ON UPDATE CASCADE
) ENGINE = InnoDB;


-- ELIMINO LOS ANTERIORES
DELETE FROM `logpro_base`.`sistema_perfiles_usuarios_instancias` WHERE `instancia_id`='LOGPRO_NAVPAREDES';


-- CREAR PERFIL: ADMINISTRADOR
INSERT INTO `logpro_base`.`sistema_perfiles_usuarios_instancias`(`perfil_id`, `instancia_id`) VALUES (1, 'LOGPRO_NAVPAREDES');

-- CREAR PERFIL: GERENCIA
INSERT INTO `logpro_base`.`sistema_perfiles_usuarios_instancias`(`perfil_id`, `instancia_id`) VALUES (2, 'LOGPRO_NAVPAREDES');

-- CREAR PERFIL: IDENTIFICACION_PERSONAL
INSERT INTO `logpro_base`.`sistema_perfiles_usuarios_instancias`(`perfil_id`, `instancia_id`) VALUES (99, 'LOGPRO_NAVPAREDES');

-- CREAR PERFIL: COPEC_CAPITAN
INSERT INTO `logpro_base`.`sistema_perfiles_usuarios_instancias`(`perfil_id`, `instancia_id`) VALUES (106, 'LOGPRO_NAVPAREDES');

-- CREAR PERFIL: COPEC_MAQUINAS
INSERT INTO `logpro_base`.`sistema_perfiles_usuarios_instancias`(`perfil_id`, `instancia_id`) VALUES (107, 'LOGPRO_NAVPAREDES');


-- ELIMINO LOS PERMISOS ANTERIORES
DELETE FROM logpro_navparedes.acl_roles_resources;


-- REGISTRO LOS PERMISOS ACTUALIZADOS
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'mod-documentacion');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'mod-control-unidades');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'mod-control-activos');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'mod-mantenimiento');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'mod-proyectos');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'mod-gastos');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'mod-carga');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'mod-operaciones');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'mod-no-conformidades');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'mod-personal');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'mod-produccion');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'mod-consultas');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'mod-reportes');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'u-administrador');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'index');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'error');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'acceso');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'ajax');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'agenda');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'test');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'responsable-transporte');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'encuesta');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'encuesta-pregunta-grupo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'encuesta-pregunta');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'encuestas-recibidas');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'ayuda-manuales');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'ayuda-preguntas-frecuentes');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'notificaciones');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'monitor');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'externo-position-asset');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'externo-position-grupo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'externo-position-acceso');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'externo-position-reportes');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'externo-puerto-reportes');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'salmofood-importar');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'salmofood-pedido');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'blumar-importar');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'blumar-stocks');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'doc-observacion-codigo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'doc-observacion-area');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'doc-observacion');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'doc-observacion-archivo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'doc-observacion-administrar');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'doc-documento-emisor');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'doc-documento-grupo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'doc-documento-categoria');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'doc-documento');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'doc-documento-archivo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'doc-documento-administrar');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'administrar-activos');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'control-grupo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'control-unidad-tipo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'control-unidad');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'control-unidad-distancia');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'control-unidad-capacidad');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'control-unidad-fotografia');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'control-unidad-archivo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'control-sistema-tipo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'control-sistema');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'control-inspeccion-tipo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'control-inspeccion-seccion');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'control-inspeccion-item');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'control-inspeccion');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'control-inspeccion-respuesta');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'control-inspeccion-respuesta-archivo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'control-activo-tipo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'control-activo-marca');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'control-activo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'control-activo-widget');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'control-activo-movimiento');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'control-activo-trabajo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'control-activo-archivo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'control-activo-fotografia');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'control-servicio');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'control-plan');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'control-plan-item');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'control-programacion-mensual');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'control-programacion-mensual-trabajo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'control-proyeccion');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'control-inventario-categoria');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'control-inventario-BODEGA');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'control-inventario-articulo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'control-inventario-movimiento');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'control-inventario-stock');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'control-trabajo-programado');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'control-trabajo-tipo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'siniestro-categoria');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'siniestro');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'siniestro-archivo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'solicitud-tipo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'solicitud');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'solicitud-comentario');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'solicitud-archivo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'proyecto-tipo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'contab-proveedor-tipo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'contab-proveedor');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'contab-centro-costo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'contab-cuenta');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'proyecto');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'proyecto-administrar');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'proyecto-etapa');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'proyecto-tarea');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'proyecto-tarea-archivo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'proyecto-tarea-comentario');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'proyecto-tarea-dependencia');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'proyecto-asignacion-presupuesto');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'proyecto-gasto');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'carga-proyectada');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'carga-proyecciones');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'carga-analisis');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'carga-solicitudes');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'carga-solicitud-transporte');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'carga-programada');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'carga-despacho');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'carga-despacho-archivo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'carga-despacho-item-archivo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'carga-manifiesto');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'carga-entrega');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'carga-entrega-archivo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'carga-recepcion-archivo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'carga-movimiento');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'carga-guia-despacho');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'carga-guia-despacho-item');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'carga-guia-despacho-archivo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'carga-administrar');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'bodega');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'carga-en-transito');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'vale-combustible');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'vale-combustible-archivo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'operacion-periodo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'operacion-periodo-archivo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'operacion-itinerario');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'operacion');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'operacion-ingresar');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'operacion-asignar');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'operacion-registro-diario');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'operacion-registro');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'operacion-horometro-lectura');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'operacion-horometro-lectura-editar');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'operacion-registro-parametros');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'operacion-parametro-lectura');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'operacion-suministro-stock');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'operacion-suministro-carga');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'operacion-suministro-entrega');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'no-conformidad-documento');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'no-conformidad-comentario');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'no-conformidades');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'no-conformidad-crear');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'no-conformidad-buscar');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'no-conformidad-cerrar');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'no-conformidad-asignacion');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'nacionalidad');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'trabajador');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'accidente-tipo-lesion');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'accidente-testigo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'accidente-parte-lesionada');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'accidente-naturaleza-lesion');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'accidente-medida-correctiva');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'accidente-informe');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'accidente-declaracion');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'accidente-clasificacion');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'accidente-causa-inmediata-condicion');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'accidente-causa-inmediata-acto');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'accidente-causa-basica-trabajo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'accidente-causa-basica-personal');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'accidente-archivo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'accidente-agente');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'consultas-suministros-diarios');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'consultas-operaciones');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'consultas-horometros-diarios');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'consultas-carga-movimientos');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'consultas-suministros-cargas');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'consultas-suministros-entregas');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'reporte-operacional');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'base');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'empresa');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'agenda-administrar');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'zona-comercial');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'barrio');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'carga-area');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'carga-categoria');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'carga-contenedor-tipo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'carga-unidad');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'carga-ubicacion');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'carga-proyeccion-categoria');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'operacion-periodo-tipo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'operacion-tipo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'operacion-grupo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'operacion-horometro-tipo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'operacion-horometro');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'operacion-suministro-tipo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'operacion-suministro');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'operacion-parametro-tipo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'operacion-parametro');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'no-conformidad-tipo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'enlace-util');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'config');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'config-personal');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'config-dashboard');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'config-puertos');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'sistema-envio-mensaje');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'sistema-informe-automatico');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'sistema-informe-preconfigurado');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'sistema-preferencias');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'sistema-perfil-usuario');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'sistema-usuario');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'sistema-usuario-dashboard');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'sistema-widget-comun');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'sistema-widget-admin');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'sistema-widget-config');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'sistema-moneda');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('ADMINISTRADOR', 'sistema-notificaciones-emails');


-- PERMISOS PERFIL : GERENCIA
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('GERENCIA', 'error');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('GERENCIA', 'acceso');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('GERENCIA', 'config-personal');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('GERENCIA', 'config-dashboard');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('GERENCIA', 'config-puertos');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('GERENCIA', 'u-dashboard');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('GERENCIA', 'notificaciones');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('GERENCIA', 'control-activo-widget');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('GERENCIA', 'sistema-widget-comun');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('GERENCIA', 'sistema-widget-config');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('GERENCIA', 'sistema-widget-admin');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('GERENCIA', 'externo-puerto-reportes');

-- PERMISOS PERFIL :: COPEC_CAPITAN
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('COPEC_CAPITAN', 'error');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('COPEC_CAPITAN', 'ayuda-manuales');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('COPEC_CAPITAN', 'ayuda-preguntas-frecuentes');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('COPEC_CAPITAN', 'notificaciones');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('COPEC_CAPITAN', 'identificacion-personal');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('COPEC_CAPITAN', 'acceso');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('COPEC_CAPITAN', 'ajax');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('COPEC_CAPITAN', 'config-personal');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('COPEC_CAPITAN', 'config-puertos');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('COPEC_CAPITAN', 'copec-registro-operaciones');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('COPEC_CAPITAN', 'copec-combustible-entrega');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('COPEC_CAPITAN', 'copec-guia-despacho');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('COPEC_CAPITAN', 'carga-guia-despacho-archivo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('COPEC_CAPITAN', 'copec-vale-combustible');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('COPEC_CAPITAN', 'externo-puerto-reportes');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('COPEC_CAPITAN', 'sistema-widget-comun');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('COPEC_CAPITAN', 'sistema-widget-config');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('COPEC_CAPITAN', 'u-copec-capitan');

-- PERMISOS PERFIL :: COPEC_MAQUINAS
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('COPEC_MAQUINAS', 'error');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('COPEC_MAQUINAS', 'ayuda-manuales');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('COPEC_MAQUINAS', 'ayuda-preguntas-frecuentes');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('COPEC_MAQUINAS', 'notificaciones');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('COPEC_MAQUINAS', 'identificacion-personal');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('COPEC_MAQUINAS', 'acceso');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('COPEC_MAQUINAS', 'ajax');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('COPEC_MAQUINAS', 'config-personal');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('COPEC_MAQUINAS', 'config-puertos');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('COPEC_MAQUINAS', 'copec-registro-horometros-stocks');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('COPEC_MAQUINAS', 'copec-registro-parametros');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('COPEC_MAQUINAS', 'copec-combustible-recepcion');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('COPEC_MAQUINAS', 'copec-guia-despacho');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('COPEC_MAQUINAS', 'carga-guia-despacho-archivo');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('COPEC_MAQUINAS', 'copec-vale-combustible');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('COPEC_MAQUINAS', 'externo-puerto-reportes');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('COPEC_MAQUINAS', 'sistema-widget-comun');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('COPEC_MAQUINAS', 'sistema-widget-config');
INSERT INTO logpro_navparedes.acl_roles_resources(id_role, id_resource) VALUES ('COPEC_MAQUINAS', 'u-copec-maquinas');

-- FIN
