|
|
|
@@ -736,10 +736,11 @@
|
|
|
|
|
# 240221-0317 - Small changes for state_descriptions Banner
|
|
|
|
|
# 240322-0034 - Added input filtering
|
|
|
|
|
# 240409-2053 - Fix for Dead Trigger issue
|
|
|
|
|
# 240415-1852 - Added script_tab_height campaign option
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
$version = '2.14-702c';
|
|
|
|
|
$build = '240409-2053';
|
|
|
|
|
$version = '2.14-703c';
|
|
|
|
|
$build = '240415-1852';
|
|
|
|
|
$php_script = 'vicidial.php';
|
|
|
|
|
$mel=1; # Mysql Error Log enabled = 1
|
|
|
|
|
$mysql_log_count=103;
|
|
|
|
@@ -3115,7 +3116,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,scheduled_callbacks_force_dial,callback_hours_block,callback_display_days,scheduled_callbacks_timezones_container,three_way_volume_buttons,manual_dial_validation,mute_recordings,leave_vm_no_dispo,leave_vm_message_group_id,campaign_script_two,browser_alert_sound,browser_alert_volume,three_way_record_stop_exception,pause_max_exceptions,transfer_button_launch,leave_3way_start_recording,leave_3way_start_recording_exception,calls_waiting_vl_one,calls_waiting_vl_two,in_man_dial_next_ready_seconds,in_man_dial_next_ready_seconds_override,transfer_no_dispo,local_call_time,pause_max_url,agent_hide_hangup,ig_xfer_list_sort,script_tab_frame_size,user_group_script,agent_hangup_route,agent_hangup_value,agent_hangup_ig_override,show_confetti,custom_one,custom_two,custom_three,custom_four,custom_five,allow_chats,dead_stop_recording,force_per_call_notes,state_descriptions 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,scheduled_callbacks_timezones_container,three_way_volume_buttons,manual_dial_validation,mute_recordings,leave_vm_no_dispo,leave_vm_message_group_id,campaign_script_two,browser_alert_sound,browser_alert_volume,three_way_record_stop_exception,pause_max_exceptions,transfer_button_launch,leave_3way_start_recording,leave_3way_start_recording_exception,calls_waiting_vl_one,calls_waiting_vl_two,in_man_dial_next_ready_seconds,in_man_dial_next_ready_seconds_override,transfer_no_dispo,local_call_time,pause_max_url,agent_hide_hangup,ig_xfer_list_sort,script_tab_frame_size,user_group_script,agent_hangup_route,agent_hangup_value,agent_hangup_ig_override,show_confetti,custom_one,custom_two,custom_three,custom_four,custom_five,allow_chats,dead_stop_recording,force_per_call_notes,state_descriptions,script_tab_height 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";}
|
|
|
|
@@ -3312,6 +3313,7 @@ else
|
|
|
|
|
$dead_stop_recording = $row[189];
|
|
|
|
|
$force_per_call_notes = $row[190];
|
|
|
|
|
$state_descriptions = $row[191];
|
|
|
|
|
$script_tab_height = $row[192];
|
|
|
|
|
|
|
|
|
|
$state_descriptions_banner=0;
|
|
|
|
|
if ( ($state_descriptions != '---DISABLED---') and (strlen($state_descriptions) > 0) )
|
|
|
|
@@ -5563,6 +5565,9 @@ $SCheight = 49; # 49 - seconds on call display
|
|
|
|
|
$SFheight = 65; # 65 - height of the script and form contents
|
|
|
|
|
$SRheight = 69; # 69 - height of the script and form refrech links
|
|
|
|
|
$CHheight = ($JS_browser_height - 50);
|
|
|
|
|
$HKheightS = $HKheight; # HotKey active Button when SCRIPT tab is visible
|
|
|
|
|
$HTheightS = $HTheight; # hotkey panel when SCRIPT tab is visible
|
|
|
|
|
|
|
|
|
|
if ($webphone_location == 'bar')
|
|
|
|
|
{
|
|
|
|
|
$SCheight = ($SCheight + $webphone_height);
|
|
|
|
@@ -5575,6 +5580,12 @@ if ($state_descriptions_banner > 0)
|
|
|
|
|
# $SFheight = ($SFheight + $banner_height);
|
|
|
|
|
$SRheight = ($SRheight + $banner_height);
|
|
|
|
|
}
|
|
|
|
|
if ( ($script_tab_height >= 331) and ($script_tab_height <= 3000) )
|
|
|
|
|
{
|
|
|
|
|
$SSheight = $script_tab_height;
|
|
|
|
|
$HKheightS = ($SSheight + 84); # HotKey active Button
|
|
|
|
|
$HTheightS = ($SSheight - 11); # HotKey panel
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$AVTheight = '0';
|
|
|
|
|
if ($is_webphone) {$AVTheight = '20';}
|
|
|
|
@@ -6718,6 +6729,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
|
|
|
|
var dead_count=0;
|
|
|
|
|
var APIskip=0;
|
|
|
|
|
var state_descriptions_banner='<?php echo $state_descriptions_banner ?>';
|
|
|
|
|
var HKheight='<?php echo $HKheight ?>';
|
|
|
|
|
var HTheight='<?php echo $HTheight ?>';
|
|
|
|
|
var HKheightS='<?php echo $HKheightS ?>';
|
|
|
|
|
var HTheightS='<?php echo $HTheightS ?>';
|
|
|
|
|
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\" />";
|
|
|
|
@@ -22702,6 +22717,10 @@ function phone_number_format(formatphone) {
|
|
|
|
|
showDiv('MainPanel');
|
|
|
|
|
showDiv('MainCommit');
|
|
|
|
|
ShoWGenDerPulldown();
|
|
|
|
|
// document.getElementById("HotKeyEntriesBox").style.left = tempX + "px";
|
|
|
|
|
document.getElementById("HotKeyEntriesBox").style.top = HTheight + "px";
|
|
|
|
|
// document.getElementById("hotkeysdisplay").style.left = tempX + "px";
|
|
|
|
|
document.getElementById("hotkeysdisplay").style.top = HKheight + "px";
|
|
|
|
|
|
|
|
|
|
if (resumevar != 'NO')
|
|
|
|
|
{
|
|
|
|
@@ -22795,6 +22814,8 @@ function phone_number_format(formatphone) {
|
|
|
|
|
document.getElementById("MaiNfooter").style.backgroundColor="<?php echo $SCRIPT_COLOR ?>";
|
|
|
|
|
panel_bgcolor='<?php echo $SCRIPT_COLOR ?>';
|
|
|
|
|
// document.getElementById("MainStatuSSpan").style.background = panel_bgcolor;
|
|
|
|
|
document.getElementById("HotKeyEntriesBox").style.top = HTheightS + "px";
|
|
|
|
|
document.getElementById("hotkeysdisplay").style.top = HKheightS + "px";
|
|
|
|
|
|
|
|
|
|
HidEGenDerPulldown();
|
|
|
|
|
}
|
|
|
|
@@ -22830,6 +22851,8 @@ function phone_number_format(formatphone) {
|
|
|
|
|
document.getElementById("MaiNfooter").style.backgroundColor="<?php echo $SCRIPT_COLOR ?>";
|
|
|
|
|
panel_bgcolor='<?php echo $SCRIPT_COLOR ?>';
|
|
|
|
|
// document.getElementById("MainStatuSSpan").style.background = panel_bgcolor;
|
|
|
|
|
document.getElementById("HotKeyEntriesBox").style.top = HTheightS + "px";
|
|
|
|
|
document.getElementById("hotkeysdisplay").style.top = HKheightS + "px";
|
|
|
|
|
|
|
|
|
|
HidEGenDerPulldown();
|
|
|
|
|
}
|
|
|
|
@@ -22864,6 +22887,8 @@ function phone_number_format(formatphone) {
|
|
|
|
|
document.getElementById("MaiNfooter").style.backgroundColor="<?php echo $FORM_COLOR ?>";
|
|
|
|
|
panel_bgcolor='<?php echo $FORM_COLOR ?>';
|
|
|
|
|
// document.getElementById("MainStatuSSpan").style.background = panel_bgcolor;
|
|
|
|
|
document.getElementById("HotKeyEntriesBox").style.top = HTheightS + "px";
|
|
|
|
|
document.getElementById("hotkeysdisplay").style.top = HKheightS + "px";
|
|
|
|
|
|
|
|
|
|
HidEGenDerPulldown();
|
|
|
|
|
}
|
|
|
|
@@ -22897,6 +22922,8 @@ function phone_number_format(formatphone) {
|
|
|
|
|
document.getElementById("MaiNfooter").style.backgroundColor="<?php echo $FORM_COLOR ?>";
|
|
|
|
|
panel_bgcolor='<?php echo $FORM_COLOR ?>';
|
|
|
|
|
// document.getElementById("MainStatuSSpan").style.background = panel_bgcolor;
|
|
|
|
|
document.getElementById("HotKeyEntriesBox").style.top = HTheightS + "px";
|
|
|
|
|
document.getElementById("hotkeysdisplay").style.top = HKheightS + "px";
|
|
|
|
|
|
|
|
|
|
HidEGenDerPulldown();
|
|
|
|
|
}
|
|
|
|
@@ -22922,6 +22949,8 @@ function phone_number_format(formatphone) {
|
|
|
|
|
document.getElementById("MaiNfooter").style.backgroundColor="<?php echo $FORM_COLOR ?>";
|
|
|
|
|
panel_bgcolor='<?php echo $FORM_COLOR ?>';
|
|
|
|
|
// document.getElementById("MainStatuSSpan").style.background = panel_bgcolor;
|
|
|
|
|
document.getElementById("HotKeyEntriesBox").style.top = HTheightS + "px";
|
|
|
|
|
document.getElementById("hotkeysdisplay").style.top = HKheightS + "px";
|
|
|
|
|
|
|
|
|
|
HidEGenDerPulldown();
|
|
|
|
|
}
|
|
|
|
@@ -22948,6 +22977,8 @@ function phone_number_format(formatphone) {
|
|
|
|
|
document.getElementById("MaiNfooter").style.backgroundColor="<?php echo $FORM_COLOR ?>";
|
|
|
|
|
panel_bgcolor='<?php echo $FORM_COLOR ?>';
|
|
|
|
|
// document.getElementById("MainStatuSSpan").style.background = panel_bgcolor;
|
|
|
|
|
document.getElementById("HotKeyEntriesBox").style.top = HTheightS + "px";
|
|
|
|
|
document.getElementById("hotkeysdisplay").style.top = HKheightS + "px";
|
|
|
|
|
|
|
|
|
|
HidEGenDerPulldown();
|
|
|
|
|
}
|
|
|
|
|