<?php

/*
|--------------------------------------------------------------------------
| Wisebee Configuration
|--------------------------------------------------------------------------
|
| Environment Variables:
|
| WISEBEE_ENABLED              - Enable/disable the Wisebee plugin (default: false)
| WISEBEE_API_KEY              - API key for authenticating with the Wisebee API
| WISEBEE_HOST                 - Base URL of the Wisebee instance (e.g. https://clientcode.wisebee.app/)
| WISEBEE_API_ENDPOINT         - API path appended to the host (e.g. api/)
| WISEBEE_BOOKING_WIDGET_API_KEY       - API key for the booking widget
| WISEBEE_CONSULTATION_WIDGET_API_KEY  - API key for the consultation widget
| WISEBEE_SYNC_MEMBERS         - Sync members with Wisebee (default: true)
| WISEBEE_SHOW_CONFIGURATION   - Show configuration in admin (default: true)
| WISEBEE_PROVISIONING_KEY     - Key for provisioning new Wisebee clients
| WISEBEE_ENVIRONMENTS         - JSON object mapping domain => label for available
|                                Wisebee environments used in the setup wizard.
|                                Defaults to {"wisebee.app":"Live"} if not set.
|                                Example: '{"wisebee.app":"Live","staging.example.com":"Staging"}'
|
*/

return [
    'enabled' => env('WISEBEE_ENABLED', false),
    'api_key' => env('WISEBEE_API_KEY', ''),
    'host' => env('WISEBEE_HOST', ''),
    'api_endpoint' => env('WISEBEE_API_ENDPOINT', ''),
    'booking_widget_api_key' => env('WISEBEE_BOOKING_WIDGET_API_KEY', ''),
    'consultation_widget_api_key' => env('WISEBEE_CONSULTATION_WIDGET_API_KEY', ''),
    'sync_members' => env('WISEBEE_SYNC_MEMBERS', true),
    'show_configuration' => env('WISEBEE_SHOW_CONFIGURATION', true),

    // Provisioning
    'provisioning_key' => env('WISEBEE_PROVISIONING_KEY', ''),
    'environments' => env('WISEBEE_ENVIRONMENTS')
        ? json_decode(env('WISEBEE_ENVIRONMENTS'), true)
        : [
            'wisebee.app' => 'Live',
            'consult.mtcdevserver6.com' => 'Staging',
            'uldis.consult.mtcdevserver6.com' => 'Uldis Dev',
        ],
];
