<?php

/*
 * Do not edit this file, but create a similair file in the config subfolder production with the config elements
 * you wish to override. The items you will not define in your custom config file will use the below defaults
 */

return [

    'interface' => [
        'language'   => 'en',
        'navigation' => ['home', 'contacts', 'netblocks', 'domains', 'tickets', 'analytics'],
    ],

    'emailparser' => [
        'fallback_mail'      => env('MAIN_EMAILPARSER_FALLBACK_MAIL', 'admin@isp.local'),
        'use_bounce_method'  => env('MAIN_EMAILPARSER_USE_BOUNCE_METHOD', false),
        'notify_on_warnings' => env('MAIN_EMAILPARSER_NOTIFY_ON_WARNINGS', true),
    ],

    // A list of installation UUID's which are considered to be parents allowing them to push events thru the API
    // as well as sync notes and retrieve this child's status updates on tickets.
    'parent_instances' => [

    ],

    'reports' => [
        'min_lastseen'    => env('MAIN_REPORTS_MIN_LASTSEEN', false), //This ignores any event older then threshold
        'resolvable_only' => env('MAIN_REPORTS_RESOLVABLE_ONLY', false), // This drops anything if a domain or netblock cannot be found
    ],

    'notes' => [
        'enabled'              => true,
        'deletable'            => true,
        'show_abusedesk_names' => true,
    ],

    'notifications' => [
        'enabled'        => env('MAIN_NOTIFICATIONS_ENABLED', true),
        'info_interval'  => env('MAIN_NOTIFICATIONS_INFO_INTERVAL', '90 days'),
        'abuse_interval' => env('MAIN_NOTIFICATIONS_ABUSE_INTERVAL', '0 minutes'),
        'min_lastseen'   => env('MAIN_NOTIFICATIONS_MIN_LASTSEEN', '14 days'),
        'from_address'   => env('MAIN_NOTIFICATIONS_FROM_ADDRESS', 'abuse@isp.local'),
        'from_name'      => env('MAIN_NOTIFICATIONS_FROM_NAME', 'ISP Abusedesk'),
        'bcc_enabled'    => env('MAIN_NOTIFICATIONS_BCC_ENABLED', false),
        'bcc_address'    => env('MAIN_NOTIFICATIONS_BCC_ADDRESS', 'management@isp.local'),
    ],

    'housekeeping' => [
        'mailarchive_remove_after'        => '500 days',
        'mailarchive_remove_orphaned'     => true,
        'tickets_close_after'             => '14 days',
        'closed_tickets_remove_after'     => false,
        'closed_tickets_remove_permanent' => false,
        'notifications_cron'              => '*/15 * * * *',
        'collectors_cron'                 => '*/60 * * * *',
        'housekeeper_cron'                => '*/1 * * * *',
        'collect_statistics_cron'         => '0 2 * * *', //needs some discussion on when to run;
        'enable_queue_problem_alerts'     => true,
    ],

    'ash' => [
        'url' => env('APP_URL', 'http://localhost').'/ash/',
    ],

    'external' => [
        'findcontact' => [
            'id' => [
                'prefer_local' => true,
                [
                    'class'  => 'Custom',
                    'method' => 'getContactById',
                ],
            ],
            'ip' => [
                'prefer_local' => true,
                [
                    'class'  => 'Custom',
                    'method' => 'getContactByIp',
                ],
            ],
            'domain' => [
                'prefer_local' => true,
                [
                    'class'  => 'Custom',
                    'method' => 'getContactByDomain',
                ],
            ],
        ],
    ],

    'api' => [
        'enabled' => true,
    ],

    'gdpr_anonymize_domain' => env('GDPR_ANONYMIZE_DOMAIN', 'example.com'),
    'classifications'       => [
        'default' => 'DEFAULT',
        'aliases' => [
            //'MY_CLASSIFICATION' => 'DEFAULT',
        ],
    ],
];
