From 5941ef550869a62d90020f6d3c8b97d69dc759a6 Mon Sep 17 00:00:00 2001 From: mattf Date: Thu, 18 Aug 2016 18:00:56 +0000 Subject: [PATCH] Added custom colors/logos for customer chat Added user nickname for customer chat Added trim to campaign number and dtmf preset updates Fixed issue with new HTML format for Team Performance Detail report Added MANUALDIALLINK script option for agent scripts git-svn-id: svn://192.168.202.10@2579 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/www/agc/chat_db_query.php | 37 ++- agc_2-X/trunk/www/agc/vdc_chat_display.php | 47 +++- agc_2-X/trunk/www/agc/vdc_script_display.php | 9 +- .../trunk/www/chat_customer/css/custom.css | 44 ++++ .../www/chat_customer/css/simpletree.css | 82 ------ .../chat_customer/customer_chat_functions.php | 235 +++++++++++++++++- .../images/VICIchat_powered_logo.gif | Bin 0 -> 2466 bytes .../images/VICIchat_powered_logo.png | Bin 0 -> 5017 bytes .../images/vicidial_admin_web_logo.png | Bin 0 -> 6252 bytes .../images/vicidial_admin_web_logoSAMPLE.png | Bin 0 -> 5893 bytes .../www/chat_customer/options-example.php | 3 + .../vicidial_chat_customer_side.php | 91 ++++++- .../vicidial/AST_team_performance_detail.php | 5 +- agc_2-X/trunk/www/vicidial/admin.php | 63 ++++- agc_2-X/trunk/www/vicidial/help.php | 18 +- 15 files changed, 506 insertions(+), 128 deletions(-) create mode 100644 agc_2-X/trunk/www/chat_customer/images/VICIchat_powered_logo.gif create mode 100644 agc_2-X/trunk/www/chat_customer/images/VICIchat_powered_logo.png create mode 100644 agc_2-X/trunk/www/chat_customer/images/vicidial_admin_web_logo.png create mode 100644 agc_2-X/trunk/www/chat_customer/images/vicidial_admin_web_logoSAMPLE.png create mode 100644 agc_2-X/trunk/www/chat_customer/options-example.php diff --git a/agc_2-X/trunk/www/agc/chat_db_query.php b/agc_2-X/trunk/www/agc/chat_db_query.php index 14091a40..479aea7a 100644 --- a/agc_2-X/trunk/www/agc/chat_db_query.php +++ b/agc_2-X/trunk/www/agc/chat_db_query.php @@ -17,13 +17,14 @@ # 160108-2300 - Changed some mysqli_query to mysql_to_mysqli for consistency # 160303-0051 - Added code for chat transfers # 160719-1043 - Bug fixes for non-owner chats, and other issues +# 160818-1236 - Addec chat colors, usre nickname and scrolling # require("dbconnect_mysqli.php"); require("functions.php"); $NOW_TIME = date("Y-m-d H:i:s"); -$color_array=array("#FF0000", "#0000FF", "#009900", "#990099", "#009999", "#666600", "#999999"); +$chat_background_array=array(); # Defined further down $style_array=array("", "italics", "bold italics"); if (isset($_GET["action"])) {$action=$_GET["action"];} @@ -89,6 +90,9 @@ if (isset($_GET["chat_xfer_value"])) {$chat_xfer_value=$_GET["chat_xfer_valu $chat_member_name = preg_replace('/[^- \.\,\_0-9a-zA-Z]/',"",$chat_member_name); if (!$user) {echo "No user, no using."; exit;} +if (file_exists('options.php')) + {require('options.php');} + ############################################# ##### START SYSTEM_SETTINGS LOOKUP ##### $VUselected_language = ''; @@ -494,7 +498,7 @@ if ($action=="start_chat" && $user && $server_ip) { if (!$chat_group_id) { echo "NO_GROUP"; } else { - $user_stmt="select full_name from vicidial_users where user='$user'"; + $user_stmt="select if(user_nickname!='' and user_nickname is not null, user_nickname, full_name) from vicidial_users where user='$user'"; $user_rslt=mysql_to_mysqli($user_stmt, $link); if (mysqli_num_rows($user_rslt)>0) { $live_agent_stmt="select * from vicidial_live_agents where user='$user' and status='PAUSED'"; @@ -684,7 +688,7 @@ if ($action=="update_agent_chat_window" && $chat_id) { $live_stmt="select * from vicidial_live_chats vlc, vicidial_chat_participants vcp where vlc.chat_id='$chat_id' and status='LIVE' and vlc.chat_id=vcp.chat_id and vcp.chat_member='$user'"; $live_rslt=mysql_to_mysqli($live_stmt, $link); if (mysqli_num_rows($live_rslt)>0) { - echo ""._QXZ("Current chat").": $chat_id
\n"; + echo ""._QXZ("Current chat").": $chat_id
"; # Create color-coding for chat $stmt="select * from vicidial_chat_log where chat_id='$chat_id' order by message_time asc"; @@ -697,21 +701,33 @@ if ($action=="update_agent_chat_window" && $chat_id) { } } + $chat_color_stmt="select menu_background, frame_background, std_row1_background, std_row2_background, std_row3_background, std_row4_background, std_row5_background from system_settings s, vicidial_screen_colors v where s.agent_screen_colors=v.colors_id and length(frame_background)=6 and length(menu_background)=6 limit 1;"; + $color_rslt=mysql_to_mysqli($chat_color_stmt, $link); + if(mysqli_num_rows($color_rslt)>0 && $use_system_colors>0) { + $color_row=mysqli_fetch_array($color_rslt); + $color_array=array("#000000", "#000000", "#000000", "#000000", "#000000", "#000000", "#000000"); + $chat_background_array=array("#$color_row[std_row1_background]", "#$color_row[std_row2_background]", "#$color_row[std_row3_background]", "#$color_row[std_row4_background]", "#$color_row[std_row5_background]", "#$color_row[frame_background]", "#$color_row[menu_background]"); + } else { + $color_array=array("#FF0000", "#0000FF", "#009900", "#990099", "#009999", "#666600", "#999999"); + $chat_background_array=array("#FFCCCC", "#CCCCFF", "#CCFFCC", "#FFCCFF", "#CCFFFF", "#CCCC99", "#CCCCCC"); + } + ## GRAB CHAT MESSAGES AND DISPLAY THEM if (!$user_level || $user_level==0) {$user_level_clause=" and chat_level='0' ";} else {$user_level_clause="";} $stmt="select * from vicidial_chat_log where chat_id='$chat_id' $user_level_clause order by message_time asc"; - + + echo ""; $rslt=mysql_to_mysqli($stmt, $link); while ($row=mysqli_fetch_row($rslt)) { $chat_color_key=array_search("$row[4]", $chat_members); $row[2]=preg_replace('/\n/', '
', $row[2]); - echo "
  • $row[5] ($row[3]) - $row[2]
  • \n"; + echo ""; } - + echo "
  • $row[5] ($row[3]) - $row[2]
  • "; ## PLAY AUDIO FILE IF THERE ARE NEW MESSAGES $current_messages=mysqli_num_rows($rslt); - echo "\n"; + echo "\n$current_messages"; } else { echo ""._QXZ("Click on a live chat at right to join it.")."
    \n"; } @@ -982,6 +998,13 @@ if ($action=="join_chat" && $user && $chat_id && $chat_member_name) { $del_stmt="delete from vicidial_chat_participants where chat_member='$user'"; $del_rslt=mysql_to_mysqli($del_stmt, $link); + $nickname_stmt="select user_nickname from vicidial_users where user='$user' and user_nickname is not null and user_nickname!=''"; + $nickname_rslt=mysql_to_mysqli($nickname_stmt, $link); + if (mysqli_num_rows($nickname_rslt)>0) { + $nickname_row=mysqli_fetch_array($nickname_rslt); + $chat_member_name=$nickname_row["user_nickname"]; + } + $ins_stmt="insert into vicidial_chat_participants(chat_id, chat_member, chat_member_name, vd_agent) values('$chat_id', '$user', '".mysqli_real_escape_string($link, $chat_member_name)."', 'Y')"; $ins_rslt=mysql_to_mysqli($ins_stmt, $link); if (mysqli_affected_rows($link)==0) { diff --git a/agc_2-X/trunk/www/agc/vdc_chat_display.php b/agc_2-X/trunk/www/agc/vdc_chat_display.php index 0ec006b5..5948cbd6 100644 --- a/agc_2-X/trunk/www/agc/vdc_chat_display.php +++ b/agc_2-X/trunk/www/agc/vdc_chat_display.php @@ -15,6 +15,7 @@ # 151213-1107 - Added variable filtering # 151218-0913 - Added missing translation code and user auth # 160303-0051 - Added code for chat transfers +# 160818-1235 - Added line colors and scrolling # require("dbconnect_mysqli.php"); @@ -243,14 +244,40 @@ function UpdateChatWindow() { { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { - var fullchatlog = xmlhttp.responseText; - document.getElementById('ChatDisplay').innerHTML=fullchatlog; + // var fullchatlog = xmlhttp.responseText; + var chatlogresponse = xmlhttp.responseText; + var chatlog_array = chatlogresponse.split("\n"); + var fullchatlog = chatlog_array[0]; + var live_message_count = chatlog_array[1]; + + var last_live_message_count=document.getElementById('live_message_count_field'); + if (live_message_count!=last_live_message_count.value) { + document.getElementById('ChatDisplay').innerHTML=fullchatlog; + last_live_message_count.value=live_message_count; + } + + + // document.getElementById('ChatDisplay').innerHTML=fullchatlog; + var current_message_field_update = document.getElementById('current_message_count'); if (current_message_field_update != null) {var current_message_count_update=current_message_field_update.value;} - if (clickMute==0 && current_message_count_update>current_message_count && !document.getElementById("MuteCustomerChatAlert").checked) - {document.getElementById("CustomerChatAudioAlertFile").play();} - else if (clickMute>0) - {clickMute=0;} + + // document.getElementById('ChatDisplay').innerHTML+=current_message_count_update+" > "+current_message_count; + + if (current_message_count_update>current_message_count) + { + var myDiv = document.getElementById('ChatDisplay'); + document.getElementById('ChatDisplay').scrollTop = document.getElementById('ChatDisplay').scrollHeight; + + if (clickMute==0 && !document.getElementById("MuteCustomerChatAlert").checked) + { + document.getElementById("CustomerChatAudioAlertFile").play(); + } + else if (clickMute>0) + { + clickMute=0; + } + } } } delete xmlhttp; @@ -768,7 +795,7 @@ if (!$user) { exit; } -$user_stmt="select full_name from vicidial_users where user='$user' limit 1"; +$user_stmt="select if(user_nickname!='' and user_nickname is not null, user_nickname, full_name) from vicidial_users where user='$user' limit 1"; $user_rslt=mysql_to_mysqli($user_stmt, $link); $inchat_html=""; $nochat_html=""; $autojoin_js_fx="StartRefresh();"; @@ -806,11 +833,12 @@ if($child_window) { @@ -939,6 +967,7 @@ if($child_window) { + diff --git a/agc_2-X/trunk/www/agc/vdc_script_display.php b/agc_2-X/trunk/www/agc/vdc_script_display.php index b99523b3..4642d211 100644 --- a/agc_2-X/trunk/www/agc/vdc_script_display.php +++ b/agc_2-X/trunk/www/agc/vdc_script_display.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2016 Matt Florell LICENSE: AGPLv2 # # This script is designed display the contents of the SCRIPT tab in the agent interface # @@ -32,10 +32,11 @@ # 150703-2034 - Added option to fully urlencode variables if IFRAME is used in script Issue #864 # 150725-1622 - Added entry_date variable # 150923-2028 - Added DID custom variables +# 160818-1226 - Added MANUALDIALLINK option # -$version = '2.12-26'; -$build = '150923-2028'; +$version = '2.12-27'; +$build = '160818-1226'; require_once("dbconnect_mysqli.php"); require_once("functions.php"); @@ -842,6 +843,8 @@ if (preg_match('/--A--TABLEper_call_notes--B--/i',$script_text)) $script_text = preg_replace("/\n/i","
    ",$script_text); $script_text = preg_replace('/--A--TABLEper_call_notes--B--/i',"$NOTESout",$script_text); +$manual_dial_code = "" . _QXZ("MANUAL DIAL") .""; +$script_text = preg_replace('/--A--MANUALDIALLINK--B--/i',$manual_dial_code,$script_text); $script_text = stripslashes($script_text); diff --git a/agc_2-X/trunk/www/chat_customer/css/custom.css b/agc_2-X/trunk/www/chat_customer/css/custom.css index 37798017..11498e4b 100644 --- a/agc_2-X/trunk/www/chat_customer/css/custom.css +++ b/agc_2-X/trunk/www/chat_customer/css/custom.css @@ -1,3 +1,15 @@ + +.chat_title { font-family: Arial, Helvetica, sans-serif; font-size: 14pt} +.chat_message { font-family: Arial, Helvetica, sans-serif; font-size: 10pt} +.chat_timestamp { font-family: Arial, Helvetica, sans-serif; font-size: 8pt} +.bold {font-weight: bold;} +.italics {font-style: italic;} +.alert { + font-weight: bold; + color:#FFFFFF; + background-color:#FF0000; +} + input.red_btn{ font-family: Arial, Sans-Serif; font-size: 10px; @@ -34,6 +46,24 @@ input.blue_btn{ border-right-color:#000033; border-bottom-color:#000033; } +textarea.chat_window { + font-family: Arial, Sans-Serif; + font-size: 11px; + margin-bottom: 3px; + padding: 2px; + border: solid 1px #000066; +} +td.chat_window { + border:2px solid #000000; + padding: 5px; + vertical-align: top; +/* + background-image: url("../images/VICIchat_powered_logo.png"); + background-repeat: no-repeat; + background-position: bottom 5px right 25px; +*/ + background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(222,222,222,0) 50%, rgba(222,222,222,0) 50%, rgba(222,222,222,1) 100%); +} input.form_field { font-family: Arial, Sans-Serif; font-size: 10px; @@ -55,3 +85,17 @@ select.form_field { padding: 2px; border: solid 1px #000066; } +div.logo_container { + width: 123px; + height: 30px; + position: absolute bottom left; + /* text-align: center; + background: rgb(0, 150, 0); /* Fall-back for browsers that don't support rgba + background: rgba(0, 150, 0, .5); */ +} +img.small_logo { + max-width:123px; + max-height:30px; + width:auto; + height:auto; +} diff --git a/agc_2-X/trunk/www/chat_customer/css/simpletree.css b/agc_2-X/trunk/www/chat_customer/css/simpletree.css index 910309c5..e4936a93 100644 --- a/agc_2-X/trunk/www/chat_customer/css/simpletree.css +++ b/agc_2-X/trunk/www/chat_customer/css/simpletree.css @@ -37,85 +37,3 @@ ul.treeview li:last-child { /* background: #fff url(images/lastnode.png) no-repeat; */ margin-bottom: 20px; } - -.chat_title { font-family: Arial, Helvetica, sans-serif; font-size: 11pt} -.chat_message { font-family: Arial, Helvetica, sans-serif; font-size: 10pt} -.chat_timestamp { font-family: Arial, Helvetica, sans-serif; font-size: 8pt} -.bold {font-weight: bold;} -.italics {font-style: italic;} -.alert { - font-weight: bold; - color:#FFFFFF; - background-color:#FF0000; -} - -input.red_btn{ - font-family: Arial, Sans-Serif; - font-size: 10px; - color:#FFFFFF; - font-weight:bold; - background-color:#990000; - border:2px solid; - border-top-color:#FFCCCC; - border-left-color:#FFCCCC; - border-right-color:#330000; - border-bottom-color:#330000; -} -input.green_btn{ - font-family: Arial, Sans-Serif; - font-size: 10px; - color:#FFFFFF; - font-weight:bold; - background-color:#009900; - border:2px solid; - border-top-color:#CCFFCC; - border-left-color:#CCFFCC; - border-right-color:#003300; - border-bottom-color:#003300; -} -input.blue_btn{ - font-family: Arial, Sans-Serif; - font-size: 10px; - color:#FFFFFF; - font-weight:bold; - background-color:#000099; - border:2px solid; - border-top-color:#CCCCFF; - border-left-color:#CCCCFF; - border-right-color:#000033; - border-bottom-color:#000033; -} -textarea.chat_window { - font-family: Arial, Sans-Serif; - font-size: 11px; - margin-bottom: 3px; - padding: 2px; - border: solid 1px #000066; -} -td.chat_window { - border:2px solid #000000; - padding: 5px; - vertical-align: top; - background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(222,222,222,0) 50%, rgba(222,222,222,0) 50%, rgba(222,222,222,1) 100%); -} -input.form_field { - font-family: Arial, Sans-Serif; - font-size: 10px; - margin-bottom: 3px; - padding: 2px; - border: solid 1px #000066; -} -textarea.form_field { - font-family: Arial, Sans-Serif; - font-size: 10px; - margin-bottom: 3px; - padding: 2px; - border: solid 1px #000066; -} -select.form_field { - font-family: Arial, Sans-Serif; - font-size: 10px; - margin-bottom: 3px; - padding: 2px; - border: solid 1px #000066; -} diff --git a/agc_2-X/trunk/www/chat_customer/customer_chat_functions.php b/agc_2-X/trunk/www/chat_customer/customer_chat_functions.php index 4c190ead..3b3c846f 100644 --- a/agc_2-X/trunk/www/chat_customer/customer_chat_functions.php +++ b/agc_2-X/trunk/www/chat_customer/customer_chat_functions.php @@ -11,12 +11,12 @@ # 160203-1051 - Added display of chat message after ending it # 160303-0055 - Added code for chat transfers # 160725-1711 - Fixed nested iframe issue +# 160805-2315 - Added coding to show logos in customer display # require("dbconnect_mysqli.php"); require("functions.php"); -$color_array=array("#FF0000", "#0000FF", "#009900", "#990099", "#009999", "#666600", "#999999"); $style_array=array("", "italics", "bold italics"); if (isset($_GET["action"])) {$action=$_GET["action"];} @@ -61,6 +61,7 @@ $language = preg_replace('/[^-\_0-9a-zA-Z]/','',$language); $chat_member_name = preg_replace("/\'|\"|\\\\|;/","",$chat_member_name); $available_agents = preg_replace('/[^-\_0-9a-zA-Z]/','',$available_agents); $show_email = preg_replace('/[^-\_0-9a-zA-Z]/','',$show_email); +$chat_message = preg_replace('/\|/', '|', $chat_message); if ($non_latin < 1) { @@ -72,6 +73,11 @@ else $user = preg_replace("/\'|\"|\\\\|;/","",$user); } +$use_agent_colors=1; +if (file_exists('options.php')) + {require('options.php');} + + ############################################# ##### START SYSTEM_SETTINGS LOOKUP ##### $VUselected_language=''; @@ -205,6 +211,68 @@ if ($action=="update_chat_window" && $chat_id) { } } + ## DISPLAY LOGO ON SCREEN EVEN AFTER CHAT IS ENDED + $chat_color_stmt="select menu_background, frame_background, std_row1_background, std_row2_background, std_row3_background, std_row4_background, std_row5_background, web_logo from vicidial_inbound_groups vig, vicidial_screen_colors v where vig.group_id='$group_id' and vig.customer_chat_screen_colors=v.colors_id and length(frame_background)=6 and length(menu_background)=6 limit 1;"; + $color_rslt=mysql_to_mysqli($chat_color_stmt, $link); + $web_logo=""; $filepath="vicidial/images"; + if(mysqli_num_rows($color_rslt)>0 && $use_agent_colors>0) { + $color_row=mysqli_fetch_array($color_rslt); + $color_array=array("#000000", "#000000", "#000000", "#000000", "#000000", "#000000", "#000000"); + $chat_background_array=array("#$color_row[std_row1_background]", "#$color_row[std_row2_background]", "#$color_row[std_row3_background]", "#$color_row[std_row4_background]", "#$color_row[std_row5_background]", "#$color_row[frame_background]", "#$color_row[menu_background]"); +# switch ($color_row["web_logo"]) { +# case "default_new": +# $color_row["web_logo"]=".png"; +# break; +# case "default_old"; +# $color_row["web_logo"]=".gif"; +# $filepath="vicidial"; +# break; +# } +# $web_logo=$color_row["web_logo"]; + } else { +# if(mysqli_num_rows($color_rslt)>0) { +# $color_row=mysqli_fetch_array($color_rslt); +# switch ($color_row["web_logo"]) { +# case "default_new": +# $color_row["web_logo"]=".png"; +# break; +# case "default_old"; +# $color_row["web_logo"]=".gif"; +# $filepath="vicidial"; +# break; +# } +# $web_logo=$color_row["web_logo"]; +# } + $color_array=array("#FF0000", "#0000FF", "#009900", "#990099", "#009999", "#666600", "#999999"); + $chat_background_array=array("#FFCCCC", "#CCCCFF", "#CCFFCC", "#FFCCFF", "#CCFFFF", "#CCCC99", "#CCCCCC"); + } + +# if (!preg_match("/\.(jpg|gif|png|bmp)$/", $web_logo)) {$web_logo.=".png";} + + $chat_status="INACTIVE"; + echo "$chat_status|"; + +# echo "
    - + + - +
    \n"; +# echo "\n"; +# echo "\n"; +# echo "\n"; +# echo "\n
    \n"; +# echo ""._QXZ("Current chat").": INACTIVE\n"; +# echo "\n"; +# if (file_exists("../$filepath/vicidial_admin_web_logo$web_logo")) +# { +# echo "\n"; +# } +# else +# { +# if (file_exists("./images/vicidial_admin_web_logo$web_logo")) +# { +# echo "\n"; +# } +# } +# echo "
    \n"; + + ## GRAB ARCHIVED CHAT MESSAGES AND DISPLAY THEM if (!$user_level || $user_level==0) {$user_level_clause=" and chat_level='0' ";} else {$user_level_clause="";} $stmt="SELECT * from vicidial_chat_log_archive where chat_id='$chat_id' $user_level_clause order by message_time asc"; @@ -212,7 +280,7 @@ if ($action=="update_chat_window" && $chat_id) { while ($row=mysqli_fetch_row($rslt)) { $chat_color_key=array_search("$row[4]", $chat_members); $row[2]=preg_replace('/\n/', '
    ', $row[2]); - echo "
  • $row[5] ($row[3]) - $row[2]
  • \n"; + echo "
  • $row[5] ($row[3]) - $row[2]
  • \n"; } } else { @@ -229,7 +297,46 @@ if ($action=="update_chat_window" && $chat_id) { $live_stmt="SELECT * from vicidial_live_chats vlc, vicidial_chat_participants vcp where vlc.chat_id='$chat_id' and (status='LIVE' or (status='WAITING' and transferring_agent is not null)) and vlc.chat_id=vcp.chat_id and vcp.chat_member='$user'"; $live_rslt=mysql_to_mysqli($live_stmt, $link); if (mysqli_num_rows($live_rslt)>0) { - echo ""._QXZ("Current chat").": $chat_id
    \n"; + $chat_color_stmt="select menu_background, frame_background, std_row1_background, std_row2_background, std_row3_background, std_row4_background, std_row5_background, web_logo from vicidial_inbound_groups vig, vicidial_screen_colors v where vig.group_id='$group_id' and vig.customer_chat_screen_colors=v.colors_id and length(frame_background)=6 and length(menu_background)=6 limit 1;"; + $color_rslt=mysql_to_mysqli($chat_color_stmt, $link); +# $web_logo=""; $filepath="vicidial/images"; + if(mysqli_num_rows($color_rslt)>0 && $use_agent_colors>0) { + $color_row=mysqli_fetch_array($color_rslt); + $color_array=array("#000000", "#000000", "#000000", "#000000", "#000000", "#000000", "#000000"); + $chat_background_array=array("#$color_row[std_row1_background]", "#$color_row[std_row2_background]", "#$color_row[std_row3_background]", "#$color_row[std_row4_background]", "#$color_row[std_row5_background]", "#$color_row[frame_background]", "#$color_row[menu_background]"); +# switch ($color_row["web_logo"]) { +# case "default_new": +# $color_row["web_logo"]=".png"; +# break; +# case "default_old"; +# $color_row["web_logo"]=".gif"; +# $filepath="vicidial"; +# break; +# } +# $web_logo=$color_row["web_logo"]; + } else { +# if(mysqli_num_rows($color_rslt)>0) { +# $color_row=mysqli_fetch_array($color_rslt); +# switch ($color_row["web_logo"]) { +# case "default_new": +# $color_row["web_logo"]=".png"; +# break; +# case "default_old"; +# $color_row["web_logo"]=".gif"; +# $filepath="vicidial"; +# break; +# +# } +# $web_logo=$color_row["web_logo"]; +# } + $color_array=array("#FF0000", "#0000FF", "#009900", "#990099", "#009999", "#666600", "#999999"); + $chat_background_array=array("#FFCCCC", "#CCCCFF", "#CCFFCC", "#FFCCFF", "#CCFFFF", "#CCCC99", "#CCCCCC"); + } + +# if (!preg_match("/\.(jpg|gif|png|bmp)$/", $web_logo)) {$web_logo.=".png";} + + $chat_status="ACTIVE"; + echo "$chat_status|"; # Create color-coding for chat $stmt="SELECT * from vicidial_chat_log where chat_id='$chat_id' order by message_time asc"; @@ -242,17 +349,20 @@ if ($action=="update_chat_window" && $chat_id) { } } + ## GRAB CHAT MESSAGES AND DISPLAY THEM if (!$user_level || $user_level==0) {$user_level_clause=" and chat_level='0' ";} else {$user_level_clause="";} $stmt="SELECT * from vicidial_chat_log where chat_id='$chat_id' $user_level_clause order by message_time asc"; + echo "\n"; $rslt=mysql_to_mysqli($stmt, $link); while ($row=mysqli_fetch_row($rslt)) { $chat_color_key=array_search("$row[4]", $chat_members); $row[2]=preg_replace('/\n/', '
    ', $row[2]); - echo "
  • $row[5] ($row[3]) - $row[2]
  • \n"; + echo "\n"; } + echo "
  • $row[5] ($row[3]) - $row[2]
  • \n"; if ($status_row[0]=="WAITING" && $status_row[2]!="") { echo "
    "._QXZ("Currently being transferred, waiting for agent...")."
    \n"; @@ -263,11 +373,124 @@ if ($action=="update_chat_window" && $chat_id) { echo "\n"; } else { - echo ""._QXZ("You have left chat").": $chat_id.

    "._QXZ("GO BACK TO CHAT FORM")."\n"; + $chat_status="INACTIVE"; + echo "$chat_status|"; + + $live_stmt="SELECT * from vicidial_live_chats vlc, vicidial_chat_participants vcp where vlc.chat_id='$chat_id' and (status='LIVE' or (status='WAITING' and transferring_agent is not null)) and vlc.chat_id=vcp.chat_id and vcp.chat_member='$user'"; + $live_rslt=mysql_to_mysqli($live_stmt, $link); + if (mysqli_num_rows($live_rslt)>0) { + $chat_color_stmt="select menu_background, frame_background, std_row1_background, std_row2_background, std_row3_background, std_row4_background, std_row5_background, web_logo from vicidial_inbound_groups vig, vicidial_screen_colors v where vig.group_id='$group_id' and vig.customer_chat_screen_colors=v.colors_id and length(frame_background)=6 and length(menu_background)=6 limit 1;"; + $color_rslt=mysql_to_mysqli($chat_color_stmt, $link); + if(mysqli_num_rows($color_rslt)>0 && $use_agent_colors>0) { + $color_row=mysqli_fetch_array($color_rslt); + $color_array=array("#000000", "#000000", "#000000", "#000000", "#000000", "#000000", "#000000"); + $chat_background_array=array("#$color_row[std_row1_background]", "#$color_row[std_row2_background]", "#$color_row[std_row3_background]", "#$color_row[std_row4_background]", "#$color_row[std_row5_background]", "#$color_row[frame_background]", "#$color_row[menu_background]"); + } else { + $color_array=array("#FF0000", "#0000FF", "#009900", "#990099", "#009999", "#666600", "#999999"); + $chat_background_array=array("#FFCCCC", "#CCCCFF", "#CCFFCC", "#FFCCFF", "#CCFFFF", "#CCCC99", "#CCCCCC"); + } + } + + # Create color-coding for chat + $stmt="SELECT * from vicidial_chat_log where chat_id='$chat_id' order by message_time asc"; + + $rslt=mysql_to_mysqli($stmt, $link); + $chat_members=array(); + while ($row=mysqli_fetch_row($rslt)) { + if (!in_array("$row[4]", $chat_members)) { + array_push($chat_members, "$row[4]"); + } + } + + + ## GRAB CHAT MESSAGES AND DISPLAY THEM + if (!$user_level || $user_level==0) {$user_level_clause=" and chat_level='0' ";} else {$user_level_clause="";} + + $stmt="SELECT * from vicidial_chat_log where chat_id='$chat_id' $user_level_clause order by message_time asc"; + + echo "\n"; + $rslt=mysql_to_mysqli($stmt, $link); + while ($row=mysqli_fetch_row($rslt)) { + $chat_color_key=array_search("$row[4]", $chat_members); + $row[2]=preg_replace('/\n/', '
    ', $row[2]); + echo "\n"; + } + echo "
  • $row[5] ($row[3]) - $row[2]
  • \n"; + + # $survey_stmt="select customer_chat_survey_link, customer_chat_survey_text from vicidial_inbound_groups where group_id='$group_id'"; + # $survey_rslt=mysql_to_mysqli($survey_stmt, $link); + # $survey_row=mysqli_fetch_array($survey_rslt); + # if (strlen($survey_row["customer_chat_survey_link"])>0) { + # echo "

    "; + # if (strlen($survey_row["customer_chat_survey_text"])>0) { + # echo $survey_row["customer_chat_survey_text"]; + # } else { + # echo _QXZ("PLEASE TAKE OUR SURVEY"); + # } + # echo "

    "; + # } + + # echo ""._QXZ("You have left chat").": $chat_id."; + # echo "

    "._QXZ("GO BACK TO CHAT FORM")."
    \n"; } } else { if ($status_row[1]=="NONE") { - echo ""._QXZ("Waiting for next available agent...")."
    \n"; +# $chat_color_stmt="select menu_background, frame_background, std_row1_background, std_row2_background, std_row3_background, std_row4_background, std_row5_background, web_logo from vicidial_inbound_groups vig, vicidial_screen_colors v where vig.group_id='$group_id' and vig.customer_chat_screen_colors=v.colors_id and length(frame_background)=6 and length(menu_background)=6 limit 1;"; +# $color_rslt=mysql_to_mysqli($chat_color_stmt, $link); +# $web_logo=""; $filepath="vicidial/images"; +# if(mysqli_num_rows($color_rslt)>0) { +# $color_row=mysqli_fetch_array($color_rslt); +# switch ($color_row["web_logo"]) { +# case "default_new": +# $color_row["web_logo"]=".png"; +# break; +# case "default_old"; +# $color_row["web_logo"]=".gif"; +# $filepath="vicidial"; +# break; +# } +# $web_logo=$color_row["web_logo"]; +# } +# if (!preg_match("/\.(jpg|gif|png|bmp)$/", $web_logo)) {$web_logo.=".png";} + + +# echo "\n"; +# echo "\n"; +# echo "\n"; +# echo "\n"; +# echo "\n
    \n"; + +# echo ""._QXZ("Waiting for next available agent...")."
    \n"; + + $chat_status="WAITING"; + echo "$chat_status|"; + + $chat_count_stmt="SELECT chat_id from vicidial_live_chats vlc, vicidial_inbound_groups vig where vlc.status='WAITING' and (vlc.group_id='$group_id' or (vlc.group_id='AGENTDIRECT_CHAT')) and (transferring_agent is null or transferring_agent!='$user') and vlc.group_id=vig.group_id order by queue_priority desc, chat_id asc"; + $chat_count_rslt=mysql_to_mysqli($chat_count_stmt, $link); + $people_ahead_of_you=0; + while($chat_count_row=mysqli_fetch_row($chat_count_rslt)) { + if ($chat_count_row[0]!=$chat_id) { + $people_ahead_of_you++; + } else { + break; + } + } + if ($people_ahead_of_you>0) { + echo "There are $people_ahead_of_you customer(s) in chat queue ahead of you"; + } else { + echo "You are the next customer in line"; + } + +# echo "
    \n"; +# if (file_exists("../$filepath/vicidial_admin_web_logo$web_logo")) { +# echo "\n"; +# } else { +# if (file_exists("./images/vicidial_admin_web_logo$web_logo")) +# { +# echo "\n"; +# } +# } +# echo "
    \n"; } else { echo ""._QXZ("SYSTEM ERROR")."
    \n"; } diff --git a/agc_2-X/trunk/www/chat_customer/images/VICIchat_powered_logo.gif b/agc_2-X/trunk/www/chat_customer/images/VICIchat_powered_logo.gif new file mode 100644 index 0000000000000000000000000000000000000000..cb5b002426dacb3a91070bc7d9865a5acfcbc818 GIT binary patch literal 2466 zcmeH`{Xf%*1HeD~Y-7gs!K@{*;f^!aFe0hXHcz3b5-O&^6`sw7QXe`JTGzs&n0)*Y|t>#P_G~`yY6}UhmiI9lSHh$Cq~$umgSv z02B&kYHCU(5^Zg59UL5JG#Z1!*tTt(<)#R$%^Yj@sP*2lHr|OF{PsKgC)xXRsoQy< z!}}dssjh)(&cTOVgVJ3?bKJu+y*W8sqq1pXx%7y9M%0mQaRu8GiaeuAeB;0J-&4kB zv%|u|Vq#*Fl9J%K{D8eh?0sdSUzW1D6=BKck!cmFsi|36Sp@|JM~@ywkct2vKP*+W zJEMw|#*fMnC1zJfXVt{#)+Oav?<Y(b^`NOfCjZTnZ%m&&CbUpHPVl6_y?s4i>P@cI0jnwsOskDoq$ z8fj1nWNm`x&e}6wEoa;7&h<3Ndz;Vqp1#=EdgHdP3JXD_s!wXfye!t`?rUG92y!LA0HnYe>D2z^qBVX{YTHHrluyR zUrarHsnh8mKc9K}V)n(%{1g3~xw*O7`NjFgrT_BF+jqY%|F*pR4){O+!vfSlFem_! z0B-*{|9JwytpWrS+Y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Jff=AzRf2vmiUg5R0ONT(0jtH#+rN37Hy1pF2_HxZ zM6`m0f*?UJ+37L-?eir(JbiM<0?;Y={XUd%5W+zWotADkn<*_VB_$;VyPMxoQjGH>~=eunVG1nN<%|~W@X(4O%)XtD2jrrs@iGZ2x$SG*DYxOI=-EL|Iw6+<)vl z)#~KaPd|mAGcpXmKtx(nQgTUFeKuff!O>Z~P!t$6AhYKbq1}nyd6r=;W)mq%2|ZWi zPMo6M=EUpsqf>QQ%_h>46G=@@Jg=Y-{M z#iC8H%jF^v=tu^2=igl}7k300000NkvXXu0mjfb8W-i literal 0 HcmV?d00001 diff --git a/agc_2-X/trunk/www/chat_customer/images/vicidial_admin_web_logo.png b/agc_2-X/trunk/www/chat_customer/images/vicidial_admin_web_logo.png new file mode 100644 index 0000000000000000000000000000000000000000..a06ebe405cdbcf635dc80e68f1f7880773c60a85 GIT binary patch literal 6252 zcmZu$cQjnz_Z1NmjOfuLOmst-h%$&6Eqd?0_b#Ic5iJOU7%fJkj3CPBHHh9@#zgce zLzK}b+IK#G|9bi-`S;i|dwK3)Fwk%Fba^b!56Tw>Ws_Y1O~0?K-vJ=x1^LwvW_s6r*6x zmX-?qRzJ%Si#<$ou;`WD*4q@I+Q*Uvui<0wv$Zo-HrXtquDx#qtX#D!>xU{kF0N;l zYGacLZ2O(rcIPiserja3*`?P3qd{pl$w>uNycjR4iQnv>P?LrMmm6t9@{zI{neJAx z8vvSW%1+#KKzMjJVCh)Zqw1g)vw;|T&{QN5DUv3h%T=_1|y)eB!7B6AK@wc^tESr6uu5+{F@8GYx&HbMpS5AMMvA@$jSD)lRYzJ$F zqi&Z@lRlp&S%024nj0Q)c0QLJ)OjBK#`t=l2{nt$&Nud~O&s*M-t7fzMjZ605ua#X zMynY;8LW^nU$Cs8Jvl}L&x80fqQ)GOzIth`r<4iL}|0F57VOaIfZnu^qq z=Phutowt01tk_iC!sG6B;I4*$h3He8K1*Pgu(MM1tFc9J$o&Itju-ZW0UFbYqN0M- zi1l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>k_R_D#vhE04QkxlAs2&29fuY&twF+r)O{vyb&?U`W`gD0 za27azG45eWWo2@m^SGFtTuO_p-GI7F(j>c+|C<`Rtc|d(0A+l*i30%lO9N@XoyLk4?@~E%F@9+oK zHsV}fggb$@#E~n3wsDDhHPz~8?cW*|s`0~}0?`r>*C1mFXtg>GA2W`s#IM>A?C5Se z$^JFZ&|#faiSqRN(_8YS=}QWs6>+)V_k8;oQNL;{6Bia%$>(!$%n`>ixT zXdnXw55>V5>NO;kU?Ff-;0uAw7xRG*raaVlCuU|;-PL8#7EW?FYd+nO_5y~WB|=}( z1#D&jG#RDMD*%X#i)#vG@?;F!z@1k3%XRpmnwn)U&)TG=l%+F4(9!3jIsuW@?~>n- z{voF*t1B+%TO}VhntQuwLjbcOcuk+9G{ywjeZEWiu^Ic9m-_BkY))3pMk@Z6!9`!~ z&3M<*1KQcPgkj;#@UM<$BfUbqZ7(Af!khA!k6yk(=3}pKC%XG`->|McWR-J4NDxH= zAcW5OWdm&>v+2WG&5OsTv;yK5-DEGP$OXziMgPBHuK$LNab+=zRE$HLa4$flrlbX} IdSMg&Kfy<1>i_@% literal 0 HcmV?d00001 diff --git a/agc_2-X/trunk/www/chat_customer/images/vicidial_admin_web_logoSAMPLE.png b/agc_2-X/trunk/www/chat_customer/images/vicidial_admin_web_logoSAMPLE.png new file mode 100644 index 0000000000000000000000000000000000000000..2909cb2f09e98cd3fdc11ee8f88da7d82f0c44af GIT binary patch literal 5893 zcmZu#WmH>B+ocqDYoKUxm(rreFBAyH(g3Bny9X)mTIj`#LvVKsR-{FXLxA8?B(xz& zad>lof8RN4X4aZ>e$33XpS|}paXMP6q(t;YSXfx3>T1d$%vgnKf&_S&UT*MY8#CZp zYN#q>J^uF=_LQe$W(eKY485?h7|Q-@Pb%O6d6-Fjh`Oc<{w6K~IWN}N^+_izEI^97 zvLe`T<#(==v$383MhHskm0h$KtDWC-(`bp*6oKU?Ym*vpXP54HeIFQUN=s$pUk$1n z1h&gl4#hC2!u!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?1F=X|4HX!B%}T^oRgzC*HSjQmKd|vDx3lG4-5EK zVI{SCBVW)6aS7h3`?1%X@}kzcUISy4Fgc#Xtj<73w|OvAjK~lv;pbfwN_lW->iune za@BL*yZkuR|1WpGc02FdgzhID9PJ*jT|x&)&ul~pPsd)*`5t}gvdo^U%DFKqqCr=d zZ@nS&n?md)Ejy;7sbE5`52w@gjlAzQ_;{Q8EbfF4!jvSg{XtBp60F9RS~BN=G4AnD z3Zke36so+uJmwwO9LLegi3lcEbkY6W+idATToqjmVA-hRUK8eMm8)~5?w)-T7$4X{ zQ;@|RqEOuQi78s;Id+CSXvrCS8bn)GPR^hRNhAe^=3FFy+0o%;y^F?hMI{)jU)>4@ zVD>y?pQgqUKD9sCR0GJt)Ex|tZQ7F5jdswwoSiSkT z?|n+$luw8$en1oj=2`|?$z!_LnbKm>mrNmB?+c>A)zfUcLLPRHRc} z&;tXUX0D9S|2P}FvILE7q)pNGt>rI^uh diff --git a/agc_2-X/trunk/www/chat_customer/vicidial_chat_customer_side.php b/agc_2-X/trunk/www/chat_customer/vicidial_chat_customer_side.php index e40ec2df..b1ecfffa 100644 --- a/agc_2-X/trunk/www/chat_customer/vicidial_chat_customer_side.php +++ b/agc_2-X/trunk/www/chat_customer/vicidial_chat_customer_side.php @@ -17,6 +17,7 @@ # 160108-1700 - Added available_agents, status_link button options and validation of active in-group # 160120-1925 - Fixed missing list_id on vicidial_list inserts, Issue #915. Added show_email option # 160203-1052 - Added display of chat message after ending it +# 160805-2315 - Added coding to show logos in customer display # require("dbconnect_mysqli.php"); @@ -360,8 +361,42 @@ if ($stage == 'send_request') { # For people requesting a chat with an agent; co $ins_rslt=mysql_to_mysqli($ins_stmt, $link); $chat_id=mysqli_insert_id($link); + # WEB LOGO + $chat_color_stmt="select web_logo from vicidial_inbound_groups vig, vicidial_screen_colors v where vig.group_id='$group_id' and vig.customer_chat_screen_colors=v.colors_id limit 1;"; + $color_rslt=mysql_to_mysqli($chat_color_stmt, $link); + $web_logo=""; $filepath="vicidial/images"; + if(mysqli_num_rows($color_rslt)>0) { + $color_row=mysqli_fetch_array($color_rslt); + switch ($color_row["web_logo"]) { + case "default_new": + $color_row["web_logo"]=".png"; + break; + case "default_old"; + $color_row["web_logo"]=".gif"; + $filepath="vicidial"; + break; + } + $web_logo=$color_row["web_logo"]; + } + if (!preg_match("/\.(jpg|gif|png|bmp)$/", $web_logo)) {$web_logo.=".png";} + + if ($chat_id>0) { + $survey_stmt="select customer_chat_survey_link, customer_chat_survey_text from vicidial_inbound_groups where group_id='$group_id'"; + $survey_rslt=mysql_to_mysqli($survey_stmt, $link); + $survey_row=mysqli_fetch_array($survey_rslt); + if (strlen($survey_row["customer_chat_survey_link"])>0) { + $survey_str="

    "; + if (strlen($survey_row["customer_chat_survey_text"])>0) { + $survey_str.=$survey_row["customer_chat_survey_text"]; + } else { + $survey_str.=_QXZ("PLEASE TAKE OUR SURVEY"); + } + $survey_str.=""; + } + + $ins_stmt="INSERT INTO vicidial_chat_participants(chat_id, chat_member, chat_member_name, ping_date, vd_agent) VALUES('$chat_id', '" . mysqli_real_escape_string($link, $user) . "', '" . mysqli_real_escape_string($link, $chat_member_name) . "', now(), 'N')"; $ins_rslt=mysql_to_mysqli($ins_stmt, $link); if (mysqli_affected_rows($link)==0) { @@ -438,6 +473,7 @@ function LeaveChat(chat_id, user, chat_member_name) { { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { + document.getElementById('chat_message_console').innerHTML="

    \n"; //if (chat_creator==user) {EndChat();} } } @@ -475,14 +511,26 @@ function UpdateChatWindow() { var chat_log_response = xmlhttp.responseText; if (chat_log_response.match(/^Error/)) { - document.getElementById('chat_message_console').innerHTML=": "+chat_id+"

    \n"; + document.getElementById('chat_message_console').innerHTML="

    \n"; } - - var fullchatlog=chat_log_response.replace(/Error\|/, ''); + + var chatlogresponse=chat_log_response.replace(/Error\|/, ''); + var chatlogresponse_ary=chatlogresponse.split("|"); + + var current_chat_status=chatlogresponse_ary[0]; + var fullchatlog=chatlogresponse_ary[1]; + + document.getElementById('ChatActiveStatus').innerHTML=current_chat_status; + // var fullchatlog=chat_log_response.replace(/Error\|/, ''); document.getElementById('ChatDisplay').innerHTML=fullchatlog; var current_message_field_update = document.getElementById('current_message_count'); if (current_message_field_update != null) {var current_message_count_update=current_message_field_update.value;} - if (current_message_count_update>current_message_count && !document.getElementById("MuteCustomerChatAlert").checked) {document.getElementById("CustomerChatAudioAlertFile").play();} + if (current_message_count_update>current_message_count) + { + var myDiv = document.getElementById('ChatDisplay'); + document.getElementById('ChatDisplay').scrollTop = document.getElementById('ChatDisplay').scrollHeight; + if (!document.getElementById("MuteCustomerChatAlert").checked) {document.getElementById("CustomerChatAudioAlertFile").play();} + } } } delete xmlhttp; @@ -661,9 +709,37 @@ $chat_title= _QXZ("Request chat with agent"); # This can be modified for customi
    - @@ -688,6 +764,9 @@ $chat_title= _QXZ("Request chat with agent"); # This can be modified for customi " onClick="LeaveChat(document.getElementById('chat_id').value, document.getElementById('user').value, document.getElementById('chat_member_name').value);"> + + +
    - + + + + + + + +
    + : WAITING + + \n"; + } + else + { + if (file_exists("./images/vicidial_admin_web_logo$web_logo")) + { + echo "\n"; + } + } + ?> +
    + + +
    diff --git a/agc_2-X/trunk/www/vicidial/AST_team_performance_detail.php b/agc_2-X/trunk/www/vicidial/AST_team_performance_detail.php index 8910dda3..50184b96 100644 --- a/agc_2-X/trunk/www/vicidial/AST_team_performance_detail.php +++ b/agc_2-X/trunk/www/vicidial/AST_team_performance_detail.php @@ -27,6 +27,7 @@ # 151219-0139 - Added option for searching archived data # 160121-2214 - Added report title header, default report format, cleaned up formatting # 160714-2348 - Added and tested ChartJS features for more aesthetically appealing graphs +# 160718-0054 - Fixed ChartJS bug # $startMS = microtime(); @@ -989,7 +990,8 @@ if ( ($SUBMIT=="SUBMIT") or ($SUBMIT==_QXZ("SUBMIT")) ) # You have to hard code the graph name in where it is overridden and mind the data indices. No other way to do it. $multigraph_text=""; $graph_id++; - $graph_array=array("ATPD_CALLSdata|1|CALLS|integer|", "ATPD_LEADSdata|2|LEADS|integer|", "ATPD_CONTACTSdata|3|CONTACTS|integer|", "ATPD_CONTACTRATIOdata|4|CONTACT RATIO|percent|", "ATPD_SYSTEMTIMEdata|5|SYSTEM TIME|time|", "ATPD_TALKTIMEdata|6|TALK TIME|time|", "ATPD_SALESdata|7|SALES|integer|", "ATPD_SALESTOLEADSdata|8|SALES TO LEADS RATIO|decimal|", "ATPD_SALESTOCONTACTSdata|9|SALES TO CONTACTS RATIO|decimal|", "ATPD_SALESPERHOURdata|10|SALES PER HOUR|decimal|", "ATPD_INCOMPLETESALESSdata|11|INCOMPLETE SALES|integer|", "ATPD_CANCELLEDSALESdata|12|CANCELLED SALES|integer|", "ATPD_CALLBACKSdata|13|CALLBACKS|integer|", "ATPD_FIRSTCALLSdata|14|FIRST CALLS|decimal|", "ATPD_AVGSALETIMEdata|15|AVG SALE TIME|time|", "ATPD_AVGCONTACTTIMEdata|16|AVG CONTACT TIME|time|"); + $dataset_ID="_".$user_group[$i]; # VERY IMPORTANT + $graph_array=array("ATPD_CALLSdata$dataset_ID|1|CALLS|integer|", "ATPD_LEADSdata$dataset_ID|2|LEADS|integer|", "ATPD_CONTACTSdata$dataset_ID|3|CONTACTS|integer|", "ATPD_CONTACTRATIOdata$dataset_ID|4|CONTACT RATIO|percent|", "ATPD_SYSTEMTIMEdata$dataset_ID|5|SYSTEM TIME|time|", "ATPD_TALKTIMEdata$dataset_ID|6|TALK TIME|time|", "ATPD_SALESdata$dataset_ID|7|SALES|integer|", "ATPD_SALESTOLEADSdata$dataset_ID|8|SALES TO LEADS RATIO|decimal|", "ATPD_SALESTOCONTACTSdata$dataset_ID|9|SALES TO CONTACTS RATIO|decimal|", "ATPD_SALESPERHOURdata$dataset_ID|10|SALES PER HOUR|decimal|", "ATPD_INCOMPLETESALESSdata$dataset_ID|11|INCOMPLETE SALES|integer|", "ATPD_CANCELLEDSALESdata$dataset_ID|12|CANCELLED SALES|integer|", "ATPD_CALLBACKSdata$dataset_ID|13|CALLBACKS|integer|", "ATPD_FIRSTCALLSdata$dataset_ID|14|FIRST CALLS|decimal|", "ATPD_AVGSALETIMEdata$dataset_ID|15|AVG SALE TIME|time|", "ATPD_AVGCONTACTTIMEdata$dataset_ID|16|AVG CONTACT TIME|time|"); for ($e=0; $e
    \n\n"; + $total_graph_stats[$i][0]="$user_group[$i] - $group_name"; } } diff --git a/agc_2-X/trunk/www/vicidial/admin.php b/agc_2-X/trunk/www/vicidial/admin.php index a1b4bb0b..9bbf6684 100644 --- a/agc_2-X/trunk/www/vicidial/admin.php +++ b/agc_2-X/trunk/www/vicidial/admin.php @@ -2109,6 +2109,12 @@ if (isset($_GET["manual_auto_next"])) {$manual_auto_next=$_GET["manual_auto_ne elseif (isset($_POST["manual_auto_next"])) {$manual_auto_next=$_POST["manual_auto_next"];} if (isset($_GET["manual_auto_show"])) {$manual_auto_show=$_GET["manual_auto_show"];} elseif (isset($_POST["manual_auto_show"])) {$manual_auto_show=$_POST["manual_auto_show"];} +if (isset($_GET["customer_chat_screen_colors"])) {$customer_chat_screen_colors=$_GET["customer_chat_screen_colors"];} + elseif (isset($_POST["customer_chat_screen_colors"])) {$customer_chat_screen_colors=$_POST["customer_chat_screen_colors"];} +if (isset($_GET["customer_chat_survey_link"])) {$customer_chat_survey_link=$_GET["customer_chat_survey_link"];} + elseif (isset($_POST["customer_chat_survey_link"])) {$customer_chat_survey_link=$_POST["customer_chat_survey_link"];} +if (isset($_GET["customer_chat_survey_text"])) {$customer_chat_survey_text=$_GET["customer_chat_survey_text"];} + elseif (isset($_POST["customer_chat_survey_text"])) {$customer_chat_survey_text=$_POST["customer_chat_survey_text"];} if (isset($script_id)) {$script_id= strtoupper($script_id);} @@ -2721,11 +2727,11 @@ if ($non_latin < 1) $auto_hopper_multi = preg_replace('/[^\.0-9]/','',$auto_hopper_multi); ### ALPHA-NUMERIC and spaces and hash and star and comma - $xferconf_a_dtmf = preg_replace('/[^ \,\*\#0-9a-zA-Z]/','',$xferconf_a_dtmf); - $xferconf_b_dtmf = preg_replace('/[^ \,\*\#0-9a-zA-Z]/','',$xferconf_b_dtmf); - $xferconf_c_dtmf = preg_replace('/[^ \,\*\#0-9a-zA-Z]/','',$xferconf_c_dtmf); - $xferconf_d_dtmf = preg_replace('/[^ \,\*\#0-9a-zA-Z]/','',$xferconf_d_dtmf); - $xferconf_e_dtmf = preg_replace('/[^ \,\*\#0-9a-zA-Z]/','',$xferconf_e_dtmf); + $xferconf_a_dtmf = preg_replace('/[^ \,\*\#0-9a-zA-Z]/','',trim($xferconf_a_dtmf)); + $xferconf_b_dtmf = preg_replace('/[^ \,\*\#0-9a-zA-Z]/','',trim($xferconf_b_dtmf)); + $xferconf_c_dtmf = preg_replace('/[^ \,\*\#0-9a-zA-Z]/','',trim($xferconf_c_dtmf)); + $xferconf_d_dtmf = preg_replace('/[^ \,\*\#0-9a-zA-Z]/','',trim($xferconf_d_dtmf)); + $xferconf_e_dtmf = preg_replace('/[^ \,\*\#0-9a-zA-Z]/','',trim($xferconf_e_dtmf)); $survey_third_digit = preg_replace('/[^ \,\*\#0-9a-zA-Z]/','',$survey_third_digit); $survey_fourth_digit = preg_replace('/[^ \,\*\#0-9a-zA-Z]/','',$survey_fourth_digit); $survey_third_exten = preg_replace('/[^ \,\*\#0-9a-zA-Z]/','',$survey_third_exten); @@ -2963,6 +2969,8 @@ if ($non_latin < 1) $nva_search_method = preg_replace('/[^-_0-9a-zA-Z]/','',$nva_search_method); $on_hook_cid_number = preg_replace('/[^-_0-9a-zA-Z]/','',$on_hook_cid_number); $colors_id = preg_replace('/[^-_0-9a-zA-Z]/','',$colors_id); + $agent_screen_colors = preg_replace('/[^-_0-9a-zA-Z]/','',$agent_screen_colors); + $customer_chat_screen_colors = preg_replace('/[^-_0-9a-zA-Z]/','',$customer_chat_screen_colors); ### ALPHA-NUMERIC and underscore and dash and slash and dot $menu_timeout_prompt = preg_replace('/[^-\/\|\._0-9a-zA-Z]/','',$menu_timeout_prompt); @@ -3136,6 +3144,7 @@ if ($non_latin < 1) $colors_name = preg_replace('/[^- \.\,\_0-9a-zA-Z]/','',$colors_name); $web_logo = preg_replace('/[^- \.\,\_0-9a-zA-Z]/','',$web_logo); $user_nickname = preg_replace('/[^- \.\,\_0-9a-zA-Z]/','',$user_nickname); + $customer_chat_survey_text = preg_replace('/[^- \.\,\_0-9a-zA-Z]/','',$customer_chat_survey_text); ### ALPHA-NUMERIC and underscore and dash and slash and at and dot $call_out_number_group = preg_replace('/[^-\.\:\/\@\_0-9a-zA-Z]/','',$call_out_number_group); @@ -3251,6 +3260,7 @@ if ($non_latin < 1) # $container_entry # $nva_call_url # $web_socket_url + # $customer_chat_survey_link ### VARIABLES optionally filtered: ### # $script_text @@ -3849,12 +3859,14 @@ else # 160708-0745 - Added more Automatic Hopper Multiplier options, up to 4 # 160731-1026 - Added campaign option to automatically manual dial next number in agent screen after X seconds # 160801-2119 - Added Admin Bulk Tools page link from Admin Utilities page +# 160809-1339 - Added customer_chat_screen_colors, customer_chat_survey_link/text as Chat Groups options +# 160816-2113 - Added trim to transfer-conf numbers so they don't retain spaces at the beginning or end of the number # # make sure you have added a user to the vicidial_users MySQL table with at least user_level 9 to access this page the first time -$admin_version = '2.12-563a'; -$build = '160801-2119'; +$admin_version = '2.12-564a'; +$build = '160809-1339'; $STARTtime = date("U"); $SQLdate = date("Y-m-d H:i:s"); @@ -9852,7 +9864,7 @@ if ($ADD==2011) } else { - $stmt="INSERT INTO vicidial_inbound_groups (group_id,group_name,group_color,active,web_form_address,voicemail_ext,next_agent_call,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,drop_call_seconds,drop_action,drop_exten,call_time_id,after_hours_action,after_hours_message_filename,after_hours_exten,after_hours_voicemail,welcome_message_filename,moh_context,onhold_prompt_filename,prompt_interval,agent_alert_exten,agent_alert_delay,default_xfer_group,queue_priority,drop_inbound_group,ingroup_recording_override,ingroup_rec_filename,afterhours_xfer_group,qc_enabled,qc_statuses,qc_shift_id,qc_get_record_launch,qc_show_recording,qc_web_form_address,qc_script,play_place_in_line,play_estimate_hold_time,hold_time_option,hold_time_option_seconds,hold_time_option_exten,hold_time_option_voicemail,hold_time_option_xfer_group,hold_time_option_callback_filename,hold_time_option_callback_list_id,hold_recall_xfer_group,no_delay_call_route,play_welcome_message,answer_sec_pct_rt_stat_one,answer_sec_pct_rt_stat_two,default_group_alias,no_agent_no_queue,no_agent_action,no_agent_action_value,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,ignore_list_script_override,extension_appended_cidname,uniqueid_status_display,uniqueid_status_prefix,hold_time_option_minimum,hold_time_option_press_filename,hold_time_option_callmenu,onhold_prompt_no_block,onhold_prompt_seconds,hold_time_option_no_block,hold_time_option_prompt_seconds,hold_time_second_option,hold_time_third_option,wait_hold_option_priority,wait_time_option,wait_time_second_option,wait_time_third_option,wait_time_option_seconds,wait_time_option_exten,wait_time_option_voicemail,wait_time_option_xfer_group,wait_time_option_callmenu,wait_time_option_callback_filename,wait_time_option_callback_list_id,wait_time_option_press_filename,wait_time_option_no_block,wait_time_option_prompt_seconds,timer_action_destination,calculate_estimated_hold_seconds,add_lead_url,eht_minimum_prompt_filename,eht_minimum_prompt_no_block,eht_minimum_prompt_seconds,on_hook_ring_time,na_call_url,on_hook_cid,action_xfer_cid,drop_callmenu,after_hours_callmenu,user_group,max_calls_method,max_calls_count,max_calls_action,dial_ingroup_cid,group_handling,web_form_address_three,populate_lead_ingroup,drop_lead_reset,after_hours_lead_reset,nanq_lead_reset,wait_time_lead_reset,hold_time_lead_reset,status_group_id,routing_initiated_recordings,on_hook_cid_number) SELECT \"$group_id\",\"$group_name\",group_color,\"N\",web_form_address,voicemail_ext,next_agent_call,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,drop_call_seconds,drop_action,drop_exten,call_time_id,after_hours_action,after_hours_message_filename,after_hours_exten,after_hours_voicemail,welcome_message_filename,moh_context,onhold_prompt_filename,prompt_interval,agent_alert_exten,agent_alert_delay,default_xfer_group,queue_priority,drop_inbound_group,ingroup_recording_override,ingroup_rec_filename,afterhours_xfer_group,qc_enabled,qc_statuses,qc_shift_id,qc_get_record_launch,qc_show_recording,qc_web_form_address,qc_script,play_place_in_line,play_estimate_hold_time,hold_time_option,hold_time_option_seconds,hold_time_option_exten,hold_time_option_voicemail,hold_time_option_xfer_group,hold_time_option_callback_filename,hold_time_option_callback_list_id,hold_recall_xfer_group,no_delay_call_route,play_welcome_message,answer_sec_pct_rt_stat_one,answer_sec_pct_rt_stat_two,default_group_alias,no_agent_no_queue,no_agent_action,no_agent_action_value,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,ignore_list_script_override,extension_appended_cidname,uniqueid_status_display,uniqueid_status_prefix,hold_time_option_minimum,hold_time_option_press_filename,hold_time_option_callmenu,onhold_prompt_no_block,onhold_prompt_seconds,hold_time_option_no_block,hold_time_option_prompt_seconds,hold_time_second_option,hold_time_third_option,wait_hold_option_priority,wait_time_option,wait_time_second_option,wait_time_third_option,wait_time_option_seconds,wait_time_option_exten,wait_time_option_voicemail,wait_time_option_xfer_group,wait_time_option_callmenu,wait_time_option_callback_filename,wait_time_option_callback_list_id,wait_time_option_press_filename,wait_time_option_no_block,wait_time_option_prompt_seconds,timer_action_destination,calculate_estimated_hold_seconds,add_lead_url,eht_minimum_prompt_filename,eht_minimum_prompt_no_block,eht_minimum_prompt_seconds,on_hook_ring_time,na_call_url,on_hook_cid,action_xfer_cid,drop_callmenu,after_hours_callmenu,user_group,max_calls_method,max_calls_count,max_calls_action,dial_ingroup_cid,group_handling,web_form_address_three,populate_lead_ingroup,drop_lead_reset,after_hours_lead_reset,nanq_lead_reset,wait_time_lead_reset,hold_time_lead_reset,status_group_id,routing_initiated_recordings,on_hook_cid_number from vicidial_inbound_groups where group_id=\"$source_group_id\";"; + $stmt="INSERT INTO vicidial_inbound_groups (group_id,group_name,group_color,active,web_form_address,voicemail_ext,next_agent_call,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,drop_call_seconds,drop_action,drop_exten,call_time_id,after_hours_action,after_hours_message_filename,after_hours_exten,after_hours_voicemail,welcome_message_filename,moh_context,onhold_prompt_filename,prompt_interval,agent_alert_exten,agent_alert_delay,default_xfer_group,queue_priority,drop_inbound_group,ingroup_recording_override,ingroup_rec_filename,afterhours_xfer_group,qc_enabled,qc_statuses,qc_shift_id,qc_get_record_launch,qc_show_recording,qc_web_form_address,qc_script,play_place_in_line,play_estimate_hold_time,hold_time_option,hold_time_option_seconds,hold_time_option_exten,hold_time_option_voicemail,hold_time_option_xfer_group,hold_time_option_callback_filename,hold_time_option_callback_list_id,hold_recall_xfer_group,no_delay_call_route,play_welcome_message,answer_sec_pct_rt_stat_one,answer_sec_pct_rt_stat_two,default_group_alias,no_agent_no_queue,no_agent_action,no_agent_action_value,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,ignore_list_script_override,extension_appended_cidname,uniqueid_status_display,uniqueid_status_prefix,hold_time_option_minimum,hold_time_option_press_filename,hold_time_option_callmenu,onhold_prompt_no_block,onhold_prompt_seconds,hold_time_option_no_block,hold_time_option_prompt_seconds,hold_time_second_option,hold_time_third_option,wait_hold_option_priority,wait_time_option,wait_time_second_option,wait_time_third_option,wait_time_option_seconds,wait_time_option_exten,wait_time_option_voicemail,wait_time_option_xfer_group,wait_time_option_callmenu,wait_time_option_callback_filename,wait_time_option_callback_list_id,wait_time_option_press_filename,wait_time_option_no_block,wait_time_option_prompt_seconds,timer_action_destination,calculate_estimated_hold_seconds,add_lead_url,eht_minimum_prompt_filename,eht_minimum_prompt_no_block,eht_minimum_prompt_seconds,on_hook_ring_time,na_call_url,on_hook_cid,action_xfer_cid,drop_callmenu,after_hours_callmenu,user_group,max_calls_method,max_calls_count,max_calls_action,dial_ingroup_cid,group_handling,web_form_address_three,populate_lead_ingroup,drop_lead_reset,after_hours_lead_reset,nanq_lead_reset,wait_time_lead_reset,hold_time_lead_reset,status_group_id,routing_initiated_recordings,on_hook_cid_number,customer_chat_screen_colors,customer_chat_survey_link,customer_chat_survey_text) SELECT \"$group_id\",\"$group_name\",group_color,\"N\",web_form_address,voicemail_ext,next_agent_call,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,drop_call_seconds,drop_action,drop_exten,call_time_id,after_hours_action,after_hours_message_filename,after_hours_exten,after_hours_voicemail,welcome_message_filename,moh_context,onhold_prompt_filename,prompt_interval,agent_alert_exten,agent_alert_delay,default_xfer_group,queue_priority,drop_inbound_group,ingroup_recording_override,ingroup_rec_filename,afterhours_xfer_group,qc_enabled,qc_statuses,qc_shift_id,qc_get_record_launch,qc_show_recording,qc_web_form_address,qc_script,play_place_in_line,play_estimate_hold_time,hold_time_option,hold_time_option_seconds,hold_time_option_exten,hold_time_option_voicemail,hold_time_option_xfer_group,hold_time_option_callback_filename,hold_time_option_callback_list_id,hold_recall_xfer_group,no_delay_call_route,play_welcome_message,answer_sec_pct_rt_stat_one,answer_sec_pct_rt_stat_two,default_group_alias,no_agent_no_queue,no_agent_action,no_agent_action_value,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,ignore_list_script_override,extension_appended_cidname,uniqueid_status_display,uniqueid_status_prefix,hold_time_option_minimum,hold_time_option_press_filename,hold_time_option_callmenu,onhold_prompt_no_block,onhold_prompt_seconds,hold_time_option_no_block,hold_time_option_prompt_seconds,hold_time_second_option,hold_time_third_option,wait_hold_option_priority,wait_time_option,wait_time_second_option,wait_time_third_option,wait_time_option_seconds,wait_time_option_exten,wait_time_option_voicemail,wait_time_option_xfer_group,wait_time_option_callmenu,wait_time_option_callback_filename,wait_time_option_callback_list_id,wait_time_option_press_filename,wait_time_option_no_block,wait_time_option_prompt_seconds,timer_action_destination,calculate_estimated_hold_seconds,add_lead_url,eht_minimum_prompt_filename,eht_minimum_prompt_no_block,eht_minimum_prompt_seconds,on_hook_ring_time,na_call_url,on_hook_cid,action_xfer_cid,drop_callmenu,after_hours_callmenu,user_group,max_calls_method,max_calls_count,max_calls_action,dial_ingroup_cid,group_handling,web_form_address_three,populate_lead_ingroup,drop_lead_reset,after_hours_lead_reset,nanq_lead_reset,wait_time_lead_reset,hold_time_lead_reset,status_group_id,routing_initiated_recordings,on_hook_cid_number,customer_chat_screen_colors,customer_chat_survey_link,customer_chat_survey_text from vicidial_inbound_groups where group_id=\"$source_group_id\";"; $rslt=mysql_to_mysqli($stmt, $link); $stmtA="INSERT INTO vicidial_campaign_stats (campaign_id) values('$group_id');"; @@ -9927,7 +9939,7 @@ if ( ($ADD==2911) and ($SSallow_emails>0) ) } else { - $stmt="INSERT INTO vicidial_inbound_groups (group_id,group_name,group_color,active,web_form_address,voicemail_ext,next_agent_call,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,drop_call_seconds,drop_action,drop_exten,call_time_id,after_hours_action,after_hours_message_filename,after_hours_exten,after_hours_voicemail,welcome_message_filename,moh_context,onhold_prompt_filename,prompt_interval,agent_alert_exten,agent_alert_delay,default_xfer_group,queue_priority,drop_inbound_group,ingroup_recording_override,ingroup_rec_filename,afterhours_xfer_group,qc_enabled,qc_statuses,qc_shift_id,qc_get_record_launch,qc_show_recording,qc_web_form_address,qc_script,play_place_in_line,play_estimate_hold_time,hold_time_option,hold_time_option_seconds,hold_time_option_exten,hold_time_option_voicemail,hold_time_option_xfer_group,hold_time_option_callback_filename,hold_time_option_callback_list_id,hold_recall_xfer_group,no_delay_call_route,play_welcome_message,answer_sec_pct_rt_stat_one,answer_sec_pct_rt_stat_two,default_group_alias,no_agent_no_queue,no_agent_action,no_agent_action_value,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,ignore_list_script_override,extension_appended_cidname,uniqueid_status_display,uniqueid_status_prefix,hold_time_option_minimum,hold_time_option_press_filename,hold_time_option_callmenu,onhold_prompt_no_block,onhold_prompt_seconds,hold_time_option_no_block,hold_time_option_prompt_seconds,hold_time_second_option,hold_time_third_option,wait_hold_option_priority,wait_time_option,wait_time_second_option,wait_time_third_option,wait_time_option_seconds,wait_time_option_exten,wait_time_option_voicemail,wait_time_option_xfer_group,wait_time_option_callmenu,wait_time_option_callback_filename,wait_time_option_callback_list_id,wait_time_option_press_filename,wait_time_option_no_block,wait_time_option_prompt_seconds,timer_action_destination,calculate_estimated_hold_seconds,add_lead_url,eht_minimum_prompt_filename,eht_minimum_prompt_no_block,eht_minimum_prompt_seconds,on_hook_ring_time,na_call_url,on_hook_cid,action_xfer_cid,drop_callmenu,after_hours_callmenu,user_group,max_calls_method,max_calls_count,max_calls_action,dial_ingroup_cid,group_handling,web_form_address_three,populate_lead_ingroup,drop_lead_reset,after_hours_lead_reset,nanq_lead_reset,wait_time_lead_reset,hold_time_lead_reset,status_group_id,routing_initiated_recordings,on_hook_cid_number) SELECT \"$group_id\",\"$group_name\",group_color,\"N\",web_form_address,voicemail_ext,next_agent_call,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,drop_call_seconds,drop_action,drop_exten,call_time_id,after_hours_action,after_hours_message_filename,after_hours_exten,after_hours_voicemail,welcome_message_filename,moh_context,onhold_prompt_filename,prompt_interval,agent_alert_exten,agent_alert_delay,default_xfer_group,queue_priority,drop_inbound_group,ingroup_recording_override,ingroup_rec_filename,afterhours_xfer_group,qc_enabled,qc_statuses,qc_shift_id,qc_get_record_launch,qc_show_recording,qc_web_form_address,qc_script,play_place_in_line,play_estimate_hold_time,hold_time_option,hold_time_option_seconds,hold_time_option_exten,hold_time_option_voicemail,hold_time_option_xfer_group,hold_time_option_callback_filename,hold_time_option_callback_list_id,hold_recall_xfer_group,no_delay_call_route,play_welcome_message,answer_sec_pct_rt_stat_one,answer_sec_pct_rt_stat_two,default_group_alias,no_agent_no_queue,no_agent_action,no_agent_action_value,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,ignore_list_script_override,extension_appended_cidname,uniqueid_status_display,uniqueid_status_prefix,hold_time_option_minimum,hold_time_option_press_filename,hold_time_option_callmenu,onhold_prompt_no_block,onhold_prompt_seconds,hold_time_option_no_block,hold_time_option_prompt_seconds,hold_time_second_option,hold_time_third_option,wait_hold_option_priority,wait_time_option,wait_time_second_option,wait_time_third_option,wait_time_option_seconds,wait_time_option_exten,wait_time_option_voicemail,wait_time_option_xfer_group,wait_time_option_callmenu,wait_time_option_callback_filename,wait_time_option_callback_list_id,wait_time_option_press_filename,wait_time_option_no_block,wait_time_option_prompt_seconds,timer_action_destination,calculate_estimated_hold_seconds,add_lead_url,eht_minimum_prompt_filename,eht_minimum_prompt_no_block,eht_minimum_prompt_seconds,on_hook_ring_time,na_call_url,on_hook_cid,action_xfer_cid,drop_callmenu,after_hours_callmenu,user_group,max_calls_method,max_calls_count,max_calls_action,dial_ingroup_cid,group_handling,web_form_address_three,populate_lead_ingroup,drop_lead_reset,after_hours_lead_reset,nanq_lead_reset,wait_time_lead_reset,hold_time_lead_reset,status_group_id,routing_initiated_recordings,on_hook_cid_number from vicidial_inbound_groups where group_id=\"$source_group_id\";"; + $stmt="INSERT INTO vicidial_inbound_groups (group_id,group_name,group_color,active,web_form_address,voicemail_ext,next_agent_call,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,drop_call_seconds,drop_action,drop_exten,call_time_id,after_hours_action,after_hours_message_filename,after_hours_exten,after_hours_voicemail,welcome_message_filename,moh_context,onhold_prompt_filename,prompt_interval,agent_alert_exten,agent_alert_delay,default_xfer_group,queue_priority,drop_inbound_group,ingroup_recording_override,ingroup_rec_filename,afterhours_xfer_group,qc_enabled,qc_statuses,qc_shift_id,qc_get_record_launch,qc_show_recording,qc_web_form_address,qc_script,play_place_in_line,play_estimate_hold_time,hold_time_option,hold_time_option_seconds,hold_time_option_exten,hold_time_option_voicemail,hold_time_option_xfer_group,hold_time_option_callback_filename,hold_time_option_callback_list_id,hold_recall_xfer_group,no_delay_call_route,play_welcome_message,answer_sec_pct_rt_stat_one,answer_sec_pct_rt_stat_two,default_group_alias,no_agent_no_queue,no_agent_action,no_agent_action_value,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,ignore_list_script_override,extension_appended_cidname,uniqueid_status_display,uniqueid_status_prefix,hold_time_option_minimum,hold_time_option_press_filename,hold_time_option_callmenu,onhold_prompt_no_block,onhold_prompt_seconds,hold_time_option_no_block,hold_time_option_prompt_seconds,hold_time_second_option,hold_time_third_option,wait_hold_option_priority,wait_time_option,wait_time_second_option,wait_time_third_option,wait_time_option_seconds,wait_time_option_exten,wait_time_option_voicemail,wait_time_option_xfer_group,wait_time_option_callmenu,wait_time_option_callback_filename,wait_time_option_callback_list_id,wait_time_option_press_filename,wait_time_option_no_block,wait_time_option_prompt_seconds,timer_action_destination,calculate_estimated_hold_seconds,add_lead_url,eht_minimum_prompt_filename,eht_minimum_prompt_no_block,eht_minimum_prompt_seconds,on_hook_ring_time,na_call_url,on_hook_cid,action_xfer_cid,drop_callmenu,after_hours_callmenu,user_group,max_calls_method,max_calls_count,max_calls_action,dial_ingroup_cid,group_handling,web_form_address_three,populate_lead_ingroup,drop_lead_reset,after_hours_lead_reset,nanq_lead_reset,wait_time_lead_reset,hold_time_lead_reset,status_group_id,routing_initiated_recordings,on_hook_cid_number,customer_chat_screen_colors,customer_chat_survey_link,customer_chat_survey_text) SELECT \"$group_id\",\"$group_name\",group_color,\"N\",web_form_address,voicemail_ext,next_agent_call,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,drop_call_seconds,drop_action,drop_exten,call_time_id,after_hours_action,after_hours_message_filename,after_hours_exten,after_hours_voicemail,welcome_message_filename,moh_context,onhold_prompt_filename,prompt_interval,agent_alert_exten,agent_alert_delay,default_xfer_group,queue_priority,drop_inbound_group,ingroup_recording_override,ingroup_rec_filename,afterhours_xfer_group,qc_enabled,qc_statuses,qc_shift_id,qc_get_record_launch,qc_show_recording,qc_web_form_address,qc_script,play_place_in_line,play_estimate_hold_time,hold_time_option,hold_time_option_seconds,hold_time_option_exten,hold_time_option_voicemail,hold_time_option_xfer_group,hold_time_option_callback_filename,hold_time_option_callback_list_id,hold_recall_xfer_group,no_delay_call_route,play_welcome_message,answer_sec_pct_rt_stat_one,answer_sec_pct_rt_stat_two,default_group_alias,no_agent_no_queue,no_agent_action,no_agent_action_value,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,ignore_list_script_override,extension_appended_cidname,uniqueid_status_display,uniqueid_status_prefix,hold_time_option_minimum,hold_time_option_press_filename,hold_time_option_callmenu,onhold_prompt_no_block,onhold_prompt_seconds,hold_time_option_no_block,hold_time_option_prompt_seconds,hold_time_second_option,hold_time_third_option,wait_hold_option_priority,wait_time_option,wait_time_second_option,wait_time_third_option,wait_time_option_seconds,wait_time_option_exten,wait_time_option_voicemail,wait_time_option_xfer_group,wait_time_option_callmenu,wait_time_option_callback_filename,wait_time_option_callback_list_id,wait_time_option_press_filename,wait_time_option_no_block,wait_time_option_prompt_seconds,timer_action_destination,calculate_estimated_hold_seconds,add_lead_url,eht_minimum_prompt_filename,eht_minimum_prompt_no_block,eht_minimum_prompt_seconds,on_hook_ring_time,na_call_url,on_hook_cid,action_xfer_cid,drop_callmenu,after_hours_callmenu,user_group,max_calls_method,max_calls_count,max_calls_action,dial_ingroup_cid,group_handling,web_form_address_three,populate_lead_ingroup,drop_lead_reset,after_hours_lead_reset,nanq_lead_reset,wait_time_lead_reset,hold_time_lead_reset,status_group_id,routing_initiated_recordings,on_hook_cid_number,customer_chat_screen_colors,customer_chat_survey_link,customer_chat_survey_text from vicidial_inbound_groups where group_id=\"$source_group_id\";"; $rslt=mysql_to_mysqli($stmt, $link); $stmtA="INSERT INTO vicidial_campaign_stats (campaign_id) values('$group_id');"; @@ -10002,7 +10014,7 @@ if ( ($ADD==29111) and ($SSallow_chats>0) ) } else { - $stmt="INSERT INTO vicidial_inbound_groups (group_id,group_name,group_color,active,web_form_address,voicemail_ext,next_agent_call,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,drop_call_seconds,drop_action,drop_exten,call_time_id,after_hours_action,after_hours_message_filename,after_hours_exten,after_hours_voicemail,welcome_message_filename,moh_context,onhold_prompt_filename,prompt_interval,agent_alert_exten,agent_alert_delay,default_xfer_group,queue_priority,drop_inbound_group,ingroup_recording_override,ingroup_rec_filename,afterhours_xfer_group,qc_enabled,qc_statuses,qc_shift_id,qc_get_record_launch,qc_show_recording,qc_web_form_address,qc_script,play_place_in_line,play_estimate_hold_time,hold_time_option,hold_time_option_seconds,hold_time_option_exten,hold_time_option_voicemail,hold_time_option_xfer_group,hold_time_option_callback_filename,hold_time_option_callback_list_id,hold_recall_xfer_group,no_delay_call_route,play_welcome_message,answer_sec_pct_rt_stat_one,answer_sec_pct_rt_stat_two,default_group_alias,no_agent_no_queue,no_agent_action,no_agent_action_value,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,ignore_list_script_override,extension_appended_cidname,uniqueid_status_display,uniqueid_status_prefix,hold_time_option_minimum,hold_time_option_press_filename,hold_time_option_callmenu,onhold_prompt_no_block,onhold_prompt_seconds,hold_time_option_no_block,hold_time_option_prompt_seconds,hold_time_second_option,hold_time_third_option,wait_hold_option_priority,wait_time_option,wait_time_second_option,wait_time_third_option,wait_time_option_seconds,wait_time_option_exten,wait_time_option_voicemail,wait_time_option_xfer_group,wait_time_option_callmenu,wait_time_option_callback_filename,wait_time_option_callback_list_id,wait_time_option_press_filename,wait_time_option_no_block,wait_time_option_prompt_seconds,timer_action_destination,calculate_estimated_hold_seconds,add_lead_url,eht_minimum_prompt_filename,eht_minimum_prompt_no_block,eht_minimum_prompt_seconds,on_hook_ring_time,na_call_url,on_hook_cid,action_xfer_cid,drop_callmenu,after_hours_callmenu,user_group,max_calls_method,max_calls_count,max_calls_action,dial_ingroup_cid,group_handling,web_form_address_three,populate_lead_ingroup,drop_lead_reset,after_hours_lead_reset,nanq_lead_reset,wait_time_lead_reset,hold_time_lead_reset,status_group_id,routing_initiated_recordings,on_hook_cid_number) SELECT \"$group_id\",\"$group_name\",group_color,\"N\",web_form_address,voicemail_ext,next_agent_call,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,drop_call_seconds,drop_action,drop_exten,call_time_id,after_hours_action,after_hours_message_filename,after_hours_exten,after_hours_voicemail,welcome_message_filename,moh_context,onhold_prompt_filename,prompt_interval,agent_alert_exten,agent_alert_delay,default_xfer_group,queue_priority,drop_inbound_group,ingroup_recording_override,ingroup_rec_filename,afterhours_xfer_group,qc_enabled,qc_statuses,qc_shift_id,qc_get_record_launch,qc_show_recording,qc_web_form_address,qc_script,play_place_in_line,play_estimate_hold_time,hold_time_option,hold_time_option_seconds,hold_time_option_exten,hold_time_option_voicemail,hold_time_option_xfer_group,hold_time_option_callback_filename,hold_time_option_callback_list_id,hold_recall_xfer_group,no_delay_call_route,play_welcome_message,answer_sec_pct_rt_stat_one,answer_sec_pct_rt_stat_two,default_group_alias,no_agent_no_queue,no_agent_action,no_agent_action_value,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,ignore_list_script_override,extension_appended_cidname,uniqueid_status_display,uniqueid_status_prefix,hold_time_option_minimum,hold_time_option_press_filename,hold_time_option_callmenu,onhold_prompt_no_block,onhold_prompt_seconds,hold_time_option_no_block,hold_time_option_prompt_seconds,hold_time_second_option,hold_time_third_option,wait_hold_option_priority,wait_time_option,wait_time_second_option,wait_time_third_option,wait_time_option_seconds,wait_time_option_exten,wait_time_option_voicemail,wait_time_option_xfer_group,wait_time_option_callmenu,wait_time_option_callback_filename,wait_time_option_callback_list_id,wait_time_option_press_filename,wait_time_option_no_block,wait_time_option_prompt_seconds,timer_action_destination,calculate_estimated_hold_seconds,add_lead_url,eht_minimum_prompt_filename,eht_minimum_prompt_no_block,eht_minimum_prompt_seconds,on_hook_ring_time,na_call_url,on_hook_cid,action_xfer_cid,drop_callmenu,after_hours_callmenu,user_group,max_calls_method,max_calls_count,max_calls_action,dial_ingroup_cid,group_handling,web_form_address_three,populate_lead_ingroup,drop_lead_reset,after_hours_lead_reset,nanq_lead_reset,wait_time_lead_reset,hold_time_lead_reset,status_group_id,routing_initiated_recordings,on_hook_cid_number from vicidial_inbound_groups where group_id=\"$source_group_id\";"; + $stmt="INSERT INTO vicidial_inbound_groups (group_id,group_name,group_color,active,web_form_address,voicemail_ext,next_agent_call,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,drop_call_seconds,drop_action,drop_exten,call_time_id,after_hours_action,after_hours_message_filename,after_hours_exten,after_hours_voicemail,welcome_message_filename,moh_context,onhold_prompt_filename,prompt_interval,agent_alert_exten,agent_alert_delay,default_xfer_group,queue_priority,drop_inbound_group,ingroup_recording_override,ingroup_rec_filename,afterhours_xfer_group,qc_enabled,qc_statuses,qc_shift_id,qc_get_record_launch,qc_show_recording,qc_web_form_address,qc_script,play_place_in_line,play_estimate_hold_time,hold_time_option,hold_time_option_seconds,hold_time_option_exten,hold_time_option_voicemail,hold_time_option_xfer_group,hold_time_option_callback_filename,hold_time_option_callback_list_id,hold_recall_xfer_group,no_delay_call_route,play_welcome_message,answer_sec_pct_rt_stat_one,answer_sec_pct_rt_stat_two,default_group_alias,no_agent_no_queue,no_agent_action,no_agent_action_value,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,ignore_list_script_override,extension_appended_cidname,uniqueid_status_display,uniqueid_status_prefix,hold_time_option_minimum,hold_time_option_press_filename,hold_time_option_callmenu,onhold_prompt_no_block,onhold_prompt_seconds,hold_time_option_no_block,hold_time_option_prompt_seconds,hold_time_second_option,hold_time_third_option,wait_hold_option_priority,wait_time_option,wait_time_second_option,wait_time_third_option,wait_time_option_seconds,wait_time_option_exten,wait_time_option_voicemail,wait_time_option_xfer_group,wait_time_option_callmenu,wait_time_option_callback_filename,wait_time_option_callback_list_id,wait_time_option_press_filename,wait_time_option_no_block,wait_time_option_prompt_seconds,timer_action_destination,calculate_estimated_hold_seconds,add_lead_url,eht_minimum_prompt_filename,eht_minimum_prompt_no_block,eht_minimum_prompt_seconds,on_hook_ring_time,na_call_url,on_hook_cid,action_xfer_cid,drop_callmenu,after_hours_callmenu,user_group,max_calls_method,max_calls_count,max_calls_action,dial_ingroup_cid,group_handling,web_form_address_three,populate_lead_ingroup,drop_lead_reset,after_hours_lead_reset,nanq_lead_reset,wait_time_lead_reset,hold_time_lead_reset,status_group_id,routing_initiated_recordings,on_hook_cid_number,customer_chat_screen_colors,customer_chat_survey_link,customer_chat_survey_text) SELECT \"$group_id\",\"$group_name\",group_color,\"N\",web_form_address,voicemail_ext,next_agent_call,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,drop_call_seconds,drop_action,drop_exten,call_time_id,after_hours_action,after_hours_message_filename,after_hours_exten,after_hours_voicemail,welcome_message_filename,moh_context,onhold_prompt_filename,prompt_interval,agent_alert_exten,agent_alert_delay,default_xfer_group,queue_priority,drop_inbound_group,ingroup_recording_override,ingroup_rec_filename,afterhours_xfer_group,qc_enabled,qc_statuses,qc_shift_id,qc_get_record_launch,qc_show_recording,qc_web_form_address,qc_script,play_place_in_line,play_estimate_hold_time,hold_time_option,hold_time_option_seconds,hold_time_option_exten,hold_time_option_voicemail,hold_time_option_xfer_group,hold_time_option_callback_filename,hold_time_option_callback_list_id,hold_recall_xfer_group,no_delay_call_route,play_welcome_message,answer_sec_pct_rt_stat_one,answer_sec_pct_rt_stat_two,default_group_alias,no_agent_no_queue,no_agent_action,no_agent_action_value,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,ignore_list_script_override,extension_appended_cidname,uniqueid_status_display,uniqueid_status_prefix,hold_time_option_minimum,hold_time_option_press_filename,hold_time_option_callmenu,onhold_prompt_no_block,onhold_prompt_seconds,hold_time_option_no_block,hold_time_option_prompt_seconds,hold_time_second_option,hold_time_third_option,wait_hold_option_priority,wait_time_option,wait_time_second_option,wait_time_third_option,wait_time_option_seconds,wait_time_option_exten,wait_time_option_voicemail,wait_time_option_xfer_group,wait_time_option_callmenu,wait_time_option_callback_filename,wait_time_option_callback_list_id,wait_time_option_press_filename,wait_time_option_no_block,wait_time_option_prompt_seconds,timer_action_destination,calculate_estimated_hold_seconds,add_lead_url,eht_minimum_prompt_filename,eht_minimum_prompt_no_block,eht_minimum_prompt_seconds,on_hook_ring_time,na_call_url,on_hook_cid,action_xfer_cid,drop_callmenu,after_hours_callmenu,user_group,max_calls_method,max_calls_count,max_calls_action,dial_ingroup_cid,group_handling,web_form_address_three,populate_lead_ingroup,drop_lead_reset,after_hours_lead_reset,nanq_lead_reset,wait_time_lead_reset,hold_time_lead_reset,status_group_id,routing_initiated_recordings,on_hook_cid_number,customer_chat_screen_colors,customer_chat_survey_link,customer_chat_survey_text from vicidial_inbound_groups where group_id=\"$source_group_id\";"; $rslt=mysql_to_mysqli($stmt, $link); $stmtA="INSERT INTO vicidial_campaign_stats (campaign_id) values('$group_id');"; @@ -14067,7 +14079,7 @@ if ($ADD==4111 || $ADD==4811 || $ADD==4911) echo "
    "._QXZ("GROUP MODIFIED ").": $group_id\n"; - $stmt="UPDATE vicidial_inbound_groups set group_name='$group_name', group_color='$group_color', active='$active', web_form_address='" . mysqli_real_escape_string($link, $web_form_address) . "', voicemail_ext='$voicemail_ext', next_agent_call='$next_agent_call', fronter_display='$fronter_display', ingroup_script='$script_id', get_call_launch='$get_call_launch', group_handling='$group_handling', xferconf_a_dtmf='$xferconf_a_dtmf',xferconf_a_number='$xferconf_a_number', xferconf_b_dtmf='$xferconf_b_dtmf',xferconf_b_number='$xferconf_b_number',drop_action='$drop_action',drop_call_seconds='$drop_call_seconds',drop_exten='$drop_exten',call_time_id='$call_time_id',after_hours_action='$after_hours_action',after_hours_message_filename='$after_hours_message_filename',after_hours_exten='$after_hours_exten',after_hours_voicemail='$after_hours_voicemail',welcome_message_filename='$welcome_message_filename',moh_context='$moh_context',onhold_prompt_filename='$onhold_prompt_filename',prompt_interval='$prompt_interval',agent_alert_exten='$agent_alert_exten',agent_alert_delay='$agent_alert_delay',default_xfer_group='$default_xfer_group',queue_priority='$queue_priority',drop_inbound_group='$drop_inbound_group',ingroup_recording_override='$ingroup_recording_override',ingroup_rec_filename='$ingroup_rec_filename',afterhours_xfer_group='$afterhours_xfer_group',qc_enabled='$qc_enabled',qc_statuses='$QC_statuses',qc_shift_id='$qc_shift_id',qc_get_record_launch='$qc_get_record_launch',qc_show_recording='$qc_show_recording',qc_web_form_address='$qc_web_form_address',qc_script='$qc_script',play_place_in_line='$play_place_in_line',play_estimate_hold_time='$play_estimate_hold_time',hold_time_option='$hold_time_option',hold_time_option_seconds='$hold_time_option_seconds',hold_time_option_exten='$hold_time_option_exten',hold_time_option_voicemail='$hold_time_option_voicemail',hold_time_option_xfer_group='$hold_time_option_xfer_group',hold_time_option_callback_filename='$hold_time_option_callback_filename',hold_time_option_callback_list_id='$hold_time_option_callback_list_id',hold_recall_xfer_group='$hold_recall_xfer_group',no_delay_call_route='$no_delay_call_route',play_welcome_message='$play_welcome_message',answer_sec_pct_rt_stat_one='$answer_sec_pct_rt_stat_one',answer_sec_pct_rt_stat_two='$answer_sec_pct_rt_stat_two',default_group_alias='$default_group_alias',no_agent_no_queue='$no_agent_no_queue',no_agent_action='$no_agent_action',no_agent_action_value='$no_agent_action_value',web_form_address_two='" . mysqli_real_escape_string($link, $web_form_address_two) . "',timer_action='$timer_action',timer_action_message='$timer_action_message',timer_action_seconds='$timer_action_seconds',start_call_url='" . mysqli_real_escape_string($link, $start_call_url) . "',dispo_call_url='" . mysqli_real_escape_string($link, $dispo_call_url) . "',xferconf_c_number='$xferconf_c_number',xferconf_d_number='$xferconf_d_number',xferconf_e_number='$xferconf_e_number',ignore_list_script_override='$ignore_list_script_override',extension_appended_cidname='$extension_appended_cidname',uniqueid_status_display='$uniqueid_status_display',uniqueid_status_prefix='$uniqueid_status_prefix',hold_time_option_minimum='$hold_time_option_minimum',hold_time_option_press_filename='$hold_time_option_press_filename',hold_time_option_callmenu='$hold_time_option_callmenu',onhold_prompt_no_block='$onhold_prompt_no_block',onhold_prompt_seconds='$onhold_prompt_seconds',hold_time_option_no_block='$hold_time_option_no_block',hold_time_option_prompt_seconds='$hold_time_option_prompt_seconds',hold_time_second_option='$hold_time_second_option',hold_time_third_option='$hold_time_third_option',wait_hold_option_priority='$wait_hold_option_priority',wait_time_option='$wait_time_option',wait_time_second_option='$wait_time_second_option',wait_time_third_option='$wait_time_third_option',wait_time_option_seconds='$wait_time_option_seconds',wait_time_option_exten='$wait_time_option_exten',wait_time_option_voicemail='$wait_time_option_voicemail',wait_time_option_xfer_group='$wait_time_option_xfer_group',wait_time_option_callmenu='$wait_time_option_callmenu',wait_time_option_callback_filename='$wait_time_option_callback_filename',wait_time_option_callback_list_id='$wait_time_option_callback_list_id',wait_time_option_press_filename='$wait_time_option_press_filename',wait_time_option_no_block='$wait_time_option_no_block',wait_time_option_prompt_seconds='$wait_time_option_prompt_seconds',timer_action_destination='$timer_action_destination',calculate_estimated_hold_seconds='$calculate_estimated_hold_seconds',add_lead_url='" . mysqli_real_escape_string($link, $add_lead_url) . "',eht_minimum_prompt_filename='$eht_minimum_prompt_filename',eht_minimum_prompt_no_block='$eht_minimum_prompt_no_block',eht_minimum_prompt_seconds='$eht_minimum_prompt_seconds',on_hook_ring_time='$on_hook_ring_time',na_call_url='" . mysqli_real_escape_string($link, $na_call_url) . "',on_hook_cid='$on_hook_cid',action_xfer_cid='$action_xfer_cid',drop_callmenu='$drop_callmenu',after_hours_callmenu='$after_hours_callmenu',user_group='$user_group',max_calls_method='$max_calls_method',max_calls_count='$max_calls_count',max_calls_action='$max_calls_action',dial_ingroup_cid='$dial_ingroup_cid',web_form_address_three='" . mysqli_real_escape_string($link, $web_form_address_three) . "',populate_lead_ingroup='$populate_lead_ingroup',drop_lead_reset='$drop_lead_reset',after_hours_lead_reset='$after_hours_lead_reset',nanq_lead_reset='$nanq_lead_reset',wait_time_lead_reset='$wait_time_lead_reset',hold_time_lead_reset='$hold_time_lead_reset',status_group_id='$status_group_id',routing_initiated_recordings='$routing_initiated_recordings',on_hook_cid_number='$on_hook_cid_number' where group_id='$group_id';"; + $stmt="UPDATE vicidial_inbound_groups set group_name='$group_name', group_color='$group_color', active='$active', web_form_address='" . mysqli_real_escape_string($link, $web_form_address) . "', voicemail_ext='$voicemail_ext', next_agent_call='$next_agent_call', fronter_display='$fronter_display', ingroup_script='$script_id', get_call_launch='$get_call_launch', group_handling='$group_handling', xferconf_a_dtmf='$xferconf_a_dtmf',xferconf_a_number='$xferconf_a_number', xferconf_b_dtmf='$xferconf_b_dtmf',xferconf_b_number='$xferconf_b_number',drop_action='$drop_action',drop_call_seconds='$drop_call_seconds',drop_exten='$drop_exten',call_time_id='$call_time_id',after_hours_action='$after_hours_action',after_hours_message_filename='$after_hours_message_filename',after_hours_exten='$after_hours_exten',after_hours_voicemail='$after_hours_voicemail',welcome_message_filename='$welcome_message_filename',moh_context='$moh_context',onhold_prompt_filename='$onhold_prompt_filename',prompt_interval='$prompt_interval',agent_alert_exten='$agent_alert_exten',agent_alert_delay='$agent_alert_delay',default_xfer_group='$default_xfer_group',queue_priority='$queue_priority',drop_inbound_group='$drop_inbound_group',ingroup_recording_override='$ingroup_recording_override',ingroup_rec_filename='$ingroup_rec_filename',afterhours_xfer_group='$afterhours_xfer_group',qc_enabled='$qc_enabled',qc_statuses='$QC_statuses',qc_shift_id='$qc_shift_id',qc_get_record_launch='$qc_get_record_launch',qc_show_recording='$qc_show_recording',qc_web_form_address='$qc_web_form_address',qc_script='$qc_script',play_place_in_line='$play_place_in_line',play_estimate_hold_time='$play_estimate_hold_time',hold_time_option='$hold_time_option',hold_time_option_seconds='$hold_time_option_seconds',hold_time_option_exten='$hold_time_option_exten',hold_time_option_voicemail='$hold_time_option_voicemail',hold_time_option_xfer_group='$hold_time_option_xfer_group',hold_time_option_callback_filename='$hold_time_option_callback_filename',hold_time_option_callback_list_id='$hold_time_option_callback_list_id',hold_recall_xfer_group='$hold_recall_xfer_group',no_delay_call_route='$no_delay_call_route',play_welcome_message='$play_welcome_message',answer_sec_pct_rt_stat_one='$answer_sec_pct_rt_stat_one',answer_sec_pct_rt_stat_two='$answer_sec_pct_rt_stat_two',default_group_alias='$default_group_alias',no_agent_no_queue='$no_agent_no_queue',no_agent_action='$no_agent_action',no_agent_action_value='$no_agent_action_value',web_form_address_two='" . mysqli_real_escape_string($link, $web_form_address_two) . "',timer_action='$timer_action',timer_action_message='$timer_action_message',timer_action_seconds='$timer_action_seconds',start_call_url='" . mysqli_real_escape_string($link, $start_call_url) . "',dispo_call_url='" . mysqli_real_escape_string($link, $dispo_call_url) . "',xferconf_c_number='$xferconf_c_number',xferconf_d_number='$xferconf_d_number',xferconf_e_number='$xferconf_e_number',ignore_list_script_override='$ignore_list_script_override',extension_appended_cidname='$extension_appended_cidname',uniqueid_status_display='$uniqueid_status_display',uniqueid_status_prefix='$uniqueid_status_prefix',hold_time_option_minimum='$hold_time_option_minimum',hold_time_option_press_filename='$hold_time_option_press_filename',hold_time_option_callmenu='$hold_time_option_callmenu',onhold_prompt_no_block='$onhold_prompt_no_block',onhold_prompt_seconds='$onhold_prompt_seconds',hold_time_option_no_block='$hold_time_option_no_block',hold_time_option_prompt_seconds='$hold_time_option_prompt_seconds',hold_time_second_option='$hold_time_second_option',hold_time_third_option='$hold_time_third_option',wait_hold_option_priority='$wait_hold_option_priority',wait_time_option='$wait_time_option',wait_time_second_option='$wait_time_second_option',wait_time_third_option='$wait_time_third_option',wait_time_option_seconds='$wait_time_option_seconds',wait_time_option_exten='$wait_time_option_exten',wait_time_option_voicemail='$wait_time_option_voicemail',wait_time_option_xfer_group='$wait_time_option_xfer_group',wait_time_option_callmenu='$wait_time_option_callmenu',wait_time_option_callback_filename='$wait_time_option_callback_filename',wait_time_option_callback_list_id='$wait_time_option_callback_list_id',wait_time_option_press_filename='$wait_time_option_press_filename',wait_time_option_no_block='$wait_time_option_no_block',wait_time_option_prompt_seconds='$wait_time_option_prompt_seconds',timer_action_destination='$timer_action_destination',calculate_estimated_hold_seconds='$calculate_estimated_hold_seconds',add_lead_url='" . mysqli_real_escape_string($link, $add_lead_url) . "',eht_minimum_prompt_filename='$eht_minimum_prompt_filename',eht_minimum_prompt_no_block='$eht_minimum_prompt_no_block',eht_minimum_prompt_seconds='$eht_minimum_prompt_seconds',on_hook_ring_time='$on_hook_ring_time',na_call_url='" . mysqli_real_escape_string($link, $na_call_url) . "',on_hook_cid='$on_hook_cid',action_xfer_cid='$action_xfer_cid',drop_callmenu='$drop_callmenu',after_hours_callmenu='$after_hours_callmenu',user_group='$user_group',max_calls_method='$max_calls_method',max_calls_count='$max_calls_count',max_calls_action='$max_calls_action',dial_ingroup_cid='$dial_ingroup_cid',web_form_address_three='" . mysqli_real_escape_string($link, $web_form_address_three) . "',populate_lead_ingroup='$populate_lead_ingroup',drop_lead_reset='$drop_lead_reset',after_hours_lead_reset='$after_hours_lead_reset',nanq_lead_reset='$nanq_lead_reset',wait_time_lead_reset='$wait_time_lead_reset',hold_time_lead_reset='$hold_time_lead_reset',status_group_id='$status_group_id',routing_initiated_recordings='$routing_initiated_recordings',on_hook_cid_number='$on_hook_cid_number',customer_chat_screen_colors='$customer_chat_screen_colors',customer_chat_survey_link='" . mysqli_real_escape_string($link, $customer_chat_survey_link) . "',customer_chat_survey_text='$customer_chat_survey_text' where group_id='$group_id';"; $rslt=mysql_to_mysqli($stmt, $link); switch($group_handling) @@ -24863,7 +24875,7 @@ if ($ADD==3111) echo "
    \n"; echo ""; - $stmt="SELECT group_id,group_name,group_color,active,web_form_address,voicemail_ext,next_agent_call,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,drop_call_seconds,drop_action,drop_exten,call_time_id,after_hours_action,after_hours_message_filename,after_hours_exten,after_hours_voicemail,welcome_message_filename,moh_context,onhold_prompt_filename,prompt_interval,agent_alert_exten,agent_alert_delay,default_xfer_group,queue_priority,drop_inbound_group,ingroup_recording_override,ingroup_rec_filename,afterhours_xfer_group,qc_enabled,qc_statuses,qc_shift_id,qc_get_record_launch,qc_show_recording,qc_web_form_address,qc_script,play_place_in_line,play_estimate_hold_time,hold_time_option,hold_time_option_seconds,hold_time_option_exten,hold_time_option_voicemail,hold_time_option_xfer_group,hold_time_option_callback_filename,hold_time_option_callback_list_id,hold_recall_xfer_group,no_delay_call_route,play_welcome_message,answer_sec_pct_rt_stat_one,answer_sec_pct_rt_stat_two,default_group_alias,no_agent_no_queue,no_agent_action,no_agent_action_value,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,ignore_list_script_override,extension_appended_cidname,uniqueid_status_display,uniqueid_status_prefix,hold_time_option_minimum,hold_time_option_press_filename,hold_time_option_callmenu,onhold_prompt_no_block,onhold_prompt_seconds,hold_time_option_no_block,hold_time_option_prompt_seconds,hold_time_second_option,hold_time_third_option,wait_hold_option_priority,wait_time_option,wait_time_second_option,wait_time_third_option,wait_time_option_seconds,wait_time_option_exten,wait_time_option_voicemail,wait_time_option_xfer_group,wait_time_option_callmenu,wait_time_option_callback_filename,wait_time_option_callback_list_id,wait_time_option_press_filename,wait_time_option_no_block,wait_time_option_prompt_seconds,timer_action_destination,calculate_estimated_hold_seconds,add_lead_url,eht_minimum_prompt_filename, eht_minimum_prompt_no_block,eht_minimum_prompt_seconds,on_hook_ring_time,na_call_url,on_hook_cid,group_calldate,action_xfer_cid,drop_callmenu,after_hours_callmenu,user_group,max_calls_method,max_calls_count,max_calls_action,dial_ingroup_cid,group_handling,web_form_address_three,populate_lead_ingroup,drop_lead_reset,after_hours_lead_reset,nanq_lead_reset,wait_time_lead_reset,hold_time_lead_reset,status_group_id,routing_initiated_recordings,on_hook_cid_number from vicidial_inbound_groups where group_id='$group_id' $LOGadmin_viewable_groupsSQL;"; + $stmt="SELECT group_id,group_name,group_color,active,web_form_address,voicemail_ext,next_agent_call,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,drop_call_seconds,drop_action,drop_exten,call_time_id,after_hours_action,after_hours_message_filename,after_hours_exten,after_hours_voicemail,welcome_message_filename,moh_context,onhold_prompt_filename,prompt_interval,agent_alert_exten,agent_alert_delay,default_xfer_group,queue_priority,drop_inbound_group,ingroup_recording_override,ingroup_rec_filename,afterhours_xfer_group,qc_enabled,qc_statuses,qc_shift_id,qc_get_record_launch,qc_show_recording,qc_web_form_address,qc_script,play_place_in_line,play_estimate_hold_time,hold_time_option,hold_time_option_seconds,hold_time_option_exten,hold_time_option_voicemail,hold_time_option_xfer_group,hold_time_option_callback_filename,hold_time_option_callback_list_id,hold_recall_xfer_group,no_delay_call_route,play_welcome_message,answer_sec_pct_rt_stat_one,answer_sec_pct_rt_stat_two,default_group_alias,no_agent_no_queue,no_agent_action,no_agent_action_value,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,ignore_list_script_override,extension_appended_cidname,uniqueid_status_display,uniqueid_status_prefix,hold_time_option_minimum,hold_time_option_press_filename,hold_time_option_callmenu,onhold_prompt_no_block,onhold_prompt_seconds,hold_time_option_no_block,hold_time_option_prompt_seconds,hold_time_second_option,hold_time_third_option,wait_hold_option_priority,wait_time_option,wait_time_second_option,wait_time_third_option,wait_time_option_seconds,wait_time_option_exten,wait_time_option_voicemail,wait_time_option_xfer_group,wait_time_option_callmenu,wait_time_option_callback_filename,wait_time_option_callback_list_id,wait_time_option_press_filename,wait_time_option_no_block,wait_time_option_prompt_seconds,timer_action_destination,calculate_estimated_hold_seconds,add_lead_url,eht_minimum_prompt_filename, eht_minimum_prompt_no_block,eht_minimum_prompt_seconds,on_hook_ring_time,na_call_url,on_hook_cid,group_calldate,action_xfer_cid,drop_callmenu,after_hours_callmenu,user_group,max_calls_method,max_calls_count,max_calls_action,dial_ingroup_cid,group_handling,web_form_address_three,populate_lead_ingroup,drop_lead_reset,after_hours_lead_reset,nanq_lead_reset,wait_time_lead_reset,hold_time_lead_reset,status_group_id,routing_initiated_recordings,on_hook_cid_number,customer_chat_screen_colors,customer_chat_survey_link,customer_chat_survey_text from vicidial_inbound_groups where group_id='$group_id' $LOGadmin_viewable_groupsSQL;"; $rslt=mysql_to_mysqli($stmt, $link); $row=mysqli_fetch_row($rslt); @@ -24991,6 +25003,9 @@ if ($ADD==3111) $status_group_id = $row[121]; $routing_initiated_recordings = $row[122]; $on_hook_cid_number = $row[123]; + $customer_chat_screen_colors = $row[124]; + $customer_chat_survey_link = $row[125]; + $customer_chat_survey_text = $row[126]; ##### get callmenu listings for dynamic pulldown @@ -26802,7 +26817,7 @@ if ($ADD==3911) echo "\n"; + echo "\n"; + + echo "\n"; + + echo "\n"; + echo "\n"; echo "\n"; diff --git a/agc_2-X/trunk/www/vicidial/help.php b/agc_2-X/trunk/www/vicidial/help.php index c33747bb..a4723489 100644 --- a/agc_2-X/trunk/www/vicidial/help.php +++ b/agc_2-X/trunk/www/vicidial/help.php @@ -93,6 +93,7 @@ # 160621-1735 - Added agent_screen_colors and script_remove_js entries # 160731-1030 - Added manual_auto_next, manual_auto_show, user_nickname entries # 160731-2053 - Added POSTx description for recording filenames +# 160809-1351 - Added customer_chat_screen_colors and customer_chat_survey_link/text entries # @@ -2804,6 +2805,21 @@ if ($SSqc_features_active > 0)
    - +
    + +
    + - + +
    +
    +
    + - + +
    +
    +
    + - +

    @@ -3506,7 +3522,7 @@ if ($SSqc_features_active > 0)
    - -
    Hello, can I speak with --A--first_name--B-- --A--last_name--B-- please? Well hello --A--title--B-- --A--last_name--B-- how are you today?

    This would read----

    Hello, can I speak with John Doe please? Well hello Mr. Doe how are you today?

    You can also use an iframe to load a separate window within the SCRIPT tab, here is an example with prepopulated variables:"); ?> + -
    Hello, can I speak with --A--first_name--B-- --A--last_name--B-- please? Well hello --A--title--B-- --A--last_name--B-- how are you today?

    This would read----

    Hello, can I speak with John Doe please? Well hello Mr. Doe how are you today?

    You can also use an iframe to load a separate window within the SCRIPT tab, here is an example with prepopulated variables:"); ?>
    <iframe src="http://www.sample.net/test_output.php?lead_id=--A--lead_id--B--&vendor_id=--A--vendor_lead_code--B--&list_id=--A--list_id--B--&gmt_offset_now=--A--gmt_offset_now--B--&phone_code=--A--phone_code--B--&phone_number=--A--phone_number--B--&title=--A--title--B--&first_name=--A--first_name--B--&middle_initial=--A--middle_initial--B--&last_name=--A--last_name--B--&address1=--A--address1--B--&address2=--A--address2--B--&address3=--A--address3--B--&city=--A--city--B--&state=--A--state--B--&province=--A--province--B--&postal_code=--A--postal_code--B--&country_code=--A--country_code--B--&gender=--A--gender--B--&date_of_birth=--A--date_of_birth--B--&alt_phone=--A--alt_phone--B--&email=--A--email--B--&security_phrase=--A--security_phrase--B--&comments=--A--comments--B--&user=--A--user--B--&campaign=--A--campaign--B--&phone_login=--A--phone_login--B--&fronter=--A--fronter--B--&closer=--A--user--B--&group=--A--group--B--&channel_group=--A--group--B--&SQLdate=--A--SQLdate--B--&epoch=--A--epoch--B--&uniqueid=--A--uniqueid--B--&customer_zap_channel=--A--customer_zap_channel--B--&server_ip=--A--server_ip--B--&SIPexten=--A--SIPexten--B--&session_id=--A--session_id--B--&dialed_number=--A--dialed_number--B--&dialed_label=--A--dialed_label--B--&rank=--A--rank--B--&owner=--A--owner--B--&phone=--A--phone--B--&camp_script=--A--camp_script--B--&in_script=--A--in_script--B--&script_width=--A--script_width--B--&script_height=--A--script_height--B--&recording_filename=--A--recording_filename--B--&recording_id=--A--recording_id--B--&user_custom_one=--A--user_custom_one--B--&user_custom_two=--A--user_custom_two--B--&user_custom_three=--A--user_custom_three--B--&user_custom_four=--A--user_custom_four--B--&user_custom_five=--A--user_custom_five--B--&preset_number_a=--A--preset_number_a--B--&preset_number_b=--A--preset_number_b--B--&preset_number_c=--A--preset_number_c--B--&preset_number_d=--A--preset_number_d--B--&preset_number_e=--A--preset_number_e--B--&preset_number_f=--A--preset_number_f--B--&preset_dtmf_a=--A--preset_dtmf_a--B--&preset_dtmf_b=--A--preset_dtmf_b--B--&did_id=--A--did_id--B--&did_extension=--A--did_extension--B--&did_pattern=--A--did_pattern--B--&did_description=--A--did_description--B--&closecallid=--A--closecallid--B--&xfercallid=--A--xfercallid--B--&agent_log_id=--A--agent_log_id--B--&entry_list_id=--A--entry_list_id--B--&call_id=--A--call_id--B--&&user_group=--A--user_group--B--&&" style="width:580;height:290;background-color:transparent;" scrolling="auto" frameborder="0" allowtransparency="true" id="popupFrame" name="popupFrame" width="460" height="290" STYLE="z-index:17">
    \n"; echo ""; - $stmt="SELECT group_id,group_name,group_color,active,web_form_address,voicemail_ext,next_agent_call,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,drop_call_seconds,drop_action,drop_exten,call_time_id,after_hours_action,after_hours_message_filename,after_hours_exten,after_hours_voicemail,welcome_message_filename,moh_context,onhold_prompt_filename,prompt_interval,agent_alert_exten,agent_alert_delay,default_xfer_group,queue_priority,drop_inbound_group,ingroup_recording_override,ingroup_rec_filename,afterhours_xfer_group,qc_enabled,qc_statuses,qc_shift_id,qc_get_record_launch,qc_show_recording,qc_web_form_address,qc_script,play_place_in_line,play_estimate_hold_time,hold_time_option,hold_time_option_seconds,hold_time_option_exten,hold_time_option_voicemail,hold_time_option_xfer_group,hold_time_option_callback_filename,hold_time_option_callback_list_id,hold_recall_xfer_group,no_delay_call_route,play_welcome_message,answer_sec_pct_rt_stat_one,answer_sec_pct_rt_stat_two,default_group_alias,no_agent_no_queue,no_agent_action,no_agent_action_value,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,ignore_list_script_override,extension_appended_cidname,uniqueid_status_display,uniqueid_status_prefix,hold_time_option_minimum,hold_time_option_press_filename,hold_time_option_callmenu,onhold_prompt_no_block,onhold_prompt_seconds,hold_time_option_no_block,hold_time_option_prompt_seconds,hold_time_second_option,hold_time_third_option,wait_hold_option_priority,wait_time_option,wait_time_second_option,wait_time_third_option,wait_time_option_seconds,wait_time_option_exten,wait_time_option_voicemail,wait_time_option_xfer_group,wait_time_option_callmenu,wait_time_option_callback_filename,wait_time_option_callback_list_id,wait_time_option_press_filename,wait_time_option_no_block,wait_time_option_prompt_seconds,timer_action_destination,calculate_estimated_hold_seconds,add_lead_url,eht_minimum_prompt_filename, eht_minimum_prompt_no_block,eht_minimum_prompt_seconds,on_hook_ring_time,na_call_url,on_hook_cid,group_calldate,action_xfer_cid,drop_callmenu,after_hours_callmenu,user_group,max_calls_method,max_calls_count,max_calls_action,dial_ingroup_cid,group_handling,web_form_address_three,status_group_id from vicidial_inbound_groups where group_id='$group_id' $LOGadmin_viewable_groupsSQL;"; + $stmt="SELECT group_id,group_name,group_color,active,web_form_address,voicemail_ext,next_agent_call,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,drop_call_seconds,drop_action,drop_exten,call_time_id,after_hours_action,after_hours_message_filename,after_hours_exten,after_hours_voicemail,welcome_message_filename,moh_context,onhold_prompt_filename,prompt_interval,agent_alert_exten,agent_alert_delay,default_xfer_group,queue_priority,drop_inbound_group,ingroup_recording_override,ingroup_rec_filename,afterhours_xfer_group,qc_enabled,qc_statuses,qc_shift_id,qc_get_record_launch,qc_show_recording,qc_web_form_address,qc_script,play_place_in_line,play_estimate_hold_time,hold_time_option,hold_time_option_seconds,hold_time_option_exten,hold_time_option_voicemail,hold_time_option_xfer_group,hold_time_option_callback_filename,hold_time_option_callback_list_id,hold_recall_xfer_group,no_delay_call_route,play_welcome_message,answer_sec_pct_rt_stat_one,answer_sec_pct_rt_stat_two,default_group_alias,no_agent_no_queue,no_agent_action,no_agent_action_value,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,ignore_list_script_override,extension_appended_cidname,uniqueid_status_display,uniqueid_status_prefix,hold_time_option_minimum,hold_time_option_press_filename,hold_time_option_callmenu,onhold_prompt_no_block,onhold_prompt_seconds,hold_time_option_no_block,hold_time_option_prompt_seconds,hold_time_second_option,hold_time_third_option,wait_hold_option_priority,wait_time_option,wait_time_second_option,wait_time_third_option,wait_time_option_seconds,wait_time_option_exten,wait_time_option_voicemail,wait_time_option_xfer_group,wait_time_option_callmenu,wait_time_option_callback_filename,wait_time_option_callback_list_id,wait_time_option_press_filename,wait_time_option_no_block,wait_time_option_prompt_seconds,timer_action_destination,calculate_estimated_hold_seconds,add_lead_url,eht_minimum_prompt_filename, eht_minimum_prompt_no_block,eht_minimum_prompt_seconds,on_hook_ring_time,na_call_url,on_hook_cid,group_calldate,action_xfer_cid,drop_callmenu,after_hours_callmenu,user_group,max_calls_method,max_calls_count,max_calls_action,dial_ingroup_cid,group_handling,web_form_address_three,status_group_id,customer_chat_screen_colors,customer_chat_survey_link,customer_chat_survey_text from vicidial_inbound_groups where group_id='$group_id' $LOGadmin_viewable_groupsSQL;"; $rslt=mysql_to_mysqli($stmt, $link); $row=mysqli_fetch_row($rslt); @@ -26913,6 +26928,9 @@ if ($ADD==3911) $group_handling = $row[113]; $web_form_address_three = $row[114]; $status_group_id = $row[115]; + $customer_chat_screen_colors = $row[116]; + $customer_chat_survey_link = $row[117]; + $customer_chat_survey_text = $row[118]; /* ##### get callmenu listings for dynamic pulldown @@ -27184,6 +27202,25 @@ if ($ADD==3911) echo "
    "._QXZ("Uniqueid Status Prefix").": $NWB#inbound_groups-uniqueid_status_prefix$NWE
    "._QXZ("Customer Chat Screen Colors").": $NWB#inbound_groups-customer_chat_screen_colors$NWE
    "._QXZ("Customer Chat Survey Link").": $NWB#inbound_groups-customer_chat_survey_link$NWE
    "._QXZ("Customer Chat Survey Text").": $NWB#inbound_groups-customer_chat_survey_text$NWE
    "._QXZ("Customer Chat Link").": "._QXZ("First Link")."   "._QXZ("Second Link")." $NWB#inbound_groups-customer_chat_link$NWE