1234567891011121314151617181920212223242526272829 |
- function supportTicketNoInit(){
- let ticketId = null;
-
- INIT();
-
- function INIT(){
- ticketId = window.location.search.split("=")[1];
- getTicketData(ticketId);
- }
-
- async function getTicketData(id){
- let res = await API_SERVICES_ACTIONS.getAPIService(`apis/v4/anwisystems/integrations/products/getticketdetails/ticketno/${id}`);
-
- if(res.isError){
- toasterHelper("error",res.errorMsg,`toast-top-right`);
- return;
- }
-
- res = JSON.parse(res.response.result)[0];
-
- $('.description_support').html(res['Description']);
- $('.ticketidsupport').html(res['ticketno']);
- $('.raiseddate').html(res['Raised Date']);
-
- console.log(res);
- }
- }
-
- supportTicketNoInit();
|