The calendar has the following parameters:
Work week - for each day of the week, one or several working time ranges "from hour: minute" - "by hour: minute" can be specified separately.
- Holidays - are set separately, as calendar dates. Can be set with annual repetition or a single day.
To use the calendar in routing, you must call the calendar specifying the name of the calendar and a variable to return the result of the check:
{ "calendar": { "name": "Company business calendar", "setVar": "isWorkDay" } }
If the current time falls into the Work condition of the calendar, then the variable will be set to true, otherwise - false