<?php
/**
 * Configuration générale de l'application
 * mySupport - Plateforme de Service Client Intelligent
 */

// URL de base
define('BASE_URL', 'http://localhost:8888/mySupport/public/index.php');
define('APP_NAME', 'mySupport');
define('APP_VERSION', '1.0.0');

// Chemins
define('ROOT_PATH', dirname(__DIR__));
define('APP_PATH', ROOT_PATH . '/app');
define('VIEWS_PATH', APP_PATH . '/Views');
define('UPLOADS_PATH', ROOT_PATH . '/public/uploads');

// Session
define('SESSION_NAME', 'mysupport_session');
define('SESSION_LIFETIME', 3600 * 24); // 24 heures

// Langues supportées
define('SUPPORTED_LANGUAGES', ['fr', 'bm', 'ff', 'snk']);
define('DEFAULT_LANGUAGE', 'fr');

// Langues avec leurs noms
define('LANGUAGES', [
    'fr' => 'Français',
    'bm' => 'Bambara',
    'ff' => 'Peulh (Fulfuldé)',
    'snk' => 'Soninké'
]);

// Rôles utilisateurs
define('ROLE_SUPER_ADMIN', 'super_admin');
define('ROLE_ADMIN_ENTREPRISE', 'admin_entreprise');
define('ROLE_AGENT', 'agent');

// Statuts conversations
define('STATUS_OPEN', 'open');
define('STATUS_IN_PROGRESS', 'in_progress');
define('STATUS_RESOLVED', 'resolved');
define('STATUS_CLOSED', 'closed');

// Canaux de communication
define('CHANNEL_WEB', 'web');
define('CHANNEL_WHATSAPP', 'whatsapp');
define('CHANNEL_VOICE', 'voice');

// Types d'abonnement
define('SUBSCRIPTION_BASIC', 'basic');
define('SUBSCRIPTION_PRO', 'pro');
define('SUBSCRIPTION_ENTERPRISE', 'enterprise');

// Pagination
define('ITEMS_PER_PAGE', 20);

// Timezone
date_default_timezone_set('Africa/Bamako');

// VAPID Keys pour Push Notifications (PWA)
define('VAPID_PUBLIC_KEY', 'BL3iD8dJxH6GwT88_9o-d81fC8f_GH9cZxtJMK6sH8kuUlJzKdxlYalhg2OdtgfVJIkudrcE-Av4yXXXMkodxdA');
define('VAPID_PRIVATE_KEY', 'YMJJ4N_soc1MIMMiGuT_N13No3LbxW3wgfrlQNCtTm8');
define('VAPID_SUBJECT', 'mailto:contact@mysupport.com');
