2012-06-04 16:58:40 +02:00
|
|
|
<?php
|
|
|
|
|
/*
|
|
|
|
|
FusionPBX
|
|
|
|
|
Version: MPL 1.1
|
|
|
|
|
|
|
|
|
|
The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
|
1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
|
the License. You may obtain a copy of the License at
|
|
|
|
|
http://www.mozilla.org/MPL/
|
|
|
|
|
|
|
|
|
|
Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
|
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
|
for the specific language governing rights and limitations under the
|
|
|
|
|
License.
|
|
|
|
|
|
|
|
|
|
The Original Code is FusionPBX
|
|
|
|
|
|
|
|
|
|
The Initial Developer of the Original Code is
|
|
|
|
|
Mark J Crane <markjcrane@fusionpbx.com>
|
2016-10-05 11:44:55 +02:00
|
|
|
Portions created by the Initial Developer are Copyright (C) 2008-2016
|
2012-06-04 16:58:40 +02:00
|
|
|
the Initial Developer. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
Contributor(s):
|
|
|
|
|
Mark J Crane <markjcrane@fusionpbx.com>
|
2014-12-21 08:03:10 +01:00
|
|
|
Luis Daniel Lucio Quiroz <dlucio@okay.com.mx>
|
2012-06-04 16:58:40 +02:00
|
|
|
*/
|
2016-10-05 11:44:55 +02:00
|
|
|
|
|
|
|
|
//includes
|
|
|
|
|
require_once "root.php";
|
|
|
|
|
require_once "resources/require.php";
|
|
|
|
|
require_once "resources/check_auth.php";
|
|
|
|
|
|
|
|
|
|
//check permissions
|
|
|
|
|
if (permission_exists('call_center_agent_add') || permission_exists('call_center_agent_edit')) {
|
|
|
|
|
//access granted
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
echo "access denied";
|
|
|
|
|
exit;
|
|
|
|
|
}
|
2012-06-04 16:58:40 +02:00
|
|
|
|
2013-05-29 23:14:36 +02:00
|
|
|
//add multi-lingual support
|
2015-01-18 11:06:08 +01:00
|
|
|
$language = new text;
|
|
|
|
|
$text = $language->get();
|
2013-05-29 23:14:36 +02:00
|
|
|
|
2015-05-04 23:01:55 +02:00
|
|
|
//check for duplicates
|
|
|
|
|
if ($_GET["check"] == 'duplicate') {
|
|
|
|
|
//agent id
|
|
|
|
|
if ($_GET["agent_id"] != '') {
|
|
|
|
|
$sql = "select ";
|
|
|
|
|
$sql .= "agent_name ";
|
|
|
|
|
$sql .= "from ";
|
|
|
|
|
$sql .= "v_call_center_agents ";
|
|
|
|
|
$sql .= "where ";
|
|
|
|
|
$sql .= "agent_id = '".check_str($_GET["agent_id"])."' ";
|
|
|
|
|
$sql .= "and domain_uuid = '".$domain_uuid."' ";
|
|
|
|
|
if ($_GET["agent_uuid"] != '') {
|
|
|
|
|
$sql .= " and call_center_agent_uuid <> '".check_str($_GET["agent_uuid"])."' ";
|
|
|
|
|
}
|
|
|
|
|
$prep_statement = $db->prepare($sql);
|
|
|
|
|
if ($prep_statement) {
|
|
|
|
|
$prep_statement->execute();
|
|
|
|
|
$row = $prep_statement->fetch(PDO::FETCH_ASSOC);
|
|
|
|
|
if ($row['agent_name'] != '') {
|
|
|
|
|
echo $text['message-duplicate_agent_id'].((if_group("superadmin")) ? ": ".$row["agent_name"] : null);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
unset($prep_statement);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
exit;
|
|
|
|
|
}
|
|
|
|
|
|
2012-06-04 16:58:40 +02:00
|
|
|
//action add or update
|
|
|
|
|
if (isset($_REQUEST["id"])) {
|
|
|
|
|
$action = "update";
|
|
|
|
|
$call_center_agent_uuid = check_str($_REQUEST["id"]);
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
$action = "add";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//get http post variables and set them to php variables
|
2016-10-05 11:44:55 +02:00
|
|
|
if (is_array($_POST)) {
|
|
|
|
|
$call_center_agent_uuid = check_str($_POST["call_center_agent_uuid"]);
|
2017-05-16 18:28:53 +02:00
|
|
|
$user_uuid = check_str($_POST["user_uuid"]);
|
2012-06-04 16:58:40 +02:00
|
|
|
$agent_name = check_str($_POST["agent_name"]);
|
|
|
|
|
$agent_type = check_str($_POST["agent_type"]);
|
|
|
|
|
$agent_call_timeout = check_str($_POST["agent_call_timeout"]);
|
2015-05-03 18:55:43 +02:00
|
|
|
$agent_id = check_str($_POST["agent_id"]);
|
|
|
|
|
$agent_password = check_str($_POST["agent_password"]);
|
2012-06-04 16:58:40 +02:00
|
|
|
$agent_status = check_str($_POST["agent_status"]);
|
2016-10-05 11:44:55 +02:00
|
|
|
$agent_contact = check_str($_POST["agent_contact"]);
|
2012-06-04 16:58:40 +02:00
|
|
|
$agent_no_answer_delay_time = check_str($_POST["agent_no_answer_delay_time"]);
|
|
|
|
|
$agent_max_no_answer = check_str($_POST["agent_max_no_answer"]);
|
|
|
|
|
$agent_wrap_up_time = check_str($_POST["agent_wrap_up_time"]);
|
|
|
|
|
$agent_reject_delay_time = check_str($_POST["agent_reject_delay_time"]);
|
|
|
|
|
$agent_busy_delay_time = check_str($_POST["agent_busy_delay_time"]);
|
2016-10-05 11:44:55 +02:00
|
|
|
//$agent_logout = check_str($_POST["agent_logout"]);
|
2012-06-04 16:58:40 +02:00
|
|
|
}
|
|
|
|
|
|
2016-10-05 11:44:55 +02:00
|
|
|
//process the user data and save it to the database
|
|
|
|
|
if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
2012-06-04 16:58:40 +02:00
|
|
|
|
2016-10-05 11:44:55 +02:00
|
|
|
//get the uuid from the POST
|
|
|
|
|
if ($action == "update") {
|
|
|
|
|
$call_center_agent_uuid = check_str($_POST["call_center_agent_uuid"]);
|
|
|
|
|
}
|
2012-06-04 16:58:40 +02:00
|
|
|
|
2016-10-05 11:44:55 +02:00
|
|
|
//check for all required data
|
|
|
|
|
$msg = '';
|
|
|
|
|
//if (strlen($call_center_agent_uuid) == 0) { $msg .= $text['message-required']." ".$text['label-call_center_agent_uuid']."<br>\n"; }
|
|
|
|
|
//if (strlen($domain_uuid) == 0) { $msg .= $text['message-required']." ".$text['label-domain_uuid']."<br>\n"; }
|
2018-04-08 18:45:42 +02:00
|
|
|
//if (strlen($user_uuid) == 0) { $msg .= $text['message-required']." ".$text['label-user_uuid']."<br>\n"; }
|
2016-10-05 11:44:55 +02:00
|
|
|
if (strlen($agent_name) == 0) { $msg .= $text['message-required']." ".$text['label-agent_name']."<br>\n"; }
|
|
|
|
|
if (strlen($agent_type) == 0) { $msg .= $text['message-required']." ".$text['label-agent_type']."<br>\n"; }
|
|
|
|
|
if (strlen($agent_call_timeout) == 0) { $msg .= $text['message-required']." ".$text['label-agent_call_timeout']."<br>\n"; }
|
|
|
|
|
//if (strlen($agent_id) == 0) { $msg .= $text['message-required']." ".$text['label-agent_id']."<br>\n"; }
|
2017-05-15 18:06:52 +02:00
|
|
|
//if (strlen($agent_password) == 0) { $msg .= $text['message-required']." ".$text['label-agent_password']."<br>\n"; }
|
2016-10-05 11:44:55 +02:00
|
|
|
if (strlen($agent_status) == 0) { $msg .= $text['message-required']." ".$text['label-agent_status']."<br>\n"; }
|
|
|
|
|
if (strlen($agent_contact) == 0) { $msg .= $text['message-required']." ".$text['label-agent_contact']."<br>\n"; }
|
|
|
|
|
if (strlen($agent_no_answer_delay_time) == 0) { $msg .= $text['message-required']." ".$text['label-agent_no_answer_delay_time']."<br>\n"; }
|
|
|
|
|
if (strlen($agent_max_no_answer) == 0) { $msg .= $text['message-required']." ".$text['label-agent_max_no_answer']."<br>\n"; }
|
|
|
|
|
if (strlen($agent_wrap_up_time) == 0) { $msg .= $text['message-required']." ".$text['label-agent_wrap_up_time']."<br>\n"; }
|
|
|
|
|
if (strlen($agent_reject_delay_time) == 0) { $msg .= $text['message-required']." ".$text['label-agent_reject_delay_time']."<br>\n"; }
|
|
|
|
|
if (strlen($agent_busy_delay_time) == 0) { $msg .= $text['message-required']." ".$text['label-agent_busy_delay_time']."<br>\n"; }
|
|
|
|
|
//if (strlen($agent_logout) == 0) { $msg .= $text['message-required']." ".$text['label-agent_logout']."<br>\n"; }
|
|
|
|
|
if (strlen($msg) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
|
|
|
|
require_once "resources/header.php";
|
|
|
|
|
require_once "resources/persist_form_var.php";
|
|
|
|
|
echo "<div align='center'>\n";
|
|
|
|
|
echo "<table><tr><td>\n";
|
|
|
|
|
echo $msg."<br />";
|
|
|
|
|
echo "</td></tr></table>\n";
|
|
|
|
|
persistformvar($_POST);
|
|
|
|
|
echo "</div>\n";
|
|
|
|
|
require_once "resources/footer.php";
|
|
|
|
|
return;
|
|
|
|
|
}
|
2012-06-04 16:58:40 +02:00
|
|
|
|
|
|
|
|
//get and then set the complete agent_contact with the call_timeout and when necessary confirm
|
2014-08-03 22:54:15 +02:00
|
|
|
//if you change this variable, also change resources/switch.php
|
2015-12-08 02:02:56 +01:00
|
|
|
$confirm = "group_confirm_file=custom/press_1_to_accept_this_call.wav,group_confirm_key=1,group_confirm_read_timeout=2000,leg_timeout=".$agent_call_timeout;
|
2012-06-04 16:58:40 +02:00
|
|
|
if(strstr($agent_contact, '}') === FALSE) {
|
|
|
|
|
//not found
|
|
|
|
|
if(stristr($agent_contact, 'sofia/gateway') === FALSE) {
|
|
|
|
|
//add the call_timeout
|
2015-12-08 02:02:56 +01:00
|
|
|
$agent_contact = "{call_timeout=".$agent_call_timeout.",sip_invite_domain=".$_SESSION['domain_name']."}".$agent_contact;
|
2012-06-04 16:58:40 +02:00
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
//add the call_timeout and confirm
|
2015-12-08 02:02:56 +01:00
|
|
|
$agent_contact = $first.',call_timeout='.$agent_call_timeout.$last;
|
|
|
|
|
$agent_contact = "{".$confirm.",call_timeout=".$agent_call_timeout.",sip_invite_domain=".$_SESSION['domain_name']."}".$agent_contact;
|
2012-06-04 16:58:40 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else {
|
2016-03-01 06:54:24 +01:00
|
|
|
$position = strrpos($agent_contact, "}");
|
|
|
|
|
$first = substr($agent_contact, 0, $position);
|
|
|
|
|
$last = substr($agent_contact, $position);
|
|
|
|
|
//add call_timeout and sip_invite_domain, only if missing
|
|
|
|
|
$call_timeout = (stristr($agent_contact, 'call_timeout') === FALSE) ? ',call_timeout='.$agent_call_timeout : null;
|
|
|
|
|
$sip_invite_domain = (stristr($agent_contact, 'sip_invite_domain') === FALSE) ? ',sip_invite_domain='.$_SESSION['domain_name'] : null;
|
|
|
|
|
//compose
|
2012-06-04 16:58:40 +02:00
|
|
|
if(stristr($agent_contact, 'sofia/gateway') === FALSE) {
|
2016-03-01 06:54:24 +01:00
|
|
|
$agent_contact = $first.$sip_invite_domain.$call_timeout.$last;
|
2012-06-04 16:58:40 +02:00
|
|
|
}
|
|
|
|
|
else {
|
2016-03-01 06:54:24 +01:00
|
|
|
$agent_contact = $first.','.$confirm.$sip_invite_domain.$call_timeout.$last;
|
2012-06-04 16:58:40 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//add the agent
|
|
|
|
|
//setup the event socket connection
|
|
|
|
|
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
|
|
|
|
|
//add the agent using event socket
|
|
|
|
|
if ($fp) {
|
|
|
|
|
//add the agent
|
2018-04-08 18:45:42 +02:00
|
|
|
$cmd = "api callcenter_config agent add ".$call_center_agent_uuid." ".$agent_type;
|
2012-06-04 16:58:40 +02:00
|
|
|
$response = event_socket_request($fp, $cmd);
|
|
|
|
|
usleep(200);
|
|
|
|
|
//agent set contact
|
2018-04-08 18:45:42 +02:00
|
|
|
$cmd = "api callcenter_config agent set contact ".$call_center_agent_uuid." ".$agent_contact;
|
2012-06-04 16:58:40 +02:00
|
|
|
$response = event_socket_request($fp, $cmd);
|
|
|
|
|
usleep(200);
|
|
|
|
|
//agent set status
|
2018-04-08 18:45:42 +02:00
|
|
|
$cmd = "api callcenter_config agent set status ".$call_center_agent_uuid." '".$agent_status."'";
|
2012-06-04 16:58:40 +02:00
|
|
|
$response = event_socket_request($fp, $cmd);
|
|
|
|
|
usleep(200);
|
|
|
|
|
//agent set reject_delay_time
|
2018-04-08 18:45:42 +02:00
|
|
|
$cmd = "api callcenter_config agent set reject_delay_time ".$call_center_agent_uuid." ".$agent_reject_delay_time;
|
2012-06-04 16:58:40 +02:00
|
|
|
$response = event_socket_request($fp, $cmd);
|
|
|
|
|
usleep(200);
|
|
|
|
|
//agent set busy_delay_time
|
2018-04-08 18:45:42 +02:00
|
|
|
$cmd = "api callcenter_config agent set busy_delay_time ".$call_center_agent_uuid." ".$agent_busy_delay_time;
|
2012-06-04 16:58:40 +02:00
|
|
|
$response = event_socket_request($fp, $cmd);
|
2012-10-18 18:15:12 +02:00
|
|
|
//agent set no_answer_delay_time
|
2018-04-08 18:45:42 +02:00
|
|
|
$cmd = "api callcenter_config agent set no_answer_delay_time ".$call_center_agent_uuid." ".$agent_no_answer_delay_time;
|
2012-10-18 18:15:12 +02:00
|
|
|
$response = event_socket_request($fp, $cmd);
|
|
|
|
|
//agent set max_no_answer
|
2018-04-08 18:45:42 +02:00
|
|
|
$cmd = "api callcenter_config agent set max_no_answer ".$call_center_agent_uuid." ".$agent_max_no_answer;
|
2012-10-18 18:15:12 +02:00
|
|
|
$response = event_socket_request($fp, $cmd);
|
|
|
|
|
//agent set wrap_up_time
|
2018-04-08 18:45:42 +02:00
|
|
|
$cmd = "api callcenter_config agent set wrap_up_time ".$call_center_agent_uuid." ".$agent_wrap_up_time;
|
2012-10-18 18:15:12 +02:00
|
|
|
$response = event_socket_request($fp, $cmd);
|
2012-06-04 16:58:40 +02:00
|
|
|
}
|
|
|
|
|
|
2016-10-05 11:44:55 +02:00
|
|
|
//set the domain_uuid
|
|
|
|
|
$_POST["domain_uuid"] = $_SESSION["domain_uuid"];
|
|
|
|
|
|
|
|
|
|
//add the call_center_agent_uuid
|
|
|
|
|
if (strlen($_POST["call_center_agent_uuid"]) == 0) {
|
2012-06-04 16:58:40 +02:00
|
|
|
$call_center_agent_uuid = uuid();
|
2016-10-05 11:44:55 +02:00
|
|
|
$_POST["call_center_agent_uuid"] = $call_center_agent_uuid;
|
|
|
|
|
}
|
|
|
|
|
|
2017-05-16 18:28:53 +02:00
|
|
|
//get the users array
|
|
|
|
|
$sql = "SELECT * FROM v_users ";
|
2016-10-05 11:44:55 +02:00
|
|
|
$sql .= "where domain_uuid = '".$_SESSION['domain_uuid']."' ";
|
2017-05-16 18:28:53 +02:00
|
|
|
$sql .= "order by username asc ";
|
2016-10-05 11:44:55 +02:00
|
|
|
$prep_statement = $db->prepare(check_sql($sql));
|
|
|
|
|
$prep_statement->execute();
|
2017-05-16 18:28:53 +02:00
|
|
|
$users = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
|
|
|
|
unset($prep_statement, $sql);
|
2016-10-05 11:44:55 +02:00
|
|
|
|
|
|
|
|
//prepare the array
|
|
|
|
|
$array['call_center_agents'][] = $_POST;
|
2018-04-08 18:45:42 +02:00
|
|
|
if (isset($user_uuid) && strlen($user_uuid) > 0) {
|
|
|
|
|
$array['users'][0]['domain_uuid'] = $_SESSION['domain_uuid'];
|
|
|
|
|
$array['users'][0]['user_uuid'] = $user_uuid;
|
|
|
|
|
$array['users'][0]['user_status'] = $agent_status;
|
|
|
|
|
}
|
2016-10-05 11:44:55 +02:00
|
|
|
|
|
|
|
|
//save to the data
|
2016-10-18 17:31:37 +02:00
|
|
|
$database = new database;
|
2016-10-23 06:57:03 +02:00
|
|
|
$database->app_name = 'call_center';
|
|
|
|
|
$database->app_uuid = '95788e50-9500-079e-2807-fd530b0ea370';
|
2016-10-05 11:44:55 +02:00
|
|
|
if (strlen($call_center_agent_uuid) > 0) {
|
2016-10-18 17:31:37 +02:00
|
|
|
$database->uuid($call_center_agent_uuid);
|
2016-10-05 11:44:55 +02:00
|
|
|
}
|
2016-10-18 17:31:37 +02:00
|
|
|
$database->save($array);
|
|
|
|
|
$message = $database->message;
|
2016-10-05 11:44:55 +02:00
|
|
|
|
|
|
|
|
//syncrhonize configuration
|
|
|
|
|
save_call_center_xml();
|
|
|
|
|
|
|
|
|
|
//clear the cache
|
|
|
|
|
remove_config_from_cache('configuration:callcenter.conf');
|
|
|
|
|
|
|
|
|
|
//redirect the user
|
|
|
|
|
if (isset($action)) {
|
|
|
|
|
if ($action == "add") {
|
2018-08-31 05:09:01 +02:00
|
|
|
message::add($text['message-add']);
|
2016-10-05 11:44:55 +02:00
|
|
|
}
|
|
|
|
|
if ($action == "update") {
|
2018-08-31 05:09:01 +02:00
|
|
|
message::add($text['message-update']);
|
2016-10-05 11:44:55 +02:00
|
|
|
}
|
|
|
|
|
header("Location: call_center_agents.php");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
} //(is_array($_POST) && strlen($_POST["persistformvar"]) == 0)
|
2012-06-04 16:58:40 +02:00
|
|
|
|
2015-08-07 22:06:07 +02:00
|
|
|
//initialize the destinations object
|
|
|
|
|
$destination = new destinations;
|
|
|
|
|
|
2012-06-04 16:58:40 +02:00
|
|
|
//pre-populate the form
|
2016-10-05 11:44:55 +02:00
|
|
|
if (is_array($_GET) && $_POST["persistformvar"] != "true") {
|
|
|
|
|
$call_center_agent_uuid = check_str($_GET["id"]);
|
2012-11-24 03:59:17 +01:00
|
|
|
$sql = "select * from v_call_center_agents ";
|
2012-06-04 16:58:40 +02:00
|
|
|
$sql .= "where domain_uuid = '$domain_uuid' ";
|
|
|
|
|
$sql .= "and call_center_agent_uuid = '$call_center_agent_uuid' ";
|
|
|
|
|
$prep_statement = $db->prepare(check_sql($sql));
|
|
|
|
|
$prep_statement->execute();
|
|
|
|
|
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
|
|
|
|
foreach ($result as &$row) {
|
2016-10-05 11:44:55 +02:00
|
|
|
$call_center_agent_uuid = $row["call_center_agent_uuid"];
|
2017-05-16 18:28:53 +02:00
|
|
|
$user_uuid = $row["user_uuid"];
|
2012-06-04 16:58:40 +02:00
|
|
|
$agent_name = $row["agent_name"];
|
|
|
|
|
$agent_type = $row["agent_type"];
|
|
|
|
|
$agent_call_timeout = $row["agent_call_timeout"];
|
2015-05-03 18:55:43 +02:00
|
|
|
$agent_id = $row["agent_id"];
|
|
|
|
|
$agent_password = $row["agent_password"];
|
2012-06-04 16:58:40 +02:00
|
|
|
$agent_status = $row["agent_status"];
|
2016-10-05 11:44:55 +02:00
|
|
|
$agent_contact = $row["agent_contact"];
|
2012-06-04 16:58:40 +02:00
|
|
|
$agent_no_answer_delay_time = $row["agent_no_answer_delay_time"];
|
|
|
|
|
$agent_max_no_answer = $row["agent_max_no_answer"];
|
|
|
|
|
$agent_wrap_up_time = $row["agent_wrap_up_time"];
|
|
|
|
|
$agent_reject_delay_time = $row["agent_reject_delay_time"];
|
|
|
|
|
$agent_busy_delay_time = $row["agent_busy_delay_time"];
|
2016-10-05 11:44:55 +02:00
|
|
|
//$agent_logout = $row["agent_logout"];
|
2012-06-04 16:58:40 +02:00
|
|
|
}
|
|
|
|
|
unset ($prep_statement);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//set default values
|
|
|
|
|
if (strlen($agent_type) == 0) { $agent_type = "callback"; }
|
2019-03-15 07:02:20 +01:00
|
|
|
if (strlen($agent_call_timeout) == 0) { $agent_call_timeout = "20"; }
|
2014-08-15 20:44:40 +02:00
|
|
|
if (strlen($agent_max_no_answer) == 0) { $agent_max_no_answer = "0"; }
|
2012-06-04 16:58:40 +02:00
|
|
|
if (strlen($agent_wrap_up_time) == 0) { $agent_wrap_up_time = "10"; }
|
2014-12-12 11:05:57 +01:00
|
|
|
if (strlen($agent_no_answer_delay_time) == 0) { $agent_no_answer_delay_time = "30"; }
|
|
|
|
|
if (strlen($agent_reject_delay_time) == 0) { $agent_reject_delay_time = "90"; }
|
|
|
|
|
if (strlen($agent_busy_delay_time) == 0) { $agent_busy_delay_time = "90"; }
|
2012-06-04 16:58:40 +02:00
|
|
|
|
|
|
|
|
//show the header
|
2013-07-06 08:29:50 +02:00
|
|
|
require_once "resources/header.php";
|
2013-05-29 23:14:36 +02:00
|
|
|
if ($action == "add") {
|
2014-07-10 02:32:50 +02:00
|
|
|
$document['title'] = $text['title-call_center_agent_add'];
|
2013-05-29 23:14:36 +02:00
|
|
|
}
|
|
|
|
|
if ($action == "update") {
|
2014-07-10 02:32:50 +02:00
|
|
|
$document['title'] = $text['title-call_center_agent_edit'];
|
2013-05-29 23:14:36 +02:00
|
|
|
}
|
2012-06-04 16:58:40 +02:00
|
|
|
|
2016-10-05 11:44:55 +02:00
|
|
|
//get the list of users for this domain
|
|
|
|
|
$sql = "SELECT * FROM v_users ";
|
|
|
|
|
$sql .= "where domain_uuid = '".$_SESSION['domain_uuid']."' ";
|
|
|
|
|
$sql .= "and user_enabled = 'true' ";
|
|
|
|
|
$sql .= "order by username asc ";
|
|
|
|
|
$prep_statement = $db->prepare(check_sql($sql));
|
|
|
|
|
$prep_statement->execute();
|
|
|
|
|
$users = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
|
|
|
|
unset($sql);
|
|
|
|
|
|
2015-05-04 23:01:55 +02:00
|
|
|
//javascript to check for duplicates
|
|
|
|
|
?>
|
|
|
|
|
<script language="javascript">
|
|
|
|
|
function check_duplicates() {
|
|
|
|
|
//check agent id
|
|
|
|
|
var agent_id = document.getElementById('agent_id').value;
|
2018-07-01 02:56:48 +02:00
|
|
|
$("#duplicate_agent_id_response").load("call_center_agent_edit.php?check=duplicate&agent_id="+agent_id+"&agent_uuid=<?php echo escape($call_center_agent_uuid); ?>", function() {
|
2015-05-04 23:01:55 +02:00
|
|
|
var duplicate_agent_id = false;
|
|
|
|
|
if ($("#duplicate_agent_id_response").html() != '') {
|
|
|
|
|
$('#agent_id').addClass('formfld_highlight_bad');
|
|
|
|
|
display_message($("#duplicate_agent_id_response").html(), 'negative'<?php if (if_group("superadmin")) { echo ', 3000'; } ?>);
|
|
|
|
|
duplicate_agent_id = true;
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
$("#duplicate_agent_id_response").html('');
|
|
|
|
|
$('#agent_id').removeClass('formfld_highlight_bad');
|
|
|
|
|
duplicate_agent_id = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (duplicate_agent_id == false) {
|
|
|
|
|
document.getElementById('frm').submit();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<?php
|
2012-06-04 16:58:40 +02:00
|
|
|
//show the content
|
2015-05-04 23:01:55 +02:00
|
|
|
echo "<form method='post' name='frm' id='frm' action='' onsubmit='check_duplicates(); return false;'>\n";
|
2014-10-24 04:55:55 +02:00
|
|
|
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "<tr>\n";
|
|
|
|
|
if ($action == "add") {
|
2013-05-29 23:14:36 +02:00
|
|
|
echo "<td align='left' width='30%' nowrap='nowrap'><b>".$text['header-call_center_agent_add']."</b></td>\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
}
|
|
|
|
|
if ($action == "update") {
|
2013-05-29 23:14:36 +02:00
|
|
|
echo "<td align='left' width='30%' nowrap='nowrap'><b>".$text['header-call_center_agent_edit']."</b></td>\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
}
|
2014-04-27 01:37:41 +02:00
|
|
|
echo "<td width='70%' align='right'>";
|
|
|
|
|
echo " <input type='button' class='btn' name='' alt='".$text['button-back']."' onclick=\"window.location='call_center_agents.php'\" value='".$text['button-back']."'>";
|
2015-05-04 23:01:55 +02:00
|
|
|
echo " <input type='submit' class='btn' value='".$text['button-save']."'>\n";
|
2014-04-27 01:37:41 +02:00
|
|
|
echo "</td>\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "</tr>\n";
|
2014-10-24 04:55:55 +02:00
|
|
|
echo "</table>\n";
|
|
|
|
|
echo "<br />\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
|
2014-10-24 04:55:55 +02:00
|
|
|
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "<tr>\n";
|
2015-05-03 18:55:43 +02:00
|
|
|
echo "<td class='vncellreq' valign='top' align='left' nowrap='nowrap'>\n";
|
2015-02-15 07:50:00 +01:00
|
|
|
echo " ".$text['label-agent_name']."\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "</td>\n";
|
|
|
|
|
echo "<td class='vtable' align='left'>\n";
|
2018-07-01 02:56:48 +02:00
|
|
|
echo " <input class='formfld' type='text' name='agent_name' maxlength='255' value=\"".escape($agent_name)."\" />\n";
|
2017-05-15 18:06:52 +02:00
|
|
|
/*
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "<select id=\"agent_name\" name=\"agent_name\" class='formfld'>\n";
|
|
|
|
|
echo "<option value=\"\"></option>\n";
|
2016-10-05 11:44:55 +02:00
|
|
|
if (is_array($users)) {
|
|
|
|
|
foreach($users as $field) {
|
|
|
|
|
if ($field[username] == $agent_name) {
|
2018-07-01 02:56:48 +02:00
|
|
|
echo "<option value='".escape($field[username])."' selected='selected'>".escape($field[username])."</option>\n";
|
2016-10-05 11:44:55 +02:00
|
|
|
}
|
|
|
|
|
else {
|
2018-07-01 02:56:48 +02:00
|
|
|
echo "<option value='".escape($field[username])."'>".escape($field[username])."</option>\n";
|
2016-10-05 11:44:55 +02:00
|
|
|
}
|
2012-06-04 16:58:40 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
echo "</select>";
|
2017-05-15 18:06:52 +02:00
|
|
|
*/
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "<br />\n";
|
2013-05-29 23:14:36 +02:00
|
|
|
echo $text['description-agent_name']."\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "</td>\n";
|
|
|
|
|
echo "</tr>\n";
|
|
|
|
|
|
|
|
|
|
echo "<tr>\n";
|
2015-05-03 18:55:43 +02:00
|
|
|
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
2015-02-15 07:50:00 +01:00
|
|
|
echo " ".$text['label-type']."\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "</td>\n";
|
|
|
|
|
echo "<td class='vtable' align='left'>\n";
|
2018-07-01 02:56:48 +02:00
|
|
|
echo " <input class='formfld' type='text' name='agent_type' maxlength='255' value=\"".escape($agent_type)."\" pattern='^(callback|uuid-standby)$'>\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "<br />\n";
|
2013-05-29 23:14:36 +02:00
|
|
|
echo $text['description-type']."\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "</td>\n";
|
|
|
|
|
echo "</tr>\n";
|
|
|
|
|
|
|
|
|
|
echo "<tr>\n";
|
2015-05-03 18:55:43 +02:00
|
|
|
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
2015-02-15 07:50:00 +01:00
|
|
|
echo " ".$text['label-call_timeout']."\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "</td>\n";
|
|
|
|
|
echo "<td class='vtable' align='left'>\n";
|
2018-07-01 02:56:48 +02:00
|
|
|
echo " <input class='formfld' type='number' name='agent_call_timeout' maxlength='255' min='1' step='1' value='".escape($agent_call_timeout)."'>\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "<br />\n";
|
2013-05-29 23:14:36 +02:00
|
|
|
echo $text['description-call_timeout']."\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "</td>\n";
|
|
|
|
|
echo "</tr>\n";
|
|
|
|
|
|
2018-02-21 22:06:42 +01:00
|
|
|
echo " <tr>";
|
2018-04-08 18:45:42 +02:00
|
|
|
echo " <td class='vncell' valign='top'>".$text['label-username']."</td>";
|
2018-02-21 22:06:42 +01:00
|
|
|
echo " <td class='vtable' align='left'>";
|
|
|
|
|
echo " <select name=\"user_uuid\" class='formfld' style='width: auto;'>\n";
|
|
|
|
|
echo " <option value=\"\"></option>\n";
|
|
|
|
|
foreach($users as $field) {
|
|
|
|
|
if ($user_uuid == $field['user_uuid']) {
|
2018-07-01 02:56:48 +02:00
|
|
|
echo " <option value='".escape($field['user_uuid'])."' selected='selected'>".escape($field['username'])."</option>\n";
|
2018-02-21 22:06:42 +01:00
|
|
|
}
|
|
|
|
|
else {
|
2018-07-01 02:56:48 +02:00
|
|
|
echo " <option value='".escape($field['user_uuid'])."' $selected>".escape($field['username'])."</option>\n";
|
2017-05-16 18:28:53 +02:00
|
|
|
}
|
|
|
|
|
}
|
2018-02-21 22:06:42 +01:00
|
|
|
echo " </select>";
|
|
|
|
|
unset($users);
|
|
|
|
|
echo " <br>\n";
|
|
|
|
|
echo " ".$text['description-users']."\n";
|
|
|
|
|
echo " </td>";
|
|
|
|
|
echo " </tr>";
|
2017-05-16 18:28:53 +02:00
|
|
|
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "<tr>\n";
|
2015-05-03 18:55:43 +02:00
|
|
|
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
|
|
|
|
echo " ".$text['label-agent_id']."\n";
|
|
|
|
|
echo "</td>\n";
|
|
|
|
|
echo "<td class='vtable' align='left'>\n";
|
2018-07-01 02:56:48 +02:00
|
|
|
echo " <input class='formfld' type='number' name='agent_id' id='agent_id' maxlength='255' min='1' step='1' value='".escape($agent_id)."'>\n";
|
2015-05-04 23:01:55 +02:00
|
|
|
echo " <div style='display: none;' id='duplicate_agent_id_response'></div>\n";
|
2015-05-03 18:55:43 +02:00
|
|
|
echo "<br />\n";
|
|
|
|
|
echo $text['description-agent_id']."\n";
|
|
|
|
|
echo "</td>\n";
|
|
|
|
|
echo "</tr>\n";
|
|
|
|
|
|
|
|
|
|
echo "<tr>\n";
|
|
|
|
|
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
|
|
|
|
echo " ".$text['label-agent_password']."\n";
|
|
|
|
|
echo "</td>\n";
|
|
|
|
|
echo "<td class='vtable' align='left'>\n";
|
2018-07-01 02:56:48 +02:00
|
|
|
echo " <input class='formfld' type='password' name='agent_password' autocomplete='off' onmouseover=\"this.type='text';\" onfocus=\"this.type='text';\" onmouseout=\"if (!\$(this).is(':focus')) { this.type='password'; }\" onblur=\"this.type='password';\" maxlength='255' min='1' step='1' value='".escape($agent_password)."'>\n";
|
2015-05-03 18:55:43 +02:00
|
|
|
echo "<br />\n";
|
|
|
|
|
echo $text['description-agent_password']."\n";
|
|
|
|
|
echo "</td>\n";
|
|
|
|
|
echo "</tr>\n";
|
|
|
|
|
|
|
|
|
|
echo "<tr>\n";
|
|
|
|
|
echo "<td class='vncellreq' valign='top' align='left' nowrap='nowrap'>\n";
|
2015-02-15 07:50:00 +01:00
|
|
|
echo " ".$text['label-contact']."\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "</td>\n";
|
|
|
|
|
echo "<td class='vtable' align='left'>\n";
|
2015-08-07 22:24:24 +02:00
|
|
|
echo $destination->select('user_contact', 'agent_contact', $agent_contact);
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "<br />\n";
|
2013-05-29 23:14:36 +02:00
|
|
|
echo $text['description-contact']."\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "</td>\n";
|
|
|
|
|
echo "</tr>\n";
|
|
|
|
|
|
|
|
|
|
echo "<tr>\n";
|
2015-05-03 18:55:43 +02:00
|
|
|
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
2015-02-15 07:50:00 +01:00
|
|
|
echo " ".$text['label-status']."\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "</td>\n";
|
|
|
|
|
echo "<td class='vtable' align='left'>\n";
|
|
|
|
|
echo " <select class='formfld' name='agent_status'>\n";
|
2013-05-29 23:14:36 +02:00
|
|
|
if ($agent_status == "Logged Out") {
|
|
|
|
|
echo " <option value='Logged Out' SELECTED >".$text['option-logged_out']."</option>\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
}
|
|
|
|
|
else {
|
2013-05-29 23:14:36 +02:00
|
|
|
echo " <option value='Logged Out'>".$text['option-logged_out']."</option>\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
}
|
2013-05-29 23:14:36 +02:00
|
|
|
if ($agent_status == "Available") {
|
|
|
|
|
echo " <option value='Available' SELECTED >".$text['option-available']."</option>\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
}
|
|
|
|
|
else {
|
2013-05-29 23:14:36 +02:00
|
|
|
echo " <option value='Available'>".$text['option-available']."</option>\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
}
|
2013-05-29 23:14:36 +02:00
|
|
|
if ($agent_status == "Available (On Demand)") {
|
|
|
|
|
echo " <option value='Available (On Demand)' SELECTED >".$text['option-available_on_demand']."</option>\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
}
|
|
|
|
|
else {
|
2013-05-29 23:14:36 +02:00
|
|
|
echo " <option value='Available (On Demand)'>".$text['option-available_on_demand']."</option>\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
}
|
2013-05-29 23:14:36 +02:00
|
|
|
if ($agent_status == "On Break") {
|
|
|
|
|
echo " <option value='On Break' SELECTED >".$text['option-on_break']."</option>\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
}
|
|
|
|
|
else {
|
2013-05-29 23:14:36 +02:00
|
|
|
echo " <option value='On Break'>".$text['option-on_break']."</option>\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
}
|
|
|
|
|
echo " </select>\n";
|
|
|
|
|
echo "<br />\n";
|
2013-05-29 23:14:36 +02:00
|
|
|
echo $text['description-status']."\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "</td>\n";
|
|
|
|
|
echo "</tr>\n";
|
|
|
|
|
|
|
|
|
|
echo "<tr>\n";
|
2015-05-03 18:55:43 +02:00
|
|
|
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
2015-02-15 07:50:00 +01:00
|
|
|
echo " ".$text['label-no_answer_delay_time']."\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "</td>\n";
|
|
|
|
|
echo "<td class='vtable' align='left'>\n";
|
2018-07-01 02:56:48 +02:00
|
|
|
echo " <input class='formfld' type='number' name='agent_no_answer_delay_time' maxlength='255' min='1' step='1' value='".escape($agent_no_answer_delay_time)."'>\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "<br />\n";
|
2013-05-29 23:14:36 +02:00
|
|
|
echo $text['description-no_answer_delay_time']."\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "</td>\n";
|
|
|
|
|
echo "</tr>\n";
|
|
|
|
|
|
|
|
|
|
echo "<tr>\n";
|
2015-05-03 18:55:43 +02:00
|
|
|
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
2015-02-15 07:50:00 +01:00
|
|
|
echo " ".$text['label-max_no_answer']."\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "</td>\n";
|
|
|
|
|
echo "<td class='vtable' align='left'>\n";
|
2018-07-01 02:56:48 +02:00
|
|
|
echo " <input class='formfld' type='number' name='agent_max_no_answer' maxlength='255' min='0' step='1' value='".escape($agent_max_no_answer)."'>\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "<br />\n";
|
2013-05-29 23:14:36 +02:00
|
|
|
echo $text['description-max_no_answer']."\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "</td>\n";
|
|
|
|
|
echo "</tr>\n";
|
|
|
|
|
|
|
|
|
|
echo "<tr>\n";
|
2015-05-03 18:55:43 +02:00
|
|
|
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
2015-02-15 07:50:00 +01:00
|
|
|
echo " ".$text['label-wrap_up_time']."\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "</td>\n";
|
|
|
|
|
echo "<td class='vtable' align='left'>\n";
|
2018-07-01 02:56:48 +02:00
|
|
|
echo " <input class='formfld' type='number' name='agent_wrap_up_time' maxlength='255' min='1' step='1' value='".escape($agent_wrap_up_time)."'>\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "<br />\n";
|
2013-05-29 23:14:36 +02:00
|
|
|
echo $text['description-wrap_up_time']."\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "</td>\n";
|
|
|
|
|
echo "</tr>\n";
|
|
|
|
|
|
|
|
|
|
echo "<tr>\n";
|
2015-05-03 18:55:43 +02:00
|
|
|
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
2015-02-15 07:50:00 +01:00
|
|
|
echo " ".$text['label-reject_delay_time']."\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "</td>\n";
|
|
|
|
|
echo "<td class='vtable' align='left'>\n";
|
2018-07-01 02:56:48 +02:00
|
|
|
echo " <input class='formfld' type='number' name='agent_reject_delay_time' maxlength='255' min='1' step='1' value='".escape($agent_reject_delay_time)."'>\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "<br />\n";
|
2013-05-29 23:14:36 +02:00
|
|
|
echo $text['description-reject_delay_time']."\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "</td>\n";
|
|
|
|
|
echo "</tr>\n";
|
|
|
|
|
|
|
|
|
|
echo "<tr>\n";
|
2015-05-03 18:55:43 +02:00
|
|
|
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
2015-02-15 07:50:00 +01:00
|
|
|
echo " ".$text['label-busy_delay_time']."\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "</td>\n";
|
|
|
|
|
echo "<td class='vtable' align='left'>\n";
|
2018-07-01 02:56:48 +02:00
|
|
|
echo " <input class='formfld' type='number' name='agent_busy_delay_time' maxlength='255' min='1' step='1' value='".escape($agent_busy_delay_time)."'>\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "<br />\n";
|
2013-05-29 23:14:36 +02:00
|
|
|
echo $text['description-busy_delay_time']."\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "</td>\n";
|
|
|
|
|
echo "</tr>\n";
|
|
|
|
|
|
2014-10-24 04:55:55 +02:00
|
|
|
/*
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "<tr>\n";
|
2015-05-03 18:55:43 +02:00
|
|
|
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
2015-02-15 07:50:00 +01:00
|
|
|
echo " ".$text['label-agent_logout']."\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "</td>\n";
|
|
|
|
|
echo "<td class='vtable' align='left'>\n";
|
2018-07-01 02:56:48 +02:00
|
|
|
echo " <input class='formfld' type='text' name='agent_logout' maxlength='255' value='".escape($agent_logout)."'>\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "<br />\n";
|
2013-05-29 23:14:36 +02:00
|
|
|
echo $text['description-agent_logout']."\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "</td>\n";
|
|
|
|
|
echo "</tr>\n";
|
2014-10-24 04:55:55 +02:00
|
|
|
*/
|
2012-06-04 16:58:40 +02:00
|
|
|
|
|
|
|
|
echo " <tr>\n";
|
|
|
|
|
echo " <td colspan='2' align='right'>\n";
|
|
|
|
|
if ($action == "update") {
|
2018-07-01 02:56:48 +02:00
|
|
|
echo " <input type='hidden' name='call_center_agent_uuid' value='".escape($call_center_agent_uuid)."'>\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
}
|
2015-02-15 11:05:08 +01:00
|
|
|
echo " <br />";
|
2015-05-04 23:01:55 +02:00
|
|
|
echo " <input type='submit' class='btn' value='".$text['button-save']."'>\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo " </td>\n";
|
|
|
|
|
echo " </tr>";
|
|
|
|
|
echo "</table>";
|
|
|
|
|
echo "</form>";
|
2016-10-05 11:44:55 +02:00
|
|
|
echo "<br /><br />";
|
2012-06-04 16:58:40 +02:00
|
|
|
|
2016-10-05 11:44:55 +02:00
|
|
|
//include the footer
|
2013-07-06 08:29:50 +02:00
|
|
|
require_once "resources/footer.php";
|
2015-05-03 18:55:43 +02:00
|
|
|
|
2016-10-05 11:44:55 +02:00
|
|
|
?>
|