Added User setting for Wrapup Seconds Override
git-svn-id: svn://192.168.202.10@2130 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -54,7 +54,7 @@ REQUIRED STEPS!!!
|
|||||||
|
|
||||||
OTHER CHANGES:
|
OTHER CHANGES:
|
||||||
|
|
||||||
1. Just branched 2.9, no changes yet
|
1. Added User setting for Wrapup Seconds Override
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
NON-AGENT API DOCUMENT Started: 2008-07-24 Updated: 2014-04-18
|
NON-AGENT API DOCUMENT Started: 2008-07-24 Updated: 2014-06-17
|
||||||
|
|
||||||
This document describes the functions of an API(Application Programming
|
This document describes the functions of an API(Application Programming
|
||||||
Interface) for all functions NOT directly relating to the VICIDIAL Agent screen.
|
Interface) for all functions NOT directly relating to the VICIDIAL Agent screen.
|
||||||
@@ -95,6 +95,7 @@ Changes:
|
|||||||
140331-2119 - Converted division calculations to use MathZDC function
|
140331-2119 - Converted division calculations to use MathZDC function
|
||||||
140403-2024 - Added camp_rg_only option to update_user function
|
140403-2024 - Added camp_rg_only option to update_user function
|
||||||
140418-1553 - Added preview_lead_id for agent_status
|
140418-1553 - Added preview_lead_id for agent_status
|
||||||
|
140617-2029 - Added vicidial_users wrapup_seconds_override option
|
||||||
|
|
||||||
|
|
||||||
API Functions use the 'function' variable
|
API Functions use the 'function' variable
|
||||||
@@ -798,6 +799,7 @@ custom_two - 1-100 characters
|
|||||||
custom_three - 1-100 characters
|
custom_three - 1-100 characters
|
||||||
custom_four - 1-100 characters
|
custom_four - 1-100 characters
|
||||||
custom_five - 1-100 characters
|
custom_five - 1-100 characters
|
||||||
|
wrapup_seconds_override - number from -1 to 9999
|
||||||
|
|
||||||
NOTE: This function does not work with Vtiger integration
|
NOTE: This function does not work with Vtiger integration
|
||||||
|
|
||||||
@@ -842,6 +844,7 @@ custom_three - 1-100 characters
|
|||||||
custom_four - 1-100 characters
|
custom_four - 1-100 characters
|
||||||
custom_five - 1-100 characters
|
custom_five - 1-100 characters
|
||||||
active - 'Y' or 'N'
|
active - 'Y' or 'N'
|
||||||
|
wrapup_seconds_override - number from -1 to 9999
|
||||||
campaign_rank - from -9 to 9, this will change the campaign rank for this user on all campaigns
|
campaign_rank - from -9 to 9, this will change the campaign rank for this user on all campaigns
|
||||||
campaign_grade - from 1 to 10, this will change the campaign grade for this user on all campaigns
|
campaign_grade - from 1 to 10, this will change the campaign grade for this user on all campaigns
|
||||||
camp_rg_only - 0 or 1, this will set only one campaign rank/grade for this user, requires campaign_id to be set
|
camp_rg_only - 0 or 1, this will set only one campaign rank/grade for this user, requires campaign_id to be set
|
||||||
@@ -873,6 +876,7 @@ ERROR: update_user YOU MUST USE A VALID CUSTOM THREE, THIS IS AN OPTIONAL FIELD
|
|||||||
ERROR: update_user YOU MUST USE A VALID CUSTOM FOUR, THIS IS AN OPTIONAL FIELD - 6666
|
ERROR: update_user YOU MUST USE A VALID CUSTOM FOUR, THIS IS AN OPTIONAL FIELD - 6666
|
||||||
ERROR: update_user YOU MUST USE A VALID CUSTOM FIVE, THIS IS AN OPTIONAL FIELD - 6666
|
ERROR: update_user YOU MUST USE A VALID CUSTOM FIVE, THIS IS AN OPTIONAL FIELD - 6666
|
||||||
ERROR: update_user ACTIVE MUST BE Y OR N, THIS IS AN OPTIONAL FIELD - 6666
|
ERROR: update_user ACTIVE MUST BE Y OR N, THIS IS AN OPTIONAL FIELD - 6666
|
||||||
|
ERROR: update_user wrapup_seconds_override MUST BE A VALID DIGIT BETWEEN -1 AND 9999, THIS IS AN OPTIONAL FIELD - 6666|-2
|
||||||
ERROR: update_user YOU MUST USE A VALID CAMPAIGN RANK, THIS IS AN OPTIONAL FIELD - 6666|0
|
ERROR: update_user YOU MUST USE A VALID CAMPAIGN RANK, THIS IS AN OPTIONAL FIELD - 6666|0
|
||||||
ERROR: update_user YOU MUST USE A VALID CAMPAIGN GRADE, THIS IS AN OPTIONAL FIELD - 6666|0
|
ERROR: update_user YOU MUST USE A VALID CAMPAIGN GRADE, THIS IS AN OPTIONAL FIELD - 6666|0
|
||||||
ERROR: update_user NO UPDATES DEFINED - 6666|0
|
ERROR: update_user NO UPDATES DEFINED - 6666|0
|
||||||
|
|||||||
@@ -621,7 +621,8 @@ last_ip VARCHAR(15) default '',
|
|||||||
pass_hash VARCHAR(100) default '',
|
pass_hash VARCHAR(100) default '',
|
||||||
alter_admin_interface_options ENUM('0','1') default '1',
|
alter_admin_interface_options ENUM('0','1') default '1',
|
||||||
max_inbound_calls SMALLINT(5) UNSIGNED default '0',
|
max_inbound_calls SMALLINT(5) UNSIGNED default '0',
|
||||||
modify_custom_dialplans ENUM('1','0') default '0'
|
modify_custom_dialplans ENUM('1','0') default '0',
|
||||||
|
wrapup_seconds_override SMALLINT(4) default '-1'
|
||||||
) ENGINE=MyISAM;
|
) ENGINE=MyISAM;
|
||||||
|
|
||||||
CREATE UNIQUE INDEX user ON vicidial_users (user);
|
CREATE UNIQUE INDEX user ON vicidial_users (user);
|
||||||
@@ -3268,4 +3269,4 @@ UPDATE vicidial_configuration set value='1766' where name='qc_database_version';
|
|||||||
|
|
||||||
UPDATE system_settings set vdc_agent_api_active='1';
|
UPDATE system_settings set vdc_agent_api_active='1';
|
||||||
|
|
||||||
UPDATE system_settings SET db_schema_version='1380',db_schema_update_date=NOW(),reload_timestamp=NOW();
|
UPDATE system_settings SET db_schema_version='1381',db_schema_update_date=NOW(),reload_timestamp=NOW();
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
UPDATE system_settings SET db_schema_version='1379',version='2.9rc1tk',db_schema_update_date=NOW() where db_schema_version < 1379;
|
UPDATE system_settings SET db_schema_version='1379',version='2.9rc1tk',db_schema_update_date=NOW() where db_schema_version < 1379;
|
||||||
|
|
||||||
UPDATE system_settings SET db_schema_version='1380',version='2.10b0.5',db_schema_update_date=NOW() where db_schema_version < 1380;
|
UPDATE system_settings SET db_schema_version='1380',version='2.10b0.5',db_schema_update_date=NOW() where db_schema_version < 1380;
|
||||||
|
|
||||||
|
ALTER TABLE vicidial_users ADD wrapup_seconds_override SMALLINT(4) default '-1';
|
||||||
|
|
||||||
|
UPDATE system_settings SET db_schema_version='1381',db_schema_update_date=NOW() where db_schema_version < 1381;
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
############################################################ ADMIN
|
||||||
|
Wrap Seconds Override||
|
||||||
|
If this setting is set to a number 0 or greater, then it will override the Campaign setting for Wrapup Seconds. This is a setting that is only refreshed in the agent interface at agent login time. Default is -1 for disabled||
|
||||||
|
|
||||||
|
|
||||||
|
########################## CHANGES TO EXISTING PHRASES IN ADMIN TRANSLATION
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
############################################################ CLIENT
|
||||||
|
|
||||||
|
|
||||||
|
########################## CHANGES TO EXISTING PHRASES IN AGENT TRANSLATION
|
||||||
|
|
||||||
|
|
||||||
|
############################################################ MANAGER Manual
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
############################################################ AGENT Manual
|
||||||
|
|
||||||
@@ -433,10 +433,11 @@
|
|||||||
# 140609-2246 - Fixed issue with webform2 button after manual alt-dial
|
# 140609-2246 - Fixed issue with webform2 button after manual alt-dial
|
||||||
# 140612-2152 - branched 2.9 version, raised trunk to 2.10
|
# 140612-2152 - branched 2.9 version, raised trunk to 2.10
|
||||||
# 140617-1041 - Fixed issue with non-latin, issue #773
|
# 140617-1041 - Fixed issue with non-latin, issue #773
|
||||||
|
# 140617-2015 - Added vicidial_users wrapup_seconds_override option
|
||||||
#
|
#
|
||||||
|
|
||||||
$version = '2.10-403c';
|
$version = '2.10-404c';
|
||||||
$build = '140617-1041';
|
$build = '140617-2015';
|
||||||
$mel=1; # Mysql Error Log enabled = 1
|
$mel=1; # Mysql Error Log enabled = 1
|
||||||
$mysql_log_count=80;
|
$mysql_log_count=80;
|
||||||
$one_mysql_log=0;
|
$one_mysql_log=0;
|
||||||
@@ -1098,7 +1099,7 @@ else
|
|||||||
if($auth>0)
|
if($auth>0)
|
||||||
{
|
{
|
||||||
##### grab the full name and other settings of the agent
|
##### grab the full name and other settings of the agent
|
||||||
$stmt="SELECT full_name,user_level,hotkeys_active,agent_choose_ingroups,scheduled_callbacks,agentonly_callbacks,agentcall_manual,vicidial_recording,vicidial_transfers,closer_default_blended,user_group,vicidial_recording_override,alter_custphone_override,alert_enabled,agent_shift_enforcement_override,shift_override_flag,allow_alerts,closer_campaigns,agent_choose_territories,custom_one,custom_two,custom_three,custom_four,custom_five,agent_call_log_view_override,agent_choose_blended,agent_lead_search_override,preset_contact_search,max_inbound_calls from vicidial_users where user='$VD_login' and active='Y';";
|
$stmt="SELECT full_name,user_level,hotkeys_active,agent_choose_ingroups,scheduled_callbacks,agentonly_callbacks,agentcall_manual,vicidial_recording,vicidial_transfers,closer_default_blended,user_group,vicidial_recording_override,alter_custphone_override,alert_enabled,agent_shift_enforcement_override,shift_override_flag,allow_alerts,closer_campaigns,agent_choose_territories,custom_one,custom_two,custom_three,custom_four,custom_five,agent_call_log_view_override,agent_choose_blended,agent_lead_search_override,preset_contact_search,max_inbound_calls,wrapup_seconds_override from vicidial_users where user='$VD_login' and active='Y';";
|
||||||
$rslt=mysql_to_mysqli($stmt, $link);
|
$rslt=mysql_to_mysqli($stmt, $link);
|
||||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'01007',$VD_login,$server_ip,$session_name,$one_mysql_log);}
|
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'01007',$VD_login,$server_ip,$session_name,$one_mysql_log);}
|
||||||
$row=mysqli_fetch_row($rslt);
|
$row=mysqli_fetch_row($rslt);
|
||||||
@@ -1131,6 +1132,7 @@ else
|
|||||||
$VU_agent_lead_search_override = $row[26];
|
$VU_agent_lead_search_override = $row[26];
|
||||||
$VU_preset_contact_search = $row[27];
|
$VU_preset_contact_search = $row[27];
|
||||||
$VU_max_inbound_calls = $row[28];
|
$VU_max_inbound_calls = $row[28];
|
||||||
|
$VU_wrapup_seconds_override = $row[29];
|
||||||
|
|
||||||
|
|
||||||
if ( ($VU_alert_enabled > 0) and ($VU_allow_alerts > 0) ) {$VU_alert_enabled = 'ON';}
|
if ( ($VU_alert_enabled > 0) and ($VU_allow_alerts > 0) ) {$VU_alert_enabled = 'ON';}
|
||||||
@@ -1568,6 +1570,8 @@ else
|
|||||||
$hide_call_log_info = $row[113];
|
$hide_call_log_info = $row[113];
|
||||||
$timer_alt_seconds = $row[114];
|
$timer_alt_seconds = $row[114];
|
||||||
|
|
||||||
|
if ($VU_wrapup_seconds_override >= 0)
|
||||||
|
{$wrapup_seconds = $VU_wrapup_seconds_override;}
|
||||||
if ( ($pause_max < 10) or (strlen($pause_max)<2) )
|
if ( ($pause_max < 10) or (strlen($pause_max)<2) )
|
||||||
{$pause_max=0;}
|
{$pause_max=0;}
|
||||||
if ( ($pause_max > 9) and ($pause_max <= $dial_timeout) )
|
if ( ($pause_max > 9) and ($pause_max <= $dial_timeout) )
|
||||||
|
|||||||
@@ -1844,6 +1844,8 @@ if (isset($_GET["frozen_server_call_clear"])) {$frozen_server_call_clear=$_GET
|
|||||||
elseif (isset($_POST["frozen_server_call_clear"])) {$frozen_server_call_clear=$_POST["frozen_server_call_clear"];}
|
elseif (isset($_POST["frozen_server_call_clear"])) {$frozen_server_call_clear=$_POST["frozen_server_call_clear"];}
|
||||||
if (isset($_GET["timer_alt_seconds"])) {$timer_alt_seconds=$_GET["timer_alt_seconds"];}
|
if (isset($_GET["timer_alt_seconds"])) {$timer_alt_seconds=$_GET["timer_alt_seconds"];}
|
||||||
elseif (isset($_POST["timer_alt_seconds"])) {$timer_alt_seconds=$_POST["timer_alt_seconds"];}
|
elseif (isset($_POST["timer_alt_seconds"])) {$timer_alt_seconds=$_POST["timer_alt_seconds"];}
|
||||||
|
if (isset($_GET["wrapup_seconds_override"])) {$wrapup_seconds_override=$_GET["wrapup_seconds_override"];}
|
||||||
|
elseif (isset($_POST["wrapup_seconds_override"])) {$wrapup_seconds_override=$_POST["wrapup_seconds_override"];}
|
||||||
|
|
||||||
|
|
||||||
if (isset($script_id)) {$script_id= strtoupper($script_id);}
|
if (isset($script_id)) {$script_id= strtoupper($script_id);}
|
||||||
@@ -2180,6 +2182,7 @@ if ($non_latin < 1)
|
|||||||
|
|
||||||
$drop_call_seconds = preg_replace('/[^-0-9]/','',$drop_call_seconds);
|
$drop_call_seconds = preg_replace('/[^-0-9]/','',$drop_call_seconds);
|
||||||
$timer_alt_seconds = preg_replace('/[^-0-9]/','',$timer_alt_seconds);
|
$timer_alt_seconds = preg_replace('/[^-0-9]/','',$timer_alt_seconds);
|
||||||
|
$wrapup_seconds_override = preg_replace('/[^-0-9]/','',$wrapup_seconds_override);
|
||||||
|
|
||||||
### DIGITS and COLONS
|
### DIGITS and COLONS
|
||||||
$shift_length = preg_replace('/[^\:0-9]/','',$shift_length);
|
$shift_length = preg_replace('/[^\:0-9]/','',$shift_length);
|
||||||
@@ -3320,12 +3323,13 @@ else
|
|||||||
# 140515-1610 - Added clear list option, Issue #763
|
# 140515-1610 - Added clear list option, Issue #763
|
||||||
# 140521-2101 - Added timer_alt_seconds and more Manual Auto Dial options
|
# 140521-2101 - Added timer_alt_seconds and more Manual Auto Dial options
|
||||||
# 140612-2153 - branched 2.9 version, raised trunk to 2.10
|
# 140612-2153 - branched 2.9 version, raised trunk to 2.10
|
||||||
|
# 140617-2017 - Added vicidial_users wrapup_seconds_override option
|
||||||
#
|
#
|
||||||
|
|
||||||
# make sure you have added a user to the vicidial_users MySQL table with at least user_level 8 to access this page the first time
|
# make sure you have added a user to the vicidial_users MySQL table with at least user_level 8 to access this page the first time
|
||||||
|
|
||||||
$admin_version = '2.10-442a';
|
$admin_version = '2.10-443a';
|
||||||
$build = '140612-2153';
|
$build = '140617-2017';
|
||||||
|
|
||||||
$STARTtime = date("U");
|
$STARTtime = date("U");
|
||||||
$SQLdate = date("Y-m-d H:i:s");
|
$SQLdate = date("Y-m-d H:i:s");
|
||||||
@@ -7622,7 +7626,7 @@ if ($ADD=="2A")
|
|||||||
$pass='';
|
$pass='';
|
||||||
}
|
}
|
||||||
|
|
||||||
$stmt="INSERT INTO vicidial_users (user,pass,full_name,user_level,user_group,phone_login,phone_pass,delete_users,delete_user_groups,delete_lists,delete_campaigns,delete_ingroups,delete_remote_agents,load_leads,campaign_detail,ast_admin_access,ast_delete_phones,delete_scripts,modify_leads,hotkeys_active,change_agent_campaign,agent_choose_ingroups,closer_campaigns,scheduled_callbacks,agentonly_callbacks,agentcall_manual,vicidial_recording,vicidial_transfers,delete_filters,alter_agent_interface_options,closer_default_blended,delete_call_times,modify_call_times,modify_users,modify_campaigns,modify_lists,modify_scripts,modify_filters,modify_ingroups,modify_usergroups,modify_remoteagents,modify_servers,view_reports,vicidial_recording_override,alter_custdata_override,qc_enabled,qc_user_level,qc_pass,qc_finish,qc_commit,add_timeclock_log,modify_timeclock_log,delete_timeclock_log,alter_custphone_override,vdc_agent_api_access,modify_inbound_dids,delete_inbound_dids,active,alert_enabled,download_lists,agent_shift_enforcement_override,manager_shift_enforcement_override,export_reports,delete_from_dnc,email,user_code,territory,allow_alerts,agent_choose_territories,custom_one,custom_two,custom_three,custom_four,custom_five,voicemail_id,agent_call_log_view_override,callcard_admin,agent_choose_blended,realtime_block_user_info,custom_fields_modify,force_change_password,agent_lead_search_override,modify_shifts,modify_phones,modify_carriers,modify_labels,modify_statuses,modify_voicemail,modify_audiostore,modify_moh,modify_tts,preset_contact_search,modify_contacts,modify_same_user_level,admin_hide_lead_data,admin_hide_phone_data,agentcall_email,modify_email_accounts,pass_hash,alter_admin_interface_options,max_inbound_calls,modify_custom_dialplans) SELECT \"$user\",\"$pass\",\"$full_name\",user_level,user_group,phone_login,phone_pass,delete_users,delete_user_groups,delete_lists,delete_campaigns,delete_ingroups,delete_remote_agents,load_leads,campaign_detail,ast_admin_access,ast_delete_phones,delete_scripts,modify_leads,hotkeys_active,change_agent_campaign,agent_choose_ingroups,closer_campaigns,scheduled_callbacks,agentonly_callbacks,agentcall_manual,vicidial_recording,vicidial_transfers,delete_filters,alter_agent_interface_options,closer_default_blended,delete_call_times,modify_call_times,modify_users,modify_campaigns,modify_lists,modify_scripts,modify_filters,modify_ingroups,modify_usergroups,modify_remoteagents,modify_servers,view_reports,vicidial_recording_override,alter_custdata_override,qc_enabled,qc_user_level,qc_pass,qc_finish,qc_commit,add_timeclock_log,modify_timeclock_log,delete_timeclock_log,alter_custphone_override,vdc_agent_api_access,modify_inbound_dids,delete_inbound_dids,active,alert_enabled,download_lists,agent_shift_enforcement_override,manager_shift_enforcement_override,export_reports,delete_from_dnc,email,user_code,territory,allow_alerts,agent_choose_territories,custom_one,custom_two,custom_three,custom_four,custom_five,voicemail_id,agent_call_log_view_override,callcard_admin,agent_choose_blended,realtime_block_user_info,custom_fields_modify,force_change_password,agent_lead_search_override,modify_shifts,modify_phones,modify_carriers,modify_labels,modify_statuses,modify_voicemail,modify_audiostore,modify_moh,modify_tts,preset_contact_search,modify_contacts,modify_same_user_level,admin_hide_lead_data,admin_hide_phone_data,agentcall_email,modify_email_accounts,\"$pass_hash\",alter_admin_interface_options,max_inbound_calls,modify_custom_dialplans from vicidial_users where user=\"$source_user_id\";";
|
$stmt="INSERT INTO vicidial_users (user,pass,full_name,user_level,user_group,phone_login,phone_pass,delete_users,delete_user_groups,delete_lists,delete_campaigns,delete_ingroups,delete_remote_agents,load_leads,campaign_detail,ast_admin_access,ast_delete_phones,delete_scripts,modify_leads,hotkeys_active,change_agent_campaign,agent_choose_ingroups,closer_campaigns,scheduled_callbacks,agentonly_callbacks,agentcall_manual,vicidial_recording,vicidial_transfers,delete_filters,alter_agent_interface_options,closer_default_blended,delete_call_times,modify_call_times,modify_users,modify_campaigns,modify_lists,modify_scripts,modify_filters,modify_ingroups,modify_usergroups,modify_remoteagents,modify_servers,view_reports,vicidial_recording_override,alter_custdata_override,qc_enabled,qc_user_level,qc_pass,qc_finish,qc_commit,add_timeclock_log,modify_timeclock_log,delete_timeclock_log,alter_custphone_override,vdc_agent_api_access,modify_inbound_dids,delete_inbound_dids,active,alert_enabled,download_lists,agent_shift_enforcement_override,manager_shift_enforcement_override,export_reports,delete_from_dnc,email,user_code,territory,allow_alerts,agent_choose_territories,custom_one,custom_two,custom_three,custom_four,custom_five,voicemail_id,agent_call_log_view_override,callcard_admin,agent_choose_blended,realtime_block_user_info,custom_fields_modify,force_change_password,agent_lead_search_override,modify_shifts,modify_phones,modify_carriers,modify_labels,modify_statuses,modify_voicemail,modify_audiostore,modify_moh,modify_tts,preset_contact_search,modify_contacts,modify_same_user_level,admin_hide_lead_data,admin_hide_phone_data,agentcall_email,modify_email_accounts,pass_hash,alter_admin_interface_options,max_inbound_calls,modify_custom_dialplans,wrapup_seconds_override) SELECT \"$user\",\"$pass\",\"$full_name\",user_level,user_group,phone_login,phone_pass,delete_users,delete_user_groups,delete_lists,delete_campaigns,delete_ingroups,delete_remote_agents,load_leads,campaign_detail,ast_admin_access,ast_delete_phones,delete_scripts,modify_leads,hotkeys_active,change_agent_campaign,agent_choose_ingroups,closer_campaigns,scheduled_callbacks,agentonly_callbacks,agentcall_manual,vicidial_recording,vicidial_transfers,delete_filters,alter_agent_interface_options,closer_default_blended,delete_call_times,modify_call_times,modify_users,modify_campaigns,modify_lists,modify_scripts,modify_filters,modify_ingroups,modify_usergroups,modify_remoteagents,modify_servers,view_reports,vicidial_recording_override,alter_custdata_override,qc_enabled,qc_user_level,qc_pass,qc_finish,qc_commit,add_timeclock_log,modify_timeclock_log,delete_timeclock_log,alter_custphone_override,vdc_agent_api_access,modify_inbound_dids,delete_inbound_dids,active,alert_enabled,download_lists,agent_shift_enforcement_override,manager_shift_enforcement_override,export_reports,delete_from_dnc,email,user_code,territory,allow_alerts,agent_choose_territories,custom_one,custom_two,custom_three,custom_four,custom_five,voicemail_id,agent_call_log_view_override,callcard_admin,agent_choose_blended,realtime_block_user_info,custom_fields_modify,force_change_password,agent_lead_search_override,modify_shifts,modify_phones,modify_carriers,modify_labels,modify_statuses,modify_voicemail,modify_audiostore,modify_moh,modify_tts,preset_contact_search,modify_contacts,modify_same_user_level,admin_hide_lead_data,admin_hide_phone_data,agentcall_email,modify_email_accounts,\"$pass_hash\",alter_admin_interface_options,max_inbound_calls,modify_custom_dialplans,wrapup_seconds_override from vicidial_users where user=\"$source_user_id\";";
|
||||||
$rslt=mysql_to_mysqli($stmt, $link);
|
$rslt=mysql_to_mysqli($stmt, $link);
|
||||||
|
|
||||||
$stmtA="INSERT INTO vicidial_inbound_group_agents (user,group_id,group_rank,group_weight,calls_today,group_type) SELECT \"$user\",group_id,group_rank,group_weight,\"0\",group_type from vicidial_inbound_group_agents where user=\"$source_user_id\";";
|
$stmtA="INSERT INTO vicidial_inbound_group_agents (user,group_id,group_rank,group_weight,calls_today,group_type) SELECT \"$user\",group_id,group_rank,group_weight,\"0\",group_type from vicidial_inbound_group_agents where user=\"$source_user_id\";";
|
||||||
@@ -10749,7 +10753,7 @@ if ($ADD=="4A")
|
|||||||
|
|
||||||
echo "<br><B>USER MODIFIED - ADMIN: $user</B>\n";
|
echo "<br><B>USER MODIFIED - ADMIN: $user</B>\n";
|
||||||
|
|
||||||
$stmt="UPDATE vicidial_users set pass='$pass',full_name='$full_name',user_level='$user_level',user_group='$user_group',phone_login='$phone_login',phone_pass='$phone_pass',delete_users='$delete_users',delete_user_groups='$delete_user_groups',delete_lists='$delete_lists',delete_campaigns='$delete_campaigns',delete_ingroups='$delete_ingroups',delete_remote_agents='$delete_remote_agents',load_leads='$load_leads',campaign_detail='$campaign_detail',ast_admin_access='$ast_admin_access',ast_delete_phones='$ast_delete_phones',delete_scripts='$delete_scripts',modify_leads='$modify_leads',hotkeys_active='$hotkeys_active',change_agent_campaign='$change_agent_campaign',agent_choose_ingroups='$agent_choose_ingroups',closer_campaigns='$groups_value',scheduled_callbacks='$scheduled_callbacks',agentonly_callbacks='$agentonly_callbacks',agentcall_manual='$agentcall_manual',vicidial_recording='$vicidial_recording',vicidial_transfers='$vicidial_transfers',delete_filters='$delete_filters',alter_agent_interface_options='$alter_agent_interface_options',closer_default_blended='$closer_default_blended',delete_call_times='$delete_call_times',modify_call_times='$modify_call_times',modify_users='$modify_users',modify_campaigns='$modify_campaigns',modify_lists='$modify_lists',modify_scripts='$modify_scripts',modify_filters='$modify_filters',modify_ingroups='$modify_ingroups',modify_usergroups='$modify_usergroups',modify_remoteagents='$modify_remoteagents',modify_servers='$modify_servers',view_reports='$view_reports',vicidial_recording_override='$vicidial_recording_override',alter_custdata_override='$alter_custdata_override',qc_enabled='$qc_enabled',qc_user_level='$qc_user_level',qc_pass='$qc_pass',qc_finish='$qc_finish',qc_commit='$qc_commit',add_timeclock_log='$add_timeclock_log',modify_timeclock_log='$modify_timeclock_log',delete_timeclock_log='$delete_timeclock_log',alter_custphone_override='$alter_custphone_override',vdc_agent_api_access='$vdc_agent_api_access',modify_inbound_dids='$modify_inbound_dids',delete_inbound_dids='$delete_inbound_dids',active='$active',download_lists='$download_lists',agent_shift_enforcement_override='$agent_shift_enforcement_override',manager_shift_enforcement_override='$manager_shift_enforcement_override',export_reports='$export_reports',delete_from_dnc='$delete_from_dnc',email='$email',user_code='$user_code',territory='$territory',allow_alerts='$allow_alerts',agent_choose_territories='$agent_choose_territories',custom_one='$custom_one',custom_two='$custom_two',custom_three='$custom_three',custom_four='$custom_four',custom_five='$custom_five',voicemail_id='$voicemail_id',agent_call_log_view_override='$agent_call_log_view_override',callcard_admin='$callcard_admin',agent_choose_blended='$agent_choose_blended',realtime_block_user_info='$realtime_block_user_info',custom_fields_modify='$custom_fields_modify',force_change_password='$force_change_password',agent_lead_search_override='$agent_lead_search',modify_shifts='$modify_shifts',modify_phones='$modify_phones',modify_carriers='$modify_carriers',modify_labels='$modify_labels',modify_statuses='$modify_statuses',modify_voicemail='$modify_voicemail',modify_audiostore='$modify_audiostore',modify_moh='$modify_moh',modify_tts='$modify_tts',preset_contact_search='$preset_contact_search',modify_contacts='$modify_contacts',modify_same_user_level='$modify_same_user_level',admin_hide_lead_data='$admin_hide_lead_data',admin_hide_phone_data='$admin_hide_phone_data',agentcall_email='$agentcall_email',modify_email_accounts='$modify_email_accounts',failed_login_count=0,alter_admin_interface_options='$alter_admin_interface_options',max_inbound_calls='$max_inbound_calls',modify_custom_dialplans='$modify_custom_dialplans' $pass_hashSQL where user='$user' $LOGadmin_viewable_groupsSQL;";
|
$stmt="UPDATE vicidial_users set pass='$pass',full_name='$full_name',user_level='$user_level',user_group='$user_group',phone_login='$phone_login',phone_pass='$phone_pass',delete_users='$delete_users',delete_user_groups='$delete_user_groups',delete_lists='$delete_lists',delete_campaigns='$delete_campaigns',delete_ingroups='$delete_ingroups',delete_remote_agents='$delete_remote_agents',load_leads='$load_leads',campaign_detail='$campaign_detail',ast_admin_access='$ast_admin_access',ast_delete_phones='$ast_delete_phones',delete_scripts='$delete_scripts',modify_leads='$modify_leads',hotkeys_active='$hotkeys_active',change_agent_campaign='$change_agent_campaign',agent_choose_ingroups='$agent_choose_ingroups',closer_campaigns='$groups_value',scheduled_callbacks='$scheduled_callbacks',agentonly_callbacks='$agentonly_callbacks',agentcall_manual='$agentcall_manual',vicidial_recording='$vicidial_recording',vicidial_transfers='$vicidial_transfers',delete_filters='$delete_filters',alter_agent_interface_options='$alter_agent_interface_options',closer_default_blended='$closer_default_blended',delete_call_times='$delete_call_times',modify_call_times='$modify_call_times',modify_users='$modify_users',modify_campaigns='$modify_campaigns',modify_lists='$modify_lists',modify_scripts='$modify_scripts',modify_filters='$modify_filters',modify_ingroups='$modify_ingroups',modify_usergroups='$modify_usergroups',modify_remoteagents='$modify_remoteagents',modify_servers='$modify_servers',view_reports='$view_reports',vicidial_recording_override='$vicidial_recording_override',alter_custdata_override='$alter_custdata_override',qc_enabled='$qc_enabled',qc_user_level='$qc_user_level',qc_pass='$qc_pass',qc_finish='$qc_finish',qc_commit='$qc_commit',add_timeclock_log='$add_timeclock_log',modify_timeclock_log='$modify_timeclock_log',delete_timeclock_log='$delete_timeclock_log',alter_custphone_override='$alter_custphone_override',vdc_agent_api_access='$vdc_agent_api_access',modify_inbound_dids='$modify_inbound_dids',delete_inbound_dids='$delete_inbound_dids',active='$active',download_lists='$download_lists',agent_shift_enforcement_override='$agent_shift_enforcement_override',manager_shift_enforcement_override='$manager_shift_enforcement_override',export_reports='$export_reports',delete_from_dnc='$delete_from_dnc',email='$email',user_code='$user_code',territory='$territory',allow_alerts='$allow_alerts',agent_choose_territories='$agent_choose_territories',custom_one='$custom_one',custom_two='$custom_two',custom_three='$custom_three',custom_four='$custom_four',custom_five='$custom_five',voicemail_id='$voicemail_id',agent_call_log_view_override='$agent_call_log_view_override',callcard_admin='$callcard_admin',agent_choose_blended='$agent_choose_blended',realtime_block_user_info='$realtime_block_user_info',custom_fields_modify='$custom_fields_modify',force_change_password='$force_change_password',agent_lead_search_override='$agent_lead_search',modify_shifts='$modify_shifts',modify_phones='$modify_phones',modify_carriers='$modify_carriers',modify_labels='$modify_labels',modify_statuses='$modify_statuses',modify_voicemail='$modify_voicemail',modify_audiostore='$modify_audiostore',modify_moh='$modify_moh',modify_tts='$modify_tts',preset_contact_search='$preset_contact_search',modify_contacts='$modify_contacts',modify_same_user_level='$modify_same_user_level',admin_hide_lead_data='$admin_hide_lead_data',admin_hide_phone_data='$admin_hide_phone_data',agentcall_email='$agentcall_email',modify_email_accounts='$modify_email_accounts',failed_login_count=0,alter_admin_interface_options='$alter_admin_interface_options',max_inbound_calls='$max_inbound_calls',modify_custom_dialplans='$modify_custom_dialplans',wrapup_seconds_override='$wrapup_seconds_override' $pass_hashSQL where user='$user' $LOGadmin_viewable_groupsSQL;";
|
||||||
$rslt=mysql_to_mysqli($stmt, $link);
|
$rslt=mysql_to_mysqli($stmt, $link);
|
||||||
|
|
||||||
### LOG INSERTION Admin Log Table ###
|
### LOG INSERTION Admin Log Table ###
|
||||||
@@ -17230,7 +17234,7 @@ if ($ADD==3)
|
|||||||
echo "<TABLE><TR><TD>\n";
|
echo "<TABLE><TR><TD>\n";
|
||||||
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
||||||
|
|
||||||
$stmt="SELECT user_id,user,pass,full_name,user_level,user_group,phone_login,phone_pass,delete_users,delete_user_groups,delete_lists,delete_campaigns,delete_ingroups,delete_remote_agents,load_leads,campaign_detail,ast_admin_access,ast_delete_phones,delete_scripts,modify_leads,hotkeys_active,change_agent_campaign,agent_choose_ingroups,closer_campaigns,scheduled_callbacks,agentonly_callbacks,agentcall_manual,vicidial_recording,vicidial_transfers,delete_filters,alter_agent_interface_options,closer_default_blended,delete_call_times,modify_call_times,modify_users,modify_campaigns,modify_lists,modify_scripts,modify_filters,modify_ingroups,modify_usergroups,modify_remoteagents,modify_servers,view_reports,vicidial_recording_override,alter_custdata_override,qc_enabled,qc_user_level,qc_pass,qc_finish,qc_commit,add_timeclock_log,modify_timeclock_log,delete_timeclock_log,alter_custphone_override,vdc_agent_api_access,modify_inbound_dids,delete_inbound_dids,active,alert_enabled,download_lists,agent_shift_enforcement_override,manager_shift_enforcement_override,shift_override_flag,export_reports,delete_from_dnc,email,user_code,territory,allow_alerts,agent_choose_territories,custom_one,custom_two,custom_three,custom_four,custom_five,voicemail_id,agent_call_log_view_override,callcard_admin,agent_choose_blended,realtime_block_user_info,custom_fields_modify,force_change_password,agent_lead_search_override,modify_shifts,modify_phones,modify_carriers,modify_labels,modify_statuses,modify_voicemail,modify_audiostore,modify_moh,modify_tts,preset_contact_search,modify_contacts,modify_same_user_level,admin_hide_lead_data,admin_hide_phone_data,agentcall_email,modify_email_accounts,failed_login_count,last_login_date,last_ip,alter_admin_interface_options,max_inbound_calls,modify_custom_dialplans from vicidial_users where user='$user' $LOGadmin_viewable_groupsSQL;";
|
$stmt="SELECT user_id,user,pass,full_name,user_level,user_group,phone_login,phone_pass,delete_users,delete_user_groups,delete_lists,delete_campaigns,delete_ingroups,delete_remote_agents,load_leads,campaign_detail,ast_admin_access,ast_delete_phones,delete_scripts,modify_leads,hotkeys_active,change_agent_campaign,agent_choose_ingroups,closer_campaigns,scheduled_callbacks,agentonly_callbacks,agentcall_manual,vicidial_recording,vicidial_transfers,delete_filters,alter_agent_interface_options,closer_default_blended,delete_call_times,modify_call_times,modify_users,modify_campaigns,modify_lists,modify_scripts,modify_filters,modify_ingroups,modify_usergroups,modify_remoteagents,modify_servers,view_reports,vicidial_recording_override,alter_custdata_override,qc_enabled,qc_user_level,qc_pass,qc_finish,qc_commit,add_timeclock_log,modify_timeclock_log,delete_timeclock_log,alter_custphone_override,vdc_agent_api_access,modify_inbound_dids,delete_inbound_dids,active,alert_enabled,download_lists,agent_shift_enforcement_override,manager_shift_enforcement_override,shift_override_flag,export_reports,delete_from_dnc,email,user_code,territory,allow_alerts,agent_choose_territories,custom_one,custom_two,custom_three,custom_four,custom_five,voicemail_id,agent_call_log_view_override,callcard_admin,agent_choose_blended,realtime_block_user_info,custom_fields_modify,force_change_password,agent_lead_search_override,modify_shifts,modify_phones,modify_carriers,modify_labels,modify_statuses,modify_voicemail,modify_audiostore,modify_moh,modify_tts,preset_contact_search,modify_contacts,modify_same_user_level,admin_hide_lead_data,admin_hide_phone_data,agentcall_email,modify_email_accounts,failed_login_count,last_login_date,last_ip,alter_admin_interface_options,max_inbound_calls,modify_custom_dialplans,wrapup_seconds_override from vicidial_users where user='$user' $LOGadmin_viewable_groupsSQL;";
|
||||||
$rslt=mysql_to_mysqli($stmt, $link);
|
$rslt=mysql_to_mysqli($stmt, $link);
|
||||||
$row=mysqli_fetch_row($rslt);
|
$row=mysqli_fetch_row($rslt);
|
||||||
$user_id = $row[0];
|
$user_id = $row[0];
|
||||||
@@ -17337,6 +17341,7 @@ if ($ADD==3)
|
|||||||
$alter_admin_interface_options = $row[103];
|
$alter_admin_interface_options = $row[103];
|
||||||
$max_inbound_calls = $row[104];
|
$max_inbound_calls = $row[104];
|
||||||
$modify_custom_dialplans = $row[105];
|
$modify_custom_dialplans = $row[105];
|
||||||
|
$wrapup_seconds_override = $row[106];
|
||||||
|
|
||||||
if ( ( ($user_level >= $LOGuser_level) and ($LOGuser_level < 9) ) or ( ($LOGmodify_same_user_level < 1) and ($LOGuser_level > 8) and ($user_level > 8) ) )
|
if ( ( ($user_level >= $LOGuser_level) and ($LOGuser_level < 9) ) or ( ($LOGmodify_same_user_level < 1) and ($LOGuser_level > 8) and ($user_level > 8) ) )
|
||||||
{
|
{
|
||||||
@@ -17467,6 +17472,8 @@ if ($ADD==3)
|
|||||||
|
|
||||||
echo "<tr bgcolor=#B6D3FC><td align=right>Max Inbound Calls: </td><td align=left><input type=text name=max_inbound_calls size=6 maxlength=5 value=\"$max_inbound_calls\">$NWB#users-max_inbound_calls$NWE <i>inbound calls today: $USER_inbound_calls_today</i></td></tr>\n";
|
echo "<tr bgcolor=#B6D3FC><td align=right>Max Inbound Calls: </td><td align=left><input type=text name=max_inbound_calls size=6 maxlength=5 value=\"$max_inbound_calls\">$NWB#users-max_inbound_calls$NWE <i>inbound calls today: $USER_inbound_calls_today</i></td></tr>\n";
|
||||||
|
|
||||||
|
echo "<tr bgcolor=#B6D3FC><td align=right>Wrap Seconds Override: </td><td align=left><input type=text name=wrapup_seconds_override size=6 maxlength=5 value=\"$wrapup_seconds_override\">$NWB#users-wrapup_seconds_override$NWE</td></tr>\n";
|
||||||
|
|
||||||
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2>Campaign Ranks: $NWB#users-campaign_ranks$NWE<BR>\n";
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2>Campaign Ranks: $NWB#users-campaign_ranks$NWE<BR>\n";
|
||||||
echo "<table border=0 width=850>\n";
|
echo "<table border=0 width=850>\n";
|
||||||
echo "$RANKcampaigns_list";
|
echo "$RANKcampaigns_list";
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
# 140425-1306 - Added queuemetrics_pause_type
|
# 140425-1306 - Added queuemetrics_pause_type
|
||||||
# 140509-2211 - Added frozen_server_call_clear
|
# 140509-2211 - Added frozen_server_call_clear
|
||||||
# 140521-2020 - Changed alt_number_dialing and added timer_alt_seconds
|
# 140521-2020 - Changed alt_number_dialing and added timer_alt_seconds
|
||||||
|
# 140617-2021 - Added vicidial_users wrapup_seconds_override option
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
@@ -326,6 +327,11 @@ if ($SSoutbound_autodial_active > 0)
|
|||||||
<BR>
|
<BR>
|
||||||
<B>Max Inbound Calls -</B> If this setting is set to a number greater than 0, then it will be the maximum number of inbound calls that an agent can handle across all inbound groups in one day. If the agent reaches their maximum number of inbound calls, then they will not be able to select inbound groups to take calls from until the next day. This setting will override the Campaign setting of the same name. Default is 0 for disabled.
|
<B>Max Inbound Calls -</B> If this setting is set to a number greater than 0, then it will be the maximum number of inbound calls that an agent can handle across all inbound groups in one day. If the agent reaches their maximum number of inbound calls, then they will not be able to select inbound groups to take calls from until the next day. This setting will override the Campaign setting of the same name. Default is 0 for disabled.
|
||||||
|
|
||||||
|
<BR>
|
||||||
|
<A NAME="users-wrapup_seconds_override">
|
||||||
|
<BR>
|
||||||
|
<B>Wrap Seconds Override -</B> If this setting is set to a number 0 or greater, then it will override the Campaign setting for Wrapup Seconds. This is a setting that is only refreshed in the agent interface at agent login time. Default is -1 for disabled.
|
||||||
|
|
||||||
<BR>
|
<BR>
|
||||||
<A NAME="users-campaign_ranks">
|
<A NAME="users-campaign_ranks">
|
||||||
<BR>
|
<BR>
|
||||||
|
|||||||
@@ -89,10 +89,11 @@
|
|||||||
# 140331-2119 - Converted division calculations to use MathZDC function
|
# 140331-2119 - Converted division calculations to use MathZDC function
|
||||||
# 140403-2024 - Added camp_rg_only option to update_user function
|
# 140403-2024 - Added camp_rg_only option to update_user function
|
||||||
# 140418-1553 - Added preview_lead_id for agent_status
|
# 140418-1553 - Added preview_lead_id for agent_status
|
||||||
|
# 140617-2029 - Added vicidial_users wrapup_seconds_override option
|
||||||
#
|
#
|
||||||
|
|
||||||
$version = '2.8-65';
|
$version = '2.10-66';
|
||||||
$build = '140418-1553';
|
$build = '140617-2029';
|
||||||
$api_url_log = 0;
|
$api_url_log = 0;
|
||||||
|
|
||||||
$startMS = microtime();
|
$startMS = microtime();
|
||||||
@@ -357,6 +358,8 @@ if (isset($_GET["local_call_time"])) {$local_call_time=$_GET["local_call_time
|
|||||||
elseif (isset($_POST["local_call_time"])) {$local_call_time=$_POST["local_call_time"];}
|
elseif (isset($_POST["local_call_time"])) {$local_call_time=$_POST["local_call_time"];}
|
||||||
if (isset($_GET["camp_rg_only"])) {$camp_rg_only=$_GET["camp_rg_only"];}
|
if (isset($_GET["camp_rg_only"])) {$camp_rg_only=$_GET["camp_rg_only"];}
|
||||||
elseif (isset($_POST["camp_rg_only"])) {$camp_rg_only=$_POST["camp_rg_only"];}
|
elseif (isset($_POST["camp_rg_only"])) {$camp_rg_only=$_POST["camp_rg_only"];}
|
||||||
|
if (isset($_GET["wrapup_seconds_override"])) {$wrapup_seconds_override=$_GET["wrapup_seconds_override"];}
|
||||||
|
elseif (isset($_POST["wrapup_seconds_override"])) {$wrapup_seconds_override=$_POST["wrapup_seconds_override"];}
|
||||||
|
|
||||||
|
|
||||||
header ("Content-type: text/html; charset=utf-8");
|
header ("Content-type: text/html; charset=utf-8");
|
||||||
@@ -518,6 +521,7 @@ if ($non_latin < 1)
|
|||||||
$campaign_grade = preg_replace('/[^0-9]/','',$campaign_grade);
|
$campaign_grade = preg_replace('/[^0-9]/','',$campaign_grade);
|
||||||
$local_call_time = preg_replace('/[^-_0-9a-zA-Z]/','',$local_call_time);
|
$local_call_time = preg_replace('/[^-_0-9a-zA-Z]/','',$local_call_time);
|
||||||
$camp_rg_only = preg_replace('/[^0-9]/','',$camp_rg_only);
|
$camp_rg_only = preg_replace('/[^0-9]/','',$camp_rg_only);
|
||||||
|
$wrapup_seconds_override = preg_replace('/[^-0-9]/','',$wrapup_seconds_override);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -1746,6 +1750,7 @@ if ($function == 'add_user')
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (strlen($hotkeys_active)<1) {$hotkeys_active='0';}
|
if (strlen($hotkeys_active)<1) {$hotkeys_active='0';}
|
||||||
|
if (strlen($wrapup_seconds_override)<1) {$wrapup_seconds_override='-1';}
|
||||||
|
|
||||||
$pass_hash='';
|
$pass_hash='';
|
||||||
if ( ($SSpass_hash_enabled > 0) and (strlen($agent_pass) > 1) )
|
if ( ($SSpass_hash_enabled > 0) and (strlen($agent_pass) > 1) )
|
||||||
@@ -1756,7 +1761,7 @@ if ($function == 'add_user')
|
|||||||
$agent_pass='';
|
$agent_pass='';
|
||||||
}
|
}
|
||||||
|
|
||||||
$stmt="INSERT INTO vicidial_users (user,pass,full_name,user_level,user_group,phone_login,phone_pass,hotkeys_active,voicemail_id,email,custom_one,custom_two,custom_three,custom_four,custom_five,pass_hash) values('$agent_user','$agent_pass','$agent_full_name','$agent_user_level','$agent_user_group','$phone_login','$phone_pass','$hotkeys_active','$voicemail_id','$email','$custom_one','$custom_two','$custom_three','$custom_four','$custom_five','$pass_hash');";
|
$stmt="INSERT INTO vicidial_users (user,pass,full_name,user_level,user_group,phone_login,phone_pass,hotkeys_active,voicemail_id,email,custom_one,custom_two,custom_three,custom_four,custom_five,pass_hash,wrapup_seconds_override) values('$agent_user','$agent_pass','$agent_full_name','$agent_user_level','$agent_user_group','$phone_login','$phone_pass','$hotkeys_active','$voicemail_id','$email','$custom_one','$custom_two','$custom_three','$custom_four','$custom_five','$pass_hash','$wrapup_seconds_override');";
|
||||||
$rslt=mysql_to_mysqli($stmt, $link);
|
$rslt=mysql_to_mysqli($stmt, $link);
|
||||||
|
|
||||||
### LOG INSERTION Admin Log Table ###
|
### LOG INSERTION Admin Log Table ###
|
||||||
@@ -1947,6 +1952,7 @@ if ($function == 'update_user')
|
|||||||
$custom_fourSQL='';
|
$custom_fourSQL='';
|
||||||
$custom_fiveSQL='';
|
$custom_fiveSQL='';
|
||||||
$activeSQL='';
|
$activeSQL='';
|
||||||
|
$wrapup_seconds_overrideSQL='';
|
||||||
|
|
||||||
if (strlen($agent_pass) > 0)
|
if (strlen($agent_pass) > 0)
|
||||||
{
|
{
|
||||||
@@ -2225,6 +2231,20 @@ if ($function == 'update_user')
|
|||||||
else
|
else
|
||||||
{$activeSQL = " ,active='$active'";}
|
{$activeSQL = " ,active='$active'";}
|
||||||
}
|
}
|
||||||
|
if (strlen($wrapup_seconds_override) > 0)
|
||||||
|
{
|
||||||
|
if ( ($wrapup_seconds_override < -1) or ($wrapup_seconds_override > 9999) )
|
||||||
|
{
|
||||||
|
$result = 'ERROR';
|
||||||
|
$result_reason = "update_user wrapup_seconds_override MUST BE A VALID DIGIT BETWEEN -1 AND 9999, THIS IS AN OPTIONAL FIELD";
|
||||||
|
$data = "$wrapup_seconds_override";
|
||||||
|
echo "$result: $result_reason: |$user|$data\n";
|
||||||
|
api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data);
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{$wrapup_seconds_overrideSQL = " ,wrapup_seconds_override='$wrapup_seconds_override'";}
|
||||||
|
}
|
||||||
|
|
||||||
if ( (strlen($campaign_rank) > 0) or (strlen($campaign_grade) > 0) )
|
if ( (strlen($campaign_rank) > 0) or (strlen($campaign_grade) > 0) )
|
||||||
{
|
{
|
||||||
@@ -2293,7 +2313,7 @@ if ($function == 'update_user')
|
|||||||
api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data);
|
api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data);
|
||||||
}
|
}
|
||||||
|
|
||||||
$updateSQL = "$passSQL$pass_hashSQL$full_nameSQL$user_levelSQL$user_groupSQL$phone_loginSQL$phone_passSQL$hotkeys_activeSQL$voicemail_idSQL$emailSQL$custom_oneSQL$custom_twoSQL$custom_threeSQL$custom_fourSQL$custom_fiveSQL$activeSQL";
|
$updateSQL = "$passSQL$pass_hashSQL$full_nameSQL$user_levelSQL$user_groupSQL$phone_loginSQL$phone_passSQL$hotkeys_activeSQL$voicemail_idSQL$emailSQL$custom_oneSQL$custom_twoSQL$custom_threeSQL$custom_fourSQL$custom_fiveSQL$activeSQL$wrapup_seconds_overrideSQL";
|
||||||
|
|
||||||
if (strlen($updateSQL)< 3)
|
if (strlen($updateSQL)< 3)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user