<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Third Party Services
    |--------------------------------------------------------------------------
    |
    | This file is for storing the credentials for third party services such
    | as Mailgun, Postmark, AWS and more. This file provides the de facto
    | location for this type of information, allowing packages to have
    | a conventional file to locate the various service credentials.
    |
    */

    'postmark' => [
        'token' => env('POSTMARK_TOKEN'),
    ],

    'ses' => [
        'key' => env('AWS_ACCESS_KEY_ID'),
        'secret' => env('AWS_SECRET_ACCESS_KEY'),
        'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
    ],

    'resend' => [
        'key' => env('RESEND_KEY'),
    ],

    'slack' => [
        'notifications' => [
            'bot_user_oauth_token' => env('SLACK_BOT_USER_OAUTH_TOKEN'),
            'channel' => env('SLACK_BOT_USER_DEFAULT_CHANNEL'),
        ],
    ],

        'whatsapp' => [
            'provider' => env('WA_PROVIDER', 'fonnte'),
            'token' => env('WA_API_TOKEN', ''),
            'domain' => env('WA_API_DOMAIN', 'https://api.fonnte.com'),
            // Sync HTTP request: keep short to avoid UI/cron timeouts (queue workers can raise later)
            'min_delay_seconds' => (int) env('WA_MIN_DELAY_SECONDS', 1),
            'max_delay_seconds' => (int) env('WA_MAX_DELAY_SECONDS', 2),
            'disable_auto_read' => (bool) env('WA_DISABLE_AUTO_READ', true),
        ],

    'fingerspot' => [
        'api_url' => env('FINGERSPOT_API_BASE_URL', 'https://developer.fingerspot.io/api'),
        'api_token' => env('FINGERSPOT_API_TOKEN'),
        'cloud_id' => env('FINGERSPOT_CLOUD_ID'),
        'webhook_secret' => env('FINGERSPOT_WEBHOOK_SECRET'),
        'connect_timeout' => (int) env('FINGERSPOT_CONNECT_TIMEOUT', 5),
        'timeout' => (int) env('FINGERSPOT_TIMEOUT', 15),
        'retries' => (int) env('FINGERSPOT_RETRIES', 2),
    ],

];
