Added CDR dropdown for showing CC Queue calls (#6869)

* Added dropdown for filtering Call Center Queues

* added more translations

* fixed the wrong permission that I had originally

* added the  Call Center dropdown to advanced search
This commit is contained in:
Antonio Fernandez
2024-01-13 16:14:51 -05:00
committed by GitHub
parent e665299fe4
commit 69fc0c8378
5 changed files with 89 additions and 2 deletions

View File

@@ -22,6 +22,7 @@
Contributor(s):
Mark J Crane <markjcrane@fusionpbx.com>
Tony Fernandez <tfernandez@smartip.ca>
*/
//includes files
@@ -536,12 +537,12 @@
$sql .= "and (cc_side is null or cc_side != 'agent') \n";
}
//call center queue search for member or agent
if (!empty($cc_side)) {
if (!empty($cc_side) && permission_exists('xml_cdr_cc_side')) {
$sql .= "and cc_side = :cc_side \n";
$parameters['cc_side'] = $cc_side;
}
//show specific call center queue
if (!empty($call_center_queue_uuid)) {
if (!empty($call_center_queue_uuid) && permission_exists('xml_cdr_call_center_queue_uuid')) {
$sql .= "and call_center_queue_uuid = :call_center_queue_uuid \n";
$parameters['call_center_queue_uuid'] = $call_center_queue_uuid;
}