tencentcloud-sdk-ccc 1.0.200

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1901 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ module TencentCloud
18
+ module Ccc
19
+ module V20200210
20
+ # BindStaffSkillGroupList请求参数结构体
21
+ class BindStaffSkillGroupListRequest < TencentCloud::Common::AbstractModel
22
+ # @param SdkAppId: 实例ID
23
+ # @type SdkAppId: Integer
24
+ # @param StaffEmail: 坐席邮箱
25
+ # @type StaffEmail: String
26
+ # @param SkillGroupList: 绑定技能组列表
27
+ # @type SkillGroupList: Array
28
+
29
+ attr_accessor :SdkAppId, :StaffEmail, :SkillGroupList
30
+
31
+ def initialize(sdkappid=nil, staffemail=nil, skillgrouplist=nil)
32
+ @SdkAppId = sdkappid
33
+ @StaffEmail = staffemail
34
+ @SkillGroupList = skillgrouplist
35
+ end
36
+
37
+ def deserialize(params)
38
+ @SdkAppId = params['SdkAppId']
39
+ @StaffEmail = params['StaffEmail']
40
+ @SkillGroupList = params['SkillGroupList']
41
+ end
42
+ end
43
+
44
+ # BindStaffSkillGroupList返回参数结构体
45
+ class BindStaffSkillGroupListResponse < TencentCloud::Common::AbstractModel
46
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
47
+ # @type RequestId: String
48
+
49
+ attr_accessor :RequestId
50
+
51
+ def initialize(requestid=nil)
52
+ @RequestId = requestid
53
+ end
54
+
55
+ def deserialize(params)
56
+ @RequestId = params['RequestId']
57
+ end
58
+ end
59
+
60
+ # 呼入实时指标
61
+ class CallInMetrics < TencentCloud::Common::AbstractModel
62
+ # @param IvrCount: IVR驻留数量
63
+ # @type IvrCount: Integer
64
+ # @param QueueCount: 排队中数量
65
+ # @type QueueCount: Integer
66
+ # @param RingCount: 振铃中数量
67
+ # @type RingCount: Integer
68
+ # @param AcceptCount: 接通中数量
69
+ # @type AcceptCount: Integer
70
+ # @param TransferOuterCount: 客服转接外线中数量
71
+ # @type TransferOuterCount: Integer
72
+ # @param MaxQueueDuration: 最大排队时长
73
+ # @type MaxQueueDuration: Integer
74
+ # @param AvgQueueDuration: 平均排队时长
75
+ # @type AvgQueueDuration: Integer
76
+ # @param MaxRingDuration: 最大振铃时长
77
+ # @type MaxRingDuration: Integer
78
+ # @param AvgRingDuration: 平均振铃时长
79
+ # @type AvgRingDuration: Integer
80
+ # @param MaxAcceptDuration: 最大接通时长
81
+ # @type MaxAcceptDuration: Integer
82
+ # @param AvgAcceptDuration: 平均接通时长
83
+ # @type AvgAcceptDuration: Integer
84
+
85
+ attr_accessor :IvrCount, :QueueCount, :RingCount, :AcceptCount, :TransferOuterCount, :MaxQueueDuration, :AvgQueueDuration, :MaxRingDuration, :AvgRingDuration, :MaxAcceptDuration, :AvgAcceptDuration
86
+
87
+ def initialize(ivrcount=nil, queuecount=nil, ringcount=nil, acceptcount=nil, transferoutercount=nil, maxqueueduration=nil, avgqueueduration=nil, maxringduration=nil, avgringduration=nil, maxacceptduration=nil, avgacceptduration=nil)
88
+ @IvrCount = ivrcount
89
+ @QueueCount = queuecount
90
+ @RingCount = ringcount
91
+ @AcceptCount = acceptcount
92
+ @TransferOuterCount = transferoutercount
93
+ @MaxQueueDuration = maxqueueduration
94
+ @AvgQueueDuration = avgqueueduration
95
+ @MaxRingDuration = maxringduration
96
+ @AvgRingDuration = avgringduration
97
+ @MaxAcceptDuration = maxacceptduration
98
+ @AvgAcceptDuration = avgacceptduration
99
+ end
100
+
101
+ def deserialize(params)
102
+ @IvrCount = params['IvrCount']
103
+ @QueueCount = params['QueueCount']
104
+ @RingCount = params['RingCount']
105
+ @AcceptCount = params['AcceptCount']
106
+ @TransferOuterCount = params['TransferOuterCount']
107
+ @MaxQueueDuration = params['MaxQueueDuration']
108
+ @AvgQueueDuration = params['AvgQueueDuration']
109
+ @MaxRingDuration = params['MaxRingDuration']
110
+ @AvgRingDuration = params['AvgRingDuration']
111
+ @MaxAcceptDuration = params['MaxAcceptDuration']
112
+ @AvgAcceptDuration = params['AvgAcceptDuration']
113
+ end
114
+ end
115
+
116
+ # 呼入线路维度相关指标
117
+ class CallInNumberMetrics < TencentCloud::Common::AbstractModel
118
+ # @param Number: 线路号码
119
+ # @type Number: String
120
+ # @param Metrics: 线路相关指标
121
+ # @type Metrics: :class:`Tencentcloud::Ccc.v20200210.models.CallInMetrics`
122
+ # @param SkillGroupMetrics: 所属技能组相关指标
123
+ # @type SkillGroupMetrics: Array
124
+
125
+ attr_accessor :Number, :Metrics, :SkillGroupMetrics
126
+
127
+ def initialize(number=nil, metrics=nil, skillgroupmetrics=nil)
128
+ @Number = number
129
+ @Metrics = metrics
130
+ @SkillGroupMetrics = skillgroupmetrics
131
+ end
132
+
133
+ def deserialize(params)
134
+ @Number = params['Number']
135
+ unless params['Metrics'].nil?
136
+ @Metrics = CallInMetrics.new
137
+ @Metrics.deserialize(params['Metrics'])
138
+ end
139
+ unless params['SkillGroupMetrics'].nil?
140
+ @SkillGroupMetrics = []
141
+ params['SkillGroupMetrics'].each do |i|
142
+ callinskillgroupmetrics_tmp = CallInSkillGroupMetrics.new
143
+ callinskillgroupmetrics_tmp.deserialize(i)
144
+ @SkillGroupMetrics << callinskillgroupmetrics_tmp
145
+ end
146
+ end
147
+ end
148
+ end
149
+
150
+ # 呼入技能组相关指标
151
+ class CallInSkillGroupMetrics < TencentCloud::Common::AbstractModel
152
+ # @param SkillGroupId: 技能组ID
153
+ # @type SkillGroupId: Integer
154
+ # @param Metrics: 数据指标
155
+ # @type Metrics: :class:`Tencentcloud::Ccc.v20200210.models.CallInMetrics`
156
+ # @param Name: 技能组名称
157
+ # @type Name: String
158
+
159
+ attr_accessor :SkillGroupId, :Metrics, :Name
160
+
161
+ def initialize(skillgroupid=nil, metrics=nil, name=nil)
162
+ @SkillGroupId = skillgroupid
163
+ @Metrics = metrics
164
+ @Name = name
165
+ end
166
+
167
+ def deserialize(params)
168
+ @SkillGroupId = params['SkillGroupId']
169
+ unless params['Metrics'].nil?
170
+ @Metrics = CallInMetrics.new
171
+ @Metrics.deserialize(params['Metrics'])
172
+ end
173
+ @Name = params['Name']
174
+ end
175
+ end
176
+
177
+ # CreateSDKLoginToken请求参数结构体
178
+ class CreateSDKLoginTokenRequest < TencentCloud::Common::AbstractModel
179
+ # @param SdkAppId: 应用ID。
180
+ # @type SdkAppId: Integer
181
+ # @param SeatUserId: 坐席账号。
182
+ # @type SeatUserId: String
183
+
184
+ attr_accessor :SdkAppId, :SeatUserId
185
+
186
+ def initialize(sdkappid=nil, seatuserid=nil)
187
+ @SdkAppId = sdkappid
188
+ @SeatUserId = seatuserid
189
+ end
190
+
191
+ def deserialize(params)
192
+ @SdkAppId = params['SdkAppId']
193
+ @SeatUserId = params['SeatUserId']
194
+ end
195
+ end
196
+
197
+ # CreateSDKLoginToken返回参数结构体
198
+ class CreateSDKLoginTokenResponse < TencentCloud::Common::AbstractModel
199
+ # @param Token: SDK 登录 Token。
200
+ # @type Token: String
201
+ # @param ExpiredTime: 过期时间戳,Unix 时间戳。
202
+ # @type ExpiredTime: Integer
203
+ # @param SdkURL: SDK 加载路径会随着 SDK 的发布而变动。
204
+ # @type SdkURL: String
205
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
206
+ # @type RequestId: String
207
+
208
+ attr_accessor :Token, :ExpiredTime, :SdkURL, :RequestId
209
+
210
+ def initialize(token=nil, expiredtime=nil, sdkurl=nil, requestid=nil)
211
+ @Token = token
212
+ @ExpiredTime = expiredtime
213
+ @SdkURL = sdkurl
214
+ @RequestId = requestid
215
+ end
216
+
217
+ def deserialize(params)
218
+ @Token = params['Token']
219
+ @ExpiredTime = params['ExpiredTime']
220
+ @SdkURL = params['SdkURL']
221
+ @RequestId = params['RequestId']
222
+ end
223
+ end
224
+
225
+ # CreateStaff请求参数结构体
226
+ class CreateStaffRequest < TencentCloud::Common::AbstractModel
227
+ # @param SdkAppId: 应用ID
228
+ # @type SdkAppId: Integer
229
+ # @param Staffs: 客服信息,个数不超过 10
230
+ # @type Staffs: Array
231
+
232
+ attr_accessor :SdkAppId, :Staffs
233
+
234
+ def initialize(sdkappid=nil, staffs=nil)
235
+ @SdkAppId = sdkappid
236
+ @Staffs = staffs
237
+ end
238
+
239
+ def deserialize(params)
240
+ @SdkAppId = params['SdkAppId']
241
+ unless params['Staffs'].nil?
242
+ @Staffs = []
243
+ params['Staffs'].each do |i|
244
+ seatuserinfo_tmp = SeatUserInfo.new
245
+ seatuserinfo_tmp.deserialize(i)
246
+ @Staffs << seatuserinfo_tmp
247
+ end
248
+ end
249
+ end
250
+ end
251
+
252
+ # CreateStaff返回参数结构体
253
+ class CreateStaffResponse < TencentCloud::Common::AbstractModel
254
+ # @param ErrorStaffList: 错误坐席列表及错误信息
255
+ # 注意:此字段可能返回 null,表示取不到有效值。
256
+ # @type ErrorStaffList: Array
257
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
258
+ # @type RequestId: String
259
+
260
+ attr_accessor :ErrorStaffList, :RequestId
261
+
262
+ def initialize(errorstafflist=nil, requestid=nil)
263
+ @ErrorStaffList = errorstafflist
264
+ @RequestId = requestid
265
+ end
266
+
267
+ def deserialize(params)
268
+ unless params['ErrorStaffList'].nil?
269
+ @ErrorStaffList = []
270
+ params['ErrorStaffList'].each do |i|
271
+ errstaffitem_tmp = ErrStaffItem.new
272
+ errstaffitem_tmp.deserialize(i)
273
+ @ErrorStaffList << errstaffitem_tmp
274
+ end
275
+ end
276
+ @RequestId = params['RequestId']
277
+ end
278
+ end
279
+
280
+ # CreateUserSig请求参数结构体
281
+ class CreateUserSigRequest < TencentCloud::Common::AbstractModel
282
+ # @param SdkAppId: 应用 ID
283
+ # @type SdkAppId: Integer
284
+ # @param Uid: 用户 ID
285
+ # @type Uid: String
286
+ # @param ExpiredTime: 有效期,单位秒,不超过 1 小时
287
+ # @type ExpiredTime: Integer
288
+ # @param ClientData: 用户签名数据
289
+ # @type ClientData: String
290
+
291
+ attr_accessor :SdkAppId, :Uid, :ExpiredTime, :ClientData
292
+
293
+ def initialize(sdkappid=nil, uid=nil, expiredtime=nil, clientdata=nil)
294
+ @SdkAppId = sdkappid
295
+ @Uid = uid
296
+ @ExpiredTime = expiredtime
297
+ @ClientData = clientdata
298
+ end
299
+
300
+ def deserialize(params)
301
+ @SdkAppId = params['SdkAppId']
302
+ @Uid = params['Uid']
303
+ @ExpiredTime = params['ExpiredTime']
304
+ @ClientData = params['ClientData']
305
+ end
306
+ end
307
+
308
+ # CreateUserSig返回参数结构体
309
+ class CreateUserSigResponse < TencentCloud::Common::AbstractModel
310
+ # @param UserSig: 签名结果
311
+ # @type UserSig: String
312
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
313
+ # @type RequestId: String
314
+
315
+ attr_accessor :UserSig, :RequestId
316
+
317
+ def initialize(usersig=nil, requestid=nil)
318
+ @UserSig = usersig
319
+ @RequestId = requestid
320
+ end
321
+
322
+ def deserialize(params)
323
+ @UserSig = params['UserSig']
324
+ @RequestId = params['RequestId']
325
+ end
326
+ end
327
+
328
+ # DeleteStaff请求参数结构体
329
+ class DeleteStaffRequest < TencentCloud::Common::AbstractModel
330
+ # @param SdkAppId: 实例ID
331
+ # @type SdkAppId: Integer
332
+ # @param StaffList: 待删除客服邮箱列表
333
+ # @type StaffList: Array
334
+
335
+ attr_accessor :SdkAppId, :StaffList
336
+
337
+ def initialize(sdkappid=nil, stafflist=nil)
338
+ @SdkAppId = sdkappid
339
+ @StaffList = stafflist
340
+ end
341
+
342
+ def deserialize(params)
343
+ @SdkAppId = params['SdkAppId']
344
+ @StaffList = params['StaffList']
345
+ end
346
+ end
347
+
348
+ # DeleteStaff返回参数结构体
349
+ class DeleteStaffResponse < TencentCloud::Common::AbstractModel
350
+ # @param OnlineStaffList: 无法删除的状态为在线的客服列表
351
+ # 注意:此字段可能返回 null,表示取不到有效值。
352
+ # @type OnlineStaffList: Array
353
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
354
+ # @type RequestId: String
355
+
356
+ attr_accessor :OnlineStaffList, :RequestId
357
+
358
+ def initialize(onlinestafflist=nil, requestid=nil)
359
+ @OnlineStaffList = onlinestafflist
360
+ @RequestId = requestid
361
+ end
362
+
363
+ def deserialize(params)
364
+ @OnlineStaffList = params['OnlineStaffList']
365
+ @RequestId = params['RequestId']
366
+ end
367
+ end
368
+
369
+ # DescribeCallInMetrics请求参数结构体
370
+ class DescribeCallInMetricsRequest < TencentCloud::Common::AbstractModel
371
+ # @param SdkAppId: 实例ID
372
+ # @type SdkAppId: Integer
373
+ # @param EnabledSkillGroup: 是否返回技能组维度信息,默认“是”
374
+ # @type EnabledSkillGroup: Boolean
375
+ # @param EnabledNumber: 是否返回线路维度信息,默认“否”
376
+ # @type EnabledNumber: Boolean
377
+
378
+ attr_accessor :SdkAppId, :EnabledSkillGroup, :EnabledNumber
379
+
380
+ def initialize(sdkappid=nil, enabledskillgroup=nil, enablednumber=nil)
381
+ @SdkAppId = sdkappid
382
+ @EnabledSkillGroup = enabledskillgroup
383
+ @EnabledNumber = enablednumber
384
+ end
385
+
386
+ def deserialize(params)
387
+ @SdkAppId = params['SdkAppId']
388
+ @EnabledSkillGroup = params['EnabledSkillGroup']
389
+ @EnabledNumber = params['EnabledNumber']
390
+ end
391
+ end
392
+
393
+ # DescribeCallInMetrics返回参数结构体
394
+ class DescribeCallInMetricsResponse < TencentCloud::Common::AbstractModel
395
+ # @param Timestamp: 时间戳
396
+ # @type Timestamp: Integer
397
+ # @param TotalMetrics: 总体指标
398
+ # @type TotalMetrics: :class:`Tencentcloud::Ccc.v20200210.models.CallInMetrics`
399
+ # @param NumberMetrics: 线路维度指标
400
+ # 注意:此字段可能返回 null,表示取不到有效值。
401
+ # @type NumberMetrics: Array
402
+ # @param SkillGroupMetrics: 技能组维度指标
403
+ # 注意:此字段可能返回 null,表示取不到有效值。
404
+ # @type SkillGroupMetrics: Array
405
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
406
+ # @type RequestId: String
407
+
408
+ attr_accessor :Timestamp, :TotalMetrics, :NumberMetrics, :SkillGroupMetrics, :RequestId
409
+
410
+ def initialize(timestamp=nil, totalmetrics=nil, numbermetrics=nil, skillgroupmetrics=nil, requestid=nil)
411
+ @Timestamp = timestamp
412
+ @TotalMetrics = totalmetrics
413
+ @NumberMetrics = numbermetrics
414
+ @SkillGroupMetrics = skillgroupmetrics
415
+ @RequestId = requestid
416
+ end
417
+
418
+ def deserialize(params)
419
+ @Timestamp = params['Timestamp']
420
+ unless params['TotalMetrics'].nil?
421
+ @TotalMetrics = CallInMetrics.new
422
+ @TotalMetrics.deserialize(params['TotalMetrics'])
423
+ end
424
+ unless params['NumberMetrics'].nil?
425
+ @NumberMetrics = []
426
+ params['NumberMetrics'].each do |i|
427
+ callinnumbermetrics_tmp = CallInNumberMetrics.new
428
+ callinnumbermetrics_tmp.deserialize(i)
429
+ @NumberMetrics << callinnumbermetrics_tmp
430
+ end
431
+ end
432
+ unless params['SkillGroupMetrics'].nil?
433
+ @SkillGroupMetrics = []
434
+ params['SkillGroupMetrics'].each do |i|
435
+ callinskillgroupmetrics_tmp = CallInSkillGroupMetrics.new
436
+ callinskillgroupmetrics_tmp.deserialize(i)
437
+ @SkillGroupMetrics << callinskillgroupmetrics_tmp
438
+ end
439
+ end
440
+ @RequestId = params['RequestId']
441
+ end
442
+ end
443
+
444
+ # DescribeChatMessages请求参数结构体
445
+ class DescribeChatMessagesRequest < TencentCloud::Common::AbstractModel
446
+ # @param InstanceId: 实例ID
447
+ # @type InstanceId: Integer
448
+ # @param SdkAppId: 应用ID
449
+ # @type SdkAppId: Integer
450
+ # @param CdrId: 服务记录ID
451
+ # @type CdrId: String
452
+ # @param Limit: 返回记录条数 最大为100默认20
453
+ # @type Limit: Integer
454
+ # @param Offset: 返回记录偏移 默认为0
455
+ # @type Offset: Integer
456
+ # @param Order: 1为从早到晚,2为从晚到早,默认为2
457
+ # @type Order: Integer
458
+ # @param SessionId: 服务记录SessionID
459
+ # @type SessionId: String
460
+
461
+ attr_accessor :InstanceId, :SdkAppId, :CdrId, :Limit, :Offset, :Order, :SessionId
462
+
463
+ def initialize(instanceid=nil, sdkappid=nil, cdrid=nil, limit=nil, offset=nil, order=nil, sessionid=nil)
464
+ @InstanceId = instanceid
465
+ @SdkAppId = sdkappid
466
+ @CdrId = cdrid
467
+ @Limit = limit
468
+ @Offset = offset
469
+ @Order = order
470
+ @SessionId = sessionid
471
+ end
472
+
473
+ def deserialize(params)
474
+ @InstanceId = params['InstanceId']
475
+ @SdkAppId = params['SdkAppId']
476
+ @CdrId = params['CdrId']
477
+ @Limit = params['Limit']
478
+ @Offset = params['Offset']
479
+ @Order = params['Order']
480
+ @SessionId = params['SessionId']
481
+ end
482
+ end
483
+
484
+ # DescribeChatMessages返回参数结构体
485
+ class DescribeChatMessagesResponse < TencentCloud::Common::AbstractModel
486
+ # @param TotalCount: 总记录数
487
+ # @type TotalCount: Integer
488
+ # @param Messages: 消息列表
489
+ # @type Messages: Array
490
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
491
+ # @type RequestId: String
492
+
493
+ attr_accessor :TotalCount, :Messages, :RequestId
494
+
495
+ def initialize(totalcount=nil, messages=nil, requestid=nil)
496
+ @TotalCount = totalcount
497
+ @Messages = messages
498
+ @RequestId = requestid
499
+ end
500
+
501
+ def deserialize(params)
502
+ @TotalCount = params['TotalCount']
503
+ unless params['Messages'].nil?
504
+ @Messages = []
505
+ params['Messages'].each do |i|
506
+ messagebody_tmp = MessageBody.new
507
+ messagebody_tmp.deserialize(i)
508
+ @Messages << messagebody_tmp
509
+ end
510
+ end
511
+ @RequestId = params['RequestId']
512
+ end
513
+ end
514
+
515
+ # DescribeIMCdrs请求参数结构体
516
+ class DescribeIMCdrsRequest < TencentCloud::Common::AbstractModel
517
+ # @param StartTimestamp: 起始时间
518
+ # @type StartTimestamp: Integer
519
+ # @param EndTimestamp: 结束时间
520
+ # @type EndTimestamp: Integer
521
+ # @param InstanceId: 实例ID
522
+ # @type InstanceId: Integer
523
+ # @param SdkAppId: 应用ID
524
+ # @type SdkAppId: Integer
525
+ # @param Limit: 返回记录条数 最大为100默认20
526
+ # @type Limit: Integer
527
+ # @param Offset: 返回记录偏移 默认为0
528
+ # @type Offset: Integer
529
+ # @param Type: 1为全媒体,2为文本客服,不填则查询全部
530
+ # @type Type: Integer
531
+
532
+ attr_accessor :StartTimestamp, :EndTimestamp, :InstanceId, :SdkAppId, :Limit, :Offset, :Type
533
+
534
+ def initialize(starttimestamp=nil, endtimestamp=nil, instanceid=nil, sdkappid=nil, limit=nil, offset=nil, type=nil)
535
+ @StartTimestamp = starttimestamp
536
+ @EndTimestamp = endtimestamp
537
+ @InstanceId = instanceid
538
+ @SdkAppId = sdkappid
539
+ @Limit = limit
540
+ @Offset = offset
541
+ @Type = type
542
+ end
543
+
544
+ def deserialize(params)
545
+ @StartTimestamp = params['StartTimestamp']
546
+ @EndTimestamp = params['EndTimestamp']
547
+ @InstanceId = params['InstanceId']
548
+ @SdkAppId = params['SdkAppId']
549
+ @Limit = params['Limit']
550
+ @Offset = params['Offset']
551
+ @Type = params['Type']
552
+ end
553
+ end
554
+
555
+ # DescribeIMCdrs返回参数结构体
556
+ class DescribeIMCdrsResponse < TencentCloud::Common::AbstractModel
557
+ # @param TotalCount: 总记录数
558
+ # @type TotalCount: Integer
559
+ # @param IMCdrs: 服务记录列表
560
+ # @type IMCdrs: Array
561
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
562
+ # @type RequestId: String
563
+
564
+ attr_accessor :TotalCount, :IMCdrs, :RequestId
565
+
566
+ def initialize(totalcount=nil, imcdrs=nil, requestid=nil)
567
+ @TotalCount = totalcount
568
+ @IMCdrs = imcdrs
569
+ @RequestId = requestid
570
+ end
571
+
572
+ def deserialize(params)
573
+ @TotalCount = params['TotalCount']
574
+ unless params['IMCdrs'].nil?
575
+ @IMCdrs = []
576
+ params['IMCdrs'].each do |i|
577
+ imcdrinfo_tmp = IMCdrInfo.new
578
+ imcdrinfo_tmp.deserialize(i)
579
+ @IMCdrs << imcdrinfo_tmp
580
+ end
581
+ end
582
+ @RequestId = params['RequestId']
583
+ end
584
+ end
585
+
586
+ # DescribePSTNActiveSessionList请求参数结构体
587
+ class DescribePSTNActiveSessionListRequest < TencentCloud::Common::AbstractModel
588
+ # @param SdkAppId: 应用 ID
589
+ # @type SdkAppId: Integer
590
+ # @param Offset: 数据偏移
591
+ # @type Offset: Integer
592
+ # @param Limit: 返回的数据条数,最大 25
593
+ # @type Limit: Integer
594
+
595
+ attr_accessor :SdkAppId, :Offset, :Limit
596
+
597
+ def initialize(sdkappid=nil, offset=nil, limit=nil)
598
+ @SdkAppId = sdkappid
599
+ @Offset = offset
600
+ @Limit = limit
601
+ end
602
+
603
+ def deserialize(params)
604
+ @SdkAppId = params['SdkAppId']
605
+ @Offset = params['Offset']
606
+ @Limit = params['Limit']
607
+ end
608
+ end
609
+
610
+ # DescribePSTNActiveSessionList返回参数结构体
611
+ class DescribePSTNActiveSessionListResponse < TencentCloud::Common::AbstractModel
612
+ # @param Total: 列表总条数
613
+ # @type Total: Integer
614
+ # @param Sessions: 列表内容
615
+ # @type Sessions: Array
616
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
617
+ # @type RequestId: String
618
+
619
+ attr_accessor :Total, :Sessions, :RequestId
620
+
621
+ def initialize(total=nil, sessions=nil, requestid=nil)
622
+ @Total = total
623
+ @Sessions = sessions
624
+ @RequestId = requestid
625
+ end
626
+
627
+ def deserialize(params)
628
+ @Total = params['Total']
629
+ unless params['Sessions'].nil?
630
+ @Sessions = []
631
+ params['Sessions'].each do |i|
632
+ pstnsessioninfo_tmp = PSTNSessionInfo.new
633
+ pstnsessioninfo_tmp.deserialize(i)
634
+ @Sessions << pstnsessioninfo_tmp
635
+ end
636
+ end
637
+ @RequestId = params['RequestId']
638
+ end
639
+ end
640
+
641
+ # DescribeSeatUserList请求参数结构体
642
+ class DescribeSeatUserListRequest < TencentCloud::Common::AbstractModel
643
+ # @param InstanceId: 实例ID
644
+ # @type InstanceId: Integer
645
+ # @param Offset: 偏移量
646
+ # @type Offset: Integer
647
+ # @param Limit: 返回数量
648
+ # @type Limit: Integer
649
+
650
+ attr_accessor :InstanceId, :Offset, :Limit
651
+
652
+ def initialize(instanceid=nil, offset=nil, limit=nil)
653
+ @InstanceId = instanceid
654
+ @Offset = offset
655
+ @Limit = limit
656
+ end
657
+
658
+ def deserialize(params)
659
+ @InstanceId = params['InstanceId']
660
+ @Offset = params['Offset']
661
+ @Limit = params['Limit']
662
+ end
663
+ end
664
+
665
+ # DescribeSeatUserList返回参数结构体
666
+ class DescribeSeatUserListResponse < TencentCloud::Common::AbstractModel
667
+ # @param TotalCount: 此实例的坐席用户总数
668
+ # @type TotalCount: Integer
669
+ # @param SeatUsers: 坐席用户信息列表
670
+ # @type SeatUsers: Array
671
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
672
+ # @type RequestId: String
673
+
674
+ attr_accessor :TotalCount, :SeatUsers, :RequestId
675
+
676
+ def initialize(totalcount=nil, seatusers=nil, requestid=nil)
677
+ @TotalCount = totalcount
678
+ @SeatUsers = seatusers
679
+ @RequestId = requestid
680
+ end
681
+
682
+ def deserialize(params)
683
+ @TotalCount = params['TotalCount']
684
+ unless params['SeatUsers'].nil?
685
+ @SeatUsers = []
686
+ params['SeatUsers'].each do |i|
687
+ seatuserinfo_tmp = SeatUserInfo.new
688
+ seatuserinfo_tmp.deserialize(i)
689
+ @SeatUsers << seatuserinfo_tmp
690
+ end
691
+ end
692
+ @RequestId = params['RequestId']
693
+ end
694
+ end
695
+
696
+ # DescribeSkillGroupInfoList请求参数结构体
697
+ class DescribeSkillGroupInfoListRequest < TencentCloud::Common::AbstractModel
698
+ # @param SdkAppId: 应用ID
699
+ # @type SdkAppId: Integer
700
+ # @param PageSize: 分页尺寸,上限 100
701
+ # @type PageSize: Integer
702
+ # @param PageNumber: 分页页码,从 0 开始
703
+ # @type PageNumber: Integer
704
+ # @param SkillGroupId: 技能组ID,查询单个技能组时使用
705
+ # @type SkillGroupId: Integer
706
+ # @param ModifiedTime: 查询修改时间大于等于ModifiedTime的技能组时使用
707
+ # @type ModifiedTime: Integer
708
+
709
+ attr_accessor :SdkAppId, :PageSize, :PageNumber, :SkillGroupId, :ModifiedTime
710
+
711
+ def initialize(sdkappid=nil, pagesize=nil, pagenumber=nil, skillgroupid=nil, modifiedtime=nil)
712
+ @SdkAppId = sdkappid
713
+ @PageSize = pagesize
714
+ @PageNumber = pagenumber
715
+ @SkillGroupId = skillgroupid
716
+ @ModifiedTime = modifiedtime
717
+ end
718
+
719
+ def deserialize(params)
720
+ @SdkAppId = params['SdkAppId']
721
+ @PageSize = params['PageSize']
722
+ @PageNumber = params['PageNumber']
723
+ @SkillGroupId = params['SkillGroupId']
724
+ @ModifiedTime = params['ModifiedTime']
725
+ end
726
+ end
727
+
728
+ # DescribeSkillGroupInfoList返回参数结构体
729
+ class DescribeSkillGroupInfoListResponse < TencentCloud::Common::AbstractModel
730
+ # @param TotalCount: 技能组总数
731
+ # @type TotalCount: Integer
732
+ # @param SkillGroupList: 技能组信息列表
733
+ # @type SkillGroupList: Array
734
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
735
+ # @type RequestId: String
736
+
737
+ attr_accessor :TotalCount, :SkillGroupList, :RequestId
738
+
739
+ def initialize(totalcount=nil, skillgrouplist=nil, requestid=nil)
740
+ @TotalCount = totalcount
741
+ @SkillGroupList = skillgrouplist
742
+ @RequestId = requestid
743
+ end
744
+
745
+ def deserialize(params)
746
+ @TotalCount = params['TotalCount']
747
+ unless params['SkillGroupList'].nil?
748
+ @SkillGroupList = []
749
+ params['SkillGroupList'].each do |i|
750
+ skillgroupinfoitem_tmp = SkillGroupInfoItem.new
751
+ skillgroupinfoitem_tmp.deserialize(i)
752
+ @SkillGroupList << skillgroupinfoitem_tmp
753
+ end
754
+ end
755
+ @RequestId = params['RequestId']
756
+ end
757
+ end
758
+
759
+ # DescribeStaffInfoList请求参数结构体
760
+ class DescribeStaffInfoListRequest < TencentCloud::Common::AbstractModel
761
+ # @param SdkAppId: 应用ID
762
+ # @type SdkAppId: Integer
763
+ # @param PageSize: 分页尺寸,上限 100
764
+ # @type PageSize: Integer
765
+ # @param PageNumber: 分页页码,从 0 开始
766
+ # @type PageNumber: Integer
767
+ # @param StaffMail: 坐席账号,查询单个坐席时使用
768
+ # @type StaffMail: String
769
+ # @param ModifiedTime: 查询修改时间大于等于ModifiedTime的坐席时使用
770
+ # @type ModifiedTime: Integer
771
+
772
+ attr_accessor :SdkAppId, :PageSize, :PageNumber, :StaffMail, :ModifiedTime
773
+
774
+ def initialize(sdkappid=nil, pagesize=nil, pagenumber=nil, staffmail=nil, modifiedtime=nil)
775
+ @SdkAppId = sdkappid
776
+ @PageSize = pagesize
777
+ @PageNumber = pagenumber
778
+ @StaffMail = staffmail
779
+ @ModifiedTime = modifiedtime
780
+ end
781
+
782
+ def deserialize(params)
783
+ @SdkAppId = params['SdkAppId']
784
+ @PageSize = params['PageSize']
785
+ @PageNumber = params['PageNumber']
786
+ @StaffMail = params['StaffMail']
787
+ @ModifiedTime = params['ModifiedTime']
788
+ end
789
+ end
790
+
791
+ # DescribeStaffInfoList返回参数结构体
792
+ class DescribeStaffInfoListResponse < TencentCloud::Common::AbstractModel
793
+ # @param TotalCount: 坐席用户总数
794
+ # @type TotalCount: Integer
795
+ # @param StaffList: 坐席用户信息列表
796
+ # @type StaffList: Array
797
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
798
+ # @type RequestId: String
799
+
800
+ attr_accessor :TotalCount, :StaffList, :RequestId
801
+
802
+ def initialize(totalcount=nil, stafflist=nil, requestid=nil)
803
+ @TotalCount = totalcount
804
+ @StaffList = stafflist
805
+ @RequestId = requestid
806
+ end
807
+
808
+ def deserialize(params)
809
+ @TotalCount = params['TotalCount']
810
+ unless params['StaffList'].nil?
811
+ @StaffList = []
812
+ params['StaffList'].each do |i|
813
+ staffinfo_tmp = StaffInfo.new
814
+ staffinfo_tmp.deserialize(i)
815
+ @StaffList << staffinfo_tmp
816
+ end
817
+ end
818
+ @RequestId = params['RequestId']
819
+ end
820
+ end
821
+
822
+ # DescribeStaffStatusMetrics请求参数结构体
823
+ class DescribeStaffStatusMetricsRequest < TencentCloud::Common::AbstractModel
824
+ # @param SdkAppId: 实例ID
825
+ # @type SdkAppId: Integer
826
+ # @param StaffList: 筛选坐席列表,默认不传返回全部坐席信息
827
+ # @type StaffList: Array
828
+
829
+ attr_accessor :SdkAppId, :StaffList
830
+
831
+ def initialize(sdkappid=nil, stafflist=nil)
832
+ @SdkAppId = sdkappid
833
+ @StaffList = stafflist
834
+ end
835
+
836
+ def deserialize(params)
837
+ @SdkAppId = params['SdkAppId']
838
+ @StaffList = params['StaffList']
839
+ end
840
+ end
841
+
842
+ # DescribeStaffStatusMetrics返回参数结构体
843
+ class DescribeStaffStatusMetricsResponse < TencentCloud::Common::AbstractModel
844
+ # @param Metrics: 坐席状态实时信息
845
+ # @type Metrics: Array
846
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
847
+ # @type RequestId: String
848
+
849
+ attr_accessor :Metrics, :RequestId
850
+
851
+ def initialize(metrics=nil, requestid=nil)
852
+ @Metrics = metrics
853
+ @RequestId = requestid
854
+ end
855
+
856
+ def deserialize(params)
857
+ unless params['Metrics'].nil?
858
+ @Metrics = []
859
+ params['Metrics'].each do |i|
860
+ staffstatusmetrics_tmp = StaffStatusMetrics.new
861
+ staffstatusmetrics_tmp.deserialize(i)
862
+ @Metrics << staffstatusmetrics_tmp
863
+ end
864
+ end
865
+ @RequestId = params['RequestId']
866
+ end
867
+ end
868
+
869
+ # DescribeTelCallInfo请求参数结构体
870
+ class DescribeTelCallInfoRequest < TencentCloud::Common::AbstractModel
871
+ # @param StartTimeStamp: 起始时间戳,Unix 时间戳
872
+ # @type StartTimeStamp: Integer
873
+ # @param EndTimeStamp: 结束时间戳,Unix 时间戳,查询时间范围最大为90天
874
+ # @type EndTimeStamp: Integer
875
+ # @param SdkAppIdList: 应用ID列表,多个ID时,返回值为多个ID使用总和
876
+ # @type SdkAppIdList: Array
877
+
878
+ attr_accessor :StartTimeStamp, :EndTimeStamp, :SdkAppIdList
879
+
880
+ def initialize(starttimestamp=nil, endtimestamp=nil, sdkappidlist=nil)
881
+ @StartTimeStamp = starttimestamp
882
+ @EndTimeStamp = endtimestamp
883
+ @SdkAppIdList = sdkappidlist
884
+ end
885
+
886
+ def deserialize(params)
887
+ @StartTimeStamp = params['StartTimeStamp']
888
+ @EndTimeStamp = params['EndTimeStamp']
889
+ @SdkAppIdList = params['SdkAppIdList']
890
+ end
891
+ end
892
+
893
+ # DescribeTelCallInfo返回参数结构体
894
+ class DescribeTelCallInfoResponse < TencentCloud::Common::AbstractModel
895
+ # @param TelCallOutCount: 电话呼出统计分钟数
896
+ # @type TelCallOutCount: Integer
897
+ # @param TelCallInCount: 电话呼入统计分钟数
898
+ # @type TelCallInCount: Integer
899
+ # @param SeatUsedCount: 坐席使用统计个数
900
+ # @type SeatUsedCount: Integer
901
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
902
+ # @type RequestId: String
903
+
904
+ attr_accessor :TelCallOutCount, :TelCallInCount, :SeatUsedCount, :RequestId
905
+
906
+ def initialize(telcalloutcount=nil, telcallincount=nil, seatusedcount=nil, requestid=nil)
907
+ @TelCallOutCount = telcalloutcount
908
+ @TelCallInCount = telcallincount
909
+ @SeatUsedCount = seatusedcount
910
+ @RequestId = requestid
911
+ end
912
+
913
+ def deserialize(params)
914
+ @TelCallOutCount = params['TelCallOutCount']
915
+ @TelCallInCount = params['TelCallInCount']
916
+ @SeatUsedCount = params['SeatUsedCount']
917
+ @RequestId = params['RequestId']
918
+ end
919
+ end
920
+
921
+ # DescribeTelCdr请求参数结构体
922
+ class DescribeTelCdrRequest < TencentCloud::Common::AbstractModel
923
+ # @param StartTimeStamp: 起始时间戳,Unix 时间戳
924
+ # @type StartTimeStamp: Integer
925
+ # @param EndTimeStamp: 结束时间戳,Unix 时间戳
926
+ # @type EndTimeStamp: Integer
927
+ # @param Limit: 返回数据条数,上限(deprecated)
928
+ # @type Limit: Integer
929
+ # @param Offset: 偏移(deprecated)
930
+ # @type Offset: Integer
931
+ # @param InstanceId: 实例 ID(deprecated)
932
+ # @type InstanceId: Integer
933
+ # @param SdkAppId: 应用 ID
934
+ # @type SdkAppId: Integer
935
+ # @param PageSize: 分页尺寸,上限 100
936
+ # @type PageSize: Integer
937
+ # @param PageNumber: 分页页码,从 0 开始
938
+ # @type PageNumber: Integer
939
+ # @param Phones: 按手机号筛选
940
+ # @type Phones: Array
941
+ # @param SessionIds: 按SessionId筛选
942
+ # @type SessionIds: Array
943
+
944
+ attr_accessor :StartTimeStamp, :EndTimeStamp, :Limit, :Offset, :InstanceId, :SdkAppId, :PageSize, :PageNumber, :Phones, :SessionIds
945
+
946
+ def initialize(starttimestamp=nil, endtimestamp=nil, limit=nil, offset=nil, instanceid=nil, sdkappid=nil, pagesize=nil, pagenumber=nil, phones=nil, sessionids=nil)
947
+ @StartTimeStamp = starttimestamp
948
+ @EndTimeStamp = endtimestamp
949
+ @Limit = limit
950
+ @Offset = offset
951
+ @InstanceId = instanceid
952
+ @SdkAppId = sdkappid
953
+ @PageSize = pagesize
954
+ @PageNumber = pagenumber
955
+ @Phones = phones
956
+ @SessionIds = sessionids
957
+ end
958
+
959
+ def deserialize(params)
960
+ @StartTimeStamp = params['StartTimeStamp']
961
+ @EndTimeStamp = params['EndTimeStamp']
962
+ @Limit = params['Limit']
963
+ @Offset = params['Offset']
964
+ @InstanceId = params['InstanceId']
965
+ @SdkAppId = params['SdkAppId']
966
+ @PageSize = params['PageSize']
967
+ @PageNumber = params['PageNumber']
968
+ @Phones = params['Phones']
969
+ @SessionIds = params['SessionIds']
970
+ end
971
+ end
972
+
973
+ # DescribeTelCdr返回参数结构体
974
+ class DescribeTelCdrResponse < TencentCloud::Common::AbstractModel
975
+ # @param TotalCount: 话单记录总数
976
+ # @type TotalCount: Integer
977
+ # @param TelCdrs: 话单记录
978
+ # @type TelCdrs: Array
979
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
980
+ # @type RequestId: String
981
+
982
+ attr_accessor :TotalCount, :TelCdrs, :RequestId
983
+
984
+ def initialize(totalcount=nil, telcdrs=nil, requestid=nil)
985
+ @TotalCount = totalcount
986
+ @TelCdrs = telcdrs
987
+ @RequestId = requestid
988
+ end
989
+
990
+ def deserialize(params)
991
+ @TotalCount = params['TotalCount']
992
+ unless params['TelCdrs'].nil?
993
+ @TelCdrs = []
994
+ params['TelCdrs'].each do |i|
995
+ telcdrinfo_tmp = TelCdrInfo.new
996
+ telcdrinfo_tmp.deserialize(i)
997
+ @TelCdrs << telcdrinfo_tmp
998
+ end
999
+ end
1000
+ @RequestId = params['RequestId']
1001
+ end
1002
+ end
1003
+
1004
+ # DescribeTelSession请求参数结构体
1005
+ class DescribeTelSessionRequest < TencentCloud::Common::AbstractModel
1006
+ # @param SdkAppId: 应用ID
1007
+ # @type SdkAppId: Integer
1008
+ # @param SessionId: 会话ID
1009
+ # @type SessionId: String
1010
+
1011
+ attr_accessor :SdkAppId, :SessionId
1012
+
1013
+ def initialize(sdkappid=nil, sessionid=nil)
1014
+ @SdkAppId = sdkappid
1015
+ @SessionId = sessionid
1016
+ end
1017
+
1018
+ def deserialize(params)
1019
+ @SdkAppId = params['SdkAppId']
1020
+ @SessionId = params['SessionId']
1021
+ end
1022
+ end
1023
+
1024
+ # DescribeTelSession返回参数结构体
1025
+ class DescribeTelSessionResponse < TencentCloud::Common::AbstractModel
1026
+ # @param Session: 会话信息
1027
+ # @type Session: :class:`Tencentcloud::Ccc.v20200210.models.PSTNSession`
1028
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1029
+ # @type RequestId: String
1030
+
1031
+ attr_accessor :Session, :RequestId
1032
+
1033
+ def initialize(session=nil, requestid=nil)
1034
+ @Session = session
1035
+ @RequestId = requestid
1036
+ end
1037
+
1038
+ def deserialize(params)
1039
+ unless params['Session'].nil?
1040
+ @Session = PSTNSession.new
1041
+ @Session.deserialize(params['Session'])
1042
+ end
1043
+ @RequestId = params['RequestId']
1044
+ end
1045
+ end
1046
+
1047
+ # 批量添加客服时,返回出错客服的像个信息
1048
+ class ErrStaffItem < TencentCloud::Common::AbstractModel
1049
+ # @param StaffEmail: 坐席邮箱地址
1050
+ # @type StaffEmail: String
1051
+ # @param Code: 错误码
1052
+ # @type Code: String
1053
+ # @param Message: 错误描述
1054
+ # @type Message: String
1055
+
1056
+ attr_accessor :StaffEmail, :Code, :Message
1057
+
1058
+ def initialize(staffemail=nil, code=nil, message=nil)
1059
+ @StaffEmail = staffemail
1060
+ @Code = code
1061
+ @Message = message
1062
+ end
1063
+
1064
+ def deserialize(params)
1065
+ @StaffEmail = params['StaffEmail']
1066
+ @Code = params['Code']
1067
+ @Message = params['Message']
1068
+ end
1069
+ end
1070
+
1071
+ # 全媒体服务记录信息
1072
+ class IMCdrInfo < TencentCloud::Common::AbstractModel
1073
+ # @param Id: 服务记录ID
1074
+ # @type Id: String
1075
+ # @param Duration: 服务时长秒数
1076
+ # @type Duration: Integer
1077
+ # @param EndStatus: 结束状态
1078
+ # @type EndStatus: Integer
1079
+ # @param Nickname: 用户昵称
1080
+ # @type Nickname: String
1081
+ # @param Type: 服务类型 1为全媒体,2为文本客服
1082
+ # @type Type: Integer
1083
+ # @param StaffId: 客服ID
1084
+ # @type StaffId: String
1085
+ # @param Timestamp: 服务时间戳
1086
+ # @type Timestamp: Integer
1087
+
1088
+ attr_accessor :Id, :Duration, :EndStatus, :Nickname, :Type, :StaffId, :Timestamp
1089
+
1090
+ def initialize(id=nil, duration=nil, endstatus=nil, nickname=nil, type=nil, staffid=nil, timestamp=nil)
1091
+ @Id = id
1092
+ @Duration = duration
1093
+ @EndStatus = endstatus
1094
+ @Nickname = nickname
1095
+ @Type = type
1096
+ @StaffId = staffid
1097
+ @Timestamp = timestamp
1098
+ end
1099
+
1100
+ def deserialize(params)
1101
+ @Id = params['Id']
1102
+ @Duration = params['Duration']
1103
+ @EndStatus = params['EndStatus']
1104
+ @Nickname = params['Nickname']
1105
+ @Type = params['Type']
1106
+ @StaffId = params['StaffId']
1107
+ @Timestamp = params['Timestamp']
1108
+ end
1109
+ end
1110
+
1111
+ # ivr 按键信息
1112
+ class IVRKeyPressedElement < TencentCloud::Common::AbstractModel
1113
+ # @param Key: 按键
1114
+ # 注意:此字段可能返回 null,表示取不到有效值。
1115
+ # @type Key: String
1116
+ # @param Label: 按键关联的标签
1117
+ # 注意:此字段可能返回 null,表示取不到有效值。
1118
+ # @type Label: String
1119
+
1120
+ attr_accessor :Key, :Label
1121
+
1122
+ def initialize(key=nil, label=nil)
1123
+ @Key = key
1124
+ @Label = label
1125
+ end
1126
+
1127
+ def deserialize(params)
1128
+ @Key = params['Key']
1129
+ @Label = params['Label']
1130
+ end
1131
+ end
1132
+
1133
+ # 单条消息
1134
+ class Message < TencentCloud::Common::AbstractModel
1135
+ # @param Type: 消息类型
1136
+ # @type Type: String
1137
+ # @param Content: 消息内容
1138
+ # @type Content: String
1139
+
1140
+ attr_accessor :Type, :Content
1141
+
1142
+ def initialize(type=nil, content=nil)
1143
+ @Type = type
1144
+ @Content = content
1145
+ end
1146
+
1147
+ def deserialize(params)
1148
+ @Type = params['Type']
1149
+ @Content = params['Content']
1150
+ end
1151
+ end
1152
+
1153
+ # 聊天消息
1154
+ class MessageBody < TencentCloud::Common::AbstractModel
1155
+ # @param Timestamp: 消息时间戳
1156
+ # @type Timestamp: Integer
1157
+ # @param From: 发消息的用户ID
1158
+ # @type From: String
1159
+ # @param Messages: 消息列表
1160
+ # @type Messages: Array
1161
+
1162
+ attr_accessor :Timestamp, :From, :Messages
1163
+
1164
+ def initialize(timestamp=nil, from=nil, messages=nil)
1165
+ @Timestamp = timestamp
1166
+ @From = from
1167
+ @Messages = messages
1168
+ end
1169
+
1170
+ def deserialize(params)
1171
+ @Timestamp = params['Timestamp']
1172
+ @From = params['From']
1173
+ unless params['Messages'].nil?
1174
+ @Messages = []
1175
+ params['Messages'].each do |i|
1176
+ message_tmp = Message.new
1177
+ message_tmp.deserialize(i)
1178
+ @Messages << message_tmp
1179
+ end
1180
+ end
1181
+ end
1182
+ end
1183
+
1184
+ # PSTN 会话类型。
1185
+ class PSTNSession < TencentCloud::Common::AbstractModel
1186
+ # @param SessionID: 会话 ID
1187
+ # @type SessionID: String
1188
+ # @param RoomID: 会话临时房间 ID
1189
+ # @type RoomID: String
1190
+ # @param Caller: 主叫
1191
+ # @type Caller: String
1192
+ # @param Callee: 被叫
1193
+ # @type Callee: String
1194
+ # @param StartTimestamp: 开始时间,Unix 时间戳
1195
+ # @type StartTimestamp: Integer
1196
+ # @param RingTimestamp: 振铃时间,Unix 时间戳
1197
+ # @type RingTimestamp: Integer
1198
+ # @param AcceptTimestamp: 接听时间,Unix 时间戳
1199
+ # @type AcceptTimestamp: Integer
1200
+ # @param StaffEmail: 坐席邮箱
1201
+ # @type StaffEmail: String
1202
+ # @param StaffNumber: 坐席工号
1203
+ # @type StaffNumber: String
1204
+ # @param SessionStatus: 会话状态
1205
+ # ringing 振铃中
1206
+ # seatJoining 等待坐席接听
1207
+ # inProgress 进行中
1208
+ # finished 已完成
1209
+ # @type SessionStatus: String
1210
+ # @param Direction: 会话呼叫方向, 0 呼入 | 1 - 呼出
1211
+ # @type Direction: Integer
1212
+ # @param OutBoundCaller: 转外线使用的号码(转外线主叫)
1213
+ # @type OutBoundCaller: String
1214
+ # @param OutBoundCallee: 转外线被叫
1215
+ # @type OutBoundCallee: String
1216
+ # @param ProtectedCaller: 主叫号码保护ID,开启号码保护映射功能时有效,且Caller字段置空
1217
+ # @type ProtectedCaller: String
1218
+ # @param ProtectedCallee: 被叫号码保护ID,开启号码保护映射功能时有效,且Callee字段置空
1219
+ # @type ProtectedCallee: String
1220
+
1221
+ attr_accessor :SessionID, :RoomID, :Caller, :Callee, :StartTimestamp, :RingTimestamp, :AcceptTimestamp, :StaffEmail, :StaffNumber, :SessionStatus, :Direction, :OutBoundCaller, :OutBoundCallee, :ProtectedCaller, :ProtectedCallee
1222
+
1223
+ def initialize(sessionid=nil, roomid=nil, caller=nil, callee=nil, starttimestamp=nil, ringtimestamp=nil, accepttimestamp=nil, staffemail=nil, staffnumber=nil, sessionstatus=nil, direction=nil, outboundcaller=nil, outboundcallee=nil, protectedcaller=nil, protectedcallee=nil)
1224
+ @SessionID = sessionid
1225
+ @RoomID = roomid
1226
+ @Caller = caller
1227
+ @Callee = callee
1228
+ @StartTimestamp = starttimestamp
1229
+ @RingTimestamp = ringtimestamp
1230
+ @AcceptTimestamp = accepttimestamp
1231
+ @StaffEmail = staffemail
1232
+ @StaffNumber = staffnumber
1233
+ @SessionStatus = sessionstatus
1234
+ @Direction = direction
1235
+ @OutBoundCaller = outboundcaller
1236
+ @OutBoundCallee = outboundcallee
1237
+ @ProtectedCaller = protectedcaller
1238
+ @ProtectedCallee = protectedcallee
1239
+ end
1240
+
1241
+ def deserialize(params)
1242
+ @SessionID = params['SessionID']
1243
+ @RoomID = params['RoomID']
1244
+ @Caller = params['Caller']
1245
+ @Callee = params['Callee']
1246
+ @StartTimestamp = params['StartTimestamp']
1247
+ @RingTimestamp = params['RingTimestamp']
1248
+ @AcceptTimestamp = params['AcceptTimestamp']
1249
+ @StaffEmail = params['StaffEmail']
1250
+ @StaffNumber = params['StaffNumber']
1251
+ @SessionStatus = params['SessionStatus']
1252
+ @Direction = params['Direction']
1253
+ @OutBoundCaller = params['OutBoundCaller']
1254
+ @OutBoundCallee = params['OutBoundCallee']
1255
+ @ProtectedCaller = params['ProtectedCaller']
1256
+ @ProtectedCallee = params['ProtectedCallee']
1257
+ end
1258
+ end
1259
+
1260
+ # PSTN 会话信息
1261
+ class PSTNSessionInfo < TencentCloud::Common::AbstractModel
1262
+ # @param SessionID: 会话 ID
1263
+ # @type SessionID: String
1264
+ # @param RoomID: 会话临时房间 ID
1265
+ # @type RoomID: String
1266
+ # @param Caller: 主叫
1267
+ # @type Caller: String
1268
+ # @param Callee: 被叫
1269
+ # @type Callee: String
1270
+ # @param StartTimestamp: 开始时间,Unix 时间戳
1271
+ # @type StartTimestamp: String
1272
+ # @param AcceptTimestamp: 接听时间,Unix 时间戳
1273
+ # @type AcceptTimestamp: String
1274
+ # @param StaffEmail: 坐席邮箱
1275
+ # @type StaffEmail: String
1276
+ # @param StaffNumber: 坐席工号
1277
+ # @type StaffNumber: String
1278
+ # @param SessionStatus: 坐席状态 inProgress 进行中
1279
+ # @type SessionStatus: String
1280
+ # @param Direction: 会话呼叫方向, 0 呼入 | 1 - 呼出
1281
+ # @type Direction: Integer
1282
+ # @param RingTimestamp: 振铃时间,Unix 时间戳
1283
+ # @type RingTimestamp: Integer
1284
+ # @param ProtectedCaller: 主叫号码保护ID,开启号码保护映射功能时有效,且Caller字段置空
1285
+ # @type ProtectedCaller: String
1286
+ # @param ProtectedCallee: 被叫号码保护ID,开启号码保护映射功能时有效,且Callee字段置空
1287
+ # @type ProtectedCallee: String
1288
+
1289
+ attr_accessor :SessionID, :RoomID, :Caller, :Callee, :StartTimestamp, :AcceptTimestamp, :StaffEmail, :StaffNumber, :SessionStatus, :Direction, :RingTimestamp, :ProtectedCaller, :ProtectedCallee
1290
+
1291
+ def initialize(sessionid=nil, roomid=nil, caller=nil, callee=nil, starttimestamp=nil, accepttimestamp=nil, staffemail=nil, staffnumber=nil, sessionstatus=nil, direction=nil, ringtimestamp=nil, protectedcaller=nil, protectedcallee=nil)
1292
+ @SessionID = sessionid
1293
+ @RoomID = roomid
1294
+ @Caller = caller
1295
+ @Callee = callee
1296
+ @StartTimestamp = starttimestamp
1297
+ @AcceptTimestamp = accepttimestamp
1298
+ @StaffEmail = staffemail
1299
+ @StaffNumber = staffnumber
1300
+ @SessionStatus = sessionstatus
1301
+ @Direction = direction
1302
+ @RingTimestamp = ringtimestamp
1303
+ @ProtectedCaller = protectedcaller
1304
+ @ProtectedCallee = protectedcallee
1305
+ end
1306
+
1307
+ def deserialize(params)
1308
+ @SessionID = params['SessionID']
1309
+ @RoomID = params['RoomID']
1310
+ @Caller = params['Caller']
1311
+ @Callee = params['Callee']
1312
+ @StartTimestamp = params['StartTimestamp']
1313
+ @AcceptTimestamp = params['AcceptTimestamp']
1314
+ @StaffEmail = params['StaffEmail']
1315
+ @StaffNumber = params['StaffNumber']
1316
+ @SessionStatus = params['SessionStatus']
1317
+ @Direction = params['Direction']
1318
+ @RingTimestamp = params['RingTimestamp']
1319
+ @ProtectedCaller = params['ProtectedCaller']
1320
+ @ProtectedCallee = params['ProtectedCallee']
1321
+ end
1322
+ end
1323
+
1324
+ # 坐席用户信息
1325
+ class SeatUserInfo < TencentCloud::Common::AbstractModel
1326
+ # @param Name: 坐席名称
1327
+ # @type Name: String
1328
+ # @param Mail: 坐席邮箱
1329
+ # @type Mail: String
1330
+ # @param Phone: 坐席电话号码(带0086前缀)
1331
+ # @type Phone: String
1332
+ # @param Nick: 坐席昵称
1333
+ # @type Nick: String
1334
+ # @param UserId: 用户ID
1335
+ # @type UserId: String
1336
+ # @param SkillGroupNameList: 坐席关联的技能组列表
1337
+ # 注意:此字段可能返回 null,表示取不到有效值。
1338
+ # @type SkillGroupNameList: Array
1339
+ # @param StaffNumber: 工号
1340
+ # 注意:此字段可能返回 null,表示取不到有效值。
1341
+ # @type StaffNumber: String
1342
+
1343
+ attr_accessor :Name, :Mail, :Phone, :Nick, :UserId, :SkillGroupNameList, :StaffNumber
1344
+
1345
+ def initialize(name=nil, mail=nil, phone=nil, nick=nil, userid=nil, skillgroupnamelist=nil, staffnumber=nil)
1346
+ @Name = name
1347
+ @Mail = mail
1348
+ @Phone = phone
1349
+ @Nick = nick
1350
+ @UserId = userid
1351
+ @SkillGroupNameList = skillgroupnamelist
1352
+ @StaffNumber = staffnumber
1353
+ end
1354
+
1355
+ def deserialize(params)
1356
+ @Name = params['Name']
1357
+ @Mail = params['Mail']
1358
+ @Phone = params['Phone']
1359
+ @Nick = params['Nick']
1360
+ @UserId = params['UserId']
1361
+ @SkillGroupNameList = params['SkillGroupNameList']
1362
+ @StaffNumber = params['StaffNumber']
1363
+ end
1364
+ end
1365
+
1366
+ # 参与者信息
1367
+ class ServeParticipant < TencentCloud::Common::AbstractModel
1368
+ # @param Mail: 坐席邮箱
1369
+ # 注意:此字段可能返回 null,表示取不到有效值。
1370
+ # @type Mail: String
1371
+ # @param Phone: 坐席电话
1372
+ # 注意:此字段可能返回 null,表示取不到有效值。
1373
+ # @type Phone: String
1374
+ # @param RingTimestamp: 振铃时间戳,Unix 秒级时间戳
1375
+ # 注意:此字段可能返回 null,表示取不到有效值。
1376
+ # @type RingTimestamp: Integer
1377
+ # @param AcceptTimestamp: 接听时间戳,Unix 秒级时间戳
1378
+ # 注意:此字段可能返回 null,表示取不到有效值。
1379
+ # @type AcceptTimestamp: Integer
1380
+ # @param EndedTimestamp: 结束时间戳,Unix 秒级时间戳
1381
+ # 注意:此字段可能返回 null,表示取不到有效值。
1382
+ # @type EndedTimestamp: Integer
1383
+ # @param RecordId: 录音 ID,能够索引到坐席侧的录音
1384
+ # 注意:此字段可能返回 null,表示取不到有效值。
1385
+ # @type RecordId: String
1386
+ # @param Type: 参与者类型,"staffSeat", "outboundSeat", "staffPhoneSeat"
1387
+ # 注意:此字段可能返回 null,表示取不到有效值。
1388
+ # @type Type: String
1389
+ # @param TransferFrom: 转接来源坐席信息
1390
+ # 注意:此字段可能返回 null,表示取不到有效值。
1391
+ # @type TransferFrom: String
1392
+ # @param TransferTo: 转接去向坐席信息
1393
+ # 注意:此字段可能返回 null,表示取不到有效值。
1394
+ # @type TransferTo: String
1395
+ # @param TransferToType: 转接去向参与者类型,取值与 Type 一致
1396
+ # 注意:此字段可能返回 null,表示取不到有效值。
1397
+ # @type TransferToType: String
1398
+ # @param SkillGroupId: 技能组 ID
1399
+ # 注意:此字段可能返回 null,表示取不到有效值。
1400
+ # @type SkillGroupId: Integer
1401
+ # @param EndStatusString: 结束状态
1402
+ # 注意:此字段可能返回 null,表示取不到有效值。
1403
+ # @type EndStatusString: String
1404
+ # @param RecordURL: 录音 URL
1405
+ # 注意:此字段可能返回 null,表示取不到有效值。
1406
+ # @type RecordURL: String
1407
+ # @param Sequence: 参与者序号,从 0 开始
1408
+ # 注意:此字段可能返回 null,表示取不到有效值。
1409
+ # @type Sequence: Integer
1410
+ # @param StartTimestamp: 开始时间戳,Unix 秒级时间戳
1411
+ # 注意:此字段可能返回 null,表示取不到有效值。
1412
+ # @type StartTimestamp: Integer
1413
+ # @param SkillGroupName: 技能组名称
1414
+ # 注意:此字段可能返回 null,表示取不到有效值。
1415
+ # @type SkillGroupName: String
1416
+
1417
+ attr_accessor :Mail, :Phone, :RingTimestamp, :AcceptTimestamp, :EndedTimestamp, :RecordId, :Type, :TransferFrom, :TransferTo, :TransferToType, :SkillGroupId, :EndStatusString, :RecordURL, :Sequence, :StartTimestamp, :SkillGroupName
1418
+
1419
+ def initialize(mail=nil, phone=nil, ringtimestamp=nil, accepttimestamp=nil, endedtimestamp=nil, recordid=nil, type=nil, transferfrom=nil, transferto=nil, transfertotype=nil, skillgroupid=nil, endstatusstring=nil, recordurl=nil, sequence=nil, starttimestamp=nil, skillgroupname=nil)
1420
+ @Mail = mail
1421
+ @Phone = phone
1422
+ @RingTimestamp = ringtimestamp
1423
+ @AcceptTimestamp = accepttimestamp
1424
+ @EndedTimestamp = endedtimestamp
1425
+ @RecordId = recordid
1426
+ @Type = type
1427
+ @TransferFrom = transferfrom
1428
+ @TransferTo = transferto
1429
+ @TransferToType = transfertotype
1430
+ @SkillGroupId = skillgroupid
1431
+ @EndStatusString = endstatusstring
1432
+ @RecordURL = recordurl
1433
+ @Sequence = sequence
1434
+ @StartTimestamp = starttimestamp
1435
+ @SkillGroupName = skillgroupname
1436
+ end
1437
+
1438
+ def deserialize(params)
1439
+ @Mail = params['Mail']
1440
+ @Phone = params['Phone']
1441
+ @RingTimestamp = params['RingTimestamp']
1442
+ @AcceptTimestamp = params['AcceptTimestamp']
1443
+ @EndedTimestamp = params['EndedTimestamp']
1444
+ @RecordId = params['RecordId']
1445
+ @Type = params['Type']
1446
+ @TransferFrom = params['TransferFrom']
1447
+ @TransferTo = params['TransferTo']
1448
+ @TransferToType = params['TransferToType']
1449
+ @SkillGroupId = params['SkillGroupId']
1450
+ @EndStatusString = params['EndStatusString']
1451
+ @RecordURL = params['RecordURL']
1452
+ @Sequence = params['Sequence']
1453
+ @StartTimestamp = params['StartTimestamp']
1454
+ @SkillGroupName = params['SkillGroupName']
1455
+ end
1456
+ end
1457
+
1458
+ # 技能组信息
1459
+ class SkillGroupInfoItem < TencentCloud::Common::AbstractModel
1460
+ # @param SkillGroupId: 技能组ID
1461
+ # @type SkillGroupId: Integer
1462
+ # @param SkillGroupName: 技能组名称
1463
+ # @type SkillGroupName: String
1464
+ # @param Type: 类型:IM、TEL、ALL(全媒体)
1465
+ # @type Type: String
1466
+ # @param RoutePolicy: 会话分配策略
1467
+ # 注意:此字段可能返回 null,表示取不到有效值。
1468
+ # @type RoutePolicy: String
1469
+ # @param UsingLastSeat: 会话分配是否优先上次服务坐席
1470
+ # 注意:此字段可能返回 null,表示取不到有效值。
1471
+ # @type UsingLastSeat: Integer
1472
+ # @param MaxConcurrency: 单客服最大并发数(电话类型默认1)
1473
+ # 注意:此字段可能返回 null,表示取不到有效值。
1474
+ # @type MaxConcurrency: Integer
1475
+ # @param LastModifyTimestamp: 最后修改时间
1476
+ # 注意:此字段可能返回 null,表示取不到有效值。
1477
+ # @type LastModifyTimestamp: Integer
1478
+
1479
+ attr_accessor :SkillGroupId, :SkillGroupName, :Type, :RoutePolicy, :UsingLastSeat, :MaxConcurrency, :LastModifyTimestamp
1480
+
1481
+ def initialize(skillgroupid=nil, skillgroupname=nil, type=nil, routepolicy=nil, usinglastseat=nil, maxconcurrency=nil, lastmodifytimestamp=nil)
1482
+ @SkillGroupId = skillgroupid
1483
+ @SkillGroupName = skillgroupname
1484
+ @Type = type
1485
+ @RoutePolicy = routepolicy
1486
+ @UsingLastSeat = usinglastseat
1487
+ @MaxConcurrency = maxconcurrency
1488
+ @LastModifyTimestamp = lastmodifytimestamp
1489
+ end
1490
+
1491
+ def deserialize(params)
1492
+ @SkillGroupId = params['SkillGroupId']
1493
+ @SkillGroupName = params['SkillGroupName']
1494
+ @Type = params['Type']
1495
+ @RoutePolicy = params['RoutePolicy']
1496
+ @UsingLastSeat = params['UsingLastSeat']
1497
+ @MaxConcurrency = params['MaxConcurrency']
1498
+ @LastModifyTimestamp = params['LastModifyTimestamp']
1499
+ end
1500
+ end
1501
+
1502
+ # 技能组信息
1503
+ class SkillGroupItem < TencentCloud::Common::AbstractModel
1504
+ # @param SkillGroupId: 技能组ID
1505
+ # @type SkillGroupId: Integer
1506
+ # @param SkillGroupName: 技能组名称
1507
+ # @type SkillGroupName: String
1508
+ # @param Priority: 优先级
1509
+ # @type Priority: Integer
1510
+ # @param Type: 类型:IM、TEL、ALL(全媒体)
1511
+ # @type Type: String
1512
+
1513
+ attr_accessor :SkillGroupId, :SkillGroupName, :Priority, :Type
1514
+
1515
+ def initialize(skillgroupid=nil, skillgroupname=nil, priority=nil, type=nil)
1516
+ @SkillGroupId = skillgroupid
1517
+ @SkillGroupName = skillgroupname
1518
+ @Priority = priority
1519
+ @Type = type
1520
+ end
1521
+
1522
+ def deserialize(params)
1523
+ @SkillGroupId = params['SkillGroupId']
1524
+ @SkillGroupName = params['SkillGroupName']
1525
+ @Priority = params['Priority']
1526
+ @Type = params['Type']
1527
+ end
1528
+ end
1529
+
1530
+ # 带有技能组优先级的坐席信息
1531
+ class StaffInfo < TencentCloud::Common::AbstractModel
1532
+ # @param Name: 坐席名称
1533
+ # 注意:此字段可能返回 null,表示取不到有效值。
1534
+ # @type Name: String
1535
+ # @param Mail: 坐席邮箱
1536
+ # @type Mail: String
1537
+ # @param Phone: 坐席电话号码
1538
+ # 注意:此字段可能返回 null,表示取不到有效值。
1539
+ # @type Phone: String
1540
+ # @param Nick: 坐席昵称
1541
+ # 注意:此字段可能返回 null,表示取不到有效值。
1542
+ # @type Nick: String
1543
+ # @param StaffNumber: 坐席工号
1544
+ # 注意:此字段可能返回 null,表示取不到有效值。
1545
+ # @type StaffNumber: String
1546
+ # @param SkillGroupList: 所属技能组列表
1547
+ # 注意:此字段可能返回 null,表示取不到有效值。
1548
+ # @type SkillGroupList: Array
1549
+ # @param LastModifyTimestamp: 最后修改时间
1550
+ # 注意:此字段可能返回 null,表示取不到有效值。
1551
+ # @type LastModifyTimestamp: Integer
1552
+
1553
+ attr_accessor :Name, :Mail, :Phone, :Nick, :StaffNumber, :SkillGroupList, :LastModifyTimestamp
1554
+
1555
+ def initialize(name=nil, mail=nil, phone=nil, nick=nil, staffnumber=nil, skillgrouplist=nil, lastmodifytimestamp=nil)
1556
+ @Name = name
1557
+ @Mail = mail
1558
+ @Phone = phone
1559
+ @Nick = nick
1560
+ @StaffNumber = staffnumber
1561
+ @SkillGroupList = skillgrouplist
1562
+ @LastModifyTimestamp = lastmodifytimestamp
1563
+ end
1564
+
1565
+ def deserialize(params)
1566
+ @Name = params['Name']
1567
+ @Mail = params['Mail']
1568
+ @Phone = params['Phone']
1569
+ @Nick = params['Nick']
1570
+ @StaffNumber = params['StaffNumber']
1571
+ unless params['SkillGroupList'].nil?
1572
+ @SkillGroupList = []
1573
+ params['SkillGroupList'].each do |i|
1574
+ skillgroupitem_tmp = SkillGroupItem.new
1575
+ skillgroupitem_tmp.deserialize(i)
1576
+ @SkillGroupList << skillgroupitem_tmp
1577
+ end
1578
+ end
1579
+ @LastModifyTimestamp = params['LastModifyTimestamp']
1580
+ end
1581
+ end
1582
+
1583
+ # 坐席状态补充信息
1584
+ class StaffStatusExtra < TencentCloud::Common::AbstractModel
1585
+ # @param Type: im - 文本 | tel - 电话 | all - 全媒体
1586
+ # @type Type: String
1587
+ # @param Direct: in - 呼入 | out - 呼出
1588
+ # @type Direct: String
1589
+
1590
+ attr_accessor :Type, :Direct
1591
+
1592
+ def initialize(type=nil, direct=nil)
1593
+ @Type = type
1594
+ @Direct = direct
1595
+ end
1596
+
1597
+ def deserialize(params)
1598
+ @Type = params['Type']
1599
+ @Direct = params['Direct']
1600
+ end
1601
+ end
1602
+
1603
+ # 坐席状态相关信息
1604
+ class StaffStatusMetrics < TencentCloud::Common::AbstractModel
1605
+ # @param Email: 坐席邮箱
1606
+ # @type Email: String
1607
+ # @param Status: 坐席状态 free 示闲 | busy 忙碌 | rest 小休 | notReady 示忙 | afterCallWork 话后调整 | offline 离线
1608
+ # @type Status: String
1609
+ # @param StatusExtra: 坐席状态补充信息
1610
+ # @type StatusExtra: :class:`Tencentcloud::Ccc.v20200210.models.StaffStatusExtra`
1611
+ # @param OnlineDuration: 当天在线总时长
1612
+ # @type OnlineDuration: Integer
1613
+ # @param FreeDuration: 当天示闲总时长
1614
+ # @type FreeDuration: Integer
1615
+ # @param BusyDuration: 当天忙碌总时长
1616
+ # @type BusyDuration: Integer
1617
+ # @param NotReadyDuration: 当天示忙总时长
1618
+ # @type NotReadyDuration: Integer
1619
+ # @param RestDuration: 当天小休总时长
1620
+ # @type RestDuration: Integer
1621
+ # @param AfterCallWorkDuration: 当天话后调整总时长
1622
+ # @type AfterCallWorkDuration: Integer
1623
+ # @param Reason: 小休原因
1624
+ # @type Reason: String
1625
+ # @param ReserveRest: 是否预约小休
1626
+ # @type ReserveRest: Boolean
1627
+ # @param ReserveNotReady: 是否预约示忙
1628
+ # @type ReserveNotReady: Boolean
1629
+
1630
+ attr_accessor :Email, :Status, :StatusExtra, :OnlineDuration, :FreeDuration, :BusyDuration, :NotReadyDuration, :RestDuration, :AfterCallWorkDuration, :Reason, :ReserveRest, :ReserveNotReady
1631
+
1632
+ def initialize(email=nil, status=nil, statusextra=nil, onlineduration=nil, freeduration=nil, busyduration=nil, notreadyduration=nil, restduration=nil, aftercallworkduration=nil, reason=nil, reserverest=nil, reservenotready=nil)
1633
+ @Email = email
1634
+ @Status = status
1635
+ @StatusExtra = statusextra
1636
+ @OnlineDuration = onlineduration
1637
+ @FreeDuration = freeduration
1638
+ @BusyDuration = busyduration
1639
+ @NotReadyDuration = notreadyduration
1640
+ @RestDuration = restduration
1641
+ @AfterCallWorkDuration = aftercallworkduration
1642
+ @Reason = reason
1643
+ @ReserveRest = reserverest
1644
+ @ReserveNotReady = reservenotready
1645
+ end
1646
+
1647
+ def deserialize(params)
1648
+ @Email = params['Email']
1649
+ @Status = params['Status']
1650
+ unless params['StatusExtra'].nil?
1651
+ @StatusExtra = StaffStatusExtra.new
1652
+ @StatusExtra.deserialize(params['StatusExtra'])
1653
+ end
1654
+ @OnlineDuration = params['OnlineDuration']
1655
+ @FreeDuration = params['FreeDuration']
1656
+ @BusyDuration = params['BusyDuration']
1657
+ @NotReadyDuration = params['NotReadyDuration']
1658
+ @RestDuration = params['RestDuration']
1659
+ @AfterCallWorkDuration = params['AfterCallWorkDuration']
1660
+ @Reason = params['Reason']
1661
+ @ReserveRest = params['ReserveRest']
1662
+ @ReserveNotReady = params['ReserveNotReady']
1663
+ end
1664
+ end
1665
+
1666
+ # 电话话单信息
1667
+ class TelCdrInfo < TencentCloud::Common::AbstractModel
1668
+ # @param Caller: 主叫号码
1669
+ # @type Caller: String
1670
+ # @param Callee: 被叫号码
1671
+ # @type Callee: String
1672
+ # @param Time: 呼叫发起时间戳,Unix 时间戳
1673
+ # @type Time: Integer
1674
+ # @param Direction: 呼入呼出方向 0 呼入 1 呼出
1675
+ # @type Direction: Integer
1676
+ # @param Duration: 通话时长
1677
+ # @type Duration: Integer
1678
+ # @param RecordURL: 录音信息
1679
+ # @type RecordURL: String
1680
+ # @param SeatUser: 坐席信息
1681
+ # @type SeatUser: :class:`Tencentcloud::Ccc.v20200210.models.SeatUserInfo`
1682
+ # @param EndStatus: 结束状态
1683
+ # 0 错误
1684
+ # 1 正常结束
1685
+ # 2 未接通
1686
+ # 17 坐席未接
1687
+ # 100 黑名单
1688
+ # 101 坐席转接
1689
+ # 102 IVR 期间用户放弃
1690
+ # 103 会话排队期间用户放弃
1691
+ # 104 会话振铃期间用户放弃
1692
+ # 105 无坐席在线
1693
+ # 106 非工作时间
1694
+ # 107 IVR后直接结束
1695
+ # 201 未知状态
1696
+ # 202 未接听
1697
+ # 203 拒接挂断
1698
+ # 204 关机
1699
+ # 205 空号
1700
+ # 206 通话中
1701
+ # 207 欠费
1702
+ # 208 运营商线路异常
1703
+ # 209 主叫取消
1704
+ # 210 不在服务区
1705
+ # @type EndStatus: Integer
1706
+ # @param SkillGroup: 技能组名称
1707
+ # @type SkillGroup: String
1708
+ # @param CallerLocation: 主叫归属地
1709
+ # @type CallerLocation: String
1710
+ # @param IVRDuration: IVR 阶段耗时
1711
+ # 注意:此字段可能返回 null,表示取不到有效值。
1712
+ # @type IVRDuration: Integer
1713
+ # @param RingTimestamp: 振铃时间戳,UNIX 秒级时间戳
1714
+ # 注意:此字段可能返回 null,表示取不到有效值。
1715
+ # @type RingTimestamp: Integer
1716
+ # @param AcceptTimestamp: 接听时间戳,UNIX 秒级时间戳
1717
+ # 注意:此字段可能返回 null,表示取不到有效值。
1718
+ # @type AcceptTimestamp: Integer
1719
+ # @param EndedTimestamp: 结束时间戳,UNIX 秒级时间戳
1720
+ # 注意:此字段可能返回 null,表示取不到有效值。
1721
+ # @type EndedTimestamp: Integer
1722
+ # @param IVRKeyPressed: IVR 按键信息 ,e.g. ["1","2","3"]
1723
+ # 注意:此字段可能返回 null,表示取不到有效值。
1724
+ # @type IVRKeyPressed: Array
1725
+ # @param HungUpSide: 挂机方 seat 坐席 user 用户
1726
+ # 注意:此字段可能返回 null,表示取不到有效值。
1727
+ # @type HungUpSide: String
1728
+ # @param ServeParticipants: 服务参与者列表
1729
+ # 注意:此字段可能返回 null,表示取不到有效值。
1730
+ # @type ServeParticipants: Array
1731
+ # @param SkillGroupId: 技能组ID
1732
+ # 注意:此字段可能返回 null,表示取不到有效值。
1733
+ # @type SkillGroupId: Integer
1734
+ # @param EndStatusString: error 错误
1735
+ # ok 正常结束
1736
+ # unconnected 未接通
1737
+ # seatGiveUp 坐席未接
1738
+ # blackList 黑名单
1739
+ # seatForward 坐席转接
1740
+ # ivrGiveUp IVR 期间用户放弃
1741
+ # waitingGiveUp 会话排队期间用户放弃
1742
+ # ringingGiveUp 会话振铃期间用户放弃
1743
+ # noSeatOnline 无坐席在线
1744
+ # notWorkTime 非工作时间
1745
+ # ivrEnd IVR后直接结束
1746
+ # unknown 未知状态
1747
+ # notAnswer 未接听
1748
+ # userReject 拒接挂断
1749
+ # powerOff 关机
1750
+ # numberNotExist 空号
1751
+ # busy 通话中
1752
+ # outOfCredit 欠费
1753
+ # operatorError 运营商线路异常
1754
+ # callerCancel 主叫取消
1755
+ # notInService 不在服务区
1756
+ # 注意:此字段可能返回 null,表示取不到有效值。
1757
+ # @type EndStatusString: String
1758
+ # @param StartTimestamp: 会话开始时间戳,UNIX 秒级时间戳
1759
+ # 注意:此字段可能返回 null,表示取不到有效值。
1760
+ # @type StartTimestamp: Integer
1761
+ # @param QueuedTimestamp: 进入排队时间,Unix 秒级时间戳
1762
+ # 注意:此字段可能返回 null,表示取不到有效值。
1763
+ # @type QueuedTimestamp: Integer
1764
+ # @param PostIVRKeyPressed: 后置IVR按键信息(e.g. [{"Key":"1","Label":"非常满意"}])
1765
+ # 注意:此字段可能返回 null,表示取不到有效值。
1766
+ # @type PostIVRKeyPressed: Array
1767
+ # @param QueuedSkillGroupId: 排队技能组Id
1768
+ # 注意:此字段可能返回 null,表示取不到有效值。
1769
+ # @type QueuedSkillGroupId: Integer
1770
+ # @param SessionId: 会话 ID
1771
+ # 注意:此字段可能返回 null,表示取不到有效值。
1772
+ # @type SessionId: String
1773
+ # @param ProtectedCaller: 主叫号码保护ID,开启号码保护映射功能时有效,且Caller字段置空
1774
+ # 注意:此字段可能返回 null,表示取不到有效值。
1775
+ # @type ProtectedCaller: String
1776
+ # @param ProtectedCallee: 被叫号码保护ID,开启号码保护映射功能时有效,且Callee字段置空
1777
+ # 注意:此字段可能返回 null,表示取不到有效值。
1778
+ # @type ProtectedCallee: String
1779
+
1780
+ attr_accessor :Caller, :Callee, :Time, :Direction, :Duration, :RecordURL, :SeatUser, :EndStatus, :SkillGroup, :CallerLocation, :IVRDuration, :RingTimestamp, :AcceptTimestamp, :EndedTimestamp, :IVRKeyPressed, :HungUpSide, :ServeParticipants, :SkillGroupId, :EndStatusString, :StartTimestamp, :QueuedTimestamp, :PostIVRKeyPressed, :QueuedSkillGroupId, :SessionId, :ProtectedCaller, :ProtectedCallee
1781
+
1782
+ def initialize(caller=nil, callee=nil, time=nil, direction=nil, duration=nil, recordurl=nil, seatuser=nil, endstatus=nil, skillgroup=nil, callerlocation=nil, ivrduration=nil, ringtimestamp=nil, accepttimestamp=nil, endedtimestamp=nil, ivrkeypressed=nil, hungupside=nil, serveparticipants=nil, skillgroupid=nil, endstatusstring=nil, starttimestamp=nil, queuedtimestamp=nil, postivrkeypressed=nil, queuedskillgroupid=nil, sessionid=nil, protectedcaller=nil, protectedcallee=nil)
1783
+ @Caller = caller
1784
+ @Callee = callee
1785
+ @Time = time
1786
+ @Direction = direction
1787
+ @Duration = duration
1788
+ @RecordURL = recordurl
1789
+ @SeatUser = seatuser
1790
+ @EndStatus = endstatus
1791
+ @SkillGroup = skillgroup
1792
+ @CallerLocation = callerlocation
1793
+ @IVRDuration = ivrduration
1794
+ @RingTimestamp = ringtimestamp
1795
+ @AcceptTimestamp = accepttimestamp
1796
+ @EndedTimestamp = endedtimestamp
1797
+ @IVRKeyPressed = ivrkeypressed
1798
+ @HungUpSide = hungupside
1799
+ @ServeParticipants = serveparticipants
1800
+ @SkillGroupId = skillgroupid
1801
+ @EndStatusString = endstatusstring
1802
+ @StartTimestamp = starttimestamp
1803
+ @QueuedTimestamp = queuedtimestamp
1804
+ @PostIVRKeyPressed = postivrkeypressed
1805
+ @QueuedSkillGroupId = queuedskillgroupid
1806
+ @SessionId = sessionid
1807
+ @ProtectedCaller = protectedcaller
1808
+ @ProtectedCallee = protectedcallee
1809
+ end
1810
+
1811
+ def deserialize(params)
1812
+ @Caller = params['Caller']
1813
+ @Callee = params['Callee']
1814
+ @Time = params['Time']
1815
+ @Direction = params['Direction']
1816
+ @Duration = params['Duration']
1817
+ @RecordURL = params['RecordURL']
1818
+ unless params['SeatUser'].nil?
1819
+ @SeatUser = SeatUserInfo.new
1820
+ @SeatUser.deserialize(params['SeatUser'])
1821
+ end
1822
+ @EndStatus = params['EndStatus']
1823
+ @SkillGroup = params['SkillGroup']
1824
+ @CallerLocation = params['CallerLocation']
1825
+ @IVRDuration = params['IVRDuration']
1826
+ @RingTimestamp = params['RingTimestamp']
1827
+ @AcceptTimestamp = params['AcceptTimestamp']
1828
+ @EndedTimestamp = params['EndedTimestamp']
1829
+ @IVRKeyPressed = params['IVRKeyPressed']
1830
+ @HungUpSide = params['HungUpSide']
1831
+ unless params['ServeParticipants'].nil?
1832
+ @ServeParticipants = []
1833
+ params['ServeParticipants'].each do |i|
1834
+ serveparticipant_tmp = ServeParticipant.new
1835
+ serveparticipant_tmp.deserialize(i)
1836
+ @ServeParticipants << serveparticipant_tmp
1837
+ end
1838
+ end
1839
+ @SkillGroupId = params['SkillGroupId']
1840
+ @EndStatusString = params['EndStatusString']
1841
+ @StartTimestamp = params['StartTimestamp']
1842
+ @QueuedTimestamp = params['QueuedTimestamp']
1843
+ unless params['PostIVRKeyPressed'].nil?
1844
+ @PostIVRKeyPressed = []
1845
+ params['PostIVRKeyPressed'].each do |i|
1846
+ ivrkeypressedelement_tmp = IVRKeyPressedElement.new
1847
+ ivrkeypressedelement_tmp.deserialize(i)
1848
+ @PostIVRKeyPressed << ivrkeypressedelement_tmp
1849
+ end
1850
+ end
1851
+ @QueuedSkillGroupId = params['QueuedSkillGroupId']
1852
+ @SessionId = params['SessionId']
1853
+ @ProtectedCaller = params['ProtectedCaller']
1854
+ @ProtectedCallee = params['ProtectedCallee']
1855
+ end
1856
+ end
1857
+
1858
+ # UnbindStaffSkillGroupList请求参数结构体
1859
+ class UnbindStaffSkillGroupListRequest < TencentCloud::Common::AbstractModel
1860
+ # @param SdkAppId: 实例ID
1861
+ # @type SdkAppId: Integer
1862
+ # @param StaffEmail: 客服邮箱
1863
+ # @type StaffEmail: String
1864
+ # @param SkillGroupList: 解绑技能组列表
1865
+ # @type SkillGroupList: Array
1866
+
1867
+ attr_accessor :SdkAppId, :StaffEmail, :SkillGroupList
1868
+
1869
+ def initialize(sdkappid=nil, staffemail=nil, skillgrouplist=nil)
1870
+ @SdkAppId = sdkappid
1871
+ @StaffEmail = staffemail
1872
+ @SkillGroupList = skillgrouplist
1873
+ end
1874
+
1875
+ def deserialize(params)
1876
+ @SdkAppId = params['SdkAppId']
1877
+ @StaffEmail = params['StaffEmail']
1878
+ @SkillGroupList = params['SkillGroupList']
1879
+ end
1880
+ end
1881
+
1882
+ # UnbindStaffSkillGroupList返回参数结构体
1883
+ class UnbindStaffSkillGroupListResponse < TencentCloud::Common::AbstractModel
1884
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1885
+ # @type RequestId: String
1886
+
1887
+ attr_accessor :RequestId
1888
+
1889
+ def initialize(requestid=nil)
1890
+ @RequestId = requestid
1891
+ end
1892
+
1893
+ def deserialize(params)
1894
+ @RequestId = params['RequestId']
1895
+ end
1896
+ end
1897
+
1898
+ end
1899
+ end
1900
+ end
1901
+