Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This section is designed to create various calendars that can be used both in call routing and in Dialer.

Status
subtletrue
colourBlue
title3.3.0

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.

  • Image Modified

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:

Code Block
{
    "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