// returns array(int groupid, string groupname, array(integer Id, integer HandleNumber, string HandleName) handles) groups or exception break; case 'getTicketList': $response = BLAM::getTicketList(); // returns array tickets(integer Id, string Text, string Status, string userWL, array time(Hours,Minutes)) or exception break; case 'getFeedback': $response = BLAM::getFeedback(); // returns array feedback (integer Id, string Titel, string HandleName, string Message, string userWL, array time (Hours, Minutes)) or exception break; case 'closeFeedback': $response = BLAM::closeFeedback($_POST['id']); // returns null or exception break; case 'addChat': $response = BLAM::addChat($_POST['text']); // returns ChatId or exception break; case 'getChats': $response = BLAM::getChats($_POST['last_id'], $_POST['date']); // returns array chat(int MessageID, string Text, string Username, string Avatar, array time(hours, minutes)) or exception break; case 'getTicketTreeNew': $response = BLAM::getTicketTreeNew(); // returns array tickets(integer Id, string Titel,array time(Hours,Minutes)) or exception break; case 'getTicketTreeOpen': $response = BLAM::getTicketTreeOpen(); // returns array tickets(integer Id, string Titel, string UserId,,array time(Hours,Minutes)) or exception break; case 'getTicketTreeClosed':
break; //!* //!* case 'getUpdateList': BLAM::checkLogged(); $response = BLAM::getUpdateList($_POST['type'], $_POST['called'], $_POST['first_id'], $_POST['timestamp_last_update']); // returns array (integer id, integer ticket_id, string Title, Datetime called, Datetime created, Datetime modified) updates or exception break; case 'closeFeedback': BLAM::checkLogged(); $response = BLAM::closeFeedback($_POST['id'], $_SESSION['user']['id']); // returns null or exception break; case 'addChat': BLAM::checkLogged(); $response = BLAM::addChat($_POST['text'], $_POST['role'], $_SESSION['user']['id']); // returns ChatId or exception break; case 'getChats': BLAM::checkLogged(); $response = BLAM::getChats($_POST['first_id'], $_POST['role'], $_POST['timestamp_last_update']); //last_id is mandatory, id or 'all' // returns array(int MessageID, string Text, string Username, string Avatar, Datetime created) chats or exception break; case 'getTicketDetail': BLAM::checkLogged(); $response = BLAM::getTicketDetail($_POST['id']); // returns integer Id, string Status, string Titel, string UserId, string Text, string Locatie, array time(Hours,Minutes), integer MessageId, string MessageUserId, string MessageText or exception break; case 'searchTickets': BLAM::checkLogged();