how to check passing schedule name is online or not using javascirpt ? There is a link
[https://developer.mypurecloud.com/api/tutorials/architect-schedules/#nodejs]
to check using node.js by calling the function isCurrentlyInSchedule(schedule) but not for javascript. we would like to pass schedule name to check if online or offline and based on that we want to display either chat window or offline message.
how can do it using javascirpt? any help is really helpful.
Thanks