2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Added database changes to changelog (need to update database/quexs.sql)

Added operator_chat_enabled function
Added sUpervisor chat tab to index
updated chat to be able to send and receive
This commit is contained in:
Adam Zammit
2013-07-16 16:34:36 +10:00
parent 69ba3fb690
commit 0554fd4b25
5 changed files with 139 additions and 23 deletions

View File

@@ -91,6 +91,31 @@ function is_using_availability($case_id)
return false;
}
/**
* Return if chat is enabled for this operator
*
* @param int $operator_id the operator id
*
* @return bool True if enabled, false if not
* @author Adam Zammit <adam.zammit@acspri.org.au>
* @since 2013-07-16
*/
function operator_chat_enabled($operator_id)
{
global $db;
$sql = "SELECT chat_enable
FROM `operator`
WHERE operator_id = '$operator_id'";
$c = $db->GetOne($sql);
if ($c == 1)
return true;
return false;
}
/**
* Return if VOIP is enabled on an operator by operator basis
* Will always return false if VOIP is globally disabled