Update call_center_agents.php

This commit is contained in:
FusionPBX 2023-11-19 22:29:32 -07:00 committed by GitHub
parent b19a67b1b1
commit 6f7be99083
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 14 deletions

View File

@ -82,8 +82,6 @@
} }
} }
//agent status has been changed
if ($agent['agent_status'] != $agent_status) {
//save the agent_stat change to the database //save the agent_stat change to the database
$array['call_center_agents'][0]['call_center_agent_uuid'] = $agent_uuid; $array['call_center_agents'][0]['call_center_agent_uuid'] = $agent_uuid;
$array['call_center_agents'][0]['domain_uuid'] = $_SESSION['user']['domain_uuid']; $array['call_center_agents'][0]['domain_uuid'] = $_SESSION['user']['domain_uuid'];
@ -95,7 +93,6 @@
//send the agent status status to mod_call_center //send the agent status status to mod_call_center
$cmd = "api callcenter_config agent set status ".$agent_uuid." '".$agent_status."'"; $cmd = "api callcenter_config agent set status ".$agent_uuid." '".$agent_status."'";
$response = event_socket_request($fp, $cmd); $response = event_socket_request($fp, $cmd);
}
//add or delete agents from the queue assigned by the tier //add or delete agents from the queue assigned by the tier
foreach ($_POST['agents'] as $row) { foreach ($_POST['agents'] as $row) {