-
Notifications
You must be signed in to change notification settings - Fork 12
/
queue.go
122 lines (68 loc) · 3.88 KB
/
queue.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
package platformclientv2
import (
"time"
"encoding/json"
"strconv"
"strings"
)
// Queue
type Queue struct {
// Id - The globally unique identifier for the object.
Id *string `json:"id,omitempty"`
// Name
Name *string `json:"name,omitempty"`
// Division - The division to which this entity belongs.
Division *Division `json:"division,omitempty"`
// Description - The queue description.
Description *string `json:"description,omitempty"`
// DateCreated - The date the queue was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z
DateCreated *time.Time `json:"dateCreated,omitempty"`
// DateModified - The date of the last modification to the queue. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z
DateModified *time.Time `json:"dateModified,omitempty"`
// ModifiedBy - The ID of the user that last modified the queue.
ModifiedBy *string `json:"modifiedBy,omitempty"`
// CreatedBy - The ID of the user that created the queue.
CreatedBy *string `json:"createdBy,omitempty"`
// MemberCount - The total number of members (joined or unjoined) in the queue.
MemberCount *int `json:"memberCount,omitempty"`
// JoinedMemberCount - The number of joined members in the queue.
JoinedMemberCount *int `json:"joinedMemberCount,omitempty"`
// MediaSettings - The media settings for the queue. Valid key values: CALL, CALLBACK, CHAT, EMAIL, MESSAGE, SOCIAL_EXPRESSION, VIDEO_COMM
MediaSettings *map[string]Mediasetting `json:"mediaSettings,omitempty"`
// RoutingRules - The routing rules for the queue, used for routing to known or preferred agents.
RoutingRules *[]Routingrule `json:"routingRules,omitempty"`
// Bullseye - The bulls-eye settings for the queue.
Bullseye *Bullseye `json:"bullseye,omitempty"`
// AcwSettings - The ACW settings for the queue.
AcwSettings *Acwsettings `json:"acwSettings,omitempty"`
// SkillEvaluationMethod - The skill evaluation method to use when routing conversations.
SkillEvaluationMethod *string `json:"skillEvaluationMethod,omitempty"`
// QueueFlow - The in-queue flow to use for conversations waiting in queue.
QueueFlow *Domainentityref `json:"queueFlow,omitempty"`
// WhisperPrompt - The prompt used for whisper on the queue, if configured.
WhisperPrompt *Domainentityref `json:"whisperPrompt,omitempty"`
// AutoAnswerOnly - Specifies whether the configured whisper should play for all ACD calls, or only for those which are auto-answered.
AutoAnswerOnly *bool `json:"autoAnswerOnly,omitempty"`
// EnableTranscription - Indicates whether voice transcription is enabled for this queue.
EnableTranscription *bool `json:"enableTranscription,omitempty"`
// EnableManualAssignment - Indicates whether manual assignment is enabled for this queue.
EnableManualAssignment *bool `json:"enableManualAssignment,omitempty"`
// CallingPartyName - The name to use for caller identification for outbound calls from this queue.
CallingPartyName *string `json:"callingPartyName,omitempty"`
// CallingPartyNumber - The phone number to use for caller identification for outbound calls from this queue.
CallingPartyNumber *string `json:"callingPartyNumber,omitempty"`
// DefaultScripts - The default script Ids for the communication types.
DefaultScripts *map[string]Script `json:"defaultScripts,omitempty"`
// OutboundMessagingAddresses - The messaging addresses for the queue.
OutboundMessagingAddresses *Queuemessagingaddresses `json:"outboundMessagingAddresses,omitempty"`
// OutboundEmailAddress
OutboundEmailAddress *Queueemailaddress `json:"outboundEmailAddress,omitempty"`
// SelfUri - The URI for this object
SelfUri *string `json:"selfUri,omitempty"`
}
// String returns a JSON representation of the model
func (o *Queue) String() string {
j, _ := json.Marshal(o)
str, _ := strconv.Unquote(strings.Replace(strconv.Quote(string(j)), `\\u`, `\u`, -1))
return str
}