<?php

if (!defined('ABSPATH')) {
    exit;
}

return function ($chat) {
    add_action('init', array($chat, 'load_textdomain'), 0);
    
    
    if (method_exists($chat, 'load_dependencies_public')) {
        $chat->load_dependencies_public();
    } else {
        
        
        require_once AIEO_CHAT_DIR . 'includes/chat/class-rest-api.php';
        if (class_exists('AI_eShop_Chat_REST_API')) {
            AI_eShop_Chat_REST_API::get_instance();
        }
    }
};
