/**
 * Panel Registry — constantes de paineis e permissoes default
 */
const PANELS = [
  { key: 'corporate',  label: 'Corporate',     route: '/corporate' },
  { key: 'bi',         label: 'BI Executive',   route: '/admin/bi' },
  { key: 'cliente',    label: 'Clientes',       route: '/admin/cliente' },
  { key: 'providers',  label: 'Providers',      route: '/admin/providers' },
  { key: 'usuarios',   label: 'Usuarios',       route: '/admin' },
  { key: 'dashboard',  label: 'Meu Dashboard',  route: '/dashboard' },
];

const DEFAULT_PERMISSIONS = {
  admin:     ['corporate', 'bi', 'cliente', 'providers', 'usuarios', 'dashboard'],
  corporate: ['corporate'],
  agente:    ['dashboard'],
};

const PANEL_ROUTE = {};
PANELS.forEach(p => { PANEL_ROUTE[p.key] = p.route; });

module.exports = { PANELS, DEFAULT_PERMISSIONS, PANEL_ROUTE };
