Developers

GetWorkTimetables

Usage

Use this method to obtain all work timetables and holidays for the agents in a specific queue of a Messenger instance.

client.getWorkTimeTable(data).then(function(result){

});

Mandatory parameters

This method has no mandatory parameters.

Optional parameters

Name Type Description
timezone string The timezone code (e.g. "Europe/Madrid") in which the result has to be codified

Response data format

For each queue that has a timetable and/or holidays configured, the getWorkTimeTable method returns all the information on the configured timetables and holidays. For the full response model, please see the Responses section for the GET /settings/work-timetable endpoint on the Messenger API Routes page.

Example

client.getWorkTimeTable(timezone).then(function(result){
  console.log(timezone);
});