$dialer.getCampaignSchedule
This method returns the call campaign schedule set when it was created.
Syntax
The method is called without arguments:
$dialer.getCampaignSchedule();
The method returns an object with two properties, allowedDays
and allowedTime
.
tip
See the Calls API
POST /addPhones
method specification for the description of allowedDays
and allowedTime
value formats.Example
Create a call campaign with the following settings:
When called from the script during this campaign, the method will return the following object:
{
"allowedDays": [
"mon",
"tue",
"wed",
"thu",
"fri"
],
"allowedTime": {
"default": [
{
"localTimeFrom": "09:00",
"localTimeTo": "18:00"
}
]
}
}