<?php

use App\Handlers\BlocksHandler;
use App\Handlers\CartHandler;
use App\Handlers\CategoriesHandler;
use App\Handlers\ETLHandler;
use App\Handlers\FiltersHandler;
use App\Handlers\FormsHandler;
use App\Handlers\HealthCheckHandler;
use App\Handlers\OrderHandler;
use App\Handlers\PrivacyPolicyHandler;
use App\Handlers\ProductsHandler;
use App\Handlers\SettingsHandler;
use App\Handlers\TelegramCustomerHandler;
use App\Handlers\TelegramHandler;
use App\Handlers\TelemetryHandler;

return [
    'categoriesList' => [CategoriesHandler::class, 'index'],
    'checkIsUserPrivacyConsented' => [PrivacyPolicyHandler::class, 'checkIsUserPrivacyConsented'],
    'checkout' => [CartHandler::class, 'checkout'],
    'filtersForMainPage' => [FiltersHandler::class, 'getFiltersForMainPage'],
    'getCart' => [CartHandler::class, 'index'],
    'getForm' => [FormsHandler::class, 'getForm'],
    'health' => [HealthCheckHandler::class, 'handle'],
    'ingest' => [TelemetryHandler::class, 'ingest'],
    'heartbeat' => [TelemetryHandler::class, 'heartbeat'],
    'processBlock' => [BlocksHandler::class, 'processBlock'],
    'product_show' => [ProductsHandler::class, 'show'],
    'products' => [ProductsHandler::class, 'index'],
    'productsSearchPlaceholder' => [ProductsHandler::class, 'getSearchPlaceholder'],
    'saveTelegramCustomer' => [TelegramCustomerHandler::class, 'saveOrUpdate'],
    'getCurrentCustomer' => [TelegramCustomerHandler::class, 'getCurrent'],
    'settings' => [SettingsHandler::class, 'index'],
    'storeOrder' => [OrderHandler::class, 'store'],
    'testTgMessage' => [SettingsHandler::class, 'testTgMessage'],
    'userPrivacyConsent' => [PrivacyPolicyHandler::class, 'userPrivacyConsent'],
    'webhook' => [TelegramHandler::class, 'webhook'],
    'etlCustomers' => [ETLHandler::class, 'customers'],
    'etlCustomersMeta' => [ETLHandler::class, 'getCustomersMeta'],
    'getProductImages' => [ProductsHandler::class, 'getProductImages'],
];
