<?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.
    |
    */

    'mailgun' => [
        'domain' => env('MAILGUN_DOMAIN'),
        'secret' => env('MAILGUN_SECRET'),
        'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'),
        'scheme' => 'https',
    ],

    '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'),
    ],

    'reporting' => [
        'base_url' => env('REPORTING_API_BASE_URL', 'https://super-admin-ui.onrender.com'),
        'token' => env('REPORTING_API_TOKEN'),
        'design_path' => env('REPORTING_DESIGN_PATH', '/auto-reporting/leads'),
        'qa_path' => env('REPORTING_QA_PATH', '/auto-reporting/audits'),
        'timeout' => (int) env('REPORTING_API_TIMEOUT', 30),
    ],

    'magic_login' => [
        'frontend_url' => env('MAGIC_LOGIN_FRONTEND_URL', env('FRONTEND_URL', '')),
        'secret' => env('MAGIC_LOGIN_SECRET'),
        'ttl_minutes' => (int) env('MAGIC_LOGIN_TTL_MINUTES', 30),
        'consume_once' => filter_var(env('MAGIC_LOGIN_CONSUME_ONCE', true), FILTER_VALIDATE_BOOL),
    ],

];
