Added Agent Display Fields campaign option
git-svn-id: svn://192.168.202.10@2357 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -112,6 +112,9 @@ OTHER CHANGES:
|
||||
an inbound Filter Phone Group when set to a certain specific disposition
|
||||
using the Dispo Call URL.
|
||||
|
||||
21. Added campaign option to display some lead fields as read-only in the agent
|
||||
screen. Those fields are: entry_date,source_id,date_of_birth,rank,owner
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -929,7 +929,8 @@ manual_dial_search_filter VARCHAR(50) default 'NONE',
|
||||
web_form_address_three TEXT,
|
||||
manual_dial_override_field ENUM('ENABLED','DISABLED') default 'ENABLED',
|
||||
status_display_ingroup ENUM('ENABLED','DISABLED') default 'ENABLED',
|
||||
customer_gone_seconds SMALLINT(5) UNSIGNED default '30'
|
||||
customer_gone_seconds SMALLINT(5) UNSIGNED default '30',
|
||||
agent_display_fields VARCHAR(50) default ''
|
||||
) ENGINE=MyISAM;
|
||||
|
||||
CREATE TABLE vicidial_lists (
|
||||
@@ -3544,4 +3545,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 db_schema_version='1421',db_schema_update_date=NOW(),reload_timestamp=NOW();
|
||||
UPDATE system_settings SET db_schema_version='1422',db_schema_update_date=NOW(),reload_timestamp=NOW();
|
||||
|
||||
@@ -235,3 +235,7 @@ KEY ajax_dbtime_key (db_time)
|
||||
ALTER TABLE system_settings ADD agent_debug_logging VARCHAR(20) default '0';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1421',db_schema_update_date=NOW() where db_schema_version < 1421;
|
||||
|
||||
ALTER TABLE vicidial_campaigns ADD agent_display_fields VARCHAR(50) default '';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1422',db_schema_update_date=NOW() where db_schema_version < 1422;
|
||||
|
||||
@@ -384,10 +384,11 @@
|
||||
# 150706-0903 - Added user lead filter option for no-hopper dialing
|
||||
# 150711-0815 - Changed to allow for multiple Dispo Call URLs
|
||||
# 150723-1705 - Added ajax logging
|
||||
# 150725-1613 - Added entry_date as a variable
|
||||
#
|
||||
|
||||
$version = '2.12-279';
|
||||
$build = '150723-1705';
|
||||
$version = '2.12-280';
|
||||
$build = '150725-1613';
|
||||
$php_script = 'vdc_db_query.php';
|
||||
$mel=1; # Mysql Error Log enabled = 1
|
||||
$mysql_log_count=616;
|
||||
@@ -1547,7 +1548,7 @@ if ($ACTION == 'UpdateFields')
|
||||
$lead_comment_count = trim("$row[0]");
|
||||
|
||||
##### grab the data from vicidial_list for the lead_id
|
||||
$stmt="SELECT vendor_lead_code,source_id,gmt_offset_now,phone_code,phone_number,title,first_name,middle_initial,last_name,address1,address2,address3,city,state,province,postal_code,country_code,gender,date_of_birth,alt_phone,email,security_phrase,comments,rank,owner FROM vicidial_list where lead_id='$lead_id' LIMIT 1;";
|
||||
$stmt="SELECT vendor_lead_code,source_id,gmt_offset_now,phone_code,phone_number,title,first_name,middle_initial,last_name,address1,address2,address3,city,state,province,postal_code,country_code,gender,date_of_birth,alt_phone,email,security_phrase,comments,rank,owner,entry_date FROM vicidial_list where lead_id='$lead_id' LIMIT 1;";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00546',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
@@ -1580,6 +1581,7 @@ if ($ACTION == 'UpdateFields')
|
||||
$comments = stripslashes(trim("$row[22]"));
|
||||
$rank = trim("$row[23]");
|
||||
$owner = trim("$row[24]");
|
||||
$entry_date = trim("$row[25]");
|
||||
|
||||
$comments = preg_replace("/\r/i",'',$comments);
|
||||
$comments = preg_replace("/\n/i",'!N',$comments);
|
||||
@@ -3349,6 +3351,7 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
# $lead_id = trim("$row[0]");
|
||||
$entry_date = trim("$row[1]");
|
||||
$dispo = trim("$row[3]");
|
||||
$tsr = trim("$row[4]");
|
||||
$vendor_id = trim("$row[5]");
|
||||
@@ -4078,7 +4081,7 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
$custom_field_values='----------';
|
||||
$custom_field_types='|';
|
||||
### find the names of all custom fields, if any
|
||||
$stmt = "SELECT field_label,field_type FROM vicidial_lists_fields where list_id='$entry_list_id' and field_type NOT IN('SCRIPT','DISPLAY') and field_label NOT IN('vendor_lead_code','source_id','list_id','gmt_offset_now','called_since_last_reset','phone_code','phone_number','title','first_name','middle_initial','last_name','address1','address2','address3','city','state','province','postal_code','country_code','gender','date_of_birth','alt_phone','email','security_phrase','comments','called_count','last_local_call_time','rank','owner');";
|
||||
$stmt = "SELECT field_label,field_type FROM vicidial_lists_fields where list_id='$entry_list_id' and field_type NOT IN('SCRIPT','DISPLAY') and field_label NOT IN('entry_date','vendor_lead_code','source_id','list_id','gmt_offset_now','called_since_last_reset','phone_code','phone_number','title','first_name','middle_initial','last_name','address1','address2','address3','city','state','province','postal_code','country_code','gender','date_of_birth','alt_phone','email','security_phrase','comments','called_count','last_local_call_time','rank','owner');";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00334',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
@@ -4194,6 +4197,7 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
$LeaD_InfO .= $LISTweb_form_address_three . "\n";
|
||||
$LeaD_InfO .= $VDCL_ingroup_script_color . "\n";
|
||||
$LeaD_InfO .= $list_description . "\n";
|
||||
$LeaD_InfO .= $entry_date . "\n";
|
||||
|
||||
echo $LeaD_InfO;
|
||||
}
|
||||
@@ -6549,6 +6553,7 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
# $lead_id = trim("$row[0]");
|
||||
$entry_date = trim("$row[1]");
|
||||
$dispo = trim("$row[3]");
|
||||
$tsr = trim("$row[4]");
|
||||
$vendor_id = trim("$row[5]");
|
||||
@@ -7273,7 +7278,7 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
$custom_field_values='----------';
|
||||
$custom_field_types='|';
|
||||
### find the names of all custom fields, if any
|
||||
$stmt = "SELECT field_label,field_type FROM vicidial_lists_fields where list_id='$entry_list_id' and field_type NOT IN('SCRIPT','DISPLAY') and field_label NOT IN('vendor_lead_code','source_id','list_id','gmt_offset_now','called_since_last_reset','phone_code','phone_number','title','first_name','middle_initial','last_name','address1','address2','address3','city','state','province','postal_code','country_code','gender','date_of_birth','alt_phone','email','security_phrase','comments','called_count','last_local_call_time','rank','owner');";
|
||||
$stmt = "SELECT field_label,field_type FROM vicidial_lists_fields where list_id='$entry_list_id' and field_type NOT IN('SCRIPT','DISPLAY') and field_label NOT IN('entry_date','vendor_lead_code','source_id','list_id','gmt_offset_now','called_since_last_reset','phone_code','phone_number','title','first_name','middle_initial','last_name','address1','address2','address3','city','state','province','postal_code','country_code','gender','date_of_birth','alt_phone','email','security_phrase','comments','called_count','last_local_call_time','rank','owner');";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00339',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
@@ -7371,6 +7376,7 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
$LeaD_InfO .= $LISTweb_form_address_three . "\n";
|
||||
$LeaD_InfO .= $VDCL_ingroup_script_color . "\n";
|
||||
$LeaD_InfO .= $list_description . "\n";
|
||||
$LeaD_InfO .= $entry_date . "\n";
|
||||
|
||||
echo $LeaD_InfO;
|
||||
|
||||
@@ -7542,6 +7548,7 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
$VDCL_start_call_url = preg_replace('/--A--agent_log_id--B--/i',urlencode(trim($agent_log_id)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--call_id--B--/i',urlencode(trim($callerid)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--user_group--B--/i',urlencode(trim($user_group)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--entry_date--B--/i',urlencode(trim($entry_date)),$VDCL_start_call_url);
|
||||
|
||||
if (strlen($custom_field_names)>2)
|
||||
{
|
||||
@@ -7884,6 +7891,7 @@ if ($ACTION == 'VDADcheckINCOMINGemail')
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
# $lead_id = trim("$row[0]");
|
||||
$entry_date = trim("$row[1]");
|
||||
$dispo = trim("$row[3]");
|
||||
$tsr = trim("$row[4]");
|
||||
$vendor_id = trim("$row[5]");
|
||||
@@ -8261,7 +8269,7 @@ if ($ACTION == 'VDADcheckINCOMINGemail')
|
||||
$custom_field_values='----------';
|
||||
$custom_field_types='|';
|
||||
### find the names of all custom fields, if any
|
||||
$stmt = "SELECT field_label,field_type FROM vicidial_lists_fields where list_id='$entry_list_id' and field_type NOT IN('SCRIPT','DISPLAY') and field_label NOT IN('vendor_lead_code','source_id','list_id','gmt_offset_now','called_since_last_reset','phone_code','phone_number','title','first_name','middle_initial','last_name','address1','address2','address3','city','state','province','postal_code','country_code','gender','date_of_birth','alt_phone','email','security_phrase','comments','called_count','last_local_call_time','rank','owner');";
|
||||
$stmt = "SELECT field_label,field_type FROM vicidial_lists_fields where list_id='$entry_list_id' and field_type NOT IN('SCRIPT','DISPLAY') and field_label NOT IN('entry_date','vendor_lead_code','source_id','list_id','gmt_offset_now','called_since_last_reset','phone_code','phone_number','title','first_name','middle_initial','last_name','address1','address2','address3','city','state','province','postal_code','country_code','gender','date_of_birth','alt_phone','email','security_phrase','comments','called_count','last_local_call_time','rank','owner');";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00512',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
@@ -8355,11 +8363,11 @@ if ($ACTION == 'VDADcheckINCOMINGemail')
|
||||
$LeaD_InfO .= $LISTweb_form_address_three . "\n";
|
||||
$LeaD_InfO .= $VDCL_ingroup_script_color . "\n";
|
||||
$LeaD_InfO .= $list_description . "\n";
|
||||
$LeaD_InfO .= $entry_date . "\n";
|
||||
|
||||
echo $LeaD_InfO;
|
||||
|
||||
|
||||
|
||||
$wait_sec=0;
|
||||
$StarTtime = date("U");
|
||||
$stmt = "SELECT wait_epoch,wait_sec from vicidial_agent_log where agent_log_id='$agent_log_id';";
|
||||
@@ -8526,6 +8534,7 @@ if ($ACTION == 'VDADcheckINCOMINGemail')
|
||||
$VDCL_start_call_url = preg_replace('/--A--agent_log_id--B--/i',urlencode(trim($agent_log_id)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--call_id--B--/i',urlencode(trim($callerid)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--user_group--B--/i',urlencode(trim($user_group)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--entry_date--B--/i',urlencode(trim($entry_date)),$VDCL_start_call_url);
|
||||
|
||||
if (strlen($custom_field_names)>2)
|
||||
{
|
||||
@@ -8810,6 +8819,7 @@ if ($ACTION == 'LeaDSearcHSelecTUpdatE')
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
# $lead_id = trim("$row[0]");
|
||||
$entry_date = trim("$row[1]");
|
||||
$dispo = trim("$row[3]");
|
||||
$tsr = trim("$row[4]");
|
||||
$vendor_id = trim("$row[5]");
|
||||
@@ -9270,7 +9280,7 @@ if ($ACTION == 'LeaDSearcHSelecTUpdatE')
|
||||
$custom_field_values='----------';
|
||||
$custom_field_types='|';
|
||||
### find the names of all custom fields, if any
|
||||
$stmt = "SELECT field_label,field_type FROM vicidial_lists_fields where list_id='$entry_list_id' and field_type NOT IN('SCRIPT','DISPLAY') and field_label NOT IN('vendor_lead_code','source_id','list_id','gmt_offset_now','called_since_last_reset','phone_code','phone_number','title','first_name','middle_initial','last_name','address1','address2','address3','city','state','province','postal_code','country_code','gender','date_of_birth','alt_phone','email','security_phrase','comments','called_count','last_local_call_time','rank','owner');";
|
||||
$stmt = "SELECT field_label,field_type FROM vicidial_lists_fields where list_id='$entry_list_id' and field_type NOT IN('SCRIPT','DISPLAY') and field_label NOT IN('entry_date','vendor_lead_code','source_id','list_id','gmt_offset_now','called_since_last_reset','phone_code','phone_number','title','first_name','middle_initial','last_name','address1','address2','address3','city','state','province','postal_code','country_code','gender','date_of_birth','alt_phone','email','security_phrase','comments','called_count','last_local_call_time','rank','owner');";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00479',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
@@ -9379,6 +9389,7 @@ if ($ACTION == 'LeaDSearcHSelecTUpdatE')
|
||||
$LeaD_InfO .= $LISTweb_form_address_three . "\n";
|
||||
$LeaD_InfO .= $VDCL_ingroup_script_color . "\n";
|
||||
$LeaD_InfO .= $list_description . "\n";
|
||||
$LeaD_InfO .= $entry_date . "\n";
|
||||
|
||||
echo $LeaD_InfO;
|
||||
|
||||
@@ -10819,6 +10830,7 @@ if ($ACTION == 'updateDISPO')
|
||||
if ($list_lead_ct > 0)
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
$entry_date = urlencode(trim($row[1]));
|
||||
$dispo = urlencode(trim($row[3]));
|
||||
$tsr = urlencode(trim($row[4]));
|
||||
$vendor_id = urlencode(trim($row[5]));
|
||||
@@ -10946,6 +10958,7 @@ if ($ACTION == 'updateDISPO')
|
||||
$dispo_call_urlARY[$j] = preg_replace('/--A--call_notes--B--/i',"$url_call_notes",$dispo_call_urlARY[$j]);
|
||||
$dispo_call_urlARY[$j] = preg_replace('/--A--recording_id--B--/i',"$recording_id",$dispo_call_urlARY[$j]);
|
||||
$dispo_call_urlARY[$j] = preg_replace('/--A--recording_filename--B--/i',"$recording_filename",$dispo_call_urlARY[$j]);
|
||||
$dispo_call_urlARY[$j] = preg_replace('/--A--entry_date--B--/i',"$entry_date",$dispo_call_urlARY[$j]);
|
||||
|
||||
if (strlen($FORMcustom_field_names)>2)
|
||||
{
|
||||
|
||||
@@ -198,7 +198,7 @@ $agents='@agents';
|
||||
$script_height = ($script_height - 20);
|
||||
if (strlen($bgcolor) < 6) {$bgcolor='FFFFFF';}
|
||||
|
||||
$vicidial_list_fields = '|lead_id|vendor_lead_code|source_id|list_id|gmt_offset_now|called_since_last_reset|phone_code|phone_number|title|first_name|middle_initial|last_name|address1|address2|address3|city|state|province|postal_code|country_code|gender|date_of_birth|alt_phone|email|security_phrase|comments|called_count|last_local_call_time|rank|owner|';
|
||||
$vicidial_list_fields = '|lead_id|entry_date|vendor_lead_code|source_id|list_id|gmt_offset_now|called_since_last_reset|phone_code|phone_number|title|first_name|middle_initial|last_name|address1|address2|address3|city|state|province|postal_code|country_code|gender|date_of_birth|alt_phone|email|security_phrase|comments|called_count|last_local_call_time|rank|owner|';
|
||||
|
||||
$IFRAME=0;
|
||||
|
||||
|
||||
@@ -30,10 +30,11 @@
|
||||
# 141118-1422 - Added agent_email variable
|
||||
# 141216-2121 - Added language settings lookups and user/pass variable standardization
|
||||
# 150703-2034 - Added option to fully urlencode variables if IFRAME is used in script Issue #864
|
||||
# 150725-1622 - Added entry_date variable
|
||||
#
|
||||
|
||||
$version = '2.12-24';
|
||||
$build = '150703-2034';
|
||||
$version = '2.12-25';
|
||||
$build = '150725-1622';
|
||||
|
||||
require_once("dbconnect_mysqli.php");
|
||||
require_once("functions.php");
|
||||
@@ -217,6 +218,8 @@ if (isset($_GET["script_override"])) {$script_override=$_GET["script_override"
|
||||
elseif (isset($_POST["script_override"])) {$script_override=$_POST["script_override"];}
|
||||
if (isset($_GET["session_name"])) {$session_name=$_GET["session_name"];}
|
||||
elseif (isset($_POST["session_name"])) {$session_name=$_POST["session_name"];}
|
||||
if (isset($_GET["entry_date"])) {$entry_date=$_GET["entry_date"];}
|
||||
elseif (isset($_POST["entry_date"])) {$entry_date=$_POST["entry_date"];}
|
||||
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
@@ -441,6 +444,7 @@ if (preg_match("/iframe\ssrc/i",$script_text))
|
||||
$did_description = urlencode(trim($did_description));
|
||||
$called_count = urlencode(trim($called_count));
|
||||
$session_name = urlencode(trim($session_name));
|
||||
$entry_date = urlencode(trim($entry_date));
|
||||
$web_vars = urlencode(trim($web_vars));
|
||||
}
|
||||
else
|
||||
@@ -523,6 +527,7 @@ if (preg_match("/iframe\ssrc/i",$script_text))
|
||||
$did_description = preg_replace('/\s/i','+',$did_description);
|
||||
$called_count = preg_replace('/\s/i','+',$called_count);
|
||||
$session_name = preg_replace('/\s/i','+',$session_name);
|
||||
$entry_date = preg_replace('/\s/i','+',$entry_date);
|
||||
$web_vars = preg_replace('/\s/i','+',$web_vars);
|
||||
}
|
||||
}
|
||||
@@ -614,12 +619,13 @@ $script_text = preg_replace('/--A--call_id--B--/i',"$call_id",$script_text);
|
||||
$script_text = preg_replace('/--A--user_group--B--/i',"$user_group",$script_text);
|
||||
$script_text = preg_replace('/--A--called_count--B--/i',"$called_count",$script_text);
|
||||
$script_text = preg_replace('/--A--session_name--B--/i',"$session_name",$script_text);
|
||||
$script_text = preg_replace('/--A--entry_date--B--/i',"$entry_date",$script_text);
|
||||
$script_text = preg_replace('/--A--web_vars--B--/i',"$web_vars",$script_text);
|
||||
|
||||
if ($CF_uses_custom_fields=='Y')
|
||||
{
|
||||
### find the names of all custom fields, if any
|
||||
$stmt = "SELECT field_label,field_type FROM vicidial_lists_fields where list_id='$entry_list_id' and field_type NOT IN('SCRIPT','DISPLAY') and field_label NOT IN('vendor_lead_code','source_id','list_id','gmt_offset_now','called_since_last_reset','phone_code','phone_number','title','first_name','middle_initial','last_name','address1','address2','address3','city','state','province','postal_code','country_code','gender','date_of_birth','alt_phone','email','security_phrase','comments','called_count','last_local_call_time','rank','owner');";
|
||||
$stmt = "SELECT field_label,field_type FROM vicidial_lists_fields where list_id='$entry_list_id' and field_type NOT IN('SCRIPT','DISPLAY') and field_label NOT IN('entry_date','vendor_lead_code','source_id','list_id','gmt_offset_now','called_since_last_reset','phone_code','phone_number','title','first_name','middle_initial','last_name','address1','address2','address3','city','state','province','postal_code','country_code','gender','date_of_birth','alt_phone','email','security_phrase','comments','called_count','last_local_call_time','rank','owner');";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$cffn_ct = mysqli_num_rows($rslt);
|
||||
|
||||
+115
-3
@@ -494,10 +494,11 @@
|
||||
# 150704-0005 - Changed disposubmit to be blocking before resume, Issue #863
|
||||
# 150712-2045 - Changed dispo call url to operate through a separate AJAX process
|
||||
# 150723-1741 - Created method for logging agent button/link clicks
|
||||
# 150725-1744 - Added Agent Display Fields campaign option
|
||||
#
|
||||
|
||||
$version = '2.12-466c';
|
||||
$build = '150723-1741';
|
||||
$version = '2.12-467c';
|
||||
$build = '150725-1744';
|
||||
$mel=1; # Mysql Error Log enabled = 1
|
||||
$mysql_log_count=85;
|
||||
$one_mysql_log=0;
|
||||
@@ -1601,7 +1602,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 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 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";}
|
||||
@@ -1736,6 +1737,7 @@ else
|
||||
$manual_dial_override_field=$row[127];
|
||||
$status_display_ingroup = $row[128];
|
||||
$customer_gone_seconds = $row[129];
|
||||
$agent_display_fields = $row[130];
|
||||
|
||||
if ( (strlen($customer_gone_seconds) < 1) or ($customer_gone_seconds < 1) )
|
||||
{$customer_gone_seconds=30;}
|
||||
@@ -3890,6 +3892,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var dialed_number = '';
|
||||
var dialed_label = '';
|
||||
var source_id = '';
|
||||
var entry_date = '';
|
||||
var adfREGentry_date = new RegExp("entry_date","g");
|
||||
var adfREGsource_id = new RegExp("source_id","g");
|
||||
var adfREGdate_of_birth = new RegExp("date_of_birth","g");
|
||||
var adfREGrank = new RegExp("rank","g");
|
||||
var adfREGowner = new RegExp("owner","g");
|
||||
var DispO3waychannel = '';
|
||||
var DispO3wayXtrAchannel = '';
|
||||
var DispO3wayCalLserverip = '';
|
||||
@@ -4146,6 +4154,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var customer_gone_seconds='<?php echo $customer_gone_seconds_negative ?>';
|
||||
var updatedispo_resume_trigger='0';
|
||||
var button_click_log='<?php echo $NOW_TIME ?>-----LOGIN---|';
|
||||
var agent_display_fields='<?php echo $agent_display_fields ?>';
|
||||
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\" />";
|
||||
@@ -6955,6 +6964,18 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
// list webform3 - 56
|
||||
// script color - 57
|
||||
document.vicidial_form.list_description.value = change_array[58];
|
||||
entry_date = change_array[59];
|
||||
|
||||
if (agent_display_fields.match(adfREGentry_date))
|
||||
{document.getElementById("entry_dateDISP").innerHTML = entry_date;}
|
||||
if (agent_display_fields.match(adfREGsource_id))
|
||||
{document.getElementById("source_idDISP").innerHTML = source_id;}
|
||||
if (agent_display_fields.match(adfREGdate_of_birth))
|
||||
{document.getElementById("date_of_birthDISP").innerHTML = document.vicidial_form.date_of_birth.value;}
|
||||
if (agent_display_fields.match(adfREGrank))
|
||||
{document.getElementById("rankDISP").innerHTML = document.vicidial_form.rank.value;}
|
||||
if (agent_display_fields.match(adfREGowner))
|
||||
{document.getElementById("ownerDISP").innerHTML = document.vicidial_form.owner.value;}
|
||||
|
||||
if (hide_gender > 0)
|
||||
{
|
||||
@@ -8139,6 +8160,18 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
var list_webform_three = MDnextResponse_array[54];
|
||||
CalL_ScripT_color = MDnextResponse_array[55];
|
||||
document.vicidial_form.list_description.value = MDnextResponse_array[56];
|
||||
entry_date = MDnextResponse_array[57];
|
||||
|
||||
if (agent_display_fields.match(adfREGentry_date))
|
||||
{document.getElementById("entry_dateDISP").innerHTML = entry_date;}
|
||||
if (agent_display_fields.match(adfREGsource_id))
|
||||
{document.getElementById("source_idDISP").innerHTML = source_id;}
|
||||
if (agent_display_fields.match(adfREGdate_of_birth))
|
||||
{document.getElementById("date_of_birthDISP").innerHTML = document.vicidial_form.date_of_birth.value;}
|
||||
if (agent_display_fields.match(adfREGrank))
|
||||
{document.getElementById("rankDISP").innerHTML = document.vicidial_form.rank.value;}
|
||||
if (agent_display_fields.match(adfREGowner))
|
||||
{document.getElementById("ownerDISP").innerHTML = document.vicidial_form.owner.value;}
|
||||
|
||||
timer_action = campaign_timer_action;
|
||||
timer_action_message = campaign_timer_action_message;
|
||||
@@ -8464,6 +8497,18 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
previous_dispo = '';
|
||||
custchannellive=1;
|
||||
xfer_agent_selected=0;
|
||||
source_id='';
|
||||
entry_date='';
|
||||
if (agent_display_fields.match(adfREGentry_date))
|
||||
{document.getElementById("entry_dateDISP").innerHTML = ' ';}
|
||||
if (agent_display_fields.match(adfREGsource_id))
|
||||
{document.getElementById("source_idDISP").innerHTML = ' ';}
|
||||
if (agent_display_fields.match(adfREGdate_of_birth))
|
||||
{document.getElementById("date_of_birthDISP").innerHTML = ' ';}
|
||||
if (agent_display_fields.match(adfREGrank))
|
||||
{document.getElementById("rankDISP").innerHTML = ' ';}
|
||||
if (agent_display_fields.match(adfREGowner))
|
||||
{document.getElementById("ownerDISP").innerHTML = ' ';}
|
||||
|
||||
if (post_phone_time_diff_alert_message.length > 10)
|
||||
{
|
||||
@@ -9241,6 +9286,18 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
// list webform3 - 56
|
||||
CalL_ScripT_color = check_VDIC_array[57];
|
||||
document.vicidial_form.list_description.value = check_VDIC_array[58];
|
||||
entry_date = check_VDIC_array[59];
|
||||
|
||||
if (agent_display_fields.match(adfREGentry_date))
|
||||
{document.getElementById("entry_dateDISP").innerHTML = entry_date;}
|
||||
if (agent_display_fields.match(adfREGsource_id))
|
||||
{document.getElementById("source_idDISP").innerHTML = source_id;}
|
||||
if (agent_display_fields.match(adfREGdate_of_birth))
|
||||
{document.getElementById("date_of_birthDISP").innerHTML = document.vicidial_form.date_of_birth.value;}
|
||||
if (agent_display_fields.match(adfREGrank))
|
||||
{document.getElementById("rankDISP").innerHTML = document.vicidial_form.rank.value;}
|
||||
if (agent_display_fields.match(adfREGowner))
|
||||
{document.getElementById("ownerDISP").innerHTML = document.vicidial_form.owner.value;}
|
||||
|
||||
if (CalL_ScripT_color.length > 1)
|
||||
{document.getElementById("ScriptContents").style.backgroundColor = CalL_ScripT_color;}
|
||||
@@ -9816,6 +9873,18 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
// list webform3 - 52
|
||||
// script color - 53
|
||||
document.vicidial_form.list_description.value = check_VDIC_array[54];
|
||||
entry_date = check_VDIC_array[55];
|
||||
|
||||
if (agent_display_fields.match(adfREGentry_date))
|
||||
{document.getElementById("entry_dateDISP").innerHTML = entry_date;}
|
||||
if (agent_display_fields.match(adfREGsource_id))
|
||||
{document.getElementById("source_idDISP").innerHTML = source_id;}
|
||||
if (agent_display_fields.match(adfREGdate_of_birth))
|
||||
{document.getElementById("date_of_birthDISP").innerHTML = document.vicidial_form.date_of_birth.value;}
|
||||
if (agent_display_fields.match(adfREGrank))
|
||||
{document.getElementById("rankDISP").innerHTML = document.vicidial_form.rank.value;}
|
||||
if (agent_display_fields.match(adfREGowner))
|
||||
{document.getElementById("ownerDISP").innerHTML = document.vicidial_form.owner.value;}
|
||||
|
||||
if (hide_gender > 0)
|
||||
{
|
||||
@@ -11555,6 +11624,18 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
document.getElementById("RecorDID").innerHTML = '';
|
||||
dial_next_failed=0;
|
||||
xfer_agent_selected=0;
|
||||
source_id='';
|
||||
entry_date='';
|
||||
if (agent_display_fields.match(adfREGentry_date))
|
||||
{document.getElementById("entry_dateDISP").innerHTML = ' ';}
|
||||
if (agent_display_fields.match(adfREGsource_id))
|
||||
{document.getElementById("source_idDISP").innerHTML = ' ';}
|
||||
if (agent_display_fields.match(adfREGdate_of_birth))
|
||||
{document.getElementById("date_of_birthDISP").innerHTML = ' ';}
|
||||
if (agent_display_fields.match(adfREGrank))
|
||||
{document.getElementById("rankDISP").innerHTML = ' ';}
|
||||
if (agent_display_fields.match(adfREGowner))
|
||||
{document.getElementById("ownerDISP").innerHTML = ' ';}
|
||||
|
||||
if ( (manual_dial_search_checkbox == 'SELECTED_RESET') || (manual_dial_search_checkbox == 'SELECTED_LOCK') )
|
||||
{document.vicidial_form.LeadLookuP.checked=true;}
|
||||
@@ -12970,6 +13051,7 @@ else
|
||||
"&user_group=" + VU_user_group + '' +
|
||||
"&list_name=" + encodeURIComponent(document.vicidial_form.list_name.value) +
|
||||
"&list_description=" + encodeURIComponent(document.vicidial_form.list_description.value) +
|
||||
"&entry_date=" + entry_date + '' +
|
||||
"&web_vars=" + LIVE_web_vars + '' +
|
||||
webform_session;
|
||||
|
||||
@@ -13192,6 +13274,7 @@ else
|
||||
var SCcall_id = LasTCID;
|
||||
var SCuser_group = VU_user_group;
|
||||
var SCagent_log_id = agent_log_id;
|
||||
var SCentry_date = entry_date;
|
||||
var SCweb_vars = LIVE_web_vars;
|
||||
|
||||
if (encoded.match(RGiframe))
|
||||
@@ -13268,6 +13351,7 @@ else
|
||||
SCdid_description = SCdid_description.replace(RGplus,'+');
|
||||
SCcall_id = SCcall_id.replace(RGplus,'+');
|
||||
SCuser_group = SCuser_group.replace(RGplus,'+');
|
||||
SCentry_date = SCentry_date.replace(RGplus,'+');
|
||||
SCweb_vars = SCweb_vars.replace(RGplus,'+');
|
||||
}
|
||||
|
||||
@@ -13348,6 +13432,7 @@ else
|
||||
var RGagent_log_id = new RegExp("--A--agent_log_id--B--","g");
|
||||
var RGcall_id = new RegExp("--A--call_id--B--","g");
|
||||
var RGuser_group = new RegExp("--A--user_group--B--","g");
|
||||
var RGentry_date = new RegExp("--A--entry_date--B--","g");
|
||||
var RGweb_vars = new RegExp("--A--web_vars--B--","g");
|
||||
|
||||
encoded = encoded.replace(RGvendor_lead_code, SCvendor_lead_code);
|
||||
@@ -13427,6 +13512,7 @@ else
|
||||
encoded = encoded.replace(RGagent_log_id, SCagent_log_id);
|
||||
encoded = encoded.replace(RGcall_id, SCcall_id);
|
||||
encoded = encoded.replace(RGuser_group, SCuser_group);
|
||||
encoded = encoded.replace(RGentry_date, SCentry_date);
|
||||
encoded = encoded.replace(RGweb_vars, SCweb_vars);
|
||||
}
|
||||
|
||||
@@ -16229,6 +16315,32 @@ $zi=2;
|
||||
else
|
||||
{echo "$label_email: </td><td align=\"left\" colspan=\"3\"><font class=\"body_text\"><input type=\"text\" size=\"45\" name=\"email\" id=\"email\" maxlength=\"70\" class=\"cust_form\" value=\"\" />";}
|
||||
|
||||
if (strlen($agent_display_fields) > 3)
|
||||
{
|
||||
echo "</td></tr><tr><td align=\"left\" colspan=\"5\"><font class=\"body_text\">";
|
||||
|
||||
if (preg_match("/entry_date/",$agent_display_fields))
|
||||
{
|
||||
echo _QXZ("Entry Date").": <font class=\"body_text\"><span id=\"entry_dateDISP\"> </span> </font>";
|
||||
}
|
||||
if (preg_match("/source_id/",$agent_display_fields))
|
||||
{
|
||||
echo _QXZ("Source ID").": <font class=\"body_text\"><span id=\"source_idDISP\"> </span> </font>";
|
||||
}
|
||||
if (preg_match("/date_of_birth/",$agent_display_fields))
|
||||
{
|
||||
echo _QXZ("Date of Birth").": <font class=\"body_text\"><span id=\"date_of_birthDISP\"> </span> </font>";
|
||||
}
|
||||
if (preg_match("/rank/",$agent_display_fields))
|
||||
{
|
||||
echo _QXZ("Rank").": <font class=\"body_text\"><span id=\"rankDISP\"> </span> </font>";
|
||||
}
|
||||
if (preg_match("/owner/",$agent_display_fields))
|
||||
{
|
||||
echo _QXZ("Owner").": <font class=\"body_text\"><span id=\"ownerDISP\"> </span> </font>";
|
||||
}
|
||||
}
|
||||
|
||||
echo "</td></tr><tr><td align=\"right\"><font class=\"body_text\">";
|
||||
|
||||
if ($label_comments == '---HIDE---')
|
||||
|
||||
+12
-5
File diff suppressed because one or more lines are too long
@@ -53,6 +53,7 @@
|
||||
# 150708-2238 - Added max_queue_ingroup_ options
|
||||
# 150710-1124 - Added explanation of new ALT URL feature and alt_multi_urls
|
||||
# 150724-0047 - Added agent_debug_logging
|
||||
# 150725-1406 - Added agent_display_fields
|
||||
#
|
||||
|
||||
require("dbconnect_mysqli.php");
|
||||
@@ -1535,6 +1536,11 @@ if ($SSoutbound_autodial_active > 0)
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Status Display In-Group"); ?> -</B><?php echo _QXZ("This option if set to ENABLED will display the In-Group name in the agent screen when an inbound call is sent to the agent. Default is ENABLED."); ?>
|
||||
|
||||
<BR>
|
||||
<A NAME="campaigns-agent_display_fields">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Agent Display Fields"); ?> -</B><?php echo _QXZ("This option allows you to display hidden fields as read-only in the agent screen. Available fields are entry_date, source_id, date_of_birth, rank, owner. Default is blank."); ?>
|
||||
|
||||
<BR>
|
||||
<A NAME="campaigns-use_internal_dnc">
|
||||
<BR>
|
||||
|
||||
Reference in New Issue
Block a user