/* *id: MUST MATCH the id for the chat or email link. Its is also specified in chat array or email array * in test-chat.html *time: Array of 7 element where each element repersent time availability for the chat/email. * Format-> hh:mm:ss-hh:mm:ss format * new Array(time_range_Sunday, time_range_Monday, ..., time_range_Saturday) * Unless current is specified in alter, this rule is followed *alter: Format-> mm/dd/yyyy hh:mm:ss-hh:mm:ss * This date time_range overrides the regular timerange as specified by time, * The timerange is over-ridden for the day specified by mm/dd/yyyy * */ json_string = { "help_desk_chat": { "time": new Array( new Array('00:00:00-02:00:00', '06:00:00-23:59:59'), //Sunday new Array('00:00:00-02:00:00', '06:00:00-23:59:59'), //Monday new Array('00:00:00-02:00:00', '06:00:00-23:59:59'), //Tuesday new Array('00:00:00-02:00:00', '06:00:00-23:59:59'), //Wednesday new Array('00:00:00-02:00:00', '06:00:00-23:59:59'), //Thursday new Array('00:00:00-02:00:00', '06:00:00-23:59:59'), //Friday new Array('00:00:00-02:00:00', '06:00:00-23:59:59') //Saturday ), "alter": new Array( {'date': '07/22/2013', 'time':new Array('14:19:00-20:00:00')} ), "href": "https://livechat.boldchat.com/aid/713927878796984594/bc.chat?resize=true&cbdid=2697745030307722808", "onclick": "window.open((window.pageViewer && pageViewer.link || function(link){return link;})(this.href + (this.href.indexOf('?')>=0 ? '&' : '?') + 'url=' + escape(document.location.href)), 'Chat713927878796984594', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=640,height=480');return false;" }, "help_desk_email": { "time": new Array( new Array('02:00:01-05:59:59'), new Array('02:00:01-05:59:59'), new Array('02:00:01-05:59:59'), new Array('02:00:01-05:59:59'), new Array('02:00:01-15:59:59'), new Array('02:00:01-05:59:59'), new Array('02:00:01-05:59:59') ), "alter": new Array() }, "admission_chat": { "time": new Array( new Array('06:00:00-12:00:00'), //Sunday new Array('06:00:00-02:00:00'), //Monday new Array('14:13:00-14:15:00', '14:17:00-14:20:00'), //Tuesday new Array('06:00:00-12:59:59'), //Wednesday new Array('06:00:00-02:00:00'), //Thursday new Array('06:00:00-02:00:00'), //Friday new Array('06:00:00-02:00:00') //Saturday ), "alter": new Array( {'date': '07/22/2013', 'time':new Array('14:19:00-20:00:00')} ), "href": "https://livechat.boldchat.com/aid/713927878796984594/bc.chat?resize=true&cbdid=2697745030307722808", "onclick": "window.open((window.pageViewer && pageViewer.link || function(link){return link;})(this.href + (this.href.indexOf('?')>=0 ? '&' : '?') + 'url=' + escape(document.location.href)), 'Chat713927878796984594', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=640,height=480');return false;" }, "admission_email": { "time": new Array( new Array('02:00:01-05:59:59'), new Array('02:00:01-05:59:59'), new Array('02:00:01-15:59:59'), new Array('02:00:01-23:59:59'), new Array('02:00:01-05:59:59'), new Array('02:00:01-05:59:59'), new Array('02:00:01-05:59:59') ), "alter": new Array() } };