File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -157,10 +157,14 @@ class EvAuth extends RcModuleV2<Deps> implements Auth {
157157
158158 @computed ( ( that : EvAuth ) => [ that . inboundSettings . availableRequeueQueues ] )
159159 get availableRequeueQueues ( ) {
160- return sortByName (
160+ const list = sortByName (
161161 [ ...this . inboundSettings . availableRequeueQueues ] ,
162162 'groupName' ,
163163 ) ;
164+ return list . map ( ( queue ) => ( {
165+ ...queue ,
166+ gates : Array . isArray ( queue . gates ) ? queue . gates : [ ] ,
167+ } ) ) ;
164168 }
165169
166170 @computed ( ( that : EvAuth ) => [ that . agentSettings . callerIds ] )
Original file line number Diff line number Diff line change @@ -27,6 +27,28 @@ class EvCall extends BaseEvCall {
2727 return this . activityCallId && call ? call : null ;
2828 }
2929
30+ override onInit ( ) {
31+ if ( this . _deps . evAuth . isFreshLogin ) {
32+ this . resetOutBoundDialSetting ( ) ;
33+ }
34+ if ( this . dialoutQueueId !== DEFAULT_OUTBOUND_SETTING . dialoutQueueId ) {
35+ // Check if queue is exist, if not, reset to default
36+ const queueExist = this . _deps . evAuth . availableQueues . some (
37+ ( queue ) => queue . gateId === this . dialoutQueueId ,
38+ ) ;
39+ if ( ! queueExist ) {
40+ console . log ( 'Queue not exist, reset dialout queue to default' ) ;
41+ this . resetDialoutQueue ( ) ;
42+ }
43+ }
44+ }
45+
46+ @action
47+ resetDialoutQueue ( ) {
48+ this . dialoutQueueId = DEFAULT_OUTBOUND_SETTING . dialoutQueueId ;
49+ this . formGroup . dialoutQueueId = DEFAULT_OUTBOUND_SETTING . dialoutQueueId ;
50+ }
51+
3052 @action
3153 resetOutBoundDialSetting ( ) {
3254 this . dialoutCallerId = DEFAULT_OUTBOUND_SETTING . dialoutCallerId ;
You can’t perform that action at this time.
0 commit comments