| 1 | # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file. | ||||||||||||||||||||
| 2 | package Twilio::Rest::Taskrouter::V1::Workspace; | ||||||||||||||||||||
| 3 | |||||||||||||||||||||
| 4 | 2 | ▶ | use 5.016; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 5 | 2 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 6 | |||||||||||||||||||||
| 7 | 2 | our $VERSION = '2.001'; | |||||||||||||||||||
| 8 | |||||||||||||||||||||
| 9 | package Twilio::Rest::Taskrouter::V1::WorkspaceList; | ||||||||||||||||||||
| 10 | |||||||||||||||||||||
| 11 | 2 | ▶ | use parent 'Twilio::ListResource'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 12 | |||||||||||||||||||||
| 13 | 2 | ▶ | use Twilio::Serialize; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 14 | |||||||||||||||||||||
| 15 | 61 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 16 | 61 | my ($class, $version) = @_; | |||||||||||||||||||
| 17 | 61 | my $self = $class->SUPER::new($version); | |||||||||||||||||||
| 18 | 61 | $self->{solution} = {}; | |||||||||||||||||||
| 19 | 61 | $self->{uri} = '/Workspaces'; | |||||||||||||||||||
| 20 | 61 | return $self; | |||||||||||||||||||
| 21 | } | ||||||||||||||||||||
| 22 | |||||||||||||||||||||
| 23 | 1 | ▶ | sub create { | ||||||||||||||||||
|
Subroutine
create: called CC=2 SCAR=7.0
| |||||||||||||||||||||
| 24 | 1 | my ($self, $friendly_name, $options) = @_; | |||||||||||||||||||
| 25 | 1 | ▶ | $options //= {}; | ||||||||||||||||||
|
Condition50%1/2
$options //= {}
MC/DC0%0/1
$options //= {}
$options
Truth table50%1/2
A
A= $options
| |||||||||||||||||||||
| 26 | |||||||||||||||||||||
| 27 | my $data = { | ||||||||||||||||||||
| 28 | FriendlyName => $friendly_name, | ||||||||||||||||||||
| 29 | EventCallbackUrl => $options->{event_callback_url}, | ||||||||||||||||||||
| 30 | EventsFilter => $options->{events_filter}, | ||||||||||||||||||||
| 31 | MultiTaskEnabled => Twilio::Serialize::boolean_to_string($options->{multi_task_enabled}), | ||||||||||||||||||||
| 32 | PrioritizeQueueOrder => $options->{prioritize_queue_order}, | ||||||||||||||||||||
| 33 | Template => $options->{template}, | ||||||||||||||||||||
| 34 | 1 | }; | |||||||||||||||||||
| 35 | |||||||||||||||||||||
| 36 | my $response = | ||||||||||||||||||||
| 37 | 1 | $self->{version}->handle_request('POST', $self->{uri}, 'create', { data => $data }); | |||||||||||||||||||
| 38 | return Twilio::Rest::Taskrouter::V1::WorkspaceInstance->new($self->{version}, | ||||||||||||||||||||
| 39 | 1 | $response->get_content); | |||||||||||||||||||
| 40 | } | ||||||||||||||||||||
| 41 | |||||||||||||||||||||
| 42 | 0 | ▶ | sub read { | ||||||||||||||||||
|
Subroutine
read: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 43 | 0 | my ($self, @arguments) = @_; | |||||||||||||||||||
| 44 | 0 | return $self->read_records(@arguments); | |||||||||||||||||||
| 45 | } | ||||||||||||||||||||
| 46 | |||||||||||||||||||||
| 47 | 0 | ▶ | sub stream { | ||||||||||||||||||
|
Subroutine
stream: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 48 | 0 | my ($self, @arguments) = @_; | |||||||||||||||||||
| 49 | 0 | return $self->stream_records(@arguments); | |||||||||||||||||||
| 50 | } | ||||||||||||||||||||
| 51 | |||||||||||||||||||||
| 52 | 1 | ▶ | sub page { | ||||||||||||||||||
|
Subroutine
page: called CC=2 SCAR=7.0
| |||||||||||||||||||||
| 53 | 1 | my ($self, $options, $page_size, $page_token, $page_number) = @_; | |||||||||||||||||||
| 54 | 1 | ▶ | $options //= {}; | ||||||||||||||||||
|
Condition50%1/2
$options //= {}
MC/DC0%0/1
$options //= {}
$options
Truth table50%1/2
A
A= $options
| |||||||||||||||||||||
| 55 | |||||||||||||||||||||
| 56 | my $params = { | ||||||||||||||||||||
| 57 | FriendlyName => $options->{friendly_name}, | ||||||||||||||||||||
| 58 | 1 | PageToken => $page_token, | |||||||||||||||||||
| 59 | Page => $page_number, | ||||||||||||||||||||
| 60 | PageSize => $page_size, | ||||||||||||||||||||
| 61 | }; | ||||||||||||||||||||
| 62 | |||||||||||||||||||||
| 63 | 1 | my $response = $self->{version}->page('GET', $self->{uri}, { params => $params }); | |||||||||||||||||||
| 64 | 1 | return $self->_build_page($response); | |||||||||||||||||||
| 65 | } | ||||||||||||||||||||
| 66 | |||||||||||||||||||||
| 67 | 0 | ▶ | sub get_page { | ||||||||||||||||||
|
Subroutine
get_page: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 68 | 0 | my ($self, $target_url) = @_; | |||||||||||||||||||
| 69 | 0 | my $client = $self->{version}->get_domain->get_client; | |||||||||||||||||||
| 70 | 0 | return $self->_build_page($client->request('GET', $target_url)); | |||||||||||||||||||
| 71 | } | ||||||||||||||||||||
| 72 | |||||||||||||||||||||
| 73 | 1 | ▶ | sub _build_page { | ||||||||||||||||||
|
Subroutine
_build_page: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 74 | 1 | my ($self, $response) = @_; | |||||||||||||||||||
| 75 | return Twilio::Rest::Taskrouter::V1::WorkspacePage->new($self->{version}, $response, | ||||||||||||||||||||
| 76 | 1 | $self->{solution}); | |||||||||||||||||||
| 77 | } | ||||||||||||||||||||
| 78 | |||||||||||||||||||||
| 79 | 59 | ▶ | sub get_context { | ||||||||||||||||||
|
Subroutine
get_context: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 80 | 59 | my ($self, $sid) = @_; | |||||||||||||||||||
| 81 | 59 | return Twilio::Rest::Taskrouter::V1::WorkspaceContext->new($self->{version}, $sid); | |||||||||||||||||||
| 82 | } | ||||||||||||||||||||
| 83 | |||||||||||||||||||||
| 84 | package Twilio::Rest::Taskrouter::V1::WorkspacePage; | ||||||||||||||||||||
| 85 | |||||||||||||||||||||
| 86 | 2 | ▶ | use parent 'Twilio::Page'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 87 | |||||||||||||||||||||
| 88 | 1 | ▶ | sub records_key { return 'workspaces' } | ||||||||||||||||||
|
Subroutine
records_key: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 89 | |||||||||||||||||||||
| 90 | 1 | ▶ | sub build_instance { | ||||||||||||||||||
|
Subroutine
build_instance: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 91 | 1 | my ($self, $payload) = @_; | |||||||||||||||||||
| 92 | 1 | return Twilio::Rest::Taskrouter::V1::WorkspaceInstance->new($self->{version}, $payload); | |||||||||||||||||||
| 93 | } | ||||||||||||||||||||
| 94 | |||||||||||||||||||||
| 95 | package Twilio::Rest::Taskrouter::V1::WorkspaceContext; | ||||||||||||||||||||
| 96 | |||||||||||||||||||||
| 97 | 2 | ▶ | use parent 'Twilio::InstanceContext'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 98 | |||||||||||||||||||||
| 99 | 2 | ▶ | use Twilio::Serialize; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 100 | |||||||||||||||||||||
| 101 | 59 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 102 | 59 | my ($class, $version, $sid) = @_; | |||||||||||||||||||
| 103 | 59 | my $self = $class->SUPER::new($version); | |||||||||||||||||||
| 104 | 59 | $self->{solution} = { sid => $sid }; | |||||||||||||||||||
| 105 | 59 | $self->{uri} = join q{}, '/Workspaces/', Twilio::Serialize::path_segment($sid); | |||||||||||||||||||
| 106 | 59 | return $self; | |||||||||||||||||||
| 107 | } | ||||||||||||||||||||
| 108 | |||||||||||||||||||||
| 109 | 1 | ▶ | sub delete { | ||||||||||||||||||
|
Subroutine
delete: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 110 | 1 | my ($self) = @_; | |||||||||||||||||||
| 111 | 1 | $self->{version}->handle_request('DELETE', $self->{uri}, 'delete'); | |||||||||||||||||||
| 112 | 1 | return 1; | |||||||||||||||||||
| 113 | } | ||||||||||||||||||||
| 114 | |||||||||||||||||||||
| 115 | 1 | ▶ | sub fetch { | ||||||||||||||||||
|
Subroutine
fetch: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 116 | 1 | my ($self) = @_; | |||||||||||||||||||
| 117 | |||||||||||||||||||||
| 118 | 1 | my $response = $self->{version}->handle_request('GET', $self->{uri}, 'fetch'); | |||||||||||||||||||
| 119 | 1 | return $self->_build_instance($response); | |||||||||||||||||||
| 120 | } | ||||||||||||||||||||
| 121 | |||||||||||||||||||||
| 122 | 1 | ▶ | sub update { | ||||||||||||||||||
|
Subroutine
update: called CC=2 SCAR=7.0
| |||||||||||||||||||||
| 123 | 1 | my ($self, $options) = @_; | |||||||||||||||||||
| 124 | 1 | ▶ | $options //= {}; | ||||||||||||||||||
|
Condition50%1/2
$options //= {}
MC/DC0%0/1
$options //= {}
$options
Truth table50%1/2
A
A= $options
| |||||||||||||||||||||
| 125 | |||||||||||||||||||||
| 126 | my $data = { | ||||||||||||||||||||
| 127 | DefaultActivitySid => $options->{default_activity_sid}, | ||||||||||||||||||||
| 128 | EventCallbackUrl => $options->{event_callback_url}, | ||||||||||||||||||||
| 129 | EventsFilter => $options->{events_filter}, | ||||||||||||||||||||
| 130 | FriendlyName => $options->{friendly_name}, | ||||||||||||||||||||
| 131 | MultiTaskEnabled => Twilio::Serialize::boolean_to_string($options->{multi_task_enabled}), | ||||||||||||||||||||
| 132 | PrioritizeQueueOrder => $options->{prioritize_queue_order}, | ||||||||||||||||||||
| 133 | TimeoutActivitySid => $options->{timeout_activity_sid}, | ||||||||||||||||||||
| 134 | 1 | }; | |||||||||||||||||||
| 135 | |||||||||||||||||||||
| 136 | my $response = | ||||||||||||||||||||
| 137 | 1 | $self->{version}->handle_request('POST', $self->{uri}, 'update', { data => $data }); | |||||||||||||||||||
| 138 | 1 | return $self->_build_instance($response); | |||||||||||||||||||
| 139 | } | ||||||||||||||||||||
| 140 | |||||||||||||||||||||
| 141 | 2 | ▶ | sub _build_instance { | ||||||||||||||||||
|
Subroutine
_build_instance: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 142 | 2 | my ($self, $response) = @_; | |||||||||||||||||||
| 143 | return Twilio::Rest::Taskrouter::V1::WorkspaceInstance->new($self->{version}, | ||||||||||||||||||||
| 144 | 2 | $response->get_content, $self->{solution}{sid}); | |||||||||||||||||||
| 145 | } | ||||||||||||||||||||
| 146 | |||||||||||||||||||||
| 147 | 5 | ▶ | sub activities { | ||||||||||||||||||
|
Subroutine
activities: called CC=2 SCAR=6.9
| |||||||||||||||||||||
| 148 | 5 | my ($self, $sid) = @_; | |||||||||||||||||||
| 149 | 5 | require Twilio::Rest::Taskrouter::V1::Workspace::Activity; | |||||||||||||||||||
| 150 | my $list = Twilio::Rest::Taskrouter::V1::Workspace::ActivityList->new($self->{version}, | ||||||||||||||||||||
| 151 | 5 | $self->{solution}{sid}); | |||||||||||||||||||
| 152 | 5 | ▶ | return defined $sid ? $list->get_context($sid) : $list; | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 153 | } | ||||||||||||||||||||
| 154 | |||||||||||||||||||||
| 155 | 2 | ▶ | sub events { | ||||||||||||||||||
|
Subroutine
events: called CC=2 SCAR=6.9
| |||||||||||||||||||||
| 156 | 2 | my ($self, $sid) = @_; | |||||||||||||||||||
| 157 | 2 | require Twilio::Rest::Taskrouter::V1::Workspace::Event; | |||||||||||||||||||
| 158 | my $list = Twilio::Rest::Taskrouter::V1::Workspace::EventList->new($self->{version}, | ||||||||||||||||||||
| 159 | 2 | $self->{solution}{sid}); | |||||||||||||||||||
| 160 | 2 | ▶ | return defined $sid ? $list->get_context($sid) : $list; | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 161 | } | ||||||||||||||||||||
| 162 | |||||||||||||||||||||
| 163 | 8 | ▶ | sub tasks { | ||||||||||||||||||
|
Subroutine
tasks: called CC=2 SCAR=6.9
| |||||||||||||||||||||
| 164 | 8 | my ($self, $sid) = @_; | |||||||||||||||||||
| 165 | 8 | require Twilio::Rest::Taskrouter::V1::Workspace::Task; | |||||||||||||||||||
| 166 | my $list = Twilio::Rest::Taskrouter::V1::Workspace::TaskList->new($self->{version}, | ||||||||||||||||||||
| 167 | 8 | $self->{solution}{sid}); | |||||||||||||||||||
| 168 | 8 | ▶ | return defined $sid ? $list->get_context($sid) : $list; | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 169 | } | ||||||||||||||||||||
| 170 | |||||||||||||||||||||
| 171 | 5 | ▶ | sub task_channels { | ||||||||||||||||||
|
Subroutine
task_channels: called CC=2 SCAR=6.9
| |||||||||||||||||||||
| 172 | 5 | my ($self, $sid) = @_; | |||||||||||||||||||
| 173 | 5 | require Twilio::Rest::Taskrouter::V1::Workspace::TaskChannel; | |||||||||||||||||||
| 174 | my $list = Twilio::Rest::Taskrouter::V1::Workspace::TaskChannelList->new($self->{version}, | ||||||||||||||||||||
| 175 | 5 | $self->{solution}{sid}); | |||||||||||||||||||
| 176 | 5 | ▶ | return defined $sid ? $list->get_context($sid) : $list; | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 177 | } | ||||||||||||||||||||
| 178 | |||||||||||||||||||||
| 179 | 10 | ▶ | sub task_queues { | ||||||||||||||||||
|
Subroutine
task_queues: called CC=2 SCAR=6.9
| |||||||||||||||||||||
| 180 | 10 | my ($self, $sid) = @_; | |||||||||||||||||||
| 181 | 10 | require Twilio::Rest::Taskrouter::V1::Workspace::TaskQueue; | |||||||||||||||||||
| 182 | my $list = Twilio::Rest::Taskrouter::V1::Workspace::TaskQueueList->new($self->{version}, | ||||||||||||||||||||
| 183 | 10 | $self->{solution}{sid}); | |||||||||||||||||||
| 184 | 10 | ▶ | return defined $sid ? $list->get_context($sid) : $list; | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 185 | } | ||||||||||||||||||||
| 186 | |||||||||||||||||||||
| 187 | 15 | ▶ | sub workers { | ||||||||||||||||||
|
Subroutine
workers: called CC=2 SCAR=6.9
| |||||||||||||||||||||
| 188 | 15 | my ($self, $sid) = @_; | |||||||||||||||||||
| 189 | 15 | require Twilio::Rest::Taskrouter::V1::Workspace::Worker; | |||||||||||||||||||
| 190 | my $list = Twilio::Rest::Taskrouter::V1::Workspace::WorkerList->new($self->{version}, | ||||||||||||||||||||
| 191 | 15 | $self->{solution}{sid}); | |||||||||||||||||||
| 192 | 15 | ▶ | return defined $sid ? $list->get_context($sid) : $list; | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 193 | } | ||||||||||||||||||||
| 194 | |||||||||||||||||||||
| 195 | 8 | ▶ | sub workflows { | ||||||||||||||||||
|
Subroutine
workflows: called CC=2 SCAR=6.9
| |||||||||||||||||||||
| 196 | 8 | my ($self, $sid) = @_; | |||||||||||||||||||
| 197 | 8 | require Twilio::Rest::Taskrouter::V1::Workspace::Workflow; | |||||||||||||||||||
| 198 | my $list = Twilio::Rest::Taskrouter::V1::Workspace::WorkflowList->new($self->{version}, | ||||||||||||||||||||
| 199 | 8 | $self->{solution}{sid}); | |||||||||||||||||||
| 200 | 8 | ▶ | return defined $sid ? $list->get_context($sid) : $list; | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 201 | } | ||||||||||||||||||||
| 202 | |||||||||||||||||||||
| 203 | 1 | ▶ | sub cumulative_statistics { | ||||||||||||||||||
|
Subroutine
cumulative_statistics: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 204 | 1 | my ($self) = @_; | |||||||||||||||||||
| 205 | 1 | require Twilio::Rest::Taskrouter::V1::Workspace::WorkspaceCumulativeStatistics; | |||||||||||||||||||
| 206 | return Twilio::Rest::Taskrouter::V1::Workspace::WorkspaceCumulativeStatisticsContext->new( | ||||||||||||||||||||
| 207 | 1 | $self->{version}, $self->{solution}{sid}); | |||||||||||||||||||
| 208 | } | ||||||||||||||||||||
| 209 | |||||||||||||||||||||
| 210 | 1 | ▶ | sub real_time_statistics { | ||||||||||||||||||
|
Subroutine
real_time_statistics: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 211 | 1 | my ($self) = @_; | |||||||||||||||||||
| 212 | 1 | require Twilio::Rest::Taskrouter::V1::Workspace::WorkspaceRealTimeStatistics; | |||||||||||||||||||
| 213 | return Twilio::Rest::Taskrouter::V1::Workspace::WorkspaceRealTimeStatisticsContext->new( | ||||||||||||||||||||
| 214 | 1 | $self->{version}, $self->{solution}{sid}); | |||||||||||||||||||
| 215 | } | ||||||||||||||||||||
| 216 | |||||||||||||||||||||
| 217 | 1 | ▶ | sub statistics { | ||||||||||||||||||
|
Subroutine
statistics: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 218 | 1 | my ($self) = @_; | |||||||||||||||||||
| 219 | 1 | require Twilio::Rest::Taskrouter::V1::Workspace::WorkspaceStatistics; | |||||||||||||||||||
| 220 | return Twilio::Rest::Taskrouter::V1::Workspace::WorkspaceStatisticsContext->new($self->{version}, | ||||||||||||||||||||
| 221 | 1 | $self->{solution}{sid}); | |||||||||||||||||||
| 222 | } | ||||||||||||||||||||
| 223 | |||||||||||||||||||||
| 224 | package Twilio::Rest::Taskrouter::V1::WorkspaceInstance; | ||||||||||||||||||||
| 225 | |||||||||||||||||||||
| 226 | 2 | ▶ | use parent 'Twilio::InstanceResource'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 227 | |||||||||||||||||||||
| 228 | 2 | ▶ | use Twilio::Deserialize; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 229 | |||||||||||||||||||||
| 230 | 4 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=2 SCAR=7.0
| |||||||||||||||||||||
| 231 | 4 | my ($class, $version, $payload, $sid) = @_; | |||||||||||||||||||
| 232 | 4 | my $self = $class->SUPER::new($version, $payload); | |||||||||||||||||||
| 233 | 4 | ▶ | $self->{solution} = { sid => $sid // $self->{properties}{sid} }; | ||||||||||||||||||
|
Condition66%2/3
$sid // $self->{"properties"}{"sid"}
MC/DC0%0/2
$sid // $self->{"properties"}{"sid"}
$sid
$self->{"properties"}{"sid"}
Truth table66%2/3
A // B
A= $sidB= $self->{"properties"}{"sid"}
| |||||||||||||||||||||
| 234 | 4 | return $self; | |||||||||||||||||||
| 235 | } | ||||||||||||||||||||
| 236 | |||||||||||||||||||||
| 237 | 0 | ▶ | sub delete { | ||||||||||||||||||
|
Subroutine
delete: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 238 | 0 | my ($self, @arguments) = @_; | |||||||||||||||||||
| 239 | 0 | return $self->_context->delete(@arguments); | |||||||||||||||||||
| 240 | } | ||||||||||||||||||||
| 241 | |||||||||||||||||||||
| 242 | 0 | ▶ | sub fetch { | ||||||||||||||||||
|
Subroutine
fetch: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 243 | 0 | my ($self, @arguments) = @_; | |||||||||||||||||||
| 244 | 0 | return $self->_context->fetch(@arguments); | |||||||||||||||||||
| 245 | } | ||||||||||||||||||||
| 246 | |||||||||||||||||||||
| 247 | 0 | ▶ | sub update { | ||||||||||||||||||
|
Subroutine
update: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 248 | 0 | my ($self, @arguments) = @_; | |||||||||||||||||||
| 249 | 0 | return $self->_context->update(@arguments); | |||||||||||||||||||
| 250 | } | ||||||||||||||||||||
| 251 | |||||||||||||||||||||
| 252 | 0 | ▶ | sub activities { | ||||||||||||||||||
|
Subroutine
activities: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 253 | 0 | my ($self, @arguments) = @_; | |||||||||||||||||||
| 254 | 0 | return $self->_context->activities(@arguments); | |||||||||||||||||||
| 255 | } | ||||||||||||||||||||
| 256 | |||||||||||||||||||||
| 257 | 0 | ▶ | sub events { | ||||||||||||||||||
|
Subroutine
events: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 258 | 0 | my ($self, @arguments) = @_; | |||||||||||||||||||
| 259 | 0 | return $self->_context->events(@arguments); | |||||||||||||||||||
| 260 | } | ||||||||||||||||||||
| 261 | |||||||||||||||||||||
| 262 | 0 | ▶ | sub tasks { | ||||||||||||||||||
|
Subroutine
tasks: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 263 | 0 | my ($self, @arguments) = @_; | |||||||||||||||||||
| 264 | 0 | return $self->_context->tasks(@arguments); | |||||||||||||||||||
| 265 | } | ||||||||||||||||||||
| 266 | |||||||||||||||||||||
| 267 | 0 | ▶ | sub task_channels { | ||||||||||||||||||
|
Subroutine
task_channels: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 268 | 0 | my ($self, @arguments) = @_; | |||||||||||||||||||
| 269 | 0 | return $self->_context->task_channels(@arguments); | |||||||||||||||||||
| 270 | } | ||||||||||||||||||||
| 271 | |||||||||||||||||||||
| 272 | 0 | ▶ | sub task_queues { | ||||||||||||||||||
|
Subroutine
task_queues: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 273 | 0 | my ($self, @arguments) = @_; | |||||||||||||||||||
| 274 | 0 | return $self->_context->task_queues(@arguments); | |||||||||||||||||||
| 275 | } | ||||||||||||||||||||
| 276 | |||||||||||||||||||||
| 277 | 0 | ▶ | sub workers { | ||||||||||||||||||
|
Subroutine
workers: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 278 | 0 | my ($self, @arguments) = @_; | |||||||||||||||||||
| 279 | 0 | return $self->_context->workers(@arguments); | |||||||||||||||||||
| 280 | } | ||||||||||||||||||||
| 281 | |||||||||||||||||||||
| 282 | 0 | ▶ | sub workflows { | ||||||||||||||||||
|
Subroutine
workflows: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 283 | 0 | my ($self, @arguments) = @_; | |||||||||||||||||||
| 284 | 0 | return $self->_context->workflows(@arguments); | |||||||||||||||||||
| 285 | } | ||||||||||||||||||||
| 286 | |||||||||||||||||||||
| 287 | 0 | ▶ | sub cumulative_statistics { | ||||||||||||||||||
|
Subroutine
cumulative_statistics: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 288 | 0 | my ($self, @arguments) = @_; | |||||||||||||||||||
| 289 | 0 | return $self->_context->cumulative_statistics(@arguments); | |||||||||||||||||||
| 290 | } | ||||||||||||||||||||
| 291 | |||||||||||||||||||||
| 292 | 0 | ▶ | sub real_time_statistics { | ||||||||||||||||||
|
Subroutine
real_time_statistics: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 293 | 0 | my ($self, @arguments) = @_; | |||||||||||||||||||
| 294 | 0 | return $self->_context->real_time_statistics(@arguments); | |||||||||||||||||||
| 295 | } | ||||||||||||||||||||
| 296 | |||||||||||||||||||||
| 297 | 0 | ▶ | sub statistics { | ||||||||||||||||||
|
Subroutine
statistics: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 298 | 0 | my ($self, @arguments) = @_; | |||||||||||||||||||
| 299 | 0 | return $self->_context->statistics(@arguments); | |||||||||||||||||||
| 300 | } | ||||||||||||||||||||
| 301 | |||||||||||||||||||||
| 302 | 0 | ▶ | sub _context { | ||||||||||||||||||
|
Subroutine
_context: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 303 | 0 | my ($self) = @_; | |||||||||||||||||||
| 304 | return Twilio::Rest::Taskrouter::V1::WorkspaceContext->new($self->{version}, | ||||||||||||||||||||
| 305 | 0 | $self->{solution}{sid}); | |||||||||||||||||||
| 306 | } | ||||||||||||||||||||
| 307 | |||||||||||||||||||||
| 308 | 4 | ▶ | sub account_sid { return $_[0]{properties}{account_sid} } | ||||||||||||||||||
|
Subroutine
account_sid: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 309 | 4 | ▶ | sub date_created { return Twilio::Deserialize::date_time($_[0]{properties}{date_created}) } | ||||||||||||||||||
|
Subroutine
date_created: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 310 | 4 | ▶ | sub date_updated { return Twilio::Deserialize::date_time($_[0]{properties}{date_updated}) } | ||||||||||||||||||
|
Subroutine
date_updated: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 311 | 4 | ▶ | sub default_activity_name { return $_[0]{properties}{default_activity_name} } | ||||||||||||||||||
|
Subroutine
default_activity_name: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 312 | 4 | ▶ | sub default_activity_sid { return $_[0]{properties}{default_activity_sid} } | ||||||||||||||||||
|
Subroutine
default_activity_sid: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 313 | 4 | ▶ | sub event_callback_url { return $_[0]{properties}{event_callback_url} } | ||||||||||||||||||
|
Subroutine
event_callback_url: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 314 | 4 | ▶ | sub events_filter { return $_[0]{properties}{events_filter} } | ||||||||||||||||||
|
Subroutine
events_filter: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 315 | 4 | ▶ | sub friendly_name { return $_[0]{properties}{friendly_name} } | ||||||||||||||||||
|
Subroutine
friendly_name: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 316 | 4 | ▶ | sub links { return $_[0]{properties}{links} } | ||||||||||||||||||
|
Subroutine
links: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 317 | 4 | ▶ | sub multi_task_enabled { return $_[0]{properties}{multi_task_enabled} } | ||||||||||||||||||
|
Subroutine
multi_task_enabled: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 318 | 4 | ▶ | sub prioritize_queue_order { return $_[0]{properties}{prioritize_queue_order} } | ||||||||||||||||||
|
Subroutine
prioritize_queue_order: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 319 | 4 | ▶ | sub sid { return $_[0]{properties}{sid} } | ||||||||||||||||||
|
Subroutine
sid: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 320 | 4 | ▶ | sub timeout_activity_name { return $_[0]{properties}{timeout_activity_name} } | ||||||||||||||||||
|
Subroutine
timeout_activity_name: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 321 | 4 | ▶ | sub timeout_activity_sid { return $_[0]{properties}{timeout_activity_sid} } | ||||||||||||||||||
|
Subroutine
timeout_activity_sid: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 322 | 4 | ▶ | sub url { return $_[0]{properties}{url} } | ||||||||||||||||||
|
Subroutine
url: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 323 | |||||||||||||||||||||
| 324 | 2 | 1; | |||||||||||||||||||
| 325 | |||||||||||||||||||||
| 326 | __END__ | ||||||||||||||||||||