var vaar=1; var chat_type_config_ar = new Array(); var tmp_arr_config = new Array(); var offline_tmp_arr_config = new Array(); var localSyncRequestHandler = ""; chat_type_config_ar={"type":"reactive","time_duration_in_sec":"0","extra_condition":"NO","keywords":"","message":"","scheme_id":"298","template_name":"template5"};tmp_arr_config={"is_multiple_chat_session_allowed_with_email_id":"NO","is_question_field_require":"NO","is_mobile_field_require":"YES","is_email_validation_require":"NO","is_screenshot_option_require":"NO","is_feedback_option_require":"YES","is_file_transfer_option_require":"YES","is_popup_show_on":"RIGHT","is_chat_history_option_require":"NO","is_department_wise_chat_routing_require":"NO","is_department_wise_chat_routing_basis_on_department":"NO","is_department_wise_chat_routing_basis_on_department_tags":"NO","send_chat_transcript_threw_email_client":"NO","is_smilies_option_require":"NO","is_email_option_require":"YES","is_screen_share_option_require":"NO","is_client_feedback_validation_require":"NO"};offline_tmp_arr_config={"is_question_field_require":"YES","is_mobile_field_require":"YES","is_email_field_require":"YES","is_feedback_field_require":"NO"}; var globalScopeTVTChatTemplateVar = null; var globalScopeTVTChatWindowHeading = null; var globalScopeTVTChatOnlineMinimizeWindowHeading = null; var globalScopeTVTChatOfflineMinimizeWindowHeading = null; var globalScopeTVTChatWelcomeMessage = null; var globalScopeTVTChatOfflineWelcomeMessage = null; var globalScopeTVTChatAgentUnavailableMessage = null; var globalScopeTVTChatWindowAction = null; var globalScopeTVTMobileChatWindowAction = null; var globalScopeTVTChatTextareaMaxLength = null; var globalScopeTVTChatMoreDetails = {}; globalScopeTVTChatMoreDetails["currentYear"] = "2021"; globalScopeTVTChatMoreDetails["currentMonth"] = "12"; globalScopeTVTChatMoreDetails["currentDay"] = "01"; globalScopeTVTChatMoreDetails["currentHour"] = "13"; globalScopeTVTChatMoreDetails["currentMinute"] = "18"; globalScopeTVTChatMoreDetails["currentSecond"] = "52"; globalScopeTVTChatMoreDetails["fileLocation"] = "https://czchat.trixchat.com/chatadmin/"; globalScopeTVTChatMoreDetails["encClientId"] = "MTA="; globalScopeTVTChatWindowHeading='Live Chat'; globalScopeTVTChatOnlineMinimizeWindowHeading='We Are Online'; globalScopeTVTChatOfflineMinimizeWindowHeading='We Are Offline'; globalScopeTVTChatWelcomeMessage='Welcome to Sharda University'; globalScopeTVTChatOfflineWelcomeMessage='We are offline now.Kindly contact us between 9:00 am to 6:00 pm'; globalScopeTVTChatAgentUnavailableMessage='No agents are available'; globalScopeTVTChatWindowAction='1'; globalScopeTVTMobileChatWindowAction='1'; globalScopeTVTChatTextareaMaxLength='1000'; globalScopeTVTChatMoreDetails["selectedTemplate"] = "template5"; globalScopeTVTChatMoreDetails["timeZoneGmtDiff"] = "IST(+0530)"; globalScopeTVTChatLogoImage='images/logo_images/20200704145532_08000ea144fa8e9ab4a5abcc8997d508.png'; globalScopeTVTChatLogoMsgImage=''; var globalScopeTVTChatPopupWindowHeadElement = document.getElementsByTagName('head')[0]; var globalScopeTVTChatLoadScript = document.createElement('script'); globalScopeTVTChatLoadScript.type = 'text/javascript'; globalScopeTVTChatLoadScript.src = globalScopeTVTChatMoreDetails["fileLocation"]+"/js_chat/smilies_container.js"; globalScopeTVTChatPopupWindowHeadElement.appendChild (globalScopeTVTChatLoadScript); var globalScopeTVTChatLoadCSS = document.createElement("link"); globalScopeTVTChatLoadCSS.rel='stylesheet'; globalScopeTVTChatLoadCSS.type='text/css'; globalScopeTVTChatLoadCSS.media="screen"; globalScopeTVTChatLoadCSS.href = globalScopeTVTChatMoreDetails["fileLocation"]+"css/template5.css"; globalScopeTVTChatPopupWindowHeadElement.appendChild (globalScopeTVTChatLoadCSS); var globalScopeTVTChatLoadCSS = document.createElement("link"); globalScopeTVTChatLoadCSS.rel='stylesheet'; globalScopeTVTChatLoadCSS.type='text/css'; globalScopeTVTChatLoadCSS.media="screen"; globalScopeTVTChatLoadCSS.href = globalScopeTVTChatMoreDetails["fileLocation"]+"customized_css/10_298_styles.css"; globalScopeTVTChatPopupWindowHeadElement.appendChild (globalScopeTVTChatLoadCSS); _CZCHAT_CHECK_ALL_SCRIPT_LOADING_ = 0; function loadScript(url, callback) { var globalScopeTVTChatLoadScript = document.createElement('script'); globalScopeTVTChatLoadScript.type = 'text/javascript'; globalScopeTVTChatLoadScript.src = globalScopeTVTChatMoreDetails["fileLocation"]+"/designsHtml/template5.js"; globalScopeTVTChatLoadScript.onload = globalScopeTVTChatLoadScript.onreadystatechange = function() { if (typeof (globalScopeTVTChatTemplateObject) == "object") { globalScopeTVTChatTemplateVar = globalScopeTVTChatTemplateObject; } if (!this.readyState || this.readyState === "loaded" || this.readyState === "complete") { _CZCHAT_CHECK_ALL_SCRIPT_LOADING_ = (_CZCHAT_CHECK_ALL_SCRIPT_LOADING_ + 100); } }; globalScopeTVTChatPopupWindowHeadElement.appendChild (globalScopeTVTChatLoadScript); var globalScopeTVTChatLoadScript = document.createElement('script'); globalScopeTVTChatLoadScript.type = 'text/javascript'; globalScopeTVTChatLoadScript.src = url+"chatjs_objectbased_client.js"; if (typeof(window.Storage) !== "undefined") { window.localStorage.setItem("baseUrlOverride","https://czchat.trixchat.com/chatadmin/CoBrowsing"); } var clientName = ""; TogetherJSConfig_getUserName=function(){return clientName;}; var CoBrowsingScript=document.createElement('script'); CoBrowsingScript.type='text/javascript'; CoBrowsingScript.src="https://czchat.trixchat.com/chatadmin/CoBrowsing/togetherjs.js"; document.getElementsByTagName('head')[0].appendChild(CoBrowsingScript); //~ Including Browser support file -laukesh 29/05/2020 var browserSupportScript=document.createElement('script'); browserSupportScript.type='text/javascript'; browserSupportScript.src="https://czchat.trixchat.com/chatadmin/browser_support.js"; document.getElementsByTagName('head')[0].appendChild(browserSupportScript); var done = false; globalScopeTVTChatLoadScript.onload = globalScopeTVTChatLoadScript.onreadystatechange = function() { if ( !done && (!this.readyState || this.readyState === "loaded" || this.readyState === "complete") ) { _CZCHAT_CHECK_ALL_SCRIPT_LOADING_ = (_CZCHAT_CHECK_ALL_SCRIPT_LOADING_ + 100); done = true; callback(); globalScopeTVTChatLoadScript.onload = globalScopeTVTChatLoadScript.onreadystatechange = null; if ( globalScopeTVTChatPopupWindowHeadElement && globalScopeTVTChatLoadScript.parentNode ) { globalScopeTVTChatPopupWindowHeadElement.removeChild(globalScopeTVTChatLoadScript); } } }; globalScopeTVTChatPopupWindowHeadElement.appendChild(globalScopeTVTChatLoadScript); } var ChatInitializaterMethod = function(event) { if (_CZCHAT_CHECK_ALL_SCRIPT_LOADING_ < 200) { console.log ("NOT ALL SCRIPTS ARE LOADED YET!"); window.setTimeout (function(){ChatInitializaterMethod(event);} ,500); return; } console.log ("DONE, ALL SCRIPTS ARE SUCCESSFULLY LOADED!"); var evnt_objjj=event; chat_object.active_chat_feature_arr=tmp_arr_config; chat_object.offline_active_chat_feature_arr = offline_tmp_arr_config; chat_object.hk = "MTBfTW96aWxsYS81LjAgKE1hY2ludG9zaDsgSW50ZWwgTWFjIE9TIFggMTBfMTNfNikgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzk2LjAuNDY2NC41NSBTYWZhcmkvNTM3LjM2"; chat_object.lk = "e6dc99be05c9101c9af06e76cc2558de"; chat_object.current_url=window.location; chat_object.chat_type_ar=chat_type_config_ar; if(typeof customer_information_container !== "undefined") { chat_object.thirdparty_customerinfo = customer_information_container; } if(typeof proactive_extra_condition_flag !== "undefined") { chat_object.proactive_extra_condition_flag = proactive_extra_condition_flag; } //~ var tmp_sec_counter_n=1; if((chat_object.chat_type_ar["type"]=="reactive") || (chat_object.chat_type_ar["type"]=="proactive")){ if(chat_object.chat_type_ar["type"]=="reactive"){ checkEvents(chat_object,evnt_objjj); } else if((chat_object.chat_type_ar["type"]=="proactive") && (chat_object.widgetCookieStatus()!=null)){ checkEvents(chat_object,evnt_objjj); } else if((chat_object.chat_type_ar["type"]=="proactive") && (chat_object.widgetCookieStatus()==null || chat_object.widgetCookieStatus()==undefined)){ if((chat_object.chat_type_ar["extra_condition"]=="NO") && (chat_object.chat_type_ar["keywords"]=='')){ var time_delay_v=parseInt(chat_object.chat_type_ar["time_duration_in_sec"]*1000); setTimeout( function(){ if(confirm(chat_object.chat_type_ar["message"])){ checkEvents(chat_object,evnt_objjj); } }, time_delay_v); } else if((chat_object.chat_type_ar["extra_condition"]=="NO") && (chat_object.chat_type_ar["keywords"]!='')){ var keywords_arrr=chat_object.chat_type_ar["keywords"].split(); var go_ahead_flg=false; var cur_url_n=window.location.toString(); for(vvv in keywords_arrr){ if(cur_url_n.search(keywords_arrr[vvv])!=-1){ go_ahead_flg=true; break; } } if(go_ahead_flg==true){ var time_delay_v=parseInt(chat_object.chat_type_ar["time_duration_in_sec"]*1000); setTimeout( function(){ if(confirm(chat_object.chat_type_ar["message"])){ checkEvents(chat_object,evnt_objjj); } }, time_delay_v); } } else if((chat_object.chat_type_ar["extra_condition"]=="YES") && (chat_object.chat_type_ar["keywords"]=='')){ if(chat_object.proactive_extra_condition_flag==true){ var time_delay_v=parseInt(chat_object.chat_type_ar["time_duration_in_sec"]*1000); setTimeout( function(){ if(confirm(chat_object.chat_type_ar["message"])){ checkEvents(chat_object,evnt_objjj); } }, time_delay_v); } } else if((chat_object.chat_type_ar["extra_condition"]=="YES") && (chat_object.chat_type_ar["keywords"]!='')){ var keywords_arrr=chat_object.chat_type_ar["keywords"].split(); var go_ahead_flg=false; var cur_url_n=window.location.toString(); for(vvv in keywords_arrr){ if(cur_url_n.search(keywords_arrr[vvv])!=-1){ go_ahead_flg=true; break; } } if(go_ahead_flg==true && (chat_object.proactive_extra_condition_flag==true)){ var time_delay_v=parseInt(chat_object.chat_type_ar["time_duration_in_sec"]*1000); setTimeout( function(){ if(confirm(chat_object.chat_type_ar["message"])){ checkEvents(chat_object,evnt_objjj); } }, time_delay_v); } } } } function checkEvents(chat_object,evnt_objjj) { chat_object.before_chat_widget_initialization(1); if (typeof(window.sessionStorage) == "object" && typeof(window.sessionStorage.czentrixLoad) == "string" && window.sessionStorage.czentrixLoad == 1001) { }else { chat_object.onload_popup(); } } }; loadScript("https://czchat.trixchat.com/chatadmin/js_chat/", ChatInitializaterMethod);