diff --git a/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.0.txt b/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.0.txt index 402308ad..465ff25a 100644 --- a/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.0.txt +++ b/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.0.txt @@ -14,7 +14,6 @@ Maximum Adapt Dial Level -<\/B> This field is where you set the limit of the lim Latest Server Time -<\/B> This field is only used by the ADAPT_TAPERED dial method. You should enter in the hour and minute that you will stop calling on this campaign, 2100 would mean that you will stop dialing this campaign at 9PM server time. This allows the Tapered algorithm to decide how aggressively to dial by how long you have until you will be finished calling Adapt Intensity Modifier -<\/B> This field is used to adjust the predictive intensity either higher or lower. The higher a positive number you select, the greater the dialer will increase the call pacing when it goes up and the slower the dialer will decrease the call pacing when it goes down. The lower the negative number you select here, the slower the dialer will increase the call pacing and the faster the dialer will lower the call pacing when it goes down. Default is 0. This field is not used by the MANUAL or RATIO dial methods Dial Level Difference Target -<\/B> This field is used to define whether you want to target having a specific number of agents waiting for calls or calls waiting for agents. For example if you would always like to have on average one agent free to take calls immediately you would set this to -1, if you would like to target always having one call on hold waiting for an agent you would set this to 1. Default is 0. This field is not used by the MANUAL or RATIO dial methods - System Performance Server Logs AGI Output @@ -31,9 +30,11 @@ Dial Level Difference Target ############################################################ CLIENT - - - +Previous Callback Information|| +Last Call: || +CallBack: || +Agent: || +Comments: || ############################################################ ADMIN Manual diff --git a/agc_2-X/trunk/www/agc/vdc_db_query.php b/agc_2-X/trunk/www/agc/vdc_db_query.php index 866c0584..586632c4 100644 --- a/agc_2-X/trunk/www/agc/vdc_db_query.php +++ b/agc_2-X/trunk/www/agc/vdc_db_query.php @@ -108,9 +108,11 @@ # 60623-1414 - Fixed variable filter for phone_code and fixed manual dial logic # 60821-1600 - Added ability to omit the phone code on vicidial lead dialing # 60821-1647 - Added ability to not delete sessions at logout +# 60906-1124 - Added lookup and sending of callback data for CALLBK calls +# -$version = '2.0.36'; -$build = '60821-1647'; +$version = '2.0.37'; +$build = '60906-1124'; require("dbconnect.php"); @@ -498,6 +500,27 @@ if ($ACTION == 'manDiaLnextCaLL') $called_count++; + ##### if lead is a callback, grab the callback comments + $CBentry_time = ''; + $CBcallback_time = ''; + $CBuser = ''; + $CBcomments = ''; + if (ereg("CALLBK",$dispo)) + { + $stmt="SELECT entry_time,callback_time,user,comments FROM vicidial_callbacks where lead_id='$lead_id' order by callback_id desc LIMIT 1;"; + $rslt=mysql_query($stmt, $link); + if ($DB) {echo "$stmt\n";} + $cb_record_ct = mysql_num_rows($rslt); + if ($cb_record_ct > 0) + { + $row=mysql_fetch_row($rslt); + $CBentry_time = trim("$row[0]"); + $CBcallback_time = trim("$row[1]"); + $CBuser = trim("$row[2]"); + $CBcomments = trim("$row[3]"); + } + } + ### flag the lead as called and change it's status to INCALL $stmt = "UPDATE vicidial_list set status='INCALL', called_since_last_reset='Y', called_count='$called_count',user='$user' where lead_id='$lead_id';"; if ($DB) {echo "$stmt\n";} @@ -582,6 +605,10 @@ if ($ACTION == 'manDiaLnextCaLL') $LeaD_InfO .= $security . "\n"; $LeaD_InfO .= $comments . "\n"; $LeaD_InfO .= $called_count . "\n"; + $LeaD_InfO .= $CBentry_time . "\n"; + $LeaD_InfO .= $CBcallback_time . "\n"; + $LeaD_InfO .= $CBuser . "\n"; + $LeaD_InfO .= $CBcomments . "\n"; echo $LeaD_InfO; @@ -1076,6 +1103,27 @@ if ($ACTION == 'VDADcheckINCOMING') $called_count = trim("$row[30]"); } + ##### if lead is a callback, grab the callback comments + $CBentry_time = ''; + $CBcallback_time = ''; + $CBuser = ''; + $CBcomments = ''; + if (ereg("CALLBK",$dispo)) + { + $stmt="SELECT entry_time,callback_time,user,comments FROM vicidial_callbacks where lead_id='$lead_id' order by callback_id desc LIMIT 1;"; + $rslt=mysql_query($stmt, $link); + if ($DB) {echo "$stmt\n";} + $cb_record_ct = mysql_num_rows($rslt); + if ($cb_record_ct > 0) + { + $row=mysql_fetch_row($rslt); + $CBentry_time = trim("$row[0]"); + $CBcallback_time = trim("$row[1]"); + $CBuser = trim("$row[2]"); + $CBcomments = trim("$row[3]"); + } + } + ### update the lead status to INCALL $stmt = "UPDATE vicidial_list set status='INCALL', user='$user' where lead_id='$lead_id';"; if ($DB) {echo "$stmt\n";} @@ -1215,6 +1263,10 @@ if ($ACTION == 'VDADcheckINCOMING') $LeaD_InfO .= $security . "\n"; $LeaD_InfO .= $comments . "\n"; $LeaD_InfO .= $called_count . "\n"; + $LeaD_InfO .= $CBentry_time . "\n"; + $LeaD_InfO .= $CBcallback_time . "\n"; + $LeaD_InfO .= $CBuser . "\n"; + $LeaD_InfO .= $CBcomments . "\n"; echo $LeaD_InfO; diff --git a/agc_2-X/trunk/www/agc/vicidial.php b/agc_2-X/trunk/www/agc/vicidial.php index eeae3178..c725b497 100644 --- a/agc_2-X/trunk/www/agc/vicidial.php +++ b/agc_2-X/trunk/www/agc/vicidial.php @@ -124,6 +124,7 @@ # 60821-1643 - Added no_delete_sessions option to not delete sessions # 60822-0512 - Changed phone number fields to be maxlength of 12 # 60829-1531 - Made compatible with WeBRooTWritablE setting in dbconnect.php +# 60906-1152 - Added Previous CallBack info display span # require("dbconnect.php"); @@ -169,8 +170,8 @@ if (isset($_GET["relogin"])) {$relogin=$_GET["relogin"];} $forever_stop=0; -$version = '2.0.97'; -$build = '60829-1531'; +$version = '2.0.98'; +$build = '60906-1152'; if ($force_logout) { @@ -206,7 +207,7 @@ $local_consult_xfers = '1'; # set to 1 to send consultative transfers from origi $clientDST = '1'; # set to 1 to check for DST on server for agent time $no_delete_sessions = '0'; # set to 1 to not delete sessions at logout -$TEST_all_statuses = '0'; # TEST variable allows all statuses in dispo screen +$TEST_all_statuses = '1'; # TEST variable allows all statuses in dispo screen # options now set in DB: #$alt_phone_dialing = '1'; # allow agents to call alt phone numbers @@ -1386,6 +1387,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var no_delete_sessions = ''; var webform_session = ''; var local_consult_xfers = ''; + var CBentry_time = ''; + var CBcallback_time = ''; + var CBuser = ''; + var CBcomments = ''; var DiaLControl_auto_HTML = "\"Pause\"\"Resume\""; var DiaLControl_auto_HTML_ready = "\"Pause\"\"Resume\""; var DiaLControl_auto_HTML_OFF = "\"Pause\"\"Resume\""; @@ -2731,6 +2736,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.vicidial_form.called_count.value = MDnextResponse_array[27]; previous_called_count = MDnextResponse_array[27]; previous_dispo = MDnextResponse_array[2]; + CBentry_time = MDnextResponse_array[28]; + CBcallback_time = MDnextResponse_array[29]; + CBuser = MDnextResponse_array[30]; + CBcomments = MDnextResponse_array[31]; lead_dial_number = document.vicidial_form.phone_number.value; document.getElementById("MainStatuSSpan").innerHTML = " Calling: " + document.vicidial_form.phone_number.value + " UID: " + MDnextCID + "   " + man_status; @@ -2796,6 +2805,11 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { document.getElementById("CusTInfOSpaN").innerHTML = " PREVIOUS CALLBACK "; document.getElementById("CusTInfOSpaN").style.background = CusTCB_bgcolor; + document.getElementById("CBcommentsBoxA").innerHTML = "Last Call: " + CBentry_time; + document.getElementById("CBcommentsBoxB").innerHTML = "CallBack: " + CBcallback_time; + document.getElementById("CBcommentsBoxC").innerHTML = "Agent: " + CBuser; + document.getElementById("CBcommentsBoxD").innerHTML = "Comments:
" + CBcomments; + showDiv('CBcommentsBox'); } var regWFAvars = new RegExp("\\?","ig"); @@ -3294,6 +3308,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} check_VDIC_array[30] = check_VDIC_array[30].replace(REGcommentsNL, "\n"); document.vicidial_form.comments.value = check_VDIC_array[30]; document.vicidial_form.called_count.value = check_VDIC_array[31]; + CBentry_time = check_VDIC_array[32]; + CBcallback_time = check_VDIC_array[33]; + CBuser = check_VDIC_array[34]; + CBcomments = check_VDIC_array[35]; lead_dial_number = document.vicidial_form.phone_number.value; document.getElementById("MainStatuSSpan").innerHTML = " Incoming: " + document.vicidial_form.phone_number.value + " UID: " + CIDcheck + "   " + VDIC_fronter; @@ -3302,6 +3320,11 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { document.getElementById("CusTInfOSpaN").innerHTML = " PREVIOUS CALLBACK "; document.getElementById("CusTInfOSpaN").style.background = CusTCB_bgcolor; + document.getElementById("CBcommentsBoxA").innerHTML = "Last Call: " + CBentry_time; + document.getElementById("CBcommentsBoxB").innerHTML = "CallBack: " + CBcallback_time; + document.getElementById("CBcommentsBoxC").innerHTML = "Agent: " + CBuser; + document.getElementById("CBcommentsBoxD").innerHTML = "Comments:
" + CBcomments; + showDiv('CBcommentsBox'); } if (VDIC_data_VDIG[1].length > 0) @@ -4045,6 +4068,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.getElementById("DispoSelectMaxMin").innerHTML = "minimize"; document.getElementById("DispoSelectHAspan").innerHTML = "Hangup Again"; + CBcommentsBoxhide(); + AgentDispoing = 0; if (wrapup_waiting == 0) @@ -4553,6 +4578,22 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} } +// ################################################################################ +// Hide the CBcommentsBox span upon click + function CBcommentsBoxhide() + { + CBentry_time = ''; + CBcallback_time = ''; + CBuser = ''; + CBcomments = ''; + document.getElementById("CBcommentsBoxA").innerHTML = ""; + document.getElementById("CBcommentsBoxB").innerHTML = ""; + document.getElementById("CBcommentsBoxC").innerHTML = ""; + document.getElementById("CBcommentsBoxD").innerHTML = ""; + hideDiv('CBcommentsBox'); + } + + // ################################################################################ // Populating the date field in the callback frame prior to submission function CB_date_pick(taskdate) @@ -4638,6 +4679,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} if (VICIDiaL_closer_login_checked==0) { hideDiv('NothingBox'); + hideDiv('CBcommentsBox'); hideDiv('HotKeyActionBox'); hideDiv('HotKeyEntriesBox'); hideDiv('MainXfeRBox'); @@ -5237,7 +5279,7 @@ echo "\n"; X ACTIVE CALLBACKS
- +
CALLBACKS FOR AGENT :
Click on a callback below to call the customer back now. If you click on a record below to call it, it will be removed from the list.
@@ -5248,7 +5290,7 @@ echo "\n";
- +
NEW MANUAL DIAL LEAD FOR :

Enter information below for the new lead you wish to call.

Calls Dialing: + + + + + + + + +
Previous Callback Information: close
+
+
+
+
+ +
+
+ +
Noone is in your session:
Go Back

@@ -5352,7 +5411,7 @@ Your Status:
Calls Dialing: +
Customer has hung up:
Go Back

@@ -5361,7 +5420,7 @@ Your Status:
Calls Dialing: +
Call Wrapup: seconds remaining in wrapup



@@ -5370,23 +5429,23 @@ Your Status:
Calls Dialing: +

LOGOUT
- +
- +
 
- +
Any changes made to the customer information below at this time will not be comitted, You must change customer information before you Hangup the call.
- +
DISPOSITION CALL :       Hangup Again       minimize
End-of-call Disposition Selection
@@ -5400,7 +5459,7 @@ Your Status:
Calls Dialing: +
Select a CallBack Date :
@@ -5443,7 +5502,7 @@ Your Status:
Calls Dialing: +
CLOSER INBOUND GROUP SELECTION
Closer Inbound Group Selection
@@ -5454,7 +5513,7 @@ Your Status:
Calls Dialing: + Channel Channel