diff --git a/docs/AGENT_EVENTS_PUSH.txt b/docs/AGENT_EVENTS_PUSH.txt
index fbcf87bf..281187fe 100644
--- a/docs/AGENT_EVENTS_PUSH.txt
+++ b/docs/AGENT_EVENTS_PUSH.txt
@@ -1,4 +1,4 @@
-Agent Events Push Started: 2017-05-31 Updated: 2017-06-01
+Agent Events Push Started: 2017-05-31 Updated: 2017-06-29
This feature allows for selected events in the VICIdial agent screen to push out event triggers through HTTP requests sent to a URL as defined in the System Settings.
@@ -30,7 +30,9 @@ Here is a list of the supported events that will be pushed out if you have confi
logged_in - After the agent screen has finished loading, this event will be triggered. The session ID, server_ip, version, build and script will be attached to this event
-logged_out - There are a few different types of logouts, the reason for the logout will be attached to this event
+logged_out - There are a few different types of logouts, this is the starting of the logout process, the reason for the logout will be attached to this event
+
+logged_out_complete - triggered when logout process is complete, this event may not trigger reliably due to agent closing browser
state_ready - When the agent state changes to READY or CLOSER, this event will trigger, the state will be attached to the event
@@ -98,8 +100,12 @@ transfer_panel_closed - The transfer conference panel has been closed
ingroup_screen_open - The In-Group selection screen has been opened
+ingroup_screen_closed - The In-Group selection screen has been closed
+
territory_screen_open - The Territory selection screen has been opened
+territory_screen_closed - The Territory selection screen has been closed
+
contact_search_open - The Contact search screen has been opened
lead_search_open - The lead search screen has been opened
diff --git a/www/agc/vicidial.php b/www/agc/vicidial.php
index 63bdb190..90d61f12 100644
--- a/www/agc/vicidial.php
+++ b/www/agc/vicidial.php
@@ -556,10 +556,11 @@
# 170531-0937 - Added Agent Events Push function
# 170601-2017 - Added more agent events
# 170609-1711 - Added 'commit' function to force immediate submission of Customer Information changes to database
+# 170629-1831 - Added some new agent_events entries
#
-$version = '2.14-526c';
-$build = '170609-1711';
+$version = '2.14-527c';
+$build = '170629-1831';
$mel=1; # Mysql Error Log enabled = 1
$mysql_log_count=87;
$one_mysql_log=0;
@@ -14108,6 +14109,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
}
hideDiv('CloserSelectBox');
+ agent_events('ingroup_screen_closed', '');
MainPanelToFront();
CloserSelecting = 0;
scroll(0,0);
@@ -14270,6 +14272,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
}
hideDiv('TerritorySelectBox');
+ agent_events('territory_screen_closed', '');
MainPanelToFront();
TerritorySelecting = 0;
scroll(0,0);
@@ -14412,6 +14415,8 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
needToConfirmExit = false;
document.getElementById("LogouTProcess").innerHTML = "
\" height=\"206px\" width=\"206px\" alt=\"\" />";
+
+ agent_events('logged_out_complete', '');
}
}
delete xmlhttp;
@@ -16873,6 +16878,7 @@ function phone_number_format(formatphone) {
else
{
hideDiv('CloserSelectBox');
+ agent_events('ingroup_screen_closed', '');
MainPanelToFront();
var CloserSelecting = 0;
if (dial_method == "INBOUND_MAN")
@@ -16895,6 +16901,7 @@ function phone_number_format(formatphone) {
else
{
hideDiv('TerritorySelectBox');
+ agent_events('territory_screen_closed', '');
MainPanelToFront();
var TerritorySelecting = 0;
}