let Ticketing = require('Ticketing');
let Ticket = require('Ticket');
require('Ticket.const');

module.exports.loop = function () {
    let TicketSystem = new Ticketing();
    
    let workerBodyReq = [MOVE, CARRY, WORK];
    let workerTaskList = [TASK_FILL_SPAWN, TASK_FILL_STORAGE, TASK_IDLE];
    
    let ticket = new Ticket("Spawn1", 1, workerTaskList, workerBodyReq);
    let n = ticket.number;
    
    TicketSystem.CreateTicket(ticket);
    
}

@@ -443,10 +443,285 @@
 );%0A    %0A
+    ticket = TicketSystem.GetTicket(ticketNumber);%0A    %0A    TicketSystem.IncreasePriority(ticketNumber);%0A    TicketSystem.DecreasePriority(ticketNumber);%0A    %0A    TicketSystem.ChangeTicketStatus(ticketNumber, STATUS_WORKING);%0A    %0A    TicketSystem.CloseTicket(ticketNumber);%0A
 %7D%0A

Update main.js