Added scheduled_callbacks_force_dial campaign feature

git-svn-id: svn://192.168.202.10@3017 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2018-08-10 18:56:56 +00:00
parent 34c19d86ae
commit 69192f6696
6 changed files with 237 additions and 21 deletions
+3 -2
View File
@@ -1007,7 +1007,8 @@ dead_trigger_seconds SMALLINT(5) default '0',
dead_trigger_action ENUM('DISABLED','AUDIO','URL','AUDIO_AND_URL') default 'DISABLED',
dead_trigger_repeat ENUM('NO','REPEAT_ALL','REPEAT_AUDIO','REPEAT_URL') default 'NO',
dead_trigger_filename TEXT,
dead_trigger_url TEXT
dead_trigger_url TEXT,
scheduled_callbacks_force_dial ENUM('N','Y') default 'N'
) ENGINE=MyISAM;
CREATE TABLE vicidial_lists (
@@ -4266,4 +4267,4 @@ INSERT INTO vicidial_settings_containers(container_id,container_notes,container_
UPDATE system_settings set vdc_agent_api_active='1';
UPDATE system_settings SET db_schema_version='1551',db_schema_update_date=NOW(),reload_timestamp=NOW();
UPDATE system_settings SET db_schema_version='1552',db_schema_update_date=NOW(),reload_timestamp=NOW();
+4
View File
@@ -699,3 +699,7 @@ UPDATE system_settings SET db_schema_version='1550',db_schema_update_date=NOW()
ALTER TABLE system_settings ADD agent_logout_link ENUM('0','1','2','3','4') default '1';
UPDATE system_settings SET db_schema_version='1551',db_schema_update_date=NOW() where db_schema_version < 1551;
ALTER TABLE vicidial_campaigns ADD scheduled_callbacks_force_dial ENUM('N','Y') default 'N';
UPDATE system_settings SET db_schema_version='1552',db_schema_update_date=NOW() where db_schema_version < 1552;
+85 -6
View File
@@ -16392,9 +16392,60 @@ if ($ACTION == 'SEARCHCONTACTSRESULTSview')
################################################################################
if ($ACTION == 'LEADINFOview')
{
$CB_force_dial_flag=0;
if (strlen($lead_id) < 1)
{echo "ERROR: "._QXZ("no Lead ID");}
else
{
if ($callback_id == 'FORCED')
{
$CB_force_dial_flag=1;
$campaignCBhoursSQL = '';
$campaignCBdisplaydaysSQL = '';
$stmt = "SELECT callback_hours_block,callback_list_calltime,local_call_time,callback_display_days from vicidial_campaigns where campaign_id='$campaign';";
$rslt=mysql_to_mysqli($stmt, $link);
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);}
if ($rslt) {$camp_count = mysqli_num_rows($rslt);}
if ($camp_count > 0)
{
$row=mysqli_fetch_row($rslt);
$callback_hours_block = $row[0];
$callback_list_calltime = $row[1];
$local_call_time = $row[2];
$callback_display_days = $row[3];
if ($callback_hours_block > 0)
{
$x_hours_ago = date("Y-m-d H:i:s", mktime(date("H")-$callback_hours_block,date("i"),date("s"),date("m"),date("d"),date("Y")));
$campaignCBhoursSQL = "and entry_time < \"$x_hours_ago\"";
}
if ($callback_display_days > 0)
{
$x_days_from_now = date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d")+$callback_display_days,date("Y")));
$campaignCBdisplaydaysSQL = "and callback_time < \"$x_days_from_now\"";
}
}
$campaignCBsql = '';
if ($agentonly_callback_campaign_lock > 0)
{$campaignCBsql = "and campaign_id='$campaign'";}
$stmt = "SELECT callback_id,lead_id from vicidial_callbacks where recipient='USERONLY' and user='$user' $campaignCBsql $campaignCBhoursSQL $campaignCBdisplaydaysSQL and status IN('LIVE') order by callback_time limit 1;";
if ($DB) {echo "$stmt\n";}
$rslt=mysql_to_mysqli($stmt, $link);
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);}
if ($rslt) {$callbacks_count = mysqli_num_rows($rslt);}
if ($callbacks_count > 0)
{
$row=mysqli_fetch_row($rslt);
$callback_id = $row[0];
$lead_id = $row[1];
}
else
{
echo "ERROR: "._QXZ("no LIVE Callbacks found");
}
}
else
{echo "ERROR: "._QXZ("no Lead ID");}
}
if (strlen($lead_id) > 0)
{
$hide_dial_links=0;
echo "<CENTER>\n";
@@ -16425,7 +16476,8 @@ if ($ACTION == 'LEADINFOview')
echo "<tr bgcolor=white><td ALIGN=right><font class='sb_text'>"._QXZ("Callback Comments:")." &nbsp; </td><td ALIGN=left><font class='sb_text'>$row[6]</td></tr>";
echo "</TABLE>";
echo "<BR>";
$hide_dial_links++;
if ($CB_force_dial_flag < 1)
{$hide_dial_links++;}
}
}
### END Display callback information ###
@@ -16660,7 +16712,16 @@ if ($ACTION == 'LEADINFOview')
if ($hide_dial_links < 1)
{
if ($manual_dial_filter > 0)
{$INFOout .= "<a href=\"#\" onclick=\"NeWManuaLDiaLCalL('CALLLOG',$row[5], $row[6], $lead_id,'','YES');return false;\"> "._QXZ("DIAL")." </a>";}
{
if ($CB_force_dial_flag > 0)
{
$INFOout .= "<a href=\"#\" onclick=\"new_callback_call('$callback_id','$lead_id','MAIN');return false;\"> "._QXZ("DIAL")." </a>";
}
else
{
$INFOout .= "<a href=\"#\" onclick=\"NeWManuaLDiaLCalL('CALLLOG',$row[5], $row[6], $lead_id,'','YES');return false;\"> "._QXZ("DIAL")." </a>";
}
}
else
{$INFOout .= _QXZ(" DIAL ");}
}
@@ -16668,7 +16729,16 @@ if ($ACTION == 'LEADINFOview')
if ( ($label_phone_number=='---HIDE---') and ($hide_dial_links < 1) )
{
if ($manual_dial_filter > 0)
{$INFOout .= "<tr bgcolor=white><td ALIGN=right><font class='sb_text'>"._QXZ("Dial Link:")." &nbsp; </td><td ALIGN=left><font class='sb_text'><a href=\"#\" onclick=\"NeWManuaLDiaLCalL('CALLLOG',$row[5], $row[6], $lead_id,'','YES');return false;\"> "._QXZ("DIAL")." </a>";}
{
if ($CB_force_dial_flag > 0)
{
$INFOout .= "<tr bgcolor=white><td ALIGN=right><font class='sb_text'>"._QXZ("Dial Link:")." &nbsp; </td><td ALIGN=left><font class='sb_text'><a href=\"#\" onclick=\"new_callback_call('$callback_id','$lead_id','MAIN');return false;\"> "._QXZ("DIAL")." </a>";
}
else
{
$INFOout .= "<tr bgcolor=white><td ALIGN=right><font class='sb_text'>"._QXZ("Dial Link:")." &nbsp; </td><td ALIGN=left><font class='sb_text'><a href=\"#\" onclick=\"NeWManuaLDiaLCalL('CALLLOG',$row[5], $row[6], $lead_id,'','YES');return false;\"> "._QXZ("DIAL")." </a>";
}
}
else
{$INFOout .= "<tr bgcolor=white><td ALIGN=right><font class='sb_text'>"._QXZ("Dial Link:")." &nbsp; </td><td ALIGN=left><font class='sb_text'>"._QXZ(" DIAL ");}
}
@@ -16706,7 +16776,16 @@ if ($ACTION == 'LEADINFOview')
if ($hide_dial_links < 1)
{
if ($manual_dial_filter > 0)
{$INFOout .= "<a href=\"#\" onclick=\"NeWManuaLDiaLCalL('CALLLOG',$row[5], $row[20], $lead_id, 'ALT','YES');return false;\"> "._QXZ("DIAL")." </a>";}
{
if ($CB_force_dial_flag > 0)
{
$INFOout .= "<a href=\"#\" onclick=\"new_callback_call('$callback_id','$lead_id','ALT');return false;\"> "._QXZ("DIAL")." </a>";
}
else
{
$INFOout .= "<a href=\"#\" onclick=\"NeWManuaLDiaLCalL('CALLLOG',$row[5], $row[20], $lead_id, 'ALT','YES');return false;\"> "._QXZ("DIAL")." </a>";
}
}
else
{$INFOout .= " DIAL ";}
}
+131 -7
View File
@@ -600,10 +600,11 @@
# 180610-2305 - Added dead_trigger_ features
# 180727-2044 - Small fix for pause code issue
# 180807-1703 - Added agent_logout_link credentials system setting
# 180809-1649 - Added scheduled_callbacks_force_dial campaign feature
#
$version = '2.14-569c';
$build = '180807-1703';
$version = '2.14-570c';
$build = '180809-1649';
$mel=1; # Mysql Error Log enabled = 1
$mysql_log_count=87;
$one_mysql_log=0;
@@ -717,7 +718,7 @@ if ($sl_ct > 0)
#############################################
##### START SYSTEM_SETTINGS LOOKUP #####
$stmt = "SELECT use_non_latin,vdc_header_date_format,vdc_customer_date_format,vdc_header_phone_format,webroot_writable,timeclock_end_of_day,vtiger_url,enable_vtiger_integration,outbound_autodial_active,enable_second_webform,user_territories_active,static_agent_url,custom_fields_enabled,pllb_grouping_limit,qc_features_active,allow_emails,callback_time_24hour,enable_languages,language_method,meetme_enter_login_filename,meetme_enter_leave3way_filename,enable_third_webform,default_language,active_modules,allow_chats,chat_url,default_phone_code,agent_screen_colors,manual_auto_next,agent_xfer_park_3way,admin_web_directory,agent_script,agent_push_events,agent_push_url,agent_logout_link FROM system_settings;";
$stmt = "SELECT use_non_latin,vdc_header_date_format,vdc_customer_date_format,vdc_header_phone_format,webroot_writable,timeclock_end_of_day,vtiger_url,enable_vtiger_integration,outbound_autodial_active,enable_second_webform,user_territories_active,static_agent_url,custom_fields_enabled,pllb_grouping_limit,qc_features_active,allow_emails,callback_time_24hour,enable_languages,language_method,meetme_enter_login_filename,meetme_enter_leave3way_filename,enable_third_webform,default_language,active_modules,allow_chats,chat_url,default_phone_code,agent_screen_colors,manual_auto_next,agent_xfer_park_3way,admin_web_directory,agent_script,agent_push_events,agent_push_url,agent_logout_link,agentonly_callback_campaign_lock FROM system_settings;";
$rslt=mysql_to_mysqli($stmt, $link);
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'01001',$VD_login,$server_ip,$session_name,$one_mysql_log);}
if ($DB) {echo "$stmt\n";}
@@ -760,6 +761,7 @@ if ($qm_conf_ct > 0)
$agent_push_events = $row[32];
$agent_push_url = $row[33];
$agent_logout_link = $row[34];
$agentonly_callback_campaign_lock = $row[35];
}
else
{
@@ -1880,7 +1882,7 @@ else
$HKstatusnames = substr("$HKstatusnames", 0, -1);
##### grab the campaign settings
$stmt="SELECT park_ext,park_file_name,web_form_address,allow_closers,auto_dial_level,dial_timeout,dial_prefix,campaign_cid,campaign_vdad_exten,campaign_rec_exten,campaign_recording,campaign_rec_filename,campaign_script,get_call_launch,am_message_exten,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,alt_number_dialing,scheduled_callbacks,wrapup_seconds,wrapup_message,closer_campaigns,use_internal_dnc,allcalls_delay,omit_phone_code,agent_pause_codes_active,no_hopper_leads_logins,campaign_allow_inbound,manual_dial_list_id,default_xfer_group,xfer_groups,disable_alter_custphone,display_queue_count,manual_dial_filter,agent_clipboard_copy,use_campaign_dnc,three_way_call_cid,dial_method,three_way_dial_prefix,web_form_target,vtiger_screen_login,agent_allow_group_alias,default_group_alias,quick_transfer_button,prepopulate_transfer_preset,view_calls_in_queue,view_calls_in_queue_launch,call_requeue_button,pause_after_each_call,no_hopper_dialing,agent_dial_owner_only,agent_display_dialable_leads,web_form_address_two,agent_select_territories,crm_popup_login,crm_login_address,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,use_custom_cid,scheduled_callbacks_alert,scheduled_callbacks_count,manual_dial_override,blind_monitor_warning,blind_monitor_message,blind_monitor_filename,timer_action_destination,enable_xfer_presets,hide_xfer_number_to_dial,manual_dial_prefix,customer_3way_hangup_logging,customer_3way_hangup_seconds,customer_3way_hangup_action,ivr_park_call,manual_preview_dial,api_manual_dial,manual_dial_call_time_check,my_callback_option,per_call_notes,agent_lead_search,agent_lead_search_method,queuemetrics_phone_environment,auto_pause_precall,auto_pause_precall_code,auto_resume_precall,manual_dial_cid,custom_3way_button_transfer,callback_days_limit,disable_dispo_screen,disable_dispo_status,screen_labels,status_display_fields,pllb_grouping,pllb_grouping_limit,in_group_dial,in_group_dial_select,pause_after_next_call,owner_populate,manual_dial_lead_id,dead_max,dispo_max,pause_max,dead_max_dispo,dispo_max_dispo,max_inbound_calls,manual_dial_search_checkbox,hide_call_log_info,timer_alt_seconds,wrapup_bypass,wrapup_after_hotkey,callback_active_limit,callback_active_limit_override,comments_all_tabs,comments_dispo_screen,comments_callback_screen,qc_comment_history,show_previous_callback,clear_script,manual_dial_search_filter,web_form_address_three,manual_dial_override_field,status_display_ingroup,customer_gone_seconds,agent_display_fields,manual_dial_timeout,manual_auto_next,manual_auto_show,allow_required_fields,dead_to_dispo,agent_xfer_validation,ready_max_logout,callback_display_days,three_way_record_stop,hangup_xfer_record_start,max_inbound_calls_outcome,manual_auto_next_options,agent_screen_time_display,pause_max_dispo,script_top_dispo,routing_initiated_recordings,dead_trigger_seconds,dead_trigger_action,dead_trigger_repeat,dead_trigger_filename FROM vicidial_campaigns where campaign_id = '$VD_campaign';";
$stmt="SELECT park_ext,park_file_name,web_form_address,allow_closers,auto_dial_level,dial_timeout,dial_prefix,campaign_cid,campaign_vdad_exten,campaign_rec_exten,campaign_recording,campaign_rec_filename,campaign_script,get_call_launch,am_message_exten,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,alt_number_dialing,scheduled_callbacks,wrapup_seconds,wrapup_message,closer_campaigns,use_internal_dnc,allcalls_delay,omit_phone_code,agent_pause_codes_active,no_hopper_leads_logins,campaign_allow_inbound,manual_dial_list_id,default_xfer_group,xfer_groups,disable_alter_custphone,display_queue_count,manual_dial_filter,agent_clipboard_copy,use_campaign_dnc,three_way_call_cid,dial_method,three_way_dial_prefix,web_form_target,vtiger_screen_login,agent_allow_group_alias,default_group_alias,quick_transfer_button,prepopulate_transfer_preset,view_calls_in_queue,view_calls_in_queue_launch,call_requeue_button,pause_after_each_call,no_hopper_dialing,agent_dial_owner_only,agent_display_dialable_leads,web_form_address_two,agent_select_territories,crm_popup_login,crm_login_address,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,use_custom_cid,scheduled_callbacks_alert,scheduled_callbacks_count,manual_dial_override,blind_monitor_warning,blind_monitor_message,blind_monitor_filename,timer_action_destination,enable_xfer_presets,hide_xfer_number_to_dial,manual_dial_prefix,customer_3way_hangup_logging,customer_3way_hangup_seconds,customer_3way_hangup_action,ivr_park_call,manual_preview_dial,api_manual_dial,manual_dial_call_time_check,my_callback_option,per_call_notes,agent_lead_search,agent_lead_search_method,queuemetrics_phone_environment,auto_pause_precall,auto_pause_precall_code,auto_resume_precall,manual_dial_cid,custom_3way_button_transfer,callback_days_limit,disable_dispo_screen,disable_dispo_status,screen_labels,status_display_fields,pllb_grouping,pllb_grouping_limit,in_group_dial,in_group_dial_select,pause_after_next_call,owner_populate,manual_dial_lead_id,dead_max,dispo_max,pause_max,dead_max_dispo,dispo_max_dispo,max_inbound_calls,manual_dial_search_checkbox,hide_call_log_info,timer_alt_seconds,wrapup_bypass,wrapup_after_hotkey,callback_active_limit,callback_active_limit_override,comments_all_tabs,comments_dispo_screen,comments_callback_screen,qc_comment_history,show_previous_callback,clear_script,manual_dial_search_filter,web_form_address_three,manual_dial_override_field,status_display_ingroup,customer_gone_seconds,agent_display_fields,manual_dial_timeout,manual_auto_next,manual_auto_show,allow_required_fields,dead_to_dispo,agent_xfer_validation,ready_max_logout,callback_display_days,three_way_record_stop,hangup_xfer_record_start,max_inbound_calls_outcome,manual_auto_next_options,agent_screen_time_display,pause_max_dispo,script_top_dispo,routing_initiated_recordings,dead_trigger_seconds,dead_trigger_action,dead_trigger_repeat,dead_trigger_filename,scheduled_callbacks_force_dial,callback_hours_block,callback_display_days FROM vicidial_campaigns where campaign_id = '$VD_campaign';";
$rslt=mysql_to_mysqli($stmt, $link);
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'01013',$VD_login,$server_ip,$session_name,$one_mysql_log);}
if ($DB) {echo "$stmt\n";}
@@ -2036,6 +2038,9 @@ else
$dead_trigger_action = $row[148];
$dead_trigger_repeat = $row[149];
$dead_trigger_filename = $row[150];
$scheduled_callbacks_force_dial = $row[151];
$callback_hours_block = $row[152];
$callback_display_days = $row[153];
$MI_PAUSE = 0;
if (preg_match("/MI_PAUSE/",$max_inbound_calls_outcome))
@@ -2121,6 +2126,39 @@ else
}
}
$launch_scb_force_dial=0;
if ( ($VC_scheduled_callbacks=='Y') and ($VU_scheduled_callbacks=='1') )
{
$scheduled_callbacks='1';
# check for any existing triggered USERONLY Scheduled Callbacks
if ($scheduled_callbacks_force_dial == 'Y')
{
$campaignCBsql = '';
$campaignCBhoursSQL = '';
$campaignCBdisplaydaysSQL = '';
if ($agentonly_callback_campaign_lock > 0)
{$campaignCBsql = "and campaign_id='$VD_campaign'";}
if ($callback_hours_block > 0)
{
$x_hours_ago = date("Y-m-d H:i:s", mktime(date("H")-$callback_hours_block,date("i"),date("s"),date("m"),date("d"),date("Y")));
$campaignCBhoursSQL = "and entry_time < \"$x_hours_ago\"";
}
if ($callback_display_days > 0)
{
$x_days_from_now = date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d")+$callback_display_days,date("Y")));
$campaignCBdisplaydaysSQL = "and callback_time < \"$x_days_from_now\"";
}
$stmt = "SELECT count(*) from vicidial_callbacks where recipient='USERONLY' and user='$VD_login' $campaignCBsql $campaignCBhoursSQL $campaignCBdisplaydaysSQL and status IN('LIVE');";
if ($DB) {echo "$stmt\n";}
$rslt=mysql_to_mysqli($stmt, $link);
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'01XXX',$user,$server_ip,$session_name,$one_mysql_log);}
$row=mysqli_fetch_row($rslt);
$launch_scb_force_dial=$row[0];
}
}
$hide_dispo_list=0;
if ( ($disable_dispo_screen == 'DISPO_ENABLED') or ($disable_dispo_screen == 'DISPO_SELECT_DISABLED') or (strlen($disable_dispo_status) < 1) )
{
@@ -2285,8 +2323,6 @@ else
$campaign_recording = $VU_vicidial_recording_override;
echo "<!-- USER RECORDING OVERRIDE: |$VU_vicidial_recording_override|$campaign_recording| -->\n";
}
if ( ($VC_scheduled_callbacks=='Y') and ($VU_scheduled_callbacks=='1') )
{$scheduled_callbacks='1';}
if ($VU_vicidial_recording=='0')
{$campaign_recording='NEVER';}
if ($VU_alter_custphone_override=='ALLOW_ALTER')
@@ -4734,6 +4770,9 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
var dead_trigger_repeat='<?php echo $dead_trigger_repeat ?>';
var dead_trigger_filename='<?php echo $dead_trigger_filename ?>';
var agent_logout_link='<?php echo $agent_logout_link ?>';
var scheduled_callbacks_force_dial='<?php echo $scheduled_callbacks_force_dial ?>';
var launch_scb_force_dial='<?php echo $launch_scb_force_dial ?>';
var liveCBcounT=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_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\" />";
@@ -7234,6 +7273,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
var CBcounT = CBcounTtotal_array[0];
if (scheduled_callbacks_count=='LIVE')
{CBcounT = CBcounTtotal_array[1];}
liveCBcounT = CBcounTtotal_array[1];
if (CBcounT == 0) {var CBprint = "<?php echo _QXZ("NO"); ?>";}
else
{
@@ -7567,6 +7607,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
document.vicidial_form.LeadPreview.checked=true;
// document.vicidial_form.DiaLAltPhonE.checked=true;
hideDiv('CallBacKsLisTBox');
hideDiv('SCForceDialBox');
ManualDialNext(taskCBid,taskLEADid,'','','','0','',taskCBalt);
}
}
@@ -8249,6 +8290,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
else
{
hideDiv('NeWManuaLDiaLBox');
hideDiv('SCForceDialBox');
// document.getElementById("debugbottomspan").innerHTML = "DEBUG OUTPUT" + document.vicidial_form.MDPhonENumbeR.value + "|" + active_group_alias;
var sending_group_alias = 0;
@@ -13777,8 +13819,14 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
{
if (wrapup_waiting == 0)
{
if (document.vicidial_form.DispoSelectStop.checked==true)
if ( (document.vicidial_form.DispoSelectStop.checked==true) || ( (liveCBcounT > 0) && (scheduled_callbacks_force_dial == 'Y') ) )
{
if ( (liveCBcounT > 0) && (scheduled_callbacks_force_dial == 'Y') )
{
VieWCBForcedDialInfO();
temp_dispo_pause_code = auto_pause_precall_code;
temp_use_pause_code=1;
}
if (auto_dial_level != '0')
{
AutoDialWaiting = 0;
@@ -16378,6 +16426,64 @@ function phone_number_format(formatphone) {
}
// ################################################################################
// View Forced-Dial Scheduled Callback information
function VieWCBForcedDialInfO()
{
button_click_log = button_click_log + "" + SQLdate + "-----VieWCBForcedDialInfO---" + user + " " + campaign + "|";
document.getElementById('SCForceDialSpan').innerHTML = "<?php echo _QXZ("Loading"); ?>...\n";
var xmlhttp=false;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
// JScript gives us Conditional compilation, we can cope with old IE versions.
// and security blocked creation of the objects.
try {
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
xmlhttp = false;
}
}
@end @*/
if (!xmlhttp && typeof XMLHttpRequest!='undefined')
{
xmlhttp = new XMLHttpRequest();
}
if (xmlhttp)
{
RAview_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=LEADINFOview&format=text&user=" + user + "&pass=" + pass + "&conf_exten=" + session_id + "&extension=" + extension + "&protocol=" + protocol + "&disable_alter_custphone=" + disable_alter_custphone + "&campaign=" + campaign + "&callback_id=FORCED&manual_dial_filter=" + agentcall_manual + "&stage=<?php echo $HCwidth ?>";
xmlhttp.open('POST', 'vdc_db_query.php');
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
xmlhttp.send(RAview_query);
xmlhttp.onreadystatechange = function()
{
if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
{
var temp_response = xmlhttp.responseText;
// alert(xmlhttp.responseText);
var regCDS = new RegExp("ERROR: no","ig");
if (temp_response.match(regCDS))
{
// alert_box(temp_response);
hideDiv('SCForceDialBox');
button_click_log = button_click_log + "" + SQLdate + "-----CBForcedDialNONE---" + user + "|";
}
else
{
showDiv('SCForceDialBox');
document.getElementById('SCForceDialSpan').innerHTML = xmlhttp.responseText + "\n";
button_click_log = button_click_log + "" + SQLdate + "-----CBForcedDialFOUND---" + user + "|";
}
}
}
delete xmlhttp;
}
}
// ################################################################################
// Refresh the call log display
function VieWCalLLoG(logdate,formdate)
@@ -17462,6 +17568,10 @@ function phone_number_format(formatphone) {
hideDiv('InvalidOpenerSpan');
hideDiv('OtherTabCommentsSpan');
hideDiv('AgentTimeDisplayBox');
if (launch_scb_force_dial < 1)
{hideDiv('SCForceDialBox');}
else
{VieWCBForcedDialInfO();}
if (deactivated_old_session < 1)
{hideDiv('DeactivateDOlDSessioNSpan');}
if (is_webphone!='Y')
@@ -20049,6 +20159,20 @@ if ($agent_display_dialable_leads > 0)
</tr></table>
</span>
<span style="position:absolute;left:0px;top:0px;z-index:<?php $zi++; echo $zi ?>;" id="SCForceDialBox">
<table border="0" bgcolor="#CCFFCC" width="<?php echo $CAwidth ?>px" height="<?php echo $WRheight ?>px"><tr><td align="center" valign="top"> &nbsp; &nbsp; &nbsp; <font class="sd_text"><?php echo _QXZ("Scheduled Callback to Dial:"); ?></font>
<br />
<?php
if ($webphone_location == 'bar')
{echo "<br /><img src=\"./images/"._QXZ("pixel.gif")."\" width=\"1px\" height=\"".$webphone_height."px\" /><br />\n";}
?>
<span id="SCForceDialSpan"> <?php echo _QXZ("Lead Info"); ?> </span>
<br /><br /> &nbsp;
<!--<a href="#" onclick="hideDiv('SCForceDialBox');return false;"><?php echo _QXZ("Close Box"); ?></a>-->
</font>
</td></tr></table>
</span>
<span style="position:absolute;left:0px;top:0px;z-index:<?php $zi++; echo $zi ?>;" id="CallBacKsLisTBox">
<table border="0" bgcolor="#CCFFCC" width="<?php echo $CAwidth ?>px" height="<?php echo $WRheight ?>px"><tr><td align="center" valign="top"> <font class="sh_text"><?php echo _QXZ("CALLBACKS FOR AGENT %1s:<br />To see information on one of the callbacks below, click on the INFO link. To call the customer back now, click on the DIAL link. If you click on a record below to dial it, it will be removed from the list.",0,'',$VD_login); ?></font>
<br />
+12 -5
View File
File diff suppressed because one or more lines are too long
+2 -1
View File
@@ -1,4 +1,4 @@
# version: 201808071700
# version: 201808091644
users-user User ID <QXZ>This field is where you put the users ID number, can be up to 8 digits in length, Must be at least 2 characters in length.</QXZ>
users-pass Password <QXZ>This field is where you put the users password. Must be at least 2 characters in length. A medium strength user password will be at least 10 characters in length, and a strong user password will be at least 20 characters in length and have letters as well as at least one number. It is recommended that you use a longer password if possible, stringing together several unrelated words with no spaces, and a number somewhere in the string. The maximum size of a password is 100 characters.</QXZ>
users-force_change_password Force Change Password <QXZ>If this option is set to Y then the user will be prompted to change their password the next time they log in to the administration webpage. Default is N.</QXZ>
@@ -259,6 +259,7 @@ campaigns-my_callback_option My Callbacks Checkbox Default <QXZ>This option allo
campaigns-show_previous_callback Show Previous Callback <QXZ>This option if enabled will show on the agent screen with a separate yellow panel information about the previously set callback that the agent has up on their screen. Disabling this option will not show that panel. Default is ENABLED.</QXZ>
campaigns-callback_useronly_move_minutes Scheduled Callbacks Useronly Move Minutes <QXZ>This option if set to a number greater than 0, will change all USERONLY Scheduled Callbacks that are X minutes after their callback time to ANYONE callbacks. This process runs every minute. Default is 0 for disabled.</QXZ>
campaigns-next_dial_my_callbacks Next-Dial My Callbacks <QXZ>This option only works for MANUAL and INBOUND_MAN dial methods, and also only if No Hopper Dialing is enabled. This feature will look for Scheduled Callbacks that have triggered for the agent and dial them next when the agent clicks on the Dial Next Number button on their agent screen. Default is DISABLED.</QXZ>
campaigns-scheduled_callbacks_force_dial Scheduled Callbacks Force Dial <QXZ>This feature will force an agent to a paused state and block out their screen with the next triggered USERONLY scheduled callback to be called. The agent's only option will be to dial this callback, although they are able to look at lead info before they do that. If there are multiple triggered scheduled callbacks for the agent, they all must be called before the agent can move on to handling other items. This feature will not pay attention to the Call Time that is set for the campaign, so these calls may be dialed outside of the set call time. The agent must be able to place manual dial calls for this feature to work. Default is N for disabled.</QXZ>
campaigns-wrapup_seconds Wrap Up Seconds <QXZ>The number of seconds to force an agent to wait before allowing them to receive or dial another call. The timer begins as soon as an agent hangs up on their customer - or in the case of alternate number dialing when the agent finishes the lead - Default is 0 seconds. If the timer runs out before the agent has dispositioned the call, the agent still will NOT move on to the next call until they select a disposition.</QXZ>
campaigns-wrapup_message Wrap Up Message <QXZ>This is a campaign-specific message to be displayed on the wrap up screen if wrap up seconds is set. You can use a Script in the system if you use the script id with WUSCRIPT in front of it, so if you wanted to use a script called agent_script, then you would put WUSCRIPTagent_script in this field.</QXZ>
campaigns-wrapup_bypass Wrap Up Bypass <QXZ>If set to ENABLED then the agent will be able to click a link to stop the Wrap Up timer before the time is completed. Default is ENABLED.</QXZ>