<?php
/**
 * این فایل را با اطلاعات واقعی خودت کامل کن.
 * اینجا دیگر تنظیمات بله/وبهوک لازم نیست، چون پروژه وبی شده.
 */
return [
    'bale_bot_token' => '', // خالی بماند؛ فقط برای سازگاری هسته قدیمی است.
    'webhook_url'    => '',

    'allowed_chat_ids' => [],

    'request_timeout' => 180,
    'user_agent'      => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36',

    'runtime_dir' => __DIR__ . '/../storage/runtime',
    'output_dir'  => __DIR__ . '/../storage/exports',

    'hamrahtel' => [
        'base_url'    => 'https://hamrahtel.com',
        'graphql_url' => 'https://core-api.hamrahtel.com/graphql/',
        'category_id' => 'Q2F0ZWdvcnk6Mg==',
        'page_size'   => 100,
        'category_urls' => [
            'https://hamrahtel.com/categories?category=mobile&filter=brand-shyywmy,smswng,pl',
        ],
    ],

    'hesabanweb' => [
        'token'        => 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJTSWQiOiI3MDAxMjQ3MTYyMDMiLCJJUFQiOiJUcnVlIiwiT3JpZ2luIjoiaHR0cHM6Ly9hcHAuaGVzYWJhbndlYi5jb20iLCJEQklEIjoiNzAwMTI0NTcxMTc3IiwiREJDIjoiQWNjb3VudGluZ183MDAxMjQ1NzExNzciLCJEQlMiOiIuIiwiU1VBSSI6IjE4NTEyMzQ1Njc4MCIsIlNDQyI6IjcwMDEyNDU3MTE3NCIsIlNSTiI6IkFkbWluIiwiQ0lkIjoiUHlyYW1pZC1BY2NvdW50aW5nLURlc2t0b3AtUGVybWFuZW50LTcwMDEyNDcxNjIwMiIsIm5hbWVpZCI6IjcwMDEyNDU3MTE3NiIsInJvbGUiOiJBZG1pbiIsIm5iZiI6MTc3MjI4OTYwNiwiZXhwIjo4MDgzNjM2ODA2LCJpYXQiOjE3NzIyODk2MDZ9.kY7ha8rjM6dj5LXRCbYd2acg20vdkd82pcFCilkxxvA',
        'base_url'     => 'https://app.hesabanweb.com',
        'only_stock'   => 'false',
        'per_page'     => 1000,
        'page'         => 1,
        'target_group' => 'موبایل',
    ],

    'ahvazphone' => [
        'base_url'              => 'https://ahvazphone.ir',
        'auth_url'              => 'https://ahvazphone.ir/site/api/v1/user/create-session',
        'username'              => '09165000780',
        'password'              => 'Aa10203040',
        'page_size'             => 100,
        'delay_microseconds'    => 250000,
        'token_refresh_seconds' => 172800,
        'get_retry_attempts'       => 3,
        'put_retry_attempts'       => 2,
        'retry_sleep_microseconds' => 900000,
    ],

    'digikala' => [
        'categories' => [
            [
                'slug'   => 'mobile-phone',
                'brands' => [10, 1662, 18],
            ],
            [
                'slug'   => 'tablet',
                'brands' => [],
            ],
        ],
        'has_selling_stock' => 1,
        'max_pages' => 100,
    ],

    'mobile140' => [
        'api_url'   => 'https://services.mobile140.com/client/ProductSearch/Category',
        'brands'    => ['xiaomi', 'samsung', 'apple', 'category-tablet'],
        'page_size' => 12,
        'max_pages' => 100,
    ],

    'technolife' => [
        'base_url' => 'https://www.technolife.com',
        'list_urls' => [
            'https://www.technolife.com/product/list/69_70_79/%DA%AF%D9%88%D8%B4%DB%8C-%D9%85%D9%88%D8%A8%D8%A7%DB%8C%D9%84-%D8%B4%DB%8C%D8%A7%D8%A6%D9%88%D9%85%DB%8C-xiaomi?only_available=true',
            'https://www.technolife.com/product/list/69_70_73/%DA%AF%D9%88%D8%B4%DB%8C-%D9%85%D9%88%D8%A8%D8%A7%DB%8C%D9%84-%D8%A7%D9%BE%D9%84-apple?only_available=true',
            'https://www.technolife.com/product/list/69_70_77/%DA%AF%D9%88%D8%B4%DB%8C-%D9%85%D9%88%D8%A8%D8%A7%DB%8C%D9%84-%D8%B3%D8%A7%D9%85%D8%B3%D9%88%D9%86%DA%AF-samsung?only_available=true',
            'https://www.technolife.com/product/list/27_550_227/%D8%AA%D9%85%D8%A7%D9%85-%D8%AA%D8%A8%D9%84%D8%AA-%D9%87%D8%A7'
        ],
        'max_pages' => 20,
    ],

    'farnaa' => [
        'category_urls' => [
            'https://farnaa.com/category/mobile/apple?availablestock=true',
            'https://farnaa.com/category/mobile/samsung?availablestock=true',
            'https://farnaa.com/category/mobile/xiaomi?availablestock=true',
            'https://farnaa.com/category/tablet?availablestock=true'
        ],
        'request_timeout'        => 300,
        'previous_rows_file'     => __DIR__ . '/../storage/runtime/farnaa_last_rows.json',
        'price_alert_categories' => ['apple', 'samsung', 'xiaomi'],
        'delay_microseconds'     => 150000,
    ],
];
