* Mind body API integration
 *
 * @package   mind-body
 * @author    C.J.Churchill <*****@*****.**>
 * @license   GPL-2.0+
 * @link      http://accruemarketing.com/
 * @copyright 4-29-2014 Accrue
 *
 * @wordpress-plugin
 * Plugin Name: Mind Body
 * Plugin URI:  http://accruesupport.com
 * Description: Mind body API integration
 * Version:     1.0.0
 * Author:      C.J.Churchill
 * Author URI:  http://accruemarketing.com/
 * Text Domain: mind-body-locale
 * License:     GPL-2.0+
 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
 * Domain Path: /lang
 */
// If this file is called directly, abort.
if (!defined("WPINC")) {
    die;
}
require_once plugin_dir_path(__FILE__) . "MindBody.php";
// Register hooks that are fired when the plugin is activated, deactivated, and uninstalled, respectively.
register_activation_hook(__FILE__, array("MindBody", "activate"));
register_deactivation_hook(__FILE__, array("MindBody", "deactivate"));
//settings page
MindBody::get_instance();
$plugins_url = realpath(__DIR__ . '/../..');
global $wpdb, $woocommerce, $pagenow;
require_once $plugins_url . '/woocommerce/includes/api/class-wc-api-server.php';
/*
  The rest of these require_once's are taken from the woocommerce plugin!
*/
require_once $plugins_url . '/woocommerce/includes/api/interface-wc-api-handler.php';
require_once $plugins_url . '/woocommerce/includes/api/class-wc-api-json-handler.php';
require_once $plugins_url . '/woocommerce/includes/api/class-wc-api-resource.php';
require_once realpath(__DIR__ . '/..') . '/assets/class-wc-api-products.php';
require_once plugin_dir_path(__FILE__) . "../includes/classService.php";
require_once plugin_dir_path(__FILE__) . "../includes/saleService.php";
/*
 	Get plugins options!
*/
$getadminfunction = new MindBody();
//plugin options basic
$no_exists_value = get_option('mind_body_options');
$sourcename = $no_exists_value['sourcename'];
$password = $no_exists_value['password'];
$siteID = $no_exists_value['siteID'];
//plugin dependancies options.
$hideornot = get_option('mind_body_options_plugins');
$gethideornot = $hideornot["hidenotice"];
//get class dates for imports
$getdates = get_option('mind_body_options_import');
$fromdate = $getdates["importfromdate"];
$todate = $getdates["importtodate"];
$showresults = false;
/*
	End dates
 /**
  * Return an instance of this class.
  *
  * @since     1.0.0
  *
  * @return    object    A single instance of this class.
  */
 public static function get_instance()
 {
     // If the single instance hasn"t been set, set it now.
     if (null == self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }