<?php

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

class EH_CRM_Settings_Handler {

	public function eh_crm_tickets_main_menu_callback() {
		include  EH_CRM_MAIN_VIEWS . 'crm_tickets_view.php' ;
	}

	public function eh_crm_settings_sub_menu_callback() {
		include  EH_CRM_MAIN_VIEWS . 'crm_settings_view.php' ;
	}

	public function eh_crm_agents_sub_menu_callback() {
		include  EH_CRM_MAIN_VIEWS . 'crm_agents_view.php' ;
	}

	public function eh_crm_reports_sub_menu_callback() {
		include  EH_CRM_MAIN_VIEWS . 'crm_reports_v2.php' ;
	}

	public function eh_crm_new_reports_sub_menu_callback() {
		include  EH_CRM_MAIN_VIEWS . 'crm_reports_v3.php' ;
	}

	public function eh_crm_premium_sub_menu_callback() {
		include  EH_CRM_MAIN_VIEWS . 'settings/crm_settings_premium.php' ;
	}

	public function eh_crm_email_sub_menu_callback() {
		if ( isset( $_GET['code'] ) ) {
			$code      = sanitize_text_field( $_GET['code'] );
			$oauth_obj = new EH_CRM_OAuth();
			$oauth_obj->get_token_uri( $code, 'code' );
		}
		include  EH_CRM_MAIN_VIEWS . 'crm_email_view.php' ;
	}

	public function eh_crm_import_sub_menu_callback() {
		include  EH_CRM_MAIN_VIEWS . 'crm_import_view.php' ;
	}
	public function eh_crm_archive_sub_menu_callback() {
		include  EH_CRM_MAIN_VIEWS . 'crm_archive_tickets_view.php' ;
	}
}
