add ticketing system
Deploy Nexus Portal to HestiaCP (FTP) / build-and-deploy (push) Failing after 8s
Deploy Nexus Portal to HestiaCP (FTP) / build-and-deploy (push) Failing after 8s
This commit is contained in:
+32
-1
@@ -189,4 +189,35 @@ export const launchSSOGateway = (username, password) => {
|
||||
document.body.appendChild(form);
|
||||
form.submit();
|
||||
document.body.removeChild(form);
|
||||
};
|
||||
};
|
||||
|
||||
// ==========================================
|
||||
// ROUTES SUPPORT FOSSBILLING (NATIVES)
|
||||
// ==========================================
|
||||
|
||||
// Récupère la liste de tous les tickets du client
|
||||
export const getClientTickets = () =>
|
||||
apiCall(`${BASE_URL}/api/client/support/ticket_get_list`, 'GET');
|
||||
|
||||
// Récupère le contenu et les messages d'un ticket spécifique
|
||||
export const getTicketDetails = (ticketId) =>
|
||||
apiCall(`${BASE_URL}/api/client/support/ticket_get`, 'POST', { id: ticketId });
|
||||
|
||||
// Crée un nouveau ticket de support
|
||||
export const createTicket = (subject, message, helpdesk_id) =>
|
||||
apiCall(`${BASE_URL}/api/client/support/ticket_create`, 'POST', {
|
||||
support_helpdesk_id: helpdesk_id,
|
||||
subject: subject,
|
||||
content: message
|
||||
});
|
||||
|
||||
// Répond à un ticket existant
|
||||
export const replyTicket = (ticketId, message) =>
|
||||
apiCall(`${BASE_URL}/api/client/support/ticket_reply`, 'POST', {
|
||||
id: ticketId,
|
||||
content: message
|
||||
});
|
||||
|
||||
// Récupère la liste dynamique des départements (Helpdesks) configurés sur FOSSBilling
|
||||
export const getHelpdesks = () =>
|
||||
apiCall(`${BASE_URL}/api/client/support/helpdesk_get_pairs`, 'GET');
|
||||
Reference in New Issue
Block a user