You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Mods-for-HESK-Netsyms/internal-api/js/view-message-log.js

21 lines
555 B
JavaScript

$(document).ready(function() {
// We should show the latest 50 logs when the user first views the page.
var endpoint = getHelpdeskUrl();
endpoint += '/internal-api/admin/message-log/';
$.ajax({
url: endpoint,
data: {
location: null,
fromDate: null,
toDate: null,
severityId: null
},
method: 'POST',
success: function(data) {
console.log(data);
},
error: function(data) {
console.error(data);
}
})
})