<?php
/**
 * Plugin Name: Better Mousetrap Quote Base
 * Description: Shared quote engine for Better Mousetrap industry quote plugins.
 * Version: 0.1.5
 * Author: Better Mousetrap
 * Update URI: https://plugins.bettermousetrap.ca/plugins/better-mousetrap-quote-base
 */

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

define('BMTQB_VERSION', '0.1.5');
define('BMTQB_PATH', plugin_dir_path(__FILE__));
define('BMTQB_URL', plugin_dir_url(__FILE__));
define('BMTQB_FILE', __FILE__);

require_once BMTQB_PATH . 'includes/Core/Industry_Interface.php';
require_once BMTQB_PATH . 'includes/Core/Plugin.php';
require_once BMTQB_PATH . 'includes/Admin/Capabilities.php';
require_once BMTQB_PATH . 'includes/Admin/Submission_Details.php';
require_once BMTQB_PATH . 'includes/Settings/Settings_Repository.php';
require_once BMTQB_PATH . 'includes/Submission/Submission_Post_Type.php';
require_once BMTQB_PATH . 'includes/Submission/Submission_Controller.php';
require_once BMTQB_PATH . 'includes/Uploads/Photo_Uploader.php';
require_once BMTQB_PATH . 'includes/PDF/PDF_Service.php';
require_once BMTQB_PATH . 'includes/Email/Email_Service.php';
require_once BMTQB_PATH . 'includes/Integrations/Integration_Context.php';
require_once BMTQB_PATH . 'includes/Integrations/Integration_Adapter_Interface.php';
require_once BMTQB_PATH . 'includes/Integrations/Integration_Manager.php';
require_once BMTQB_PATH . 'includes/Licensing/License_Manager.php';
require_once BMTQB_PATH . 'includes/Updates/Update_Manager.php';
require_once BMTQB_PATH . 'includes/Support/Formatter.php';

register_activation_hook(__FILE__, ['BMTQB_Capabilities', 'activate']);
BMTQB_Capabilities::init();

function bmtqb() {
    return BMTQB_Plugin::instance();
}

bmtqb();
