Added campaign option "Script on top of Dispo" to allow the agent screen

script tab to cover the dispo screen after hanging up the customer to
 allow for Agent-API-enabled IFRAMEs to control the agent dispo process.

git-svn-id: svn://192.168.202.10@2939 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2018-03-06 22:24:17 +00:00
parent 81b357ebfa
commit e01d498653
6 changed files with 59 additions and 11 deletions
+4
View File
@@ -278,6 +278,10 @@ OTHER CHANGES:
74. Added NO_READY option for no_agent_no_queue in-group feature.
75. Added campaign option "Script on top of Dispo" to allow the agent screen
script tab to cover the dispo screen after hanging up the customer to
allow for Agent-API-enabled IFRAMEs to control the agent dispo process.
+3 -2
View File
@@ -998,7 +998,8 @@ next_dial_my_callbacks ENUM('DISABLED','ENABLED') default 'DISABLED',
inbound_no_agents_no_dial_container VARCHAR(40) default '---DISABLED---',
inbound_no_agents_no_dial_threshold SMALLINT(5) default '0',
cid_group_id VARCHAR(20) default '---DISABLED---',
pause_max_dispo VARCHAR(6) default 'PAUSMX'
pause_max_dispo VARCHAR(6) default 'PAUSMX',
script_top_dispo ENUM('Y', 'N') default 'N'
) ENGINE=MyISAM;
CREATE TABLE vicidial_lists (
@@ -4186,4 +4187,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='1538',db_schema_update_date=NOW(),reload_timestamp=NOW();
UPDATE system_settings SET db_schema_version='1539',db_schema_update_date=NOW(),reload_timestamp=NOW();
+4
View File
@@ -577,3 +577,7 @@ UPDATE system_settings SET db_schema_version='1537',db_schema_update_date=NOW()
ALTER TABLE vicidial_inbound_groups MODIFY no_agent_no_queue ENUM('N','Y','NO_PAUSED','NO_READY') default 'N';
UPDATE system_settings SET db_schema_version='1538',db_schema_update_date=NOW() where db_schema_version < 1538;
ALTER TABLE vicidial_campaigns ADD script_top_dispo ENUM('Y', 'N') default 'N';
UPDATE system_settings SET db_schema_version='1539',db_schema_update_date=NOW() where db_schema_version < 1539;
+28 -3
View File
@@ -585,10 +585,11 @@
# 180223-1150 - Fix for rare webform VAR url issue
# 180224-1433 - Added LOGINvar variables, and options.php $INSERT_ variables
# 180302-1704 - Fix for pause code issue
# 180306-1717 - Added script_top_dispo feature
#
$version = '2.14-555c';
$build = '180302-1704';
$version = '2.14-556c';
$build = '180306-1717';
$mel=1; # Mysql Error Log enabled = 1
$mysql_log_count=87;
$one_mysql_log=0;
@@ -1858,7 +1859,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 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 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";}
@@ -2008,6 +2009,7 @@ else
$manual_auto_next_options = $row[142];
$agent_screen_time_display= $row[143];
$pause_max_dispo = $row[144];
$script_top_dispo = $row[145];
$MI_PAUSE = 0;
if (preg_match("/MI_PAUSE/",$max_inbound_calls_outcome))
@@ -4623,6 +4625,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
var dead_max_dispo='<?php echo $dead_max_dispo ?>';
var dispo_max_dispo='<?php echo $dispo_max_dispo ?>';
var pause_max_dispo='<?php echo $pause_max_dispo ?>';
var script_top_dispo='<?php echo $script_top_dispo ?>';
var script_span_zindex=0;
var dead_auto_dispo_count=0;
var dead_auto_dispo_finish=0;
var alt_dial_dispo_count=0
@@ -13640,6 +13644,11 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
EAcommentsBoxhide();
ContactSearchReset();
ViewComments('OFF','OFF');
if (script_top_dispo == 'Y')
{
hideDiv('ScriptTopBGspan');
document.getElementById("ScriptPanel").style.zIndex = script_span_zindex;
}
if (clear_script == 'ENABLED')
{document.getElementById("ScriptContents").innerHTML = '';}
parked_hangup='0';
@@ -17136,6 +17145,7 @@ function phone_number_format(formatphone) {
hideDiv('NothingBox');
hideDiv('AlertBox');
// hideDiv('NothingBox2');
hideDiv('ScriptTopBGspan');
hideDiv('CBcommentsBox');
hideDiv('EAcommentsBox');
hideDiv('EAcommentsMinBox');
@@ -17384,6 +17394,13 @@ function phone_number_format(formatphone) {
document.getElementById("GENDERhideFORieALT").innerHTML = "<select size=\"1\" name=\"gender_list\" class=\"cust_form\" id=\"gender_list\"><option value=\"U\"><?php echo _QXZ("U - Undefined"); ?></option><option value=\"M\"><?php echo _QXZ("M - Male"); ?></option><option value=\"F\"><?php echo _QXZ("F - Female"); ?></option></select>";
}
ViewComments('OFF','OFF');
if (script_top_dispo == 'Y')
{
script_span_zindex = document.getElementById("ScriptPanel").style.zIndex;
showDiv('ScriptTopBGspan');
document.getElementById("ScriptPanel").style.zIndex = 100;
}
showDiv('DispoSelectBox');
DispoSelectContent_create('','ReSET');
WaitingForNextStep=1;
@@ -20106,6 +20123,14 @@ if ($agent_display_dialable_leads > 0)
</td></tr></table>
</span>
<span style="position:absolute;left:0px;top:0px;z-index:99;" id="ScriptTopBGspan">
<table border="0" bgcolor="#FFFFFF" width="<?php echo $CAwidth ?>px" height="<?php echo $WRheight ?>px"><tr><td align="center"><font class="sd_text"> &nbsp; </font><br />
</td></tr></table>
</span>
<? $zi = ($zi + 100); ?>
<span style="position:absolute;left:0px;top:0px;z-index:<?php $zi++; echo $zi ?>;" id="blind_monitor_alert_span">
<table border="0" bgcolor="#CCFFCC" width="<?php echo $CAwidth ?>px" height="<?php echo $WRheight ?>px"><tr><td align="center" valign="top"> <font class="sd_text"><?php echo _QXZ("ALERT :"); ?></font><br /><font class="sh_text">
<b><font color="red" size="5"> &nbsp; &nbsp; <span id="blind_monitor_alert_span_contents"></span></b></font>
+14 -6
View File
File diff suppressed because one or more lines are too long
+6
View File
@@ -154,6 +154,7 @@
# 180211-1119 - Added source_vlc_status_report
# 180214-0042 - Added cid_groups
# 180217-0810 - Added pause_max_dispo
# 180306-1639 - Added script_top_dispo
#
require("dbconnect_mysqli.php");
@@ -1756,6 +1757,11 @@ if ($SSoutbound_autodial_active > 0)
<BR>
<B><?php echo _QXZ("Disable Dispo Status"); ?> -</B><?php echo _QXZ("If the Disable Dispo Screen option is set to DISPO_DISABLED, then this field must be filled in. You can use any disposition you want for this field as long as it is 1 to 6 characters in length with only letters and numbers."); ?>
<BR>
<A NAME="campaigns-script_top_dispo">
<BR>
<B><?php echo _QXZ("Script on top of Dispo"); ?> -</B><?php echo _QXZ("If you are using an IFRAME in your SCRIPT tab contents, and the page you are using is sending statuses through the Agent API, you may want to use this feature to cover the Dispostion screen with the script tab after a call is hung up. Default is N for disabled."); ?>
<BR>
<A NAME="campaigns-dead_max">
<BR>