<?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"),
    ],

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

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

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

    /* custom geocoding service values */
    "geocoding" => [
        "provider" => env("GEOCODER", "arcgis"),
        "timeout" => (int) env("GEOCODER_TIMEOUT", 20),
        "user_agent" => env("GEOCODER_USER_AGENT", "Kithkin/LocalDev"),
        "after_migrate" => (bool) env("GEOCODE_AFTER_MIGRATE", false),
        "arcgis" => [
            "api_key" => env("ARCGIS_API_KEY"),
            "store" => (bool) env("ARCGIS_STORE_RESULTS", true),
            "debug" => (bool) env("ARCGIS_DEBUG", false),
            "endpoint" =>
                "https://geocode-api.arcgis.com/arcgis/rest/services/World/GeocodeServer",
            "country_code" => env("GEOCODER_COUNTRY", "USA"),
            "categories" => env("GEOCODER_CATEGORIES", "POI,Address"),
            "out_fields" =>
                "Match_addr,Addr_type,PlaceName,Place_addr,Address,City,Region,Postal,CountryCode,LongLabel",
            "max_results" => 1,
            "basemap_style" => env("ARCGIS_BASEMAP_STYLE", "arcgis/community"),
            "basemap_zoom" => (int) env("ARCGIS_BASEMAP_ZOOM", 16),
        ],
    ],
];
