According to Twilio Docs I'm trying develop a Call-center Application But The TaskRouter JS
v1.13/taskrouter.min.js Not supporting as twilio explain in document https://www.twilio.com/docs/taskrouter/js-sdk/worker#reservation-created
worker.on("reservation.created", function(reservation) {
console.log(reservation.task.attributes) // NOT FOUND
console.log(reservation.task.priority) // NOT FOUND
console.log(reservation.task.age) // NOT FOUND
console.log(reservation.task.sid) // NOT FOUND
console.log(reservation.sid) // RETURNS task sid
});
reservation.sid print task sid & If I remove .task It returns respective output related to task But here I expect reservation related output.
Below are twilio client SDK are currently used in my application.