<?php

use function Cake\Core\env;

/*
 * Local configuration file to provide any overrides to your app.php configuration.
 * Copy and save this file as app_local.php and make changes as required.
 * Note: It is not recommended to commit files with credentials such as app_local.php
 * into source code version control.
 */
return [
    /*
     * Debug Level:
     *
     * Production Mode:
     * false: No error messages, errors, or warnings shown.
     *
     * Development Mode:
     * true: Errors and warnings shown.
     */
    'debug' => filter_var(env('DEBUG', true), FILTER_VALIDATE_BOOLEAN),

    /*
     * Security and encryption configuration
     *
     * - salt - A random string used in security hashing methods.
     *   The salt value is also used as the encryption key.
     *   You should treat it as extremely sensitive data.
     */
    'Security' => [
        'salt' => env('SECURITY_SALT', 'df8143e59dad4285e4bea2656189c4b5fa6f3cf559e34c424a3d3713c0c0ae97'),
    ],

    /*
     * Connection information used by the ORM to connect
     * to your application's datastores.
     *
     * See app.php for more configuration options.
     */
    'Datasources' => [
        'default' => [
            'host' => 'localhost',
            /*
             * CakePHP will use the default DB port based on the driver selected
             * MySQL on MAMP uses port 8889, MAMP users will want to uncomment
             * the following line and set the port accordingly
             */
            //'port' => 'non_standard_port_number',

            'username' => 'preoscom_whatsapp',
            'password' => 'bs@uU.&,H1LDU.&_',

            'database' => 'preoscom_whatsapp',
            /*
             * If not using the default 'public' schema with the PostgreSQL driver
             * set it here.
             */
            //'schema' => 'myapp',

            /*
             * You can use a DSN string to set the entire configuration
             */
            'url' => env('DATABASE_URL', null),
        ],

        /*
         * The test connection is used during the test suite.
         */
        'test' => [
            'host' => 'localhost',
            //'port' => 'non_standard_port_number',
            'username' => 'my_app',
            'password' => 'secret',
            'database' => 'test_myapp',
            //'schema' => 'myapp',
            'url' => env('DATABASE_TEST_URL', 'sqlite://127.0.0.1/tmp/tests.sqlite'),
        ],
    ],

    /*
     * Email configuration.
     *
     * Host and credential configuration in case you are using SmtpTransport
     *
     * See app.php for more configuration options.
     */
    'EmailTransport' => [
        'default' => [
            'host' => 'localhost',
            'port' => 25,
            'username' => null,
            'password' => null,
            'client' => null,
            'url' => env('EMAIL_TRANSPORT_DEFAULT_URL', null),
        ],
    ],
    'WhatsApp' => [
        'accessToken' => 'EAANFpGq2EE4BRN2JlDejPhHNi0XNUzJJwTAkn7OChthUZAK50tW0qcLJxGlqpJMdhVOg7mhbMgjmDgpqONunwU1o9Q4kRz8MSHzPbNUmmfopfv7QXxVZAPYQaJ4WvPNh9ULzTjT5sI2iEXzWZCiVJv8erg9ZBlJVsbs93ZB0OMhUOpgOpYjdNo488F8TuaaGZCaARVYP3cx9OrKHZBFiufO4Eo2TzyMudOkShcwDyz3LmKxho8MlumZBJMUWixvK38WUnrbvB5azSjYp7HtT2tcbmEX1pjG9jr4KOmSGvc4ZD',
        'phoneNumberId' => '1049927488209662',
        'businessAccountId' =>'1474348607684152',
        'verifyToken' => env('WHATSAPP_VERIFY_TOKEN', '9JLQxsDE5kRw$PRFRCPbz!GfioWus9NhrSlvFJTA'),
        'appSecret' => '21c32ea99c064002f3a0c4d274b0e9ef',
        'graphApiVersion' => env('WHATSAPP_GRAPH_API_VERSION', 'v25.0'),
        'templateName' => env('WHATSAPP_TEMPLATE_NAME', 'turno_asignado_psicofisica'),
        'templateLanguage' => env('WHATSAPP_TEMPLATE_LANGUAGE', 'es_AR'),
        'templateBodyParamKeys' => env('WHATSAPP_TEMPLATE_BODY_PARAM_KEYS', 'event_date,event_time,venue,message'),
        'defaultCountryCallingCode' => env('WHATSAPP_DEFAULT_COUNTRY_CALLING_CODE', '54'),
        'sendDelayMs' => (int)env('WHATSAPP_SEND_DELAY_MS', '250'),
    ],
];
