-
Notifications
You must be signed in to change notification settings - Fork 13
/
viewfilter.go
2134 lines (1428 loc) · 78.9 KB
/
viewfilter.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
package platformclientv2
import (
"github.com/leekchan/timeutil"
"reflect"
"encoding/json"
"strconv"
"strings"
)
// Viewfilter
type Viewfilter struct {
// SetFieldNames defines the list of fields to use for controlled JSON serialization
SetFieldNames map[string]bool `json:"-"`
// MediaTypes - The media types are used to filter the view
MediaTypes *[]string `json:"mediaTypes,omitempty"`
// QueueIds - The queue ids are used to filter the view
QueueIds *[]string `json:"queueIds,omitempty"`
// SkillIds - The skill ids are used to filter the view
SkillIds *[]string `json:"skillIds,omitempty"`
// SkillGroups - The skill groups used to filter the view
SkillGroups *[]string `json:"skillGroups,omitempty"`
// LanguageIds - The language ids are used to filter the view
LanguageIds *[]string `json:"languageIds,omitempty"`
// LanguageGroups - The language groups used to filter the view
LanguageGroups *[]string `json:"languageGroups,omitempty"`
// Directions - The directions are used to filter the view
Directions *[]string `json:"directions,omitempty"`
// OriginatingDirections - The list of orginating directions used to filter the view
OriginatingDirections *[]string `json:"originatingDirections,omitempty"`
// WrapUpCodes - The wrap up codes are used to filter the view
WrapUpCodes *[]string `json:"wrapUpCodes,omitempty"`
// DnisList - The dnis list is used to filter the view
DnisList *[]string `json:"dnisList,omitempty"`
// SessionDnisList - The list of session dnis used to filter the view
SessionDnisList *[]string `json:"sessionDnisList,omitempty"`
// FilterQueuesByUserIds - The user ids are used to fetch associated queues for the view
FilterQueuesByUserIds *[]string `json:"filterQueuesByUserIds,omitempty"`
// FilterUsersByQueueIds - The queue ids are used to fetch associated users for the view
FilterUsersByQueueIds *[]string `json:"filterUsersByQueueIds,omitempty"`
// UserIds - The user ids are used to filter the view
UserIds *[]string `json:"userIds,omitempty"`
// ManagementUnitIds - The management unit ids are used to filter the view
ManagementUnitIds *[]string `json:"managementUnitIds,omitempty"`
// AddressTos - The address To values are used to filter the view
AddressTos *[]string `json:"addressTos,omitempty"`
// AddressFroms - The address from values are used to filter the view
AddressFroms *[]string `json:"addressFroms,omitempty"`
// OutboundCampaignIds - The outbound campaign ids are used to filter the view
OutboundCampaignIds *[]string `json:"outboundCampaignIds,omitempty"`
// OutboundContactListIds - The outbound contact list ids are used to filter the view
OutboundContactListIds *[]string `json:"outboundContactListIds,omitempty"`
// ContactIds - The contact ids are used to filter the view
ContactIds *[]string `json:"contactIds,omitempty"`
// ExternalContactIds - The external contact ids are used to filter the view
ExternalContactIds *[]string `json:"externalContactIds,omitempty"`
// ExternalOrgIds - The external org ids are used to filter the view
ExternalOrgIds *[]string `json:"externalOrgIds,omitempty"`
// AniList - The ani list ids are used to filter the view
AniList *[]string `json:"aniList,omitempty"`
// DurationsMilliseconds - The durations in milliseconds used to filter the view
DurationsMilliseconds *[]Numericrange `json:"durationsMilliseconds,omitempty"`
// AcdDurationsMilliseconds - The acd durations in milliseconds used to filter the view
AcdDurationsMilliseconds *[]Numericrange `json:"acdDurationsMilliseconds,omitempty"`
// TalkDurationsMilliseconds - The talk durations in milliseconds used to filter the view
TalkDurationsMilliseconds *[]Numericrange `json:"talkDurationsMilliseconds,omitempty"`
// AcwDurationsMilliseconds - The acw durations in milliseconds used to filter the view
AcwDurationsMilliseconds *[]Numericrange `json:"acwDurationsMilliseconds,omitempty"`
// HandleDurationsMilliseconds - The handle durations in milliseconds used to filter the view
HandleDurationsMilliseconds *[]Numericrange `json:"handleDurationsMilliseconds,omitempty"`
// HoldDurationsMilliseconds - The hold durations in milliseconds used to filter the view
HoldDurationsMilliseconds *[]Numericrange `json:"holdDurationsMilliseconds,omitempty"`
// AbandonDurationsMilliseconds - The abandon durations in milliseconds used to filter the view
AbandonDurationsMilliseconds *[]Numericrange `json:"abandonDurationsMilliseconds,omitempty"`
// EvaluationScore - The evaluationScore is used to filter the view
EvaluationScore *Numericrange `json:"evaluationScore,omitempty"`
// EvaluationCriticalScore - The evaluationCriticalScore is used to filter the view
EvaluationCriticalScore *Numericrange `json:"evaluationCriticalScore,omitempty"`
// EvaluationFormIds - The evaluation form ids are used to filter the view
EvaluationFormIds *[]string `json:"evaluationFormIds,omitempty"`
// EvaluatedAgentIds - The evaluated agent ids are used to filter the view
EvaluatedAgentIds *[]string `json:"evaluatedAgentIds,omitempty"`
// EvaluatorIds - The evaluator ids are used to filter the view
EvaluatorIds *[]string `json:"evaluatorIds,omitempty"`
// Transferred - Indicates filtering for transfers
Transferred *bool `json:"transferred,omitempty"`
// Abandoned - Indicates filtering for abandons
Abandoned *bool `json:"abandoned,omitempty"`
// Answered - Indicates filtering for answered interactions
Answered *bool `json:"answered,omitempty"`
// MessageTypes - The message media types used to filter the view
MessageTypes *[]string `json:"messageTypes,omitempty"`
// DivisionIds - The divison Ids used to filter the view
DivisionIds *[]string `json:"divisionIds,omitempty"`
// SurveyFormIds - The survey form ids used to filter the view
SurveyFormIds *[]string `json:"surveyFormIds,omitempty"`
// SurveyTotalScore - The survey total score used to filter the view
SurveyTotalScore *Numericrange `json:"surveyTotalScore,omitempty"`
// SurveyNpsScore - The survey NPS score used to filter the view
SurveyNpsScore *Numericrange `json:"surveyNpsScore,omitempty"`
// Mos - The desired range for mos values
Mos *Numericrange `json:"mos,omitempty"`
// SurveyQuestionGroupScore - The survey question group score used to filter the view
SurveyQuestionGroupScore *Numericrange `json:"surveyQuestionGroupScore,omitempty"`
// SurveyPromoterScore - The survey promoter score used to filter the view
SurveyPromoterScore *Numericrange `json:"surveyPromoterScore,omitempty"`
// SurveyFormContextIds - The list of survey form context ids used to filter the view
SurveyFormContextIds *[]string `json:"surveyFormContextIds,omitempty"`
// ConversationIds - The list of conversation ids used to filter the view
ConversationIds *[]string `json:"conversationIds,omitempty"`
// SipCallIds - The list of SIP call ids used to filter the view
SipCallIds *[]string `json:"sipCallIds,omitempty"`
// IsEnded - Indicates filtering for ended
IsEnded *bool `json:"isEnded,omitempty"`
// IsSurveyed - Indicates filtering for survey
IsSurveyed *bool `json:"isSurveyed,omitempty"`
// SurveyScores - The list of survey score ranges used to filter the view
SurveyScores *[]Numericrange `json:"surveyScores,omitempty"`
// PromoterScores - The list of promoter score ranges used to filter the view
PromoterScores *[]Numericrange `json:"promoterScores,omitempty"`
// IsCampaign - Indicates filtering for campaign
IsCampaign *bool `json:"isCampaign,omitempty"`
// SurveyStatuses - The list of survey statuses used to filter the view
SurveyStatuses *[]string `json:"surveyStatuses,omitempty"`
// ConversationProperties - A grouping of conversation level filters
ConversationProperties *Conversationproperties `json:"conversationProperties,omitempty"`
// IsBlindTransferred - Indicates filtering for blind transferred
IsBlindTransferred *bool `json:"isBlindTransferred,omitempty"`
// IsConsulted - Indicates filtering for consulted
IsConsulted *bool `json:"isConsulted,omitempty"`
// IsConsultTransferred - Indicates filtering for consult transferred
IsConsultTransferred *bool `json:"isConsultTransferred,omitempty"`
// RemoteParticipants - The list of remote participants used to filter the view
RemoteParticipants *[]string `json:"remoteParticipants,omitempty"`
// FlowIds - The list of flow Ids
FlowIds *[]string `json:"flowIds,omitempty"`
// FlowOutcomeIds - A list of outcome ids of the flow
FlowOutcomeIds *[]string `json:"flowOutcomeIds,omitempty"`
// FlowOutcomeValues - A list of outcome values of the flow
FlowOutcomeValues *[]string `json:"flowOutcomeValues,omitempty"`
// FlowDestinationTypes - The list of destination types of the flow
FlowDestinationTypes *[]string `json:"flowDestinationTypes,omitempty"`
// FlowDisconnectReasons - The list of reasons for the flow to disconnect
FlowDisconnectReasons *[]string `json:"flowDisconnectReasons,omitempty"`
// FlowTypes - A list of types of the flow
FlowTypes *[]string `json:"flowTypes,omitempty"`
// FlowEntryTypes - A list of types of the flow entry
FlowEntryTypes *[]string `json:"flowEntryTypes,omitempty"`
// FlowEntryReasons - A list of reasons of flow entry
FlowEntryReasons *[]string `json:"flowEntryReasons,omitempty"`
// FlowVersions - A list of versions of a flow
FlowVersions *[]string `json:"flowVersions,omitempty"`
// GroupIds - A list of directory group ids
GroupIds *[]string `json:"groupIds,omitempty"`
// HasJourneyCustomerId - Indicates filtering for journey customer id
HasJourneyCustomerId *bool `json:"hasJourneyCustomerId,omitempty"`
// HasJourneyActionMapId - Indicates filtering for Journey action map id
HasJourneyActionMapId *bool `json:"hasJourneyActionMapId,omitempty"`
// HasJourneyVisitId - Indicates filtering for Journey visit id
HasJourneyVisitId *bool `json:"hasJourneyVisitId,omitempty"`
// HasMedia - Indicates filtering for presence of MMS media
HasMedia *bool `json:"hasMedia,omitempty"`
// RoleIds - The role Ids used to filter the view
RoleIds *[]string `json:"roleIds,omitempty"`
// ReportsTos - The report to user IDs used to filter the view
ReportsTos *[]string `json:"reportsTos,omitempty"`
// LocationIds - The location Ids used to filter the view
LocationIds *[]string `json:"locationIds,omitempty"`
// FlowOutTypes - A list of flow out types
FlowOutTypes *[]string `json:"flowOutTypes,omitempty"`
// ProviderList - A list of providers
ProviderList *[]string `json:"providerList,omitempty"`
// CallbackNumberList - A list of callback numbers or substrings of numbers (ex: [\"317\", \"13172222222\"])
CallbackNumberList *[]string `json:"callbackNumberList,omitempty"`
// CallbackInterval - An interval of time to filter for scheduled callbacks. Intervals are represented as an ISO-8601 string. For example: YYYY-MM-DDThh:mm:ss/YYYY-MM-DDThh:mm:ss
CallbackInterval *string `json:"callbackInterval,omitempty"`
// UsedRoutingTypes - A list of routing types used
UsedRoutingTypes *[]string `json:"usedRoutingTypes,omitempty"`
// RequestedRoutingTypes - A list of routing types requested
RequestedRoutingTypes *[]string `json:"requestedRoutingTypes,omitempty"`
// HasAgentAssistId - Indicates filtering for agent assist id
HasAgentAssistId *bool `json:"hasAgentAssistId,omitempty"`
// Transcripts - A list of transcript contents requested
Transcripts *[]Transcripts `json:"transcripts,omitempty"`
// TranscriptLanguages - A list of transcript languages requested
TranscriptLanguages *[]string `json:"transcriptLanguages,omitempty"`
// ParticipantPurposes - A list of participant purpose requested
ParticipantPurposes *[]string `json:"participantPurposes,omitempty"`
// ShowFirstQueue - Indicates filtering for first queue data
ShowFirstQueue *bool `json:"showFirstQueue,omitempty"`
// TeamIds - The team ids used to filter the view data
TeamIds *[]string `json:"teamIds,omitempty"`
// FilterUsersByTeamIds - The team ids are used to fetch associated users for the view
FilterUsersByTeamIds *[]string `json:"filterUsersByTeamIds,omitempty"`
// JourneyActionMapIds - The journey action map ids are used to fetch action maps for the associated view
JourneyActionMapIds *[]string `json:"journeyActionMapIds,omitempty"`
// JourneyOutcomeIds - The journey outcome ids are used to fetch outcomes for the associated view
JourneyOutcomeIds *[]string `json:"journeyOutcomeIds,omitempty"`
// JourneySegmentIds - The journey segment ids are used to fetch segments for the associated view
JourneySegmentIds *[]string `json:"journeySegmentIds,omitempty"`
// JourneyActionMapTypes - The journey action map types are used to filter action map data for the associated view
JourneyActionMapTypes *[]string `json:"journeyActionMapTypes,omitempty"`
// DevelopmentRoleList - The list of development roles used to filter agent development view
DevelopmentRoleList *[]string `json:"developmentRoleList,omitempty"`
// DevelopmentTypeList - The list of development types used to filter agent development view
DevelopmentTypeList *[]string `json:"developmentTypeList,omitempty"`
// DevelopmentStatusList - The list of development status used to filter agent development view
DevelopmentStatusList *[]string `json:"developmentStatusList,omitempty"`
// DevelopmentModuleIds - The list of development moduleIds used to filter agent development view
DevelopmentModuleIds *[]string `json:"developmentModuleIds,omitempty"`
// DevelopmentActivityOverdue - Indicates filtering for development activities
DevelopmentActivityOverdue *bool `json:"developmentActivityOverdue,omitempty"`
// CustomerSentimentScore - The customer sentiment score used to filter the view
CustomerSentimentScore *Numericrange `json:"customerSentimentScore,omitempty"`
// CustomerSentimentTrend - The customer sentiment trend used to filter the view
CustomerSentimentTrend *Numericrange `json:"customerSentimentTrend,omitempty"`
// FlowTransferTargets - The list of transfer targets used to filter flow data
FlowTransferTargets *[]string `json:"flowTransferTargets,omitempty"`
// DevelopmentName - Filter for development name
DevelopmentName *string `json:"developmentName,omitempty"`
// TopicIds - Represents the topics detected in the transcript
TopicIds *[]string `json:"topicIds,omitempty"`
// ExternalTags - The list of external Tags used to filter conversation data
ExternalTags *[]string `json:"externalTags,omitempty"`
// IsNotResponding - Indicates filtering for not responding users
IsNotResponding *bool `json:"isNotResponding,omitempty"`
// IsAuthenticated - Indicates filtering for the authenticated chat
IsAuthenticated *bool `json:"isAuthenticated,omitempty"`
// BotIds - The list of bot IDs used to filter bot views
BotIds *[]string `json:"botIds,omitempty"`
// BotVersions - The list of bot versions used to filter bot views
BotVersions *[]string `json:"botVersions,omitempty"`
// BotMessageTypes - The list of bot message types used to filter bot views
BotMessageTypes *[]string `json:"botMessageTypes,omitempty"`
// BotProviderList - The list of bot providers used to filter bot views
BotProviderList *[]string `json:"botProviderList,omitempty"`
// BotProductList - The list of bot products used to filter bot views
BotProductList *[]string `json:"botProductList,omitempty"`
// BotRecognitionFailureReasonList - The list of bot recognition failure reasons used to filter bot views
BotRecognitionFailureReasonList *[]string `json:"botRecognitionFailureReasonList,omitempty"`
// BotIntentList - The list of bot intents used to filter bot views
BotIntentList *[]string `json:"botIntentList,omitempty"`
// BotFinalIntentList - The list of bot final intents used to filter bot views
BotFinalIntentList *[]string `json:"botFinalIntentList,omitempty"`
// BotSlotList - The list of bot slots used to filter bot views
BotSlotList *[]string `json:"botSlotList,omitempty"`
// BotResultList - The list of bot results used to filter bot views
BotResultList *[]string `json:"botResultList,omitempty"`
// BlockedReasons - The list of blocked reason used to filter action map constraints views
BlockedReasons *[]string `json:"blockedReasons,omitempty"`
// IsRecorded - Indicates filtering for recorded
IsRecorded *bool `json:"isRecorded,omitempty"`
// HasEvaluation - Indicates filtering for evaluation
HasEvaluation *bool `json:"hasEvaluation,omitempty"`
// HasScoredEvaluation - Indicates filtering for scored evaluation
HasScoredEvaluation *bool `json:"hasScoredEvaluation,omitempty"`
// EmailDeliveryStatusList - The list of email delivery statuses used to filter views
EmailDeliveryStatusList *[]string `json:"emailDeliveryStatusList,omitempty"`
// IsAgentOwnedCallback - Indicates filtering for agent owned callback interactions
IsAgentOwnedCallback *bool `json:"isAgentOwnedCallback,omitempty"`
// AgentCallbackOwnerIds - The list of callback owners used to filter interactions
AgentCallbackOwnerIds *[]string `json:"agentCallbackOwnerIds,omitempty"`
// TranscriptTopics - The list of transcript topics requested in filter
TranscriptTopics *[]Transcripttopics `json:"transcriptTopics,omitempty"`
// JourneyFrequencyCapReasons - The list of frequency cap reasons to filter offer constraints
JourneyFrequencyCapReasons *[]string `json:"journeyFrequencyCapReasons,omitempty"`
// JourneyBlockingActionMapIds - The list of blocking action maps to filter offer constraints
JourneyBlockingActionMapIds *[]string `json:"journeyBlockingActionMapIds,omitempty"`
// JourneyActionTargetIds - The list of action targets to filter offer constraints
JourneyActionTargetIds *[]string `json:"journeyActionTargetIds,omitempty"`
// JourneyBlockingScheduleGroupIds - The list of blocking schedule groups to filter offer constraints
JourneyBlockingScheduleGroupIds *[]string `json:"journeyBlockingScheduleGroupIds,omitempty"`
// JourneyBlockingEmergencyScheduleGroupIds - The list of emergency schedule groups to filter offer constraints
JourneyBlockingEmergencyScheduleGroupIds *[]string `json:"journeyBlockingEmergencyScheduleGroupIds,omitempty"`
// JourneyUrlEqualConditions - The list of url equal conditions to filter offer constraints
JourneyUrlEqualConditions *[]string `json:"journeyUrlEqualConditions,omitempty"`
// JourneyUrlNotEqualConditions - The list of url not equal conditions to filter offer constraints
JourneyUrlNotEqualConditions *[]string `json:"journeyUrlNotEqualConditions,omitempty"`
// JourneyUrlStartsWithConditions - The list of url starts with conditions to filter offer constraints
JourneyUrlStartsWithConditions *[]string `json:"journeyUrlStartsWithConditions,omitempty"`
// JourneyUrlEndsWithConditions - The list of url ends with conditions to filter offer constraints
JourneyUrlEndsWithConditions *[]string `json:"journeyUrlEndsWithConditions,omitempty"`
// JourneyUrlContainsAnyConditions - The list of url contains any conditions to filter offer constraints
JourneyUrlContainsAnyConditions *[]string `json:"journeyUrlContainsAnyConditions,omitempty"`
// JourneyUrlNotContainsAnyConditions - The list of url not contains any conditions to filter offer constraints
JourneyUrlNotContainsAnyConditions *[]string `json:"journeyUrlNotContainsAnyConditions,omitempty"`
// JourneyUrlContainsAllConditions - The list of url contains all conditions to filter offer constraints
JourneyUrlContainsAllConditions *[]string `json:"journeyUrlContainsAllConditions,omitempty"`
// JourneyUrlNotContainsAllConditions - The list of url not contains all conditions to filter offer constraints
JourneyUrlNotContainsAllConditions *[]string `json:"journeyUrlNotContainsAllConditions,omitempty"`
// FlowMilestoneIds - The list of flow milestones to filter exports
FlowMilestoneIds *[]string `json:"flowMilestoneIds,omitempty"`
// IsAssessmentPassed - Filter to indicate if Agent passed assessment or not
IsAssessmentPassed *bool `json:"isAssessmentPassed,omitempty"`
// ConversationInitiators - The list to filter based on Brands (Bot/User/Agent) or End User who initiated the first message in the conversation
ConversationInitiators *[]string `json:"conversationInitiators,omitempty"`
// HasCustomerParticipated - Indicates if the customer has participated in an initiated conversation
HasCustomerParticipated *bool `json:"hasCustomerParticipated,omitempty"`
// IsAcdInteraction - Filter to indicate if interaction was ACD or non-ACD
IsAcdInteraction *bool `json:"isAcdInteraction,omitempty"`
// HasFax - Filters to indicate if interaction has FAX
HasFax *bool `json:"hasFax,omitempty"`
// DataActionIds - The list of Data Action IDs
DataActionIds *[]string `json:"dataActionIds,omitempty"`
// ActionCategoryName - Deprecated - Please use integrationIds instead
ActionCategoryName *string `json:"actionCategoryName,omitempty"`
// IntegrationIds - The list of integration IDs for Data Action
IntegrationIds *[]string `json:"integrationIds,omitempty"`
// ResponseStatuses - The list of Response codes for Data Action
ResponseStatuses *[]string `json:"responseStatuses,omitempty"`
// AvailableDashboard - Filter to indicate the availability of the dashboard is public or private.
AvailableDashboard *string `json:"availableDashboard,omitempty"`
// FavouriteDashboard - Filter to indicate whether the dashboard is favorite or unfavorite.
FavouriteDashboard *bool `json:"favouriteDashboard,omitempty"`
// MyDashboard - Filter to indicate the dashboard owned by the user.
MyDashboard *bool `json:"myDashboard,omitempty"`
// StationErrors - The list of agent errors that are related to station
StationErrors *[]string `json:"stationErrors,omitempty"`
// CanonicalContactIds - The canonical contact ids are used to filter the view
CanonicalContactIds *[]string `json:"canonicalContactIds,omitempty"`
// AlertRuleIds - The list of Alert Rule IDs
AlertRuleIds *[]string `json:"alertRuleIds,omitempty"`
// EvaluationFormContextIds - The list of Evaluation Form Context IDs
EvaluationFormContextIds *[]string `json:"evaluationFormContextIds,omitempty"`
// EvaluationStatuses - The evaluation statuses that are used to filter the view
EvaluationStatuses *[]string `json:"evaluationStatuses,omitempty"`
// WorkbinIds - The list of Workbin IDs
WorkbinIds *[]string `json:"workbinIds,omitempty"`
// WorktypeIds - The list of Worktype IDs
WorktypeIds *[]string `json:"worktypeIds,omitempty"`
// WorkitemIds - The list of Workitem IDs
WorkitemIds *[]string `json:"workitemIds,omitempty"`
// WorkitemAssigneeIds - The list of Workitem Assignee IDs
WorkitemAssigneeIds *[]string `json:"workitemAssigneeIds,omitempty"`
// WorkitemStatuses - The list of Workitem Statuses IDs
WorkitemStatuses *[]string `json:"workitemStatuses,omitempty"`
// IsAnalyzedForSensitiveData - Deprecated - Use hasPciData or hasPiiData instead.
IsAnalyzedForSensitiveData *bool `json:"isAnalyzedForSensitiveData,omitempty"`
// HasSensitiveData - Deprecated. Use hasPciData or hasPiiData instead.
HasSensitiveData *bool `json:"hasSensitiveData,omitempty"`
// HasPciData - Filter to indicate the transcript contains Pci data.
HasPciData *bool `json:"hasPciData,omitempty"`
// HasPiiData - Filter to indicate the transcript contains Pii data.
HasPiiData *bool `json:"hasPiiData,omitempty"`
// SubPath - Filter for Sub Path
SubPath *string `json:"subPath,omitempty"`
// UserState - The user supplied state value in the view
UserState *string `json:"userState,omitempty"`
// IsClearedByCustomer - Filter to indicate if the customer cleared the conversation.
IsClearedByCustomer *bool `json:"isClearedByCustomer,omitempty"`
// EvaluationAssigneeIds - The evaluation assignee ids that are used to filter the view.
EvaluationAssigneeIds *[]string `json:"evaluationAssigneeIds,omitempty"`
// EvaluationAssigned - Filter to indicate that the user has no assigned evaluation.
EvaluationAssigned *bool `json:"evaluationAssigned,omitempty"`
// AssistantIds - The assistant ids that are used to filter the view.
AssistantIds *[]string `json:"assistantIds,omitempty"`
// KnowledgeBaseIds - The knowledge base ids that are used to filter the view.
KnowledgeBaseIds *[]string `json:"knowledgeBaseIds,omitempty"`
// IsParked - Filter to indicate if the interactions are parked.
IsParked *bool `json:"isParked,omitempty"`
}
// SetField uses reflection to set a field on the model if the model has a property SetFieldNames, and triggers custom JSON serialization logic to only serialize properties that have been set using this function.
func (o *Viewfilter) SetField(field string, fieldValue interface{}) {
// Get Value object for field
target := reflect.ValueOf(o)
targetField := reflect.Indirect(target).FieldByName(field)
// Set value
if fieldValue != nil {
targetField.Set(reflect.ValueOf(fieldValue))
} else {
// Must create a new Value (creates **type) then get its element (*type), which will be nil pointer of the appropriate type
x := reflect.Indirect(reflect.New(targetField.Type()))
targetField.Set(x)
}
// Add field to set field names list
if o.SetFieldNames == nil {
o.SetFieldNames = make(map[string]bool)
}
o.SetFieldNames[field] = true
}
func (o Viewfilter) MarshalJSON() ([]byte, error) {
// Special processing to dynamically construct object using only field names that have been set using SetField. This generates payloads suitable for use with PATCH API endpoints.
if len(o.SetFieldNames) > 0 {
// Get reflection Value
val := reflect.ValueOf(o)
// Known field names that require type overrides
dateTimeFields := []string{ }
localDateTimeFields := []string{ }
dateFields := []string{ }
// Construct object
newObj := make(map[string]interface{})
for fieldName := range o.SetFieldNames {
// Get initial field value
fieldValue := val.FieldByName(fieldName).Interface()
// Apply value formatting overrides
if fieldValue == nil || reflect.ValueOf(fieldValue).IsNil() {
// Do nothing. Just catching this case to avoid trying to custom serialize a nil value
} else if contains(dateTimeFields, fieldName) {
fieldValue = timeutil.Strftime(toTime(fieldValue), "%Y-%m-%dT%H:%M:%S.%fZ")
} else if contains(localDateTimeFields, fieldName) {
fieldValue = timeutil.Strftime(toTime(fieldValue), "%Y-%m-%dT%H:%M:%S.%f")
} else if contains(dateFields, fieldName) {
fieldValue = timeutil.Strftime(toTime(fieldValue), "%Y-%m-%d")
}
// Assign value to field using JSON tag name
newObj[getFieldName(reflect.TypeOf(&o), fieldName)] = fieldValue
}
// Marshal and return dynamically constructed interface
return json.Marshal(newObj)
}
// Redundant initialization to avoid unused import errors for models with no Time values
_ = timeutil.Timedelta{}
type Alias Viewfilter
return json.Marshal(&struct {
MediaTypes *[]string `json:"mediaTypes,omitempty"`
QueueIds *[]string `json:"queueIds,omitempty"`
SkillIds *[]string `json:"skillIds,omitempty"`
SkillGroups *[]string `json:"skillGroups,omitempty"`
LanguageIds *[]string `json:"languageIds,omitempty"`
LanguageGroups *[]string `json:"languageGroups,omitempty"`
Directions *[]string `json:"directions,omitempty"`
OriginatingDirections *[]string `json:"originatingDirections,omitempty"`
WrapUpCodes *[]string `json:"wrapUpCodes,omitempty"`
DnisList *[]string `json:"dnisList,omitempty"`
SessionDnisList *[]string `json:"sessionDnisList,omitempty"`
FilterQueuesByUserIds *[]string `json:"filterQueuesByUserIds,omitempty"`
FilterUsersByQueueIds *[]string `json:"filterUsersByQueueIds,omitempty"`
UserIds *[]string `json:"userIds,omitempty"`
ManagementUnitIds *[]string `json:"managementUnitIds,omitempty"`
AddressTos *[]string `json:"addressTos,omitempty"`
AddressFroms *[]string `json:"addressFroms,omitempty"`
OutboundCampaignIds *[]string `json:"outboundCampaignIds,omitempty"`
OutboundContactListIds *[]string `json:"outboundContactListIds,omitempty"`
ContactIds *[]string `json:"contactIds,omitempty"`
ExternalContactIds *[]string `json:"externalContactIds,omitempty"`
ExternalOrgIds *[]string `json:"externalOrgIds,omitempty"`
AniList *[]string `json:"aniList,omitempty"`
DurationsMilliseconds *[]Numericrange `json:"durationsMilliseconds,omitempty"`
AcdDurationsMilliseconds *[]Numericrange `json:"acdDurationsMilliseconds,omitempty"`
TalkDurationsMilliseconds *[]Numericrange `json:"talkDurationsMilliseconds,omitempty"`
AcwDurationsMilliseconds *[]Numericrange `json:"acwDurationsMilliseconds,omitempty"`
HandleDurationsMilliseconds *[]Numericrange `json:"handleDurationsMilliseconds,omitempty"`
HoldDurationsMilliseconds *[]Numericrange `json:"holdDurationsMilliseconds,omitempty"`
AbandonDurationsMilliseconds *[]Numericrange `json:"abandonDurationsMilliseconds,omitempty"`
EvaluationScore *Numericrange `json:"evaluationScore,omitempty"`
EvaluationCriticalScore *Numericrange `json:"evaluationCriticalScore,omitempty"`
EvaluationFormIds *[]string `json:"evaluationFormIds,omitempty"`
EvaluatedAgentIds *[]string `json:"evaluatedAgentIds,omitempty"`
EvaluatorIds *[]string `json:"evaluatorIds,omitempty"`
Transferred *bool `json:"transferred,omitempty"`
Abandoned *bool `json:"abandoned,omitempty"`
Answered *bool `json:"answered,omitempty"`
MessageTypes *[]string `json:"messageTypes,omitempty"`
DivisionIds *[]string `json:"divisionIds,omitempty"`
SurveyFormIds *[]string `json:"surveyFormIds,omitempty"`
SurveyTotalScore *Numericrange `json:"surveyTotalScore,omitempty"`
SurveyNpsScore *Numericrange `json:"surveyNpsScore,omitempty"`
Mos *Numericrange `json:"mos,omitempty"`
SurveyQuestionGroupScore *Numericrange `json:"surveyQuestionGroupScore,omitempty"`
SurveyPromoterScore *Numericrange `json:"surveyPromoterScore,omitempty"`
SurveyFormContextIds *[]string `json:"surveyFormContextIds,omitempty"`
ConversationIds *[]string `json:"conversationIds,omitempty"`
SipCallIds *[]string `json:"sipCallIds,omitempty"`
IsEnded *bool `json:"isEnded,omitempty"`
IsSurveyed *bool `json:"isSurveyed,omitempty"`
SurveyScores *[]Numericrange `json:"surveyScores,omitempty"`
PromoterScores *[]Numericrange `json:"promoterScores,omitempty"`
IsCampaign *bool `json:"isCampaign,omitempty"`
SurveyStatuses *[]string `json:"surveyStatuses,omitempty"`
ConversationProperties *Conversationproperties `json:"conversationProperties,omitempty"`
IsBlindTransferred *bool `json:"isBlindTransferred,omitempty"`
IsConsulted *bool `json:"isConsulted,omitempty"`
IsConsultTransferred *bool `json:"isConsultTransferred,omitempty"`
RemoteParticipants *[]string `json:"remoteParticipants,omitempty"`
FlowIds *[]string `json:"flowIds,omitempty"`
FlowOutcomeIds *[]string `json:"flowOutcomeIds,omitempty"`
FlowOutcomeValues *[]string `json:"flowOutcomeValues,omitempty"`
FlowDestinationTypes *[]string `json:"flowDestinationTypes,omitempty"`
FlowDisconnectReasons *[]string `json:"flowDisconnectReasons,omitempty"`
FlowTypes *[]string `json:"flowTypes,omitempty"`
FlowEntryTypes *[]string `json:"flowEntryTypes,omitempty"`
FlowEntryReasons *[]string `json:"flowEntryReasons,omitempty"`
FlowVersions *[]string `json:"flowVersions,omitempty"`
GroupIds *[]string `json:"groupIds,omitempty"`
HasJourneyCustomerId *bool `json:"hasJourneyCustomerId,omitempty"`
HasJourneyActionMapId *bool `json:"hasJourneyActionMapId,omitempty"`
HasJourneyVisitId *bool `json:"hasJourneyVisitId,omitempty"`
HasMedia *bool `json:"hasMedia,omitempty"`
RoleIds *[]string `json:"roleIds,omitempty"`
ReportsTos *[]string `json:"reportsTos,omitempty"`
LocationIds *[]string `json:"locationIds,omitempty"`
FlowOutTypes *[]string `json:"flowOutTypes,omitempty"`
ProviderList *[]string `json:"providerList,omitempty"`
CallbackNumberList *[]string `json:"callbackNumberList,omitempty"`
CallbackInterval *string `json:"callbackInterval,omitempty"`
UsedRoutingTypes *[]string `json:"usedRoutingTypes,omitempty"`
RequestedRoutingTypes *[]string `json:"requestedRoutingTypes,omitempty"`
HasAgentAssistId *bool `json:"hasAgentAssistId,omitempty"`
Transcripts *[]Transcripts `json:"transcripts,omitempty"`
TranscriptLanguages *[]string `json:"transcriptLanguages,omitempty"`
ParticipantPurposes *[]string `json:"participantPurposes,omitempty"`
ShowFirstQueue *bool `json:"showFirstQueue,omitempty"`
TeamIds *[]string `json:"teamIds,omitempty"`
FilterUsersByTeamIds *[]string `json:"filterUsersByTeamIds,omitempty"`
JourneyActionMapIds *[]string `json:"journeyActionMapIds,omitempty"`
JourneyOutcomeIds *[]string `json:"journeyOutcomeIds,omitempty"`
JourneySegmentIds *[]string `json:"journeySegmentIds,omitempty"`
JourneyActionMapTypes *[]string `json:"journeyActionMapTypes,omitempty"`
DevelopmentRoleList *[]string `json:"developmentRoleList,omitempty"`
DevelopmentTypeList *[]string `json:"developmentTypeList,omitempty"`
DevelopmentStatusList *[]string `json:"developmentStatusList,omitempty"`
DevelopmentModuleIds *[]string `json:"developmentModuleIds,omitempty"`
DevelopmentActivityOverdue *bool `json:"developmentActivityOverdue,omitempty"`
CustomerSentimentScore *Numericrange `json:"customerSentimentScore,omitempty"`
CustomerSentimentTrend *Numericrange `json:"customerSentimentTrend,omitempty"`
FlowTransferTargets *[]string `json:"flowTransferTargets,omitempty"`
DevelopmentName *string `json:"developmentName,omitempty"`
TopicIds *[]string `json:"topicIds,omitempty"`
ExternalTags *[]string `json:"externalTags,omitempty"`
IsNotResponding *bool `json:"isNotResponding,omitempty"`
IsAuthenticated *bool `json:"isAuthenticated,omitempty"`
BotIds *[]string `json:"botIds,omitempty"`
BotVersions *[]string `json:"botVersions,omitempty"`
BotMessageTypes *[]string `json:"botMessageTypes,omitempty"`
BotProviderList *[]string `json:"botProviderList,omitempty"`
BotProductList *[]string `json:"botProductList,omitempty"`
BotRecognitionFailureReasonList *[]string `json:"botRecognitionFailureReasonList,omitempty"`
BotIntentList *[]string `json:"botIntentList,omitempty"`
BotFinalIntentList *[]string `json:"botFinalIntentList,omitempty"`
BotSlotList *[]string `json:"botSlotList,omitempty"`
BotResultList *[]string `json:"botResultList,omitempty"`
BlockedReasons *[]string `json:"blockedReasons,omitempty"`
IsRecorded *bool `json:"isRecorded,omitempty"`
HasEvaluation *bool `json:"hasEvaluation,omitempty"`
HasScoredEvaluation *bool `json:"hasScoredEvaluation,omitempty"`
EmailDeliveryStatusList *[]string `json:"emailDeliveryStatusList,omitempty"`
IsAgentOwnedCallback *bool `json:"isAgentOwnedCallback,omitempty"`
AgentCallbackOwnerIds *[]string `json:"agentCallbackOwnerIds,omitempty"`
TranscriptTopics *[]Transcripttopics `json:"transcriptTopics,omitempty"`
JourneyFrequencyCapReasons *[]string `json:"journeyFrequencyCapReasons,omitempty"`
JourneyBlockingActionMapIds *[]string `json:"journeyBlockingActionMapIds,omitempty"`
JourneyActionTargetIds *[]string `json:"journeyActionTargetIds,omitempty"`
JourneyBlockingScheduleGroupIds *[]string `json:"journeyBlockingScheduleGroupIds,omitempty"`
JourneyBlockingEmergencyScheduleGroupIds *[]string `json:"journeyBlockingEmergencyScheduleGroupIds,omitempty"`
JourneyUrlEqualConditions *[]string `json:"journeyUrlEqualConditions,omitempty"`
JourneyUrlNotEqualConditions *[]string `json:"journeyUrlNotEqualConditions,omitempty"`
JourneyUrlStartsWithConditions *[]string `json:"journeyUrlStartsWithConditions,omitempty"`
JourneyUrlEndsWithConditions *[]string `json:"journeyUrlEndsWithConditions,omitempty"`
JourneyUrlContainsAnyConditions *[]string `json:"journeyUrlContainsAnyConditions,omitempty"`
JourneyUrlNotContainsAnyConditions *[]string `json:"journeyUrlNotContainsAnyConditions,omitempty"`
JourneyUrlContainsAllConditions *[]string `json:"journeyUrlContainsAllConditions,omitempty"`
JourneyUrlNotContainsAllConditions *[]string `json:"journeyUrlNotContainsAllConditions,omitempty"`
FlowMilestoneIds *[]string `json:"flowMilestoneIds,omitempty"`
IsAssessmentPassed *bool `json:"isAssessmentPassed,omitempty"`
ConversationInitiators *[]string `json:"conversationInitiators,omitempty"`
HasCustomerParticipated *bool `json:"hasCustomerParticipated,omitempty"`
IsAcdInteraction *bool `json:"isAcdInteraction,omitempty"`
HasFax *bool `json:"hasFax,omitempty"`
DataActionIds *[]string `json:"dataActionIds,omitempty"`
ActionCategoryName *string `json:"actionCategoryName,omitempty"`
IntegrationIds *[]string `json:"integrationIds,omitempty"`
ResponseStatuses *[]string `json:"responseStatuses,omitempty"`
AvailableDashboard *string `json:"availableDashboard,omitempty"`
FavouriteDashboard *bool `json:"favouriteDashboard,omitempty"`
MyDashboard *bool `json:"myDashboard,omitempty"`
StationErrors *[]string `json:"stationErrors,omitempty"`
CanonicalContactIds *[]string `json:"canonicalContactIds,omitempty"`
AlertRuleIds *[]string `json:"alertRuleIds,omitempty"`
EvaluationFormContextIds *[]string `json:"evaluationFormContextIds,omitempty"`
EvaluationStatuses *[]string `json:"evaluationStatuses,omitempty"`
WorkbinIds *[]string `json:"workbinIds,omitempty"`
WorktypeIds *[]string `json:"worktypeIds,omitempty"`
WorkitemIds *[]string `json:"workitemIds,omitempty"`
WorkitemAssigneeIds *[]string `json:"workitemAssigneeIds,omitempty"`
WorkitemStatuses *[]string `json:"workitemStatuses,omitempty"`
IsAnalyzedForSensitiveData *bool `json:"isAnalyzedForSensitiveData,omitempty"`
HasSensitiveData *bool `json:"hasSensitiveData,omitempty"`
HasPciData *bool `json:"hasPciData,omitempty"`
HasPiiData *bool `json:"hasPiiData,omitempty"`
SubPath *string `json:"subPath,omitempty"`
UserState *string `json:"userState,omitempty"`
IsClearedByCustomer *bool `json:"isClearedByCustomer,omitempty"`
EvaluationAssigneeIds *[]string `json:"evaluationAssigneeIds,omitempty"`
EvaluationAssigned *bool `json:"evaluationAssigned,omitempty"`
AssistantIds *[]string `json:"assistantIds,omitempty"`
KnowledgeBaseIds *[]string `json:"knowledgeBaseIds,omitempty"`
IsParked *bool `json:"isParked,omitempty"`
Alias
}{
MediaTypes: o.MediaTypes,
QueueIds: o.QueueIds,
SkillIds: o.SkillIds,
SkillGroups: o.SkillGroups,
LanguageIds: o.LanguageIds,
LanguageGroups: o.LanguageGroups,
Directions: o.Directions,
OriginatingDirections: o.OriginatingDirections,
WrapUpCodes: o.WrapUpCodes,
DnisList: o.DnisList,
SessionDnisList: o.SessionDnisList,
FilterQueuesByUserIds: o.FilterQueuesByUserIds,
FilterUsersByQueueIds: o.FilterUsersByQueueIds,
UserIds: o.UserIds,
ManagementUnitIds: o.ManagementUnitIds,
AddressTos: o.AddressTos,
AddressFroms: o.AddressFroms,
OutboundCampaignIds: o.OutboundCampaignIds,
OutboundContactListIds: o.OutboundContactListIds,
ContactIds: o.ContactIds,
ExternalContactIds: o.ExternalContactIds,
ExternalOrgIds: o.ExternalOrgIds,
AniList: o.AniList,
DurationsMilliseconds: o.DurationsMilliseconds,
AcdDurationsMilliseconds: o.AcdDurationsMilliseconds,
TalkDurationsMilliseconds: o.TalkDurationsMilliseconds,
AcwDurationsMilliseconds: o.AcwDurationsMilliseconds,
HandleDurationsMilliseconds: o.HandleDurationsMilliseconds,
HoldDurationsMilliseconds: o.HoldDurationsMilliseconds,