|
|
@@ -559,10 +559,11 @@
|
|
|
|
# 170629-1831 - Added some new agent_events entries
|
|
|
|
# 170629-1831 - Added some new agent_events entries
|
|
|
|
# 170709-1116 - Added Xfer Hung Up notification
|
|
|
|
# 170709-1116 - Added Xfer Hung Up notification
|
|
|
|
# 170710-1802 - Added logging of clicks on webform buttons
|
|
|
|
# 170710-1802 - Added logging of clicks on webform buttons
|
|
|
|
|
|
|
|
# 170725-2147 - Added counter(aec) to agent_events calls
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
$version = '2.14-529c';
|
|
|
|
$version = '2.14-530c';
|
|
|
|
$build = '170710-1802';
|
|
|
|
$build = '170725-2147';
|
|
|
|
$mel=1; # Mysql Error Log enabled = 1
|
|
|
|
$mel=1; # Mysql Error Log enabled = 1
|
|
|
|
$mysql_log_count=87;
|
|
|
|
$mysql_log_count=87;
|
|
|
|
$one_mysql_log=0;
|
|
|
|
$one_mysql_log=0;
|
|
|
@@ -4542,6 +4543,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
|
|
|
var script_name='<?php echo $script_name ?>';
|
|
|
|
var script_name='<?php echo $script_name ?>';
|
|
|
|
var transfer_panel_open=0;
|
|
|
|
var transfer_panel_open=0;
|
|
|
|
var last_conf_channel_count=1;
|
|
|
|
var last_conf_channel_count=1;
|
|
|
|
|
|
|
|
var aec=0;
|
|
|
|
var DiaLControl_auto_HTML = "<a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADready','','','','','','','YES');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_paused.gif") ?>\" border=\"0\" alt=\"You are paused\" /></a>";
|
|
|
|
var DiaLControl_auto_HTML = "<a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADready','','','','','','','YES');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_paused.gif") ?>\" border=\"0\" alt=\"You are paused\" /></a>";
|
|
|
|
var DiaLControl_auto_HTML_ready = "<a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADpause','','','','','','','YES');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_active.gif") ?>\" border=\"0\" alt=\"You are active\" /></a>";
|
|
|
|
var DiaLControl_auto_HTML_ready = "<a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADpause','','','','','','','YES');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_active.gif") ?>\" border=\"0\" alt=\"You are active\" /></a>";
|
|
|
|
var DiaLControl_auto_HTML_OFF = "<img src=\"./images/<?php echo _QXZ("vdc_LB_blank_OFF.gif") ?>\" border=\"0\" alt=\"pause button disabled\" />";
|
|
|
|
var DiaLControl_auto_HTML_OFF = "<img src=\"./images/<?php echo _QXZ("vdc_LB_blank_OFF.gif") ?>\" border=\"0\" alt=\"pause button disabled\" />";
|
|
|
@@ -4934,7 +4936,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
|
|
|
// dialedcall_send_hangup();
|
|
|
|
// dialedcall_send_hangup();
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
agent_events('3way_agent_leave', '');
|
|
|
|
agent_events('3way_agent_leave', '', aec); aec++;
|
|
|
|
|
|
|
|
|
|
|
|
if( document.images ) { document.images['livecall'].src = image_livecall_OFF.src;}
|
|
|
|
if( document.images ) { document.images['livecall'].src = image_livecall_OFF.src;}
|
|
|
|
}
|
|
|
|
}
|
|
|
@@ -5030,7 +5032,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
|
|
|
if (SMDclick=='YES')
|
|
|
|
if (SMDclick=='YES')
|
|
|
|
{button_click_log = button_click_log + "" + SQLdate + "-----SendManualDial---" + taskFromConf + " " + agent_dialed_type + " " + manual_string + " " + three_way_call_cid + " " + threeway_cid + " " + dial_conf_exten + " " + sending_preset_name + " ";}
|
|
|
|
{button_click_log = button_click_log + "" + SQLdate + "-----SendManualDial---" + taskFromConf + " " + agent_dialed_type + " " + manual_string + " " + three_way_call_cid + " " + threeway_cid + " " + dial_conf_exten + " " + sending_preset_name + " ";}
|
|
|
|
|
|
|
|
|
|
|
|
agent_events('3way_start', agent_dialed_type + ' ' + manual_string);
|
|
|
|
agent_events('3way_start', agent_dialed_type + ' ' + manual_string, aec); aec++;
|
|
|
|
|
|
|
|
|
|
|
|
if (taskFromConf == 'YES')
|
|
|
|
if (taskFromConf == 'YES')
|
|
|
|
{
|
|
|
|
{
|
|
|
@@ -5450,20 +5452,20 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
button_click_log = button_click_log + "" + SQLdate + "-----agent_disabled---" + AGLogiN + " " + vicidial_agent_disable + "|";
|
|
|
|
button_click_log = button_click_log + "" + SQLdate + "-----agent_disabled---" + AGLogiN + " " + vicidial_agent_disable + "|";
|
|
|
|
showDiv('AgenTDisablEBoX');
|
|
|
|
showDiv('AgenTDisablEBoX');
|
|
|
|
refresh_interval = 7300000;
|
|
|
|
refresh_interval = 7300000;
|
|
|
|
agent_events('session_disabled', 'LIVE_AGENT');
|
|
|
|
agent_events('session_disabled', 'LIVE_AGENT', aec); aec++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ( (AGLogiN == 'DEAD_EXTERNAL') && ( (vicidial_agent_disable == 'EXTERNAL') || (vicidial_agent_disable == 'ALL') ) )
|
|
|
|
if ( (AGLogiN == 'DEAD_EXTERNAL') && ( (vicidial_agent_disable == 'EXTERNAL') || (vicidial_agent_disable == 'ALL') ) )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
button_click_log = button_click_log + "" + SQLdate + "-----agent_disabled---" + AGLogiN + " " + vicidial_agent_disable + "|";
|
|
|
|
button_click_log = button_click_log + "" + SQLdate + "-----agent_disabled---" + AGLogiN + " " + vicidial_agent_disable + "|";
|
|
|
|
showDiv('AgenTDisablEBoX');
|
|
|
|
showDiv('AgenTDisablEBoX');
|
|
|
|
refresh_interval = 7300000;
|
|
|
|
refresh_interval = 7300000;
|
|
|
|
agent_events('session_disabled', 'DEAD_EXTERNAL');
|
|
|
|
agent_events('session_disabled', 'DEAD_EXTERNAL', aec); aec++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ( (AGLogiN == 'TIME_SYNC') && (vicidial_agent_disable == 'ALL') )
|
|
|
|
if ( (AGLogiN == 'TIME_SYNC') && (vicidial_agent_disable == 'ALL') )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
button_click_log = button_click_log + "" + SQLdate + "-----system_disabled---" + AGLogiN + " " + vicidial_agent_disable + "|";
|
|
|
|
button_click_log = button_click_log + "" + SQLdate + "-----system_disabled---" + AGLogiN + " " + vicidial_agent_disable + "|";
|
|
|
|
showDiv('SysteMDisablEBoX');
|
|
|
|
showDiv('SysteMDisablEBoX');
|
|
|
|
agent_events('time_sync', '');
|
|
|
|
agent_events('time_sync', '', aec); aec++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (AGLogiN == 'SHIFT_LOGOUT')
|
|
|
|
if (AGLogiN == 'SHIFT_LOGOUT')
|
|
|
|
{
|
|
|
|
{
|
|
|
@@ -5860,7 +5862,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (CheckDEADcallON < 1)
|
|
|
|
if (CheckDEADcallON < 1)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
agent_events('call_dead', LasTCID);
|
|
|
|
agent_events('call_dead', LasTCID, aec); aec++;
|
|
|
|
|
|
|
|
|
|
|
|
if( document.images )
|
|
|
|
if( document.images )
|
|
|
|
{ document.images['livecall'].src = image_livecall_DEAD.src;}
|
|
|
|
{ document.images['livecall'].src = image_livecall_DEAD.src;}
|
|
|
@@ -5884,7 +5886,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (CheckDEADcallON < 1)
|
|
|
|
if (CheckDEADcallON < 1)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
agent_events('call_dead', LasTCID);
|
|
|
|
agent_events('call_dead', LasTCID, aec); aec++;
|
|
|
|
|
|
|
|
|
|
|
|
if( document.images )
|
|
|
|
if( document.images )
|
|
|
|
{ document.images['livecall'].src = image_livechat_DEAD.src;}
|
|
|
|
{ document.images['livecall'].src = image_livechat_DEAD.src;}
|
|
|
@@ -5918,7 +5920,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if ( (last_conf_channel_count < 1) && (no_empty_session_warnings < 1) )
|
|
|
|
if ( (last_conf_channel_count < 1) && (no_empty_session_warnings < 1) )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
agent_events('session_channels', live_conf_calls);
|
|
|
|
agent_events('session_channels', live_conf_calls, aec); aec++;
|
|
|
|
last_conf_channel_count = live_conf_calls;
|
|
|
|
last_conf_channel_count = live_conf_calls;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var temp_blind_monitors=0;
|
|
|
|
var temp_blind_monitors=0;
|
|
|
@@ -6066,7 +6068,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if ( (last_conf_channel_count > 0) && (no_empty_session_warnings < 1) )
|
|
|
|
if ( (last_conf_channel_count > 0) && (no_empty_session_warnings < 1) )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
agent_events('session_empty', '0');
|
|
|
|
agent_events('session_empty', '0', aec); aec++;
|
|
|
|
last_conf_channel_count = 0;
|
|
|
|
last_conf_channel_count = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
LMAe[0]=''; LMAe[1]=''; LMAe[2]=''; LMAe[3]=''; LMAe[4]=''; LMAe[5]='';
|
|
|
|
LMAe[0]=''; LMAe[1]=''; LMAe[2]=''; LMAe[3]=''; LMAe[4]=''; LMAe[5]='';
|
|
|
@@ -6409,7 +6411,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
|
|
|
|
|
|
|
|
if (temp_blind_dialstring != 'vmail')
|
|
|
|
if (temp_blind_dialstring != 'vmail')
|
|
|
|
{temp_blind_dialstring = blindxferdialstring;}
|
|
|
|
{temp_blind_dialstring = blindxferdialstring;}
|
|
|
|
agent_events('transfer_blind', temp_blind_dialstring);
|
|
|
|
agent_events('transfer_blind', temp_blind_dialstring, aec); aec++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (taskvar == 'XfeRINTERNAL')
|
|
|
|
if (taskvar == 'XfeRINTERNAL')
|
|
|
@@ -6440,7 +6442,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
|
|
|
|
|
|
|
|
xferredirect_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=RedirectVD&format=text&channel=" + redirectvalue + "&call_server_ip=" + redirectserverip + "&queryCID=" + queryCID + "&exten=" + redirectdestination + "&ext_context=" + ext_context + "&ext_priority=1&auto_dial_level=" + auto_dial_level + "&campaign=" + campaign + "&uniqueid=" + document.vicidial_form.uniqueid.value + "&lead_id=" + document.vicidial_form.lead_id.value + "&secondS=" + VD_live_call_secondS + "&session_id=" + session_id + "&CalLCID=" + CalLCID + "&customerparked=" + customerparked;
|
|
|
|
xferredirect_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=RedirectVD&format=text&channel=" + redirectvalue + "&call_server_ip=" + redirectserverip + "&queryCID=" + queryCID + "&exten=" + redirectdestination + "&ext_context=" + ext_context + "&ext_priority=1&auto_dial_level=" + auto_dial_level + "&campaign=" + campaign + "&uniqueid=" + document.vicidial_form.uniqueid.value + "&lead_id=" + document.vicidial_form.lead_id.value + "&secondS=" + VD_live_call_secondS + "&session_id=" + session_id + "&CalLCID=" + CalLCID + "&customerparked=" + customerparked;
|
|
|
|
|
|
|
|
|
|
|
|
agent_events('transfer_local_closer', XfeR_GrouP);
|
|
|
|
agent_events('transfer_local_closer', XfeR_GrouP, aec); aec++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (taskvar == 'XfeR')
|
|
|
|
if (taskvar == 'XfeR')
|
|
|
|
{
|
|
|
|
{
|
|
|
@@ -6448,7 +6450,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
var redirectdestination = document.vicidial_form.extension_xfer.value;
|
|
|
|
var redirectdestination = document.vicidial_form.extension_xfer.value;
|
|
|
|
xferredirect_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=RedirectName&format=text&channel=" + redirectvalue + "&call_server_ip=" + redirectserverip + "&queryCID=" + queryCID + "&extenName=" + redirectdestination + "&ext_context=" + ext_context + "&ext_priority=1" + "&session_id=" + session_id + "&CalLCID=" + CalLCID + "&customerparked=" + customerparked;
|
|
|
|
xferredirect_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=RedirectName&format=text&channel=" + redirectvalue + "&call_server_ip=" + redirectserverip + "&queryCID=" + queryCID + "&extenName=" + redirectdestination + "&ext_context=" + ext_context + "&ext_priority=1" + "&session_id=" + session_id + "&CalLCID=" + CalLCID + "&customerparked=" + customerparked;
|
|
|
|
|
|
|
|
|
|
|
|
agent_events('transfer_blind', redirectdestination);
|
|
|
|
agent_events('transfer_blind', redirectdestination, aec); aec++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (taskvar == 'VMAIL')
|
|
|
|
if (taskvar == 'VMAIL')
|
|
|
|
{
|
|
|
|
{
|
|
|
@@ -6456,7 +6458,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
var redirectdestination = document.vicidial_form.extension_xfer.value;
|
|
|
|
var redirectdestination = document.vicidial_form.extension_xfer.value;
|
|
|
|
xferredirect_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=RedirectNameVmail&format=text&channel=" + redirectvalue + "&call_server_ip=" + redirectserverip + "&queryCID=" + queryCID + "&exten=" + voicemail_dump_exten + "&extenName=" + redirectdestination + "&ext_context=" + ext_context + "&ext_priority=1" + "&session_id=" + session_id + "&CalLCID=" + CalLCID + "&customerparked=" + customerparked;
|
|
|
|
xferredirect_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=RedirectNameVmail&format=text&channel=" + redirectvalue + "&call_server_ip=" + redirectserverip + "&queryCID=" + queryCID + "&exten=" + voicemail_dump_exten + "&extenName=" + redirectdestination + "&ext_context=" + ext_context + "&ext_priority=1" + "&session_id=" + session_id + "&CalLCID=" + CalLCID + "&customerparked=" + customerparked;
|
|
|
|
|
|
|
|
|
|
|
|
agent_events('transfer_vmail', redirectdestination);
|
|
|
|
agent_events('transfer_vmail', redirectdestination, aec); aec++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (taskvar == 'ENTRY')
|
|
|
|
if (taskvar == 'ENTRY')
|
|
|
|
{
|
|
|
|
{
|
|
|
@@ -6511,7 +6513,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
customerparked=1;
|
|
|
|
customerparked=1;
|
|
|
|
customerparkedcounter=0;
|
|
|
|
customerparkedcounter=0;
|
|
|
|
|
|
|
|
|
|
|
|
agent_events('park_started', '');
|
|
|
|
agent_events('park_started', '', aec); aec++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (taskvar == 'FROMParK')
|
|
|
|
if (taskvar == 'FROMParK')
|
|
|
|
{
|
|
|
|
{
|
|
|
@@ -6540,7 +6542,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
customerparked=0;
|
|
|
|
customerparked=0;
|
|
|
|
customerparkedcounter=0;
|
|
|
|
customerparkedcounter=0;
|
|
|
|
|
|
|
|
|
|
|
|
agent_events('park_retrieved', '');
|
|
|
|
agent_events('park_retrieved', '', aec); aec++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (taskvar == 'ParKivr')
|
|
|
|
if (taskvar == 'ParKivr')
|
|
|
|
{
|
|
|
|
{
|
|
|
@@ -6563,7 +6565,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
customerparked=1;
|
|
|
|
customerparked=1;
|
|
|
|
customerparkedcounter=0;
|
|
|
|
customerparkedcounter=0;
|
|
|
|
|
|
|
|
|
|
|
|
agent_events('park_ivr_started', '');
|
|
|
|
agent_events('park_ivr_started', '', aec); aec++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (taskvar == 'FROMParKivr')
|
|
|
|
if (taskvar == 'FROMParKivr')
|
|
|
|
{
|
|
|
|
{
|
|
|
@@ -6592,7 +6594,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
customerparked=0;
|
|
|
|
customerparked=0;
|
|
|
|
customerparkedcounter=0;
|
|
|
|
customerparkedcounter=0;
|
|
|
|
|
|
|
|
|
|
|
|
agent_events('park_ivr_retrieved', '');
|
|
|
|
agent_events('park_ivr_retrieved', '', aec); aec++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (taskvar == 'ParKXfeR')
|
|
|
|
if (taskvar == 'ParKXfeR')
|
|
|
@@ -7273,7 +7275,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
agent_events('agent_alert', temp_message);
|
|
|
|
agent_events('agent_alert', temp_message, aec); aec++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
document.getElementById("AlertBox").style.top = ABtop;
|
|
|
|
document.getElementById("AlertBox").style.top = ABtop;
|
|
|
|
document.getElementById("AlertBox").style.left = ABleft;
|
|
|
|
document.getElementById("AlertBox").style.left = ABleft;
|
|
|
@@ -7448,7 +7450,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
showDiv('NeWManuaLDiaLBox');
|
|
|
|
showDiv('NeWManuaLDiaLBox');
|
|
|
|
|
|
|
|
|
|
|
|
agent_events('manual_dial_open', '');
|
|
|
|
agent_events('manual_dial_open', '', aec); aec++;
|
|
|
|
|
|
|
|
|
|
|
|
document.vicidial_form.search_phone_number.value='';
|
|
|
|
document.vicidial_form.search_phone_number.value='';
|
|
|
|
document.vicidial_form.search_lead_id.value='';
|
|
|
|
document.vicidial_form.search_lead_id.value='';
|
|
|
@@ -8261,7 +8263,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
var XDerrorDescSIP = MDlookResponse_array[4];
|
|
|
|
var XDerrorDescSIP = MDlookResponse_array[4];
|
|
|
|
var DiaLAlerTMessagE = "<?php echo _QXZ("Call Rejected:"); ?> " + XDchannel + "\n" + XDerrorDesc + "\n" + XDerrorDescSIP;
|
|
|
|
var DiaLAlerTMessagE = "<?php echo _QXZ("Call Rejected:"); ?> " + XDchannel + "\n" + XDerrorDesc + "\n" + XDerrorDescSIP;
|
|
|
|
TimerActionRun("DiaLAlerT",DiaLAlerTMessagE);
|
|
|
|
TimerActionRun("DiaLAlerT",DiaLAlerTMessagE);
|
|
|
|
agent_events('agent_alert', "Call Rejected: " + XDerrorDesc + ' ' + XDerrorDescSIP);
|
|
|
|
agent_events('agent_alert', "Call Rejected: " + XDerrorDesc + ' ' + XDerrorDescSIP, aec); aec++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ( (XDchannel.match(regMDL)) && (asterisk_version != '1.0.8') && (asterisk_version != '1.0.9') && (MD_ring_secondS < 10) )
|
|
|
|
if ( (XDchannel.match(regMDL)) && (asterisk_version != '1.0.8') && (asterisk_version != '1.0.9') && (MD_ring_secondS < 10) )
|
|
|
|
{
|
|
|
|
{
|
|
|
@@ -8305,7 +8307,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
xferchannellive=1;
|
|
|
|
xferchannellive=1;
|
|
|
|
XDcheck = '';
|
|
|
|
XDcheck = '';
|
|
|
|
|
|
|
|
|
|
|
|
agent_events('3way_answered', '');
|
|
|
|
agent_events('3way_answered', '', aec); aec++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
@@ -8320,7 +8322,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
var MDerrorDescSIP = MDlookResponse_array[4];
|
|
|
|
var MDerrorDescSIP = MDlookResponse_array[4];
|
|
|
|
var DiaLAlerTMessagE = "<?php echo _QXZ("Call Rejected:"); ?> " + MDchannel + "\n" + MDerrorDesc + "\n" + MDerrorDescSIP;
|
|
|
|
var DiaLAlerTMessagE = "<?php echo _QXZ("Call Rejected:"); ?> " + MDchannel + "\n" + MDerrorDesc + "\n" + MDerrorDescSIP;
|
|
|
|
TimerActionRun("DiaLAlerT",DiaLAlerTMessagE);
|
|
|
|
TimerActionRun("DiaLAlerT",DiaLAlerTMessagE);
|
|
|
|
agent_events('agent_alert', "Call Rejected: " + MDerrorDesc + ' ' + MDerrorDescSIP);
|
|
|
|
agent_events('agent_alert', "Call Rejected: " + MDerrorDesc + ' ' + MDerrorDescSIP, aec); aec++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ( (MDchannel.match(regMDL)) && (asterisk_version != '1.0.8') && (asterisk_version != '1.0.9') )
|
|
|
|
if ( (MDchannel.match(regMDL)) && (asterisk_version != '1.0.8') && (asterisk_version != '1.0.9') )
|
|
|
|
{
|
|
|
|
{
|
|
|
@@ -8449,7 +8451,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
|
|
|
|
|
|
|
|
custchannellive=1;
|
|
|
|
custchannellive=1;
|
|
|
|
|
|
|
|
|
|
|
|
agent_events('call_answered', CIDcheck);
|
|
|
|
agent_events('call_answered', CIDcheck, aec); aec++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@@ -8761,7 +8763,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
document.getElementById("WebFormSpanTwo").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address_three + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormThreeRefresH();\" onclick=\"webform_click_log('webform3');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform_three.gif"); ?>\" border=\"0\" alt=\"Web Form 3\" /></a>\n";
|
|
|
|
document.getElementById("WebFormSpanTwo").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address_three + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormThreeRefresH();\" onclick=\"webform_click_log('webform3');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform_three.gif"); ?>\" border=\"0\" alt=\"Web Form 3\" /></a>\n";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
agent_events('update_fields', event_data);
|
|
|
|
agent_events('update_fields', event_data, aec); aec++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
@@ -8880,7 +8882,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
var man_status = "<?php echo _QXZ("Waiting for Ring..."); ?>";
|
|
|
|
var man_status = "<?php echo _QXZ("Waiting for Ring..."); ?>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
agent_events('call_dialed', mdnPhonENumbeR + " " + agent_dialed_type);
|
|
|
|
agent_events('call_dialed', mdnPhonENumbeR + " " + agent_dialed_type, aec); aec++;
|
|
|
|
|
|
|
|
|
|
|
|
var xmlhttp=false;
|
|
|
|
var xmlhttp=false;
|
|
|
|
/*@cc_on @*/
|
|
|
|
/*@cc_on @*/
|
|
|
@@ -9879,7 +9881,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{VDRP_stage = 'READY';}
|
|
|
|
{VDRP_stage = 'READY';}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
agent_events('state_ready', VDRP_stage);
|
|
|
|
agent_events('state_ready', VDRP_stage, aec); aec++;
|
|
|
|
AutoDialReady = 1;
|
|
|
|
AutoDialReady = 1;
|
|
|
|
AutoDialWaiting = 1;
|
|
|
|
AutoDialWaiting = 1;
|
|
|
|
if (dial_method == "INBOUND_MAN")
|
|
|
|
if (dial_method == "INBOUND_MAN")
|
|
|
@@ -9896,7 +9898,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
VDRP_stage = 'PAUSED';
|
|
|
|
VDRP_stage = 'PAUSED';
|
|
|
|
agent_events('state_paused', VDRP_stage);
|
|
|
|
agent_events('state_paused', VDRP_stage, aec); aec++;
|
|
|
|
VDRP_stage_seconds=0;
|
|
|
|
VDRP_stage_seconds=0;
|
|
|
|
AutoDialReady = 0;
|
|
|
|
AutoDialReady = 0;
|
|
|
|
AutoDialWaiting = 0;
|
|
|
|
AutoDialWaiting = 0;
|
|
|
@@ -10075,7 +10077,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new_script_content = xmlhttp.responseText;
|
|
|
|
new_script_content = xmlhttp.responseText;
|
|
|
|
document.getElementById(script_span).innerHTML = new_script_content;
|
|
|
|
document.getElementById(script_span).innerHTML = new_script_content;
|
|
|
|
agent_events('call_script', script_span);
|
|
|
|
agent_events('call_script', script_span, aec); aec++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
delete xmlhttp;
|
|
|
|
delete xmlhttp;
|
|
|
@@ -10308,7 +10310,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
document.vicidial_form.SecondS.value = 0;
|
|
|
|
document.vicidial_form.SecondS.value = 0;
|
|
|
|
document.getElementById("SecondSDISP").innerHTML = '0';
|
|
|
|
document.getElementById("SecondSDISP").innerHTML = '0';
|
|
|
|
|
|
|
|
|
|
|
|
agent_events('call_answered', CalLCID);
|
|
|
|
agent_events('call_answered', CalLCID, aec); aec++;
|
|
|
|
|
|
|
|
|
|
|
|
if (uniqueid_status_display=='ENABLED')
|
|
|
|
if (uniqueid_status_display=='ENABLED')
|
|
|
|
{custom_call_id = " Call ID " + VDIC_data_VDAC[1];}
|
|
|
|
{custom_call_id = " Call ID " + VDIC_data_VDAC[1];}
|
|
|
@@ -11615,7 +11617,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
var dial_display_number = phone_number_format(callnum);
|
|
|
|
var dial_display_number = phone_number_format(callnum);
|
|
|
|
alert(" <?php echo _QXZ("Incoming:"); ?> " + dial_display_number + "\n <?php echo _QXZ("Group"); ?>- " + VDIC_data_VDIG[1] + " " + VDIC_fronter);
|
|
|
|
alert(" <?php echo _QXZ("Incoming:"); ?> " + dial_display_number + "\n <?php echo _QXZ("Group"); ?>- " + VDIC_data_VDIG[1] + " " + VDIC_fronter);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
agent_events('other_answered', CalL_AutO_LauncH);
|
|
|
|
agent_events('other_answered', CalL_AutO_LauncH, aec); aec++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
xmlhttprequestcheckother = undefined;
|
|
|
|
xmlhttprequestcheckother = undefined;
|
|
|
|
delete xmlhttprequestcheckother;
|
|
|
|
delete xmlhttprequestcheckother;
|
|
|
@@ -12152,7 +12154,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
// alert(xmlhttp.responseText);
|
|
|
|
// alert(xmlhttp.responseText);
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
agent_events('agent_hangup', '');
|
|
|
|
agent_events('agent_hangup', '', aec); aec++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
process_post_hangup=1;
|
|
|
|
process_post_hangup=1;
|
|
|
@@ -12416,7 +12418,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
Nactiveext = xmlhttp.responseText;
|
|
|
|
Nactiveext = xmlhttp.responseText;
|
|
|
|
// alert(xmlhttp.responseText);
|
|
|
|
// alert(xmlhttp.responseText);
|
|
|
|
|
|
|
|
|
|
|
|
agent_events('3way_agent_hangup', '');
|
|
|
|
agent_events('3way_agent_hangup', '', aec); aec++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
process_post_hangup=1;
|
|
|
|
process_post_hangup=1;
|
|
|
@@ -12759,7 +12761,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
PauseCode_HTML = PauseCode_HTML + "</span></font></td></tr></table><br /><br />" + Go_BacK_LinK;
|
|
|
|
PauseCode_HTML = PauseCode_HTML + "</span></font></td></tr></table><br /><br />" + Go_BacK_LinK;
|
|
|
|
document.getElementById("PauseCodeSelectContent").innerHTML = PauseCode_HTML;
|
|
|
|
document.getElementById("PauseCodeSelectContent").innerHTML = PauseCode_HTML;
|
|
|
|
|
|
|
|
|
|
|
|
agent_events('pause_code_open', '');
|
|
|
|
agent_events('pause_code_open', '', aec); aec++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (focus_blur_enabled==1)
|
|
|
|
if (focus_blur_enabled==1)
|
|
|
@@ -12813,7 +12815,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
showDiv('SearcHForMDisplaYBox');
|
|
|
|
showDiv('SearcHForMDisplaYBox');
|
|
|
|
if ( (VD_live_customer_call!=1) || (inOUT=='OUT') )
|
|
|
|
if ( (VD_live_customer_call!=1) || (inOUT=='OUT') )
|
|
|
|
{WaitingForNextStep=1;}
|
|
|
|
{WaitingForNextStep=1;}
|
|
|
|
agent_events('lead_search_open', '');
|
|
|
|
agent_events('lead_search_open', '', aec); aec++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@@ -12826,7 +12828,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
{button_click_log = button_click_log + "" + SQLdate + "-----generate_contacts_search---|";}
|
|
|
|
{button_click_log = button_click_log + "" + SQLdate + "-----generate_contacts_search---|";}
|
|
|
|
HidEGenDerPulldown();
|
|
|
|
HidEGenDerPulldown();
|
|
|
|
showDiv('SearcHContactsDisplaYBox');
|
|
|
|
showDiv('SearcHContactsDisplaYBox');
|
|
|
|
agent_events('contact_search_open', '');
|
|
|
|
agent_events('contact_search_open', '', aec); aec++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -13125,7 +13127,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
|
|
|
|
|
|
|
|
showDiv('CallBackSelectBox');
|
|
|
|
showDiv('CallBackSelectBox');
|
|
|
|
|
|
|
|
|
|
|
|
agent_events('callback_select_open', '');
|
|
|
|
agent_events('callback_select_open', '', aec); aec++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
@@ -13180,7 +13182,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
waiting_on_dispo=0;
|
|
|
|
waiting_on_dispo=0;
|
|
|
|
|
|
|
|
|
|
|
|
agent_events('dispo_set', DispoChoice);
|
|
|
|
agent_events('dispo_set', DispoChoice, aec); aec++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
delete xmlhttp;
|
|
|
|
delete xmlhttp;
|
|
|
@@ -13825,7 +13827,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
showDiv('CustomerGoneBox');
|
|
|
|
showDiv('CustomerGoneBox');
|
|
|
|
|
|
|
|
|
|
|
|
agent_events('customer_gone', '');
|
|
|
|
agent_events('customer_gone', '', aec); aec++;
|
|
|
|
|
|
|
|
|
|
|
|
document.getElementById("callchannel").innerHTML = '';
|
|
|
|
document.getElementById("callchannel").innerHTML = '';
|
|
|
|
document.vicidial_form.callserverip.value = '';
|
|
|
|
document.vicidial_form.callserverip.value = '';
|
|
|
@@ -13854,7 +13856,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
function NoneInSession()
|
|
|
|
function NoneInSession()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
showDiv('NoneInSessionBox');
|
|
|
|
showDiv('NoneInSessionBox');
|
|
|
|
agent_events('none_in_session', '');
|
|
|
|
agent_events('none_in_session', '', aec); aec++;
|
|
|
|
document.getElementById("NoneInSessionID").innerHTML = session_id;
|
|
|
|
document.getElementById("NoneInSessionID").innerHTML = session_id;
|
|
|
|
WaitingForNextStep=1;
|
|
|
|
WaitingForNextStep=1;
|
|
|
|
}
|
|
|
|
}
|
|
|
@@ -14134,7 +14136,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
hideDiv('CloserSelectBox');
|
|
|
|
hideDiv('CloserSelectBox');
|
|
|
|
agent_events('ingroup_screen_closed', '');
|
|
|
|
agent_events('ingroup_screen_closed', '', aec); aec++;
|
|
|
|
MainPanelToFront();
|
|
|
|
MainPanelToFront();
|
|
|
|
CloserSelecting = 0;
|
|
|
|
CloserSelecting = 0;
|
|
|
|
scroll(0,0);
|
|
|
|
scroll(0,0);
|
|
|
@@ -14297,7 +14299,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
hideDiv('TerritorySelectBox');
|
|
|
|
hideDiv('TerritorySelectBox');
|
|
|
|
agent_events('territory_screen_closed', '');
|
|
|
|
agent_events('territory_screen_closed', '', aec); aec++;
|
|
|
|
MainPanelToFront();
|
|
|
|
MainPanelToFront();
|
|
|
|
TerritorySelecting = 0;
|
|
|
|
TerritorySelecting = 0;
|
|
|
|
scroll(0,0);
|
|
|
|
scroll(0,0);
|
|
|
@@ -14402,7 +14404,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
agent_events('logged_out', tempreason);
|
|
|
|
agent_events('logged_out', tempreason, aec); aec++;
|
|
|
|
|
|
|
|
|
|
|
|
document.getElementById("LogouTProcess").innerHTML = "<br /><br /><font class=\"loading_text\"><?php echo _QXZ("LOGOUT PROCESSING..."); ?></font><br /><br /> <img src=\"./images/<?php echo _QXZ("agent_loading_animation.gif"); ?>\" height=\"206px\" width=\"206px\" alt=\"<?php echo _QXZ("LOGOUT PROCESSING..."); ?>\" />";
|
|
|
|
document.getElementById("LogouTProcess").innerHTML = "<br /><br /><font class=\"loading_text\"><?php echo _QXZ("LOGOUT PROCESSING..."); ?></font><br /><br /> <img src=\"./images/<?php echo _QXZ("agent_loading_animation.gif"); ?>\" height=\"206px\" width=\"206px\" alt=\"<?php echo _QXZ("LOGOUT PROCESSING..."); ?>\" />";
|
|
|
|
// document.getElementById("LogouTProcess").innerHTML = "<?php echo _QXZ("LOGOUT PROCESSING..."); ?>";
|
|
|
|
// document.getElementById("LogouTProcess").innerHTML = "<?php echo _QXZ("LOGOUT PROCESSING..."); ?>";
|
|
|
@@ -14441,7 +14443,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
|
|
|
|
|
|
|
|
|
|
|
document.getElementById("LogouTProcess").innerHTML = "<br /><br /><font class=\"loading_text\"><?php echo _QXZ("LOGOUT PROCESS COMPLETE, YOU MAY NOW CLOSE YOUR BROWSER OR LOG BACK IN"); ?></font><br /><br /> <img src=\"./images/<?php echo _QXZ("agent_loading_done.gif"); ?>\" height=\"206px\" width=\"206px\" alt=\"<?php echo _QXZ("LOGOUT PROCESS COMPLETE, YOU MAY NOW CLOSE YOUR BROWSER OR LOG BACK IN"); ?>\" />";
|
|
|
|
document.getElementById("LogouTProcess").innerHTML = "<br /><br /><font class=\"loading_text\"><?php echo _QXZ("LOGOUT PROCESS COMPLETE, YOU MAY NOW CLOSE YOUR BROWSER OR LOG BACK IN"); ?></font><br /><br /> <img src=\"./images/<?php echo _QXZ("agent_loading_done.gif"); ?>\" height=\"206px\" width=\"206px\" alt=\"<?php echo _QXZ("LOGOUT PROCESS COMPLETE, YOU MAY NOW CLOSE YOUR BROWSER OR LOG BACK IN"); ?>\" />";
|
|
|
|
|
|
|
|
|
|
|
|
agent_events('logged_out_complete', '');
|
|
|
|
agent_events('logged_out_complete', '', aec); aec++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
delete xmlhttp;
|
|
|
|
delete xmlhttp;
|
|
|
@@ -16224,11 +16226,11 @@ function phone_number_format(formatphone) {
|
|
|
|
|
|
|
|
|
|
|
|
// ################################################################################
|
|
|
|
// ################################################################################
|
|
|
|
// Run the Agent Push Events process
|
|
|
|
// Run the Agent Push Events process
|
|
|
|
function agent_events(event_type,event_msg)
|
|
|
|
function agent_events(event_type,event_msg,event_counter)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if ( (agent_push_events > 0) && (agent_push_url.length > 10) )
|
|
|
|
if ( (agent_push_events > 0) && (agent_push_url.length > 10) )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
button_click_log = button_click_log + "" + SQLdate + "-----AgentEvent---" + event_type + "|";
|
|
|
|
button_click_log = button_click_log + "" + SQLdate + "-----AgentEvent---" + event_type + " " + event_counter + "|";
|
|
|
|
// if (event_type == 'logged_out')
|
|
|
|
// if (event_type == 'logged_out')
|
|
|
|
// {check_for_conf_calls(session_id, '0');}
|
|
|
|
// {check_for_conf_calls(session_id, '0');}
|
|
|
|
var xmlhttp=false;
|
|
|
|
var xmlhttp=false;
|
|
|
@@ -16264,6 +16266,7 @@ function phone_number_format(formatphone) {
|
|
|
|
var SClead_id = document.vicidial_form.lead_id.value;
|
|
|
|
var SClead_id = document.vicidial_form.lead_id.value;
|
|
|
|
var SCepoch = UnixTime;
|
|
|
|
var SCepoch = UnixTime;
|
|
|
|
var SCagent_log_id = agent_log_id;
|
|
|
|
var SCagent_log_id = agent_log_id;
|
|
|
|
|
|
|
|
var SCcounter = event_counter;
|
|
|
|
SCuser = SCuser.replace(RGplus,'+');
|
|
|
|
SCuser = SCuser.replace(RGplus,'+');
|
|
|
|
SCevent = SCevent.replace(RGplus,'+');
|
|
|
|
SCevent = SCevent.replace(RGplus,'+');
|
|
|
|
SCmessage = SCmessage.replace(RGplus,'+');
|
|
|
|
SCmessage = SCmessage.replace(RGplus,'+');
|
|
|
@@ -16274,12 +16277,14 @@ function phone_number_format(formatphone) {
|
|
|
|
var RGlead_id = new RegExp("--A--lead_id--B--","g");
|
|
|
|
var RGlead_id = new RegExp("--A--lead_id--B--","g");
|
|
|
|
var RGepoch = new RegExp("--A--epoch--B--","g");
|
|
|
|
var RGepoch = new RegExp("--A--epoch--B--","g");
|
|
|
|
var RGagent_log_id = new RegExp("--A--agent_log_id--B--","g");
|
|
|
|
var RGagent_log_id = new RegExp("--A--agent_log_id--B--","g");
|
|
|
|
|
|
|
|
var RGcounter = new RegExp("--A--counter--B--","g");
|
|
|
|
temp_agent_push_url = temp_agent_push_url.replace(RGuser, SCuser);
|
|
|
|
temp_agent_push_url = temp_agent_push_url.replace(RGuser, SCuser);
|
|
|
|
temp_agent_push_url = temp_agent_push_url.replace(RGevent, SCevent);
|
|
|
|
temp_agent_push_url = temp_agent_push_url.replace(RGevent, SCevent);
|
|
|
|
temp_agent_push_url = temp_agent_push_url.replace(RGmessage, SCmessage);
|
|
|
|
temp_agent_push_url = temp_agent_push_url.replace(RGmessage, SCmessage);
|
|
|
|
temp_agent_push_url = temp_agent_push_url.replace(RGlead_id, SClead_id);
|
|
|
|
temp_agent_push_url = temp_agent_push_url.replace(RGlead_id, SClead_id);
|
|
|
|
temp_agent_push_url = temp_agent_push_url.replace(RGepoch, SCepoch);
|
|
|
|
temp_agent_push_url = temp_agent_push_url.replace(RGepoch, SCepoch);
|
|
|
|
temp_agent_push_url = temp_agent_push_url.replace(RGagent_log_id, SCagent_log_id);
|
|
|
|
temp_agent_push_url = temp_agent_push_url.replace(RGagent_log_id, SCagent_log_id);
|
|
|
|
|
|
|
|
temp_agent_push_url = temp_agent_push_url.replace(RGcounter, SCcounter);
|
|
|
|
temp_agent_push_url = temp_agent_push_url.replace(RGplus, '+');
|
|
|
|
temp_agent_push_url = temp_agent_push_url.replace(RGplus, '+');
|
|
|
|
temp_agent_push_url = temp_agent_push_url.replace(RGnl, '+');
|
|
|
|
temp_agent_push_url = temp_agent_push_url.replace(RGnl, '+');
|
|
|
|
temp_agent_push_url = temp_agent_push_url.replace(RGtab, '+');
|
|
|
|
temp_agent_push_url = temp_agent_push_url.replace(RGtab, '+');
|
|
|
@@ -16441,7 +16446,7 @@ function phone_number_format(formatphone) {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
HidEGenDerPulldown();
|
|
|
|
HidEGenDerPulldown();
|
|
|
|
showDiv('CloserSelectBox');
|
|
|
|
showDiv('CloserSelectBox');
|
|
|
|
agent_events('ingroup_screen_open', '');
|
|
|
|
agent_events('ingroup_screen_open', '', aec); aec++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@@ -16469,7 +16474,7 @@ function phone_number_format(formatphone) {
|
|
|
|
if (move_on == 1)
|
|
|
|
if (move_on == 1)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
showDiv('TerritorySelectBox');
|
|
|
|
showDiv('TerritorySelectBox');
|
|
|
|
agent_events('territory_screen_open', '');
|
|
|
|
agent_events('territory_screen_open', '', aec); aec++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@@ -16947,12 +16952,12 @@ function phone_number_format(formatphone) {
|
|
|
|
CloserSelectContent_create();
|
|
|
|
CloserSelectContent_create();
|
|
|
|
if (VU_agent_choose_ingroups_DV == "MGRLOCK")
|
|
|
|
if (VU_agent_choose_ingroups_DV == "MGRLOCK")
|
|
|
|
{VU_agent_choose_ingroups_skip_count = mrglock_ig_select_ct;}
|
|
|
|
{VU_agent_choose_ingroups_skip_count = mrglock_ig_select_ct;}
|
|
|
|
agent_events('ingroup_screen_open', '');
|
|
|
|
agent_events('ingroup_screen_open', '', aec); aec++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
hideDiv('CloserSelectBox');
|
|
|
|
hideDiv('CloserSelectBox');
|
|
|
|
agent_events('ingroup_screen_closed', '');
|
|
|
|
agent_events('ingroup_screen_closed', '', aec); aec++;
|
|
|
|
MainPanelToFront();
|
|
|
|
MainPanelToFront();
|
|
|
|
var CloserSelecting = 0;
|
|
|
|
var CloserSelecting = 0;
|
|
|
|
if (dial_method == "INBOUND_MAN")
|
|
|
|
if (dial_method == "INBOUND_MAN")
|
|
|
@@ -16970,12 +16975,12 @@ function phone_number_format(formatphone) {
|
|
|
|
TerritorySelectContent_create();
|
|
|
|
TerritorySelectContent_create();
|
|
|
|
if (agent_select_territories == "MGRLOCK")
|
|
|
|
if (agent_select_territories == "MGRLOCK")
|
|
|
|
{agent_select_territories_skip_count=4;}
|
|
|
|
{agent_select_territories_skip_count=4;}
|
|
|
|
agent_events('territory_screen_open', '');
|
|
|
|
agent_events('territory_screen_open', '', aec); aec++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
hideDiv('TerritorySelectBox');
|
|
|
|
hideDiv('TerritorySelectBox');
|
|
|
|
agent_events('territory_screen_closed', '');
|
|
|
|
agent_events('territory_screen_closed', '', aec); aec++;
|
|
|
|
MainPanelToFront();
|
|
|
|
MainPanelToFront();
|
|
|
|
var TerritorySelecting = 0;
|
|
|
|
var TerritorySelecting = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
@@ -17082,7 +17087,7 @@ function phone_number_format(formatphone) {
|
|
|
|
// alert("IFRAME submitting!");
|
|
|
|
// alert("IFRAME submitting!");
|
|
|
|
customsubmit_trigger=1;
|
|
|
|
customsubmit_trigger=1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
agent_events('dispo_screen_open', '');
|
|
|
|
agent_events('dispo_screen_open', '', aec); aec++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// trigger custom form submit if standard form has already been submitted or 3 seconds have gone by
|
|
|
|
// trigger custom form submit if standard form has already been submitted or 3 seconds have gone by
|
|
|
|
if (customsubmit_trigger > 0)
|
|
|
|
if (customsubmit_trigger > 0)
|
|
|
@@ -17395,7 +17400,7 @@ function phone_number_format(formatphone) {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
document.getElementById("blind_monitor_alert_span_contents").innerHTML = blind_monitor_message;
|
|
|
|
document.getElementById("blind_monitor_alert_span_contents").innerHTML = blind_monitor_message;
|
|
|
|
showDiv('blind_monitor_alert_span');
|
|
|
|
showDiv('blind_monitor_alert_span');
|
|
|
|
agent_events('blind_monitor_alert', '');
|
|
|
|
agent_events('blind_monitor_alert', '', aec); aec++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ( (blind_monitor_filename.length > 0) && ( (blind_monitor_warning=='AUDIO') || (blind_monitor_warning=='ALERT_AUDIO')|| (blind_monitor_warning=='NOTICE_AUDIO') || (blind_monitor_warning=='ALL') ) )
|
|
|
|
if ( (blind_monitor_filename.length > 0) && ( (blind_monitor_warning=='AUDIO') || (blind_monitor_warning=='ALERT_AUDIO')|| (blind_monitor_warning=='NOTICE_AUDIO') || (blind_monitor_warning=='ALL') ) )
|
|
|
|
{
|
|
|
|
{
|
|
|
@@ -17676,9 +17681,9 @@ function phone_number_format(formatphone) {
|
|
|
|
if (check_n==2)
|
|
|
|
if (check_n==2)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
hideDiv('LoadingBox');
|
|
|
|
hideDiv('LoadingBox');
|
|
|
|
agent_events('logged_in', session_id + ' ' + server_ip + ' ' + version + ' ' + build + ' ' + script_name);
|
|
|
|
agent_events('logged_in', session_id + ' ' + server_ip + ' ' + version + ' ' + build + ' ' + script_name, aec); aec++;
|
|
|
|
if (deactivated_old_session > 0)
|
|
|
|
if (deactivated_old_session > 0)
|
|
|
|
{agent_events('session_disabled', '');}
|
|
|
|
{agent_events('session_disabled', '', aec); aec++;}
|
|
|
|
|
|
|
|
|
|
|
|
if (invalid_opener > 0)
|
|
|
|
if (invalid_opener > 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
@@ -17686,7 +17691,7 @@ function phone_number_format(formatphone) {
|
|
|
|
logout_stop_timeouts = 1;
|
|
|
|
logout_stop_timeouts = 1;
|
|
|
|
showDiv('InvalidOpenerSpan');
|
|
|
|
showDiv('InvalidOpenerSpan');
|
|
|
|
|
|
|
|
|
|
|
|
agent_events('login_invalid', '<?php echo _QXZ("This agent screen was not opened properly."); ?>');
|
|
|
|
agent_events('login_invalid', '<?php echo _QXZ("This agent screen was not opened properly."); ?>', aec); aec++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@@ -17877,7 +17882,7 @@ function phone_number_format(formatphone) {
|
|
|
|
if (custom_3way_button_transfer_enabled > 0)
|
|
|
|
if (custom_3way_button_transfer_enabled > 0)
|
|
|
|
{document.getElementById("CustomXfer").innerHTML = "<img src=\"./images/<?php echo _QXZ("vdc_LB_customxfer_OFF.gif"); ?>\" border=\"0\" alt=\"Custom Transfer\" />";}
|
|
|
|
{document.getElementById("CustomXfer").innerHTML = "<img src=\"./images/<?php echo _QXZ("vdc_LB_customxfer_OFF.gif"); ?>\" border=\"0\" alt=\"Custom Transfer\" />";}
|
|
|
|
|
|
|
|
|
|
|
|
agent_events('transfer_panel_open', '');
|
|
|
|
agent_events('transfer_panel_open', '', aec); aec++;
|
|
|
|
transfer_panel_open=1;
|
|
|
|
transfer_panel_open=1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
@@ -17904,7 +17909,7 @@ function phone_number_format(formatphone) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (transfer_panel_open > 0)
|
|
|
|
if (transfer_panel_open > 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
agent_events('transfer_panel_closed', '');
|
|
|
|
agent_events('transfer_panel_closed', '', aec); aec++;
|
|
|
|
transfer_panel_open=0;
|
|
|
|
transfer_panel_open=0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|