<?php
declare(strict_types=1);

/**
 * نگاشت ماژول API → فایل‌های کنترلر
 * مسیر نمونه: /acc/v1/{module}/...
 */
return [
    // همیشه برای JWT/ACL
    'always' => [
        'ACL_Controller.php',
    ],

    // ماژول (سگمنت سوم مسیر بعد از acc/v1)
    'modules' => [
        'accounting' => [
            'ACC_Accounting_Controller.php',
        ],
        'sales' => [
            'ACC_Sales_Controller.php',
        ],
        'purchase' => [
            'ACC_Purchase_Controller.php',
        ],
        'payroll' => [
            'ACC_Payroll_Controller.php',
        ],
        'service' => [
            'SR_Controller.php',
            'SR_Supplier_Controller.php',
            'SR_Reward_Controller.php',
            'SR_Talent_Controller.php',
            'SR_Marketer_Controller.php',
        ],
        'education' => [
            'Education_Controller.php',
        ],
        'growth' => [
            'Growth_Controller.php',
        ],
        'melk' => [
            'Eqtesad_Melk_Controller.php',
            'Melk_Extensions_Controller.php',
        ],
        'wholesale' => [
            'Wholesale_Controller.php',
        ],
        'election' => [
            'Election_Controller.php',
        ],
        'gis' => [
            'GIS_Controller.php',
            'GIS_Locations_Controller.php',
            'TileProxy_Controller.php',
        ],
        'chat' => [
            'Chat_Controller.php',
        ],
        'inventory' => [
            'Inventory_Controller.php',
        ],
        'workflow' => [
            'Workflow_Controller.php',
        ],
        'hr' => [
            'HR_Controller.php',
        ],
        'crm' => [
            'CRM_Controller.php',
        ],
        'contract' => [
            'Contract_Controller.php',
        ],
        // مسیر melk هم باید به Contract_Controller دسترسی داشته باشد
        // (قبلاً ثبت شده — فقط perm_melk جدید افزوده شد)
        'treasury' => [
            'Treasury_Controller.php',
        ],
        'c3p-capital' => [
            'C3P_Capital_Controller.php',
        ],
        'shipping' => [
            'Shipping_Controller.php',
        ],
        'assets' => [
            'Assets_Controller.php',
        ],
        'commission' => [
            'Commission_Controller.php',
        ],
        'permits' => [
            'Permits_Controller.php',
        ],
        'projects' => [
            'Projects_Controller.php',
        ],
        'pc' => [
            'PC_Controller.php',
        ],
        'prefs' => [
            'UserPrefs_Controller.php',
        ],
        'public' => [
            'Public_Auth_Controller.php',
            'Arag_Shop_Controller.php',
            'Arag_Marketer_Controller.php',
            'WP_Products_Controller.php',
            'WP_Orders_Controller.php',
            'Wholesale_Controller.php',
            'Election_Controller.php',
        ],
        'units' => [
            'UnitSales_Controller.php',
        ],
        'arag' => [
            'Arag_Shop_Controller.php',
            'Arag_Marketer_Controller.php',
        ],
        'products' => [
            'WP_Products_Controller.php',
        ],
        'orders' => [
            'WP_Orders_Controller.php',
        ],
    ],

    // مسیرهای چندسگمنتی (module/sub)
    'paths' => [
        '/acc/v1/service/accounting' => [
            'SR_Accounting_Controller.php',
        ],
        '/acc/v1/education/accounting' => [
            'ED_Accounting_Controller.php',
        ],
        '/acc/v1/arag/erp' => [
            'Arag_Erp_Controller.php',
        ],
        '/acc/v1/arag/shop-acct' => [
            'Arag_Erp_Controller.php',
        ],
        '/acc/v1/portal-acct' => [
            'Acc_Portal_Accounting_Controller.php',
        ],
        '/acc/v1/public/platform' => [
            'Arag_Shop_Controller.php',
        ],
        '/acc/v1/arag/admin/branding' => [
            'Arag_Shop_Controller.php',
        ],
        '/acc/v1/arag/admin/developer' => [
            'Arag_Shop_Controller.php',
        ],
        '/acc/v1/arag/admin/platform-info' => [
            'Arag_Shop_Controller.php',
        ],
        '/acc/v1/arag/admin/marketers' => [
            'Arag_Marketer_Controller.php',
        ],
        '/acc/v1/arag/admin/marketer-payouts' => [
            'Arag_Marketer_Controller.php',
        ],
        '/acc/v1/public/arag/marketer' => [
            'Arag_Marketer_Controller.php',
        ],
        '/acc/v1/contracts/template' => [
            'Contract_Controller.php',
        ],
        '/acc/v1/contracts/from-melk-project' => [
            'Contract_Controller.php',
        ],
        '/acc/v1/contracts/from-template' => [
            'Contract_Controller.php',
        ],
    ],
];
