require_once '../includes/global.inc.php';
require_once CLASSES_PATH . 'error.inc.php';
require_once DBS_PATH . 'DataHelper.php';
require_once DBS_PATH . 'objDataHelper.php';
require_once INCLUDES_PATH . 'cm_authfunc.inc.php';
$CONST_MODULE = 'meeting';
$CONST_PAGEID = 'Meeting Page';
require_once INCLUDES_PATH . 'cm_authorize.inc.php';
require_once INCLUDES_PATH . 'common_function.inc.php';
require_once INCLUDES_PATH . 'schedule_function.inc.php';
require_once INCLUDES_PATH . "mail_common_function.inc.php";
$strScheduleId = trim($_REQUEST['SchId']);
$strPassCode = trim($_REQUEST['SchDtl']);
try {
    $arrSchValidDtls = isScheduleValid($strScheduleId, $strCk_user_email_address, $strPassCode, $objDataHelper);
} catch (Exception $e) {
    throw new Exception("index.php : getScheduleDetailsById Failed : " . $e->getMessage(), 1126);
}
$Schedule_Id = trim($arrSchValidDtls[0]['schedule_id']);
$Meeting_Title = trim($arrSchValidDtls[0]['meeting_title']);
if (isset($_POST['txtCanReason'])) {
    $strScheduleId = trim($_POST['txtScheduleId']);
    //$strSchStatus  = trim($_POST['txtSchStatus']);
    $strCanReason = trim($_POST['txtCanReason']);
    try {
        $arrSchDtls = getScheduleDetailsById($strScheduleId, $objDataHelper);
    } catch (Exception $e) {
        throw new Exception("index.php : getScheduleDetailsById Failed : " . $e->getMessage(), 1126);
    }
    //print_r($arrSchDtls); exit;
require_once '../../includes/global.inc.php';
require_once '../includes/config.inc.php';
require_once CLIENT_CLASSES_PATH . 'client_error.inc.php';
require_once CLIENT_DBS_PATH . 'DataHelper.php';
require_once CLIENT_DBS_PATH . 'objDataHelper.php';
require_once CLIENT_INCLUDES_PATH . 'client_authfunc.inc.php';
$CLIENT_CONST_MODULE = 'cl_reports';
$CLIENT_CONST_PAGEID = 'Meeting Report_1';
require_once CLIENT_INCLUDES_PATH . 'client_authorize.inc.php';
require_once CLIENT_INCLUDES_PATH . 'client_db_function.inc.php';
require_once CLIENT_INCLUDES_PATH . 'client_reports_function.inc.php';
$strScheduleId = trim($_REQUEST['SchId']);
$strEmailId = trim($_REQUEST['Email']);
$strPassCode = trim($_REQUEST['SchDtl']);
try {
    $arrSchDtls = isScheduleValid($strScheduleId, $strEmailId, $strPassCode, $objDataHelper);
} catch (Exception $e) {
    throw new Exception("index.php : getScheduleDetailsById Failed : " . $e->getMessage(), 1126);
}
//echo "<pre>";
//print_r($arrSchDtls);
//echo "<pre>";
$Schedule_Id = trim($arrSchDtls[0]['schedule_id']);
$Schedule_Status = trim($arrSchDtls[0]['schedule_status']);
$Meeting_Title = trim($arrSchDtls[0]['meeting_title']);
$Meeting_Agenda = trim($arrSchDtls[0]['meeting_agenda']);
if (strlen($Meeting_Agenda) <= 0) {
    $Meeting_Agenda = "---";
}
$Meeting_Time = dateFormat(trim($arrSchDtls[0]['meeting_timestamp_gmt']), trim($arrSchDtls[0]['meeting_timestamp_local']), trim($arrSchDtls[0]['meeting_timezone']));
$Voice_Bridge = trim($arrSchDtls[0]['voice_bridge']);