<?php

declare(strict_types=1);

return [
    'support_email' => env('SUPPORT_EMAIL', 'support@ezscale.cloud'),

    'imap' => [
        'host' => env('IMAP_HOST', 'outlook.office365.com'),
        'port' => (int) env('IMAP_PORT', 993),
        'encryption' => env('IMAP_ENCRYPTION', 'ssl'),
        'username' => env('IMAP_USERNAME'),
        'password' => env('IMAP_PASSWORD'),
        'validate_cert' => (bool) env('IMAP_VALIDATE_CERT', true),
        'protocol' => env('IMAP_PROTOCOL', 'imap'),
    ],

    'polling_enabled' => (bool) env('TICKET_EMAIL_POLLING', false),
    'imap_folder' => env('IMAP_FOLDER', 'INBOX'),

    'ticket_reference_format' => '[EZSCALE-%d]',
    'ticket_reference_regex' => '/\[EZSCALE-(\d+)\]/i',

    'departments' => ['billing', 'technical', 'sales', 'general'],
    'default_department' => 'general',
];
