<?php
/**
 * config.php
 */

// ======== Configuration ========
$config = [
    'dirs' => ['logs', 'customers', 'chats', 'cache'],
    'verify_token'        => "smartlogic2024",
    'whatsapp_token'      => "EAAKo9dWi7lsBPMppbheQYqcBlBStDx4noxqeLyXp5azaxZA1GYbbogHwRnfmf4p63RUFXZAfAd9wS3PYEBrjJ5baLyaRuaAZBl5pkVFNBzGe8P1haMEkv5HZAZB4C9F5kjYOcNfIJapnZCJHJ5qwoEFZAInfjadP4E8OdcAaJ01ZAuUnTaW9OWESTzCVMzzd2x0DZBgZDZD",
    'messenger_token'     => "EAAU3fZCXPBqkBPAcGFLOCC2t4vsi2pG7ZANV2Xanioql4gxgjvpMjwE9P7JT0l5JUsyQoox84NrdOBBtIS2YKv9wScQ9cFV7TWCMU4RW8VzOkZArm0ToaxmxNEgXSs4uhcRChU7orsn2iPiWO3mqE7pEMrQBxieWhrOEt9WjzOZAsZA1JlrM7hnbNJs52omt3QiwakwZDZD",
    'facebook_token'     => "EAAU3fZCXPBqkBPAcGFLOCC2t4vsi2pG7ZANV2Xanioql4gxgjvpMjwE9P7JT0l5JUsyQoox84NrdOBBtIS2YKv9wScQ9cFV7TWCMU4RW8VzOkZArm0ToaxmxNEgXSs4uhcRChU7orsn2iPiWO3mqE7pEMrQBxieWhrOEt9WjzOZAsZA1JlrM7hnbNJs52omt3QiwakwZDZD",

    'messenger_timeout' => 8, // أو أي قيمة مناسبة (بالثواني)
    'phone_number_id'     => "713668888490465",
    'max_history'         => 80,
    // AI usage tuning
    'ai_model'            => 'gpt-4o-mini',
    'ai_max_tokens'       => 400,
    'ai_temperature'      => 0.3,
    'ai_max_history'      => 16,
    'ai_cache_ttl'        => 1800, // seconds
    'max_notes'           => 150,
    'api_timeout'         => 30,
    'whatsapp_timeout'    => 25,
    'rate_limit_seconds'  => 3,
    'duplicate_threshold' => 8,
    'cache_ttl'           => 300, // 5 minutes cache
    // Media handling
    'ai_transcribe_model' => 'whisper-1',

    // Conversation start notifications (disabled by default)
    // 'send_welcome_on_new_chat' => true,
    // 'welcome_message' => 'أهلاً! بدأنا محادثة جديدة معك. كيف نساعدك اليوم؟',

    // Sales notifications
    'notify_on_new_chat'     => true,
    'sales_notify_numbers'   => ['201144470365','201094490609','201285451680'],
    'sales_manager_number'   => '201094490609',
    'sales_manager_emphasis' => true, // send extra emphasized copy to manager

    // If sending fails due to 24-hour session rules, use an approved template
    // Set to your approved template name in WhatsApp Cloud (e.g., 'new_chat_alert')
    'whatsapp_alert_template' => '',
    'template_language'       => 'ar',
];

// OpenAI Tokens with rotation
$openaiTokens = [
    "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",
];


$odoo = [
  'url'  => 'https://system.smartlogiceg.com', // HTTPS
  'db'   => 'smart',
  'user' => 'ahmedmagdu1@gmail.com',
  'pass' => 'Magdy0106',
  // اسم السورس الافتراضي (هيتعمل لو مش موجود):
  'default_source' => 'WhatsApp Chatbot'
];
