Checking schedule if online or offline using javascript

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

we would like to pass schedule name to check if online or offline

I would suggesting following the example you posted and adding some logic to choose a specific schedule by evaluating the schedule name.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.