<?php
// Exit if accessed directly.
if (! defined('ABSPATH')) {
    exit; // Prevent direct access to the file.
}



/*
 * Include core functionality files.
 */
include_once INTEGRAZO_WCZO_PLUGIN_DIR . 'includes/admin/admin.php';


// ===================== UTILITIES =====================
require_once INTEGRAZO_WCZO_PLUGIN_DIR . 'src/util/util.php';
require_once INTEGRAZO_WCZO_PLUGIN_DIR . 'src/util/account-inputs.php';
require_once INTEGRAZO_WCZO_PLUGIN_DIR . 'src/util/event.php';
require_once INTEGRAZO_WCZO_PLUGIN_DIR . 'src/util/fields.php';
require_once INTEGRAZO_WCZO_PLUGIN_DIR . 'src/util/hooks.php';
require_once INTEGRAZO_WCZO_PLUGIN_DIR . 'src/util/integration-page.php';
require_once INTEGRAZO_WCZO_PLUGIN_DIR . 'src/util/settings.php';
require_once INTEGRAZO_WCZO_PLUGIN_DIR . 'src/util/integration-list.php';



// ===================== DATABASE MODELS =====================
require_once INTEGRAZO_WCZO_PLUGIN_DIR . 'src/db/db_setup.php';
require_once INTEGRAZO_WCZO_PLUGIN_DIR . 'src/db/account_model.php';
require_once INTEGRAZO_WCZO_PLUGIN_DIR . 'src/db/integration_model.php';
require_once INTEGRAZO_WCZO_PLUGIN_DIR . 'src/db/logs_model.php';

// ===================== PAGE =====================
require_once INTEGRAZO_WCZO_PLUGIN_DIR . 'includes/page/accounts.php';

// ===================== CORE ACTIONS & HOOKS =====================
require_once INTEGRAZO_WCZO_PLUGIN_DIR . 'src/action/setup-action.php';
require_once INTEGRAZO_WCZO_PLUGIN_DIR . 'src/action/setup-extend.php';
require_once INTEGRAZO_WCZO_PLUGIN_DIR . 'src/action/delete.php';
require_once INTEGRAZO_WCZO_PLUGIN_DIR . 'src/action/logs.php';
require_once INTEGRAZO_WCZO_PLUGIN_DIR . 'src/action/settings.php';

// ===================== FORM PLUGIN SUPPORT =====================
require_once INTEGRAZO_WCZO_PLUGIN_DIR . 'src/integrations/util/identifier.php';
require_once INTEGRAZO_WCZO_PLUGIN_DIR . 'src/integrations/woocommerce.php';

// ===================== INTEGRATIONS =====================
require_once INTEGRAZO_WCZO_PLUGIN_DIR . 'src/products/product-util.php';
// Zoho CRM
require_once INTEGRAZO_WCZO_PLUGIN_DIR . 'src/products/zoho_crm/product.php';
require_once INTEGRAZO_WCZO_PLUGIN_DIR . 'src/products/zoho_crm/action.php';
// Zoho Bigin
require_once INTEGRAZO_WCZO_PLUGIN_DIR . 'src/products/zoho_bigin/product.php';
require_once INTEGRAZO_WCZO_PLUGIN_DIR . 'src/products/zoho_bigin/action.php';
// Zoho Campaigns
require_once INTEGRAZO_WCZO_PLUGIN_DIR . 'src/products/zoho_campaign/product.php';
require_once INTEGRAZO_WCZO_PLUGIN_DIR . 'src/products/zoho_campaign/action.php';
// Zoho Inventory
require_once INTEGRAZO_WCZO_PLUGIN_DIR . 'src/products/zoho_inventory/product.php';
require_once INTEGRAZO_WCZO_PLUGIN_DIR . 'src/products/zoho_inventory/action.php';
// Zoho Books
require_once INTEGRAZO_WCZO_PLUGIN_DIR . 'src/products/zoho_books/product.php';
require_once INTEGRAZO_WCZO_PLUGIN_DIR . 'src/products/zoho_books/action.php';
// Zoho Invoice
require_once INTEGRAZO_WCZO_PLUGIN_DIR . 'src/products/zoho_invoice/product.php';
require_once INTEGRAZO_WCZO_PLUGIN_DIR . 'src/products/zoho_invoice/action.php';
// Zoho Desk
require_once INTEGRAZO_WCZO_PLUGIN_DIR . 'src/products/zoho_desk/product.php';
require_once INTEGRAZO_WCZO_PLUGIN_DIR . 'src/products/zoho_desk/action.php';
