/*
|--------------------------------------------------------------------------
| Agência PSI
|--------------------------------------------------------------------------
| Criado e desenvolvido por Leonardo Nohama
|
| Tecnologia aplicada à escuta.
| Estrutura para o cuidado.
|
| Arquivo: src/router/routes.saas.js
| Data: 2026
| Local: São Carlos/SP — Brasil
|--------------------------------------------------------------------------
| © 2026 — Todos os direitos reservados
|--------------------------------------------------------------------------
*/
import AppLayout from '@/layout/AppLayout.vue';

export default {
    path: '/saas',
    component: AppLayout,
    meta: { requiresAuth: true, saasAdmin: true },
    children: [
        {
            path: '',
            name: 'saas-dashboard',
            component: () => import('@/views/pages/saas/SaasDashboard.vue')
        },
        {
            path: 'plans',
            name: 'saas-plans',
            component: () => import('@/views/pages/saas/SaasPlansPage.vue')
        },
        {
            path: 'plans-public',
            name: 'saas-plans-public',
            component: () => import('@/views/pages/saas/SaasPlansPublicPage.vue')
        },
        {
            path: 'features',
            name: 'saas-features',
            component: () => import('@/views/pages/saas/SaasFeaturesPage.vue')
        },
        {
            path: 'plan-features',
            name: 'saas-plan-features',
            component: () => import('@/views/pages/saas/SaasPlanFeaturesMatrixPage.vue')
        },
        {
            path: 'plan-limits',
            name: 'saas-plan-limits',
            component: () => import('@/views/pages/saas/SaasPlanLimitsPage.vue')
        },
        {
            path: 'subscriptions',
            name: 'saas-subscriptions',
            component: () => import('@/views/pages/saas/SaasSubscriptionsPage.vue')
        },
        {
            path: 'subscription-events',
            name: 'saas-subscription-events',
            component: () => import('@/views/pages/saas/SaasSubscriptionEventsPage.vue')
        },
        {
            path: 'subscription-health',
            name: 'saas-subscription-health',
            component: () => import('@/views/pages/saas/SaasSubscriptionHealthPage.vue')
        },
        {
            path: 'subscription-intents',
            name: 'saas.subscriptionIntents',
            component: () => import('@/views/pages/saas/SubscriptionIntentsPage.vue'),
            meta: { requiresAuth: true, saasAdmin: true }
        },
        {
            path: 'tenants',
            name: 'saas-tenants',
            component: () => import('@/views/pages/saas/SaasPlaceholder.vue')
        },
        {
            path: 'tenant-features',
            name: 'saas-tenant-features',
            component: () => import('@/views/pages/saas/SaasTenantFeaturesPage.vue')
        },
        {
            path: 'security',
            name: 'saas-security',
            component: () => import('@/views/pages/saas/SaasSecurityPage.vue')
        },
        {
            path: 'feriados',
            name: 'saas-feriados',
            component: () => import('@/views/pages/saas/SaasFeriadosPage.vue')
        },
        {
            path: 'docs',
            name: 'saas-docs',
            component: () => import('@/views/pages/saas/SaasDocsPage.vue')
        },
        {
            path: 'faq',
            name: 'saas-faq',
            component: () => import('@/views/pages/saas/SaasFaqPage.vue')
        },
        {
            path: 'support',
            name: 'saas-support',
            component: () => import('@/views/pages/saas/SaasSupportPage.vue'),
            meta: { requiresAuth: true, saasAdmin: true }
        },
        {
            path: 'login-carousel',
            name: 'saas-login-carousel',
            component: () => import('@/views/pages/saas/SaasLoginCarousel.vue')
        },
        {
            path: 'global-notices',
            name: 'saas-global-notices',
            component: () => import('@/views/pages/saas/SaasGlobalNoticesPage.vue'),
            meta: { requiresAuth: true, saasAdmin: true }
        },
        {
            path: 'email-templates',
            name: 'saas-email-templates',
            component: () => import('@/views/pages/saas/SaasEmailTemplatesPage.vue'),
            meta: { requiresAuth: true, saasAdmin: true }
        },
        {
            path: 'notification-templates',
            name: 'saas-notification-templates',
            component: () => import('@/views/pages/saas/SaasNotificationTemplatesPage.vue'),
            meta: { requiresAuth: true, saasAdmin: true }
        },
        {
            path: 'whatsapp',
            name: 'saas-whatsapp',
            component: () => import('@/views/pages/saas/SaasWhatsappPage.vue'),
            meta: { requiresAuth: true, saasAdmin: true }
        },
        {
            path: 'twilio-whatsapp',
            name: 'saas-twilio-whatsapp',
            component: () => import('@/views/pages/saas/SaasTwilioWhatsappPage.vue'),
            meta: { requiresAuth: true, saasAdmin: true }
        },
        {
            path: 'twilio-config',
            name: 'saas-twilio-config',
            component: () => import('@/views/pages/saas/SaasTwilioConfigPage.vue'),
            meta: { requiresAuth: true, saasAdmin: true }
        },
        {
            path: 'addons',
            name: 'saas-addons',
            component: () => import('@/views/pages/saas/SaasAddonsPage.vue'),
            meta: { requiresAuth: true, saasAdmin: true }
        },
        {
            path: 'document-templates',
            name: 'saas-document-templates',
            component: () => import('@/views/pages/saas/SaasDocumentTemplatesPage.vue'),
            meta: { requiresAuth: true, saasAdmin: true }
        },
        {
            path: 'desenvolvimento',
            name: 'saas-desenvolvimento',
            component: () => import('@/views/pages/saas/development/SaasDevelopmentPage.vue'),
            meta: { requiresAuth: true, saasAdmin: true }
        },
        {
            path: 'usuarios',
            name: 'saas-usuarios',
            component: () => import('@/views/pages/saas/SaasUsuariosPage.vue'),
            meta: { requiresAuth: true, saasAdmin: true }
        },
        {
            path: 'app-config',
            name: 'saas-app-config',
            component: () => import('@/views/pages/saas/SaasAppConfigPage.vue'),
            meta: { requiresAuth: true, saasAdmin: true }
        }
    ]
};
