@vonage/client-sdk 2.6.2-snapshot.202608250912 → 2.6.2
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.
- package/dist/client/index.cjs +309 -289
- package/dist/client/index.mjs +309 -289
- package/dist/vonageClientSDK.js +309 -289
- package/dist/vonageClientSDK.min.js +14 -14
- package/dist/vonageClientSDK.min.mjs +13 -13
- package/dist/vonageClientSDK.mjs +309 -289
- package/package.json +1 -1
package/dist/vonageClientSDK.js
CHANGED
|
@@ -35843,7 +35843,7 @@
|
|
|
35843
35843
|
return tmp;
|
|
35844
35844
|
}
|
|
35845
35845
|
initMetadataForInterface(AbstractWithOffsetBuilder, 'AbstractWithOffsetBuilder', VOID, VOID, [WithUtcOffset]);
|
|
35846
|
-
initMetadataForClass(Builder, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateTimeBuilder, AbstractWithOffsetBuilder,
|
|
35846
|
+
initMetadataForClass(Builder, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateTimeBuilder, AbstractWithOffsetBuilder, WithDate, WithTime, WithUtcOffset]);
|
|
35847
35847
|
initMetadataForClass(AbstractDateTimeFormat, 'AbstractDateTimeFormat');
|
|
35848
35848
|
initMetadataForClass(DateTimeComponentsFormat, 'DateTimeComponentsFormat', VOID, AbstractDateTimeFormat);
|
|
35849
35849
|
initMetadataForClass(TwoDigitNumber, 'TwoDigitNumber');
|
|
@@ -42949,16 +42949,6 @@
|
|
|
42949
42949
|
initMetadataForCompanion(Companion_149);
|
|
42950
42950
|
initMetadataForObject($serializer_172, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
42951
42951
|
initMetadataForClass(SessionTerminatedEvent, 'SessionTerminatedEvent', VOID, VOID, [SocketEvent], VOID, VOID, {0: $serializer_getInstance_172});
|
|
42952
|
-
function onConversationEvent(event) {
|
|
42953
|
-
}
|
|
42954
|
-
initMetadataForInterface(ConversationEventListener, 'ConversationEventListener');
|
|
42955
|
-
function onRTCHangup(conversationId, legId, hangup) {
|
|
42956
|
-
}
|
|
42957
|
-
function onRTCTransfer(conversationId, legId) {
|
|
42958
|
-
}
|
|
42959
|
-
function onLegStatusUpdate(conversationId, legId, fromUserId, status) {
|
|
42960
|
-
}
|
|
42961
|
-
initMetadataForInterface(RTCEventListener, 'RTCEventListener');
|
|
42962
42952
|
function onAudioSay() {
|
|
42963
42953
|
}
|
|
42964
42954
|
function onAudioMuteUpdate(conversationId, legId, isMuted) {
|
|
@@ -42968,7 +42958,17 @@
|
|
|
42968
42958
|
function onAudioDTMFUpdate(conversationId, legId, digits) {
|
|
42969
42959
|
}
|
|
42970
42960
|
initMetadataForInterface(AudioEventListener, 'AudioEventListener');
|
|
42971
|
-
|
|
42961
|
+
function onRTCHangup(conversationId, legId, hangup) {
|
|
42962
|
+
}
|
|
42963
|
+
function onRTCTransfer(conversationId, legId) {
|
|
42964
|
+
}
|
|
42965
|
+
function onLegStatusUpdate(conversationId, legId, fromUserId, status) {
|
|
42966
|
+
}
|
|
42967
|
+
initMetadataForInterface(RTCEventListener, 'RTCEventListener');
|
|
42968
|
+
function onConversationEvent(event) {
|
|
42969
|
+
}
|
|
42970
|
+
initMetadataForInterface(ConversationEventListener, 'ConversationEventListener');
|
|
42971
|
+
initMetadataForClass(ChatAPIImpl$1, VOID, VOID, VOID, [AudioEventListener, RTCEventListener, ConversationEventListener]);
|
|
42972
42972
|
initMetadataForClass(ChatAPIImpl, 'ChatAPIImpl', VOID, VOID, [ChatAPI]);
|
|
42973
42973
|
initMetadataForClass(LoggingLevel, 'LoggingLevel', VOID, Enum);
|
|
42974
42974
|
initMetadataForObject(DefaultConfig, 'DefaultConfig');
|
|
@@ -42981,6 +42981,7 @@
|
|
|
42981
42981
|
initMetadataForClass(NoCallFound, 'NoCallFound', NoCallFound, InternalError);
|
|
42982
42982
|
initMetadataForClass(NoCallMediaFound, 'NoCallMediaFound', NoCallMediaFound, InternalError);
|
|
42983
42983
|
initMetadataForClass(MediaTimeout, 'MediaTimeout', MediaTimeout, InternalError);
|
|
42984
|
+
initMetadataForClass(MediaSetupFailed, 'MediaSetupFailed', VOID, InternalError);
|
|
42984
42985
|
initMetadataForClass(NoInviteFound, 'NoInviteFound', NoInviteFound, InternalError);
|
|
42985
42986
|
initMetadataForClass(InvalidCallAction, 'InvalidCallAction', InvalidCallAction, InternalError);
|
|
42986
42987
|
initMetadataForClass(NoOfferFound, 'NoOfferFound', NoOfferFound, InternalError);
|
|
@@ -43105,7 +43106,7 @@
|
|
|
43105
43106
|
initMetadataForClass(HangupReason, 'HangupReason', VOID, Enum);
|
|
43106
43107
|
initMetadataForClass(LegStatus, 'LegStatus', VOID, Enum);
|
|
43107
43108
|
initMetadataForClass(CallDisconnectReason, 'CallDisconnectReason', VOID, Enum);
|
|
43108
|
-
initMetadataForClass(VoiceAPIImpl$1, VOID, VOID, VOID, [
|
|
43109
|
+
initMetadataForClass(VoiceAPIImpl$1, VOID, VOID, VOID, [AudioEventListener, RTCEventListener, ConversationEventListener]);
|
|
43109
43110
|
initMetadataForClass(VoiceAPIImpl, 'VoiceAPIImpl');
|
|
43110
43111
|
initMetadataForInterface(CallEvent, 'CallEvent');
|
|
43111
43112
|
initMetadataForClass(SetupOutboundCall, 'SetupOutboundCall', VOID, VOID, [CallEvent]);
|
|
@@ -43325,7 +43326,7 @@
|
|
|
43325
43326
|
initMetadataForClass(runAfterDelay$1);
|
|
43326
43327
|
//endregion
|
|
43327
43328
|
function BuildKonfig() {
|
|
43328
|
-
this.p1y_1 = '2.6.2
|
|
43329
|
+
this.p1y_1 = '2.6.2';
|
|
43329
43330
|
}
|
|
43330
43331
|
var BuildKonfig_instance;
|
|
43331
43332
|
function EmergencyCallOptions(ringbackTone) {
|
|
@@ -73994,6 +73995,10 @@
|
|
|
73994
73995
|
InternalError.call(this, 'voice:error:media_timeout', "The call could not be established: the media connection failed to set up or the call wasn't answered in time. Check the network connection and try again.");
|
|
73995
73996
|
captureStack(this, MediaTimeout);
|
|
73996
73997
|
}
|
|
73998
|
+
function MediaSetupFailed(attempts) {
|
|
73999
|
+
InternalError.call(this, 'voice:error:media_setup_failed', 'The call could not be established: no media reached Vonage after ' + attempts + ' attempt' + (attempts === 1 ? '' : 's') + '. The network is most likely blocking the media connection \u2014 check for a restrictive firewall, proxy or VPN and try again.');
|
|
74000
|
+
captureStack(this, MediaSetupFailed);
|
|
74001
|
+
}
|
|
73997
74002
|
function NoInviteFound() {
|
|
73998
74003
|
InternalError.call(this, 'voice:error:no_invite_found', 'No invite found');
|
|
73999
74004
|
captureStack(this, NoInviteFound);
|
|
@@ -78455,6 +78460,11 @@
|
|
|
78455
78460
|
return Unit_instance;
|
|
78456
78461
|
};
|
|
78457
78462
|
}
|
|
78463
|
+
function attemptOutboundCall($this, user, context, attempt, backoff, callback) {
|
|
78464
|
+
var setup = new SetupOutboundCall(user, context);
|
|
78465
|
+
var meta = new ActionMeta(VOID, VOID, VoiceAPIImpl$attemptOutboundCall$lambda($this, callback, attempt, user, context));
|
|
78466
|
+
$this.g44_1.z1z(backoff == null ? new Action_0(setup, meta) : new Action_0(new TimeoutAction(setup, backoff), meta));
|
|
78467
|
+
}
|
|
78458
78468
|
function dispatchCallAction($this, callId, action) {
|
|
78459
78469
|
var tmp0_elvis_lhs = getCallStateByLeg($this, callId);
|
|
78460
78470
|
var tmp;
|
|
@@ -78464,10 +78474,10 @@
|
|
|
78464
78474
|
tmp = tmp0_elvis_lhs;
|
|
78465
78475
|
}
|
|
78466
78476
|
var call = tmp;
|
|
78467
|
-
var callMemberShipState = call.
|
|
78477
|
+
var callMemberShipState = call.n44_1.g2();
|
|
78468
78478
|
var tmp_0;
|
|
78469
78479
|
if (callMemberShipState instanceof Joined) {
|
|
78470
|
-
action(callMemberShipState.
|
|
78480
|
+
action(callMemberShipState.t44_1, callMemberShipState.u44_1);
|
|
78471
78481
|
tmp_0 = null;
|
|
78472
78482
|
} else {
|
|
78473
78483
|
tmp_0 = new InvalidCallAction();
|
|
@@ -78483,15 +78493,15 @@
|
|
|
78483
78493
|
;
|
|
78484
78494
|
else {
|
|
78485
78495
|
// Inline function 'kotlin.let' call
|
|
78486
|
-
reportError_0($this.
|
|
78496
|
+
reportError_0($this.g44_1, callback, tmp0_safe_receiver, trail, VOID, callId);
|
|
78487
78497
|
}
|
|
78488
78498
|
}
|
|
78489
78499
|
function getCallStateByLeg($this, legId) {
|
|
78490
|
-
var state = $this.
|
|
78500
|
+
var state = $this.g44_1.l1z(getKClass(CallReducer));
|
|
78491
78501
|
return state.w44_1.j2(legId);
|
|
78492
78502
|
}
|
|
78493
78503
|
function getCallStateByConversation($this, cid) {
|
|
78494
|
-
var state = $this.
|
|
78504
|
+
var state = $this.g44_1.l1z(getKClass(CallReducer));
|
|
78495
78505
|
var tmp0_safe_receiver = state.x44_1.j2(cid);
|
|
78496
78506
|
var tmp;
|
|
78497
78507
|
if (tmp0_safe_receiver == null) {
|
|
@@ -78503,16 +78513,16 @@
|
|
|
78503
78513
|
return tmp;
|
|
78504
78514
|
}
|
|
78505
78515
|
function getLegIdByConversation($this, cid) {
|
|
78506
|
-
var state = $this.
|
|
78516
|
+
var state = $this.g44_1.l1z(getKClass(CallReducer));
|
|
78507
78517
|
return state.x44_1.j2(cid);
|
|
78508
78518
|
}
|
|
78509
78519
|
function isFromMe($this, userId) {
|
|
78510
|
-
var state = $this.
|
|
78520
|
+
var state = $this.g44_1.l1z(getKClass(SessionReducer));
|
|
78511
78521
|
var tmp0_safe_receiver = state.g2r_1.g2().s3j();
|
|
78512
78522
|
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u3q_1) === userId;
|
|
78513
78523
|
}
|
|
78514
78524
|
function invokeListener($this, conversationId, givenLegId, fn) {
|
|
78515
|
-
var tmp0_safe_receiver = $this.
|
|
78525
|
+
var tmp0_safe_receiver = $this.i44_1;
|
|
78516
78526
|
if (tmp0_safe_receiver == null)
|
|
78517
78527
|
;
|
|
78518
78528
|
else {
|
|
@@ -78542,13 +78552,13 @@
|
|
|
78542
78552
|
var tmp_2;
|
|
78543
78553
|
if (tmp2_elvis_lhs == null) {
|
|
78544
78554
|
var tmp3_safe_receiver = getCallStateByConversation($this, conversationId);
|
|
78545
|
-
tmp_2 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
78555
|
+
tmp_2 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.m44_1;
|
|
78546
78556
|
} else {
|
|
78547
78557
|
tmp_2 = tmp2_elvis_lhs;
|
|
78548
78558
|
}
|
|
78549
78559
|
var legId = tmp_2;
|
|
78550
78560
|
if (legId == null) {
|
|
78551
|
-
$this.
|
|
78561
|
+
$this.h44_1.k43('Call Id for Conversation Id: ' + conversationId + ' was not found');
|
|
78552
78562
|
} else
|
|
78553
78563
|
fn(tmp0_safe_receiver, legId);
|
|
78554
78564
|
}
|
|
@@ -78571,7 +78581,7 @@
|
|
|
78571
78581
|
} else {
|
|
78572
78582
|
// Inline function 'kotlin.takeIf' call
|
|
78573
78583
|
var tmp_0;
|
|
78574
|
-
var tmp_1 = tmp0_safe_receiver.
|
|
78584
|
+
var tmp_1 = tmp0_safe_receiver.q44_1;
|
|
78575
78585
|
if (tmp_1 instanceof Reconnecting) {
|
|
78576
78586
|
tmp_0 = tmp0_safe_receiver;
|
|
78577
78587
|
} else {
|
|
@@ -78587,7 +78597,7 @@
|
|
|
78587
78597
|
tmp_2 = tmp1_elvis_lhs;
|
|
78588
78598
|
}
|
|
78589
78599
|
var updatedCall = tmp_2;
|
|
78590
|
-
var tmp_3 = updatedCall.
|
|
78600
|
+
var tmp_3 = updatedCall.n44_1.g2();
|
|
78591
78601
|
var tmp2_elvis_lhs = tmp_3 instanceof Joined ? tmp_3 : null;
|
|
78592
78602
|
var tmp_4;
|
|
78593
78603
|
if (tmp2_elvis_lhs == null) {
|
|
@@ -78596,36 +78606,36 @@
|
|
|
78596
78606
|
tmp_4 = tmp2_elvis_lhs;
|
|
78597
78607
|
}
|
|
78598
78608
|
var member = tmp_4;
|
|
78599
|
-
var tmp_5 = new CallReconnect(updatedCall.
|
|
78609
|
+
var tmp_5 = new CallReconnect(updatedCall.m44_1, member.u44_1, member.t44_1);
|
|
78600
78610
|
var reconnectAction = new Action_0(tmp_5, new ActionMeta(VOID, VOID, VoiceAPIImpl$reconnectCall$lambda_0(store, updatedCall)));
|
|
78601
78611
|
store.z1z(reconnectAction);
|
|
78602
78612
|
}
|
|
78603
78613
|
function onCallMediaChange($this, callState) {
|
|
78604
|
-
var tmp = callState.
|
|
78614
|
+
var tmp = callState.o44_1;
|
|
78605
78615
|
if (tmp instanceof Failed) {
|
|
78606
|
-
$this.
|
|
78616
|
+
$this.g44_1.z1z(Action_init_$Create$(new MediaDisable(callState.m44_1)));
|
|
78607
78617
|
} else {
|
|
78608
|
-
var tmp_0 = callState.
|
|
78618
|
+
var tmp_0 = callState.o44_1.g2();
|
|
78609
78619
|
if (tmp_0 instanceof Completed) {
|
|
78610
|
-
$this.
|
|
78620
|
+
$this.g44_1.z1z(Action_init_$Create$(new MediaDisable(callState.m44_1)));
|
|
78611
78621
|
}
|
|
78612
78622
|
}
|
|
78613
78623
|
}
|
|
78614
78624
|
function onCallMemberChange($this, callState) {
|
|
78615
|
-
if (callState.
|
|
78616
|
-
var tmp1_subject = callState.
|
|
78625
|
+
if (callState.n44_1 instanceof Failed) {
|
|
78626
|
+
var tmp1_subject = callState.n44_1.g2();
|
|
78617
78627
|
if (tmp1_subject instanceof Knocking) {
|
|
78618
|
-
$this.
|
|
78628
|
+
$this.g44_1.z1z(Action_init_$Create$(new MediaDisable(callState.m44_1)));
|
|
78619
78629
|
} else {
|
|
78620
78630
|
if (tmp1_subject instanceof Left) {
|
|
78621
|
-
$this.
|
|
78631
|
+
$this.g44_1.z1z(Action_init_$Create$(new MediaDisable(callState.m44_1)));
|
|
78622
78632
|
}
|
|
78623
78633
|
}
|
|
78624
78634
|
}
|
|
78625
78635
|
}
|
|
78626
78636
|
function getCallDetailsAndDispatchCallReconnect($this, legId, callback) {
|
|
78627
78637
|
var tmp = new GetLegRequest(legId);
|
|
78628
|
-
$this.
|
|
78638
|
+
$this.g44_1.z1z(new Action_0(tmp, new ActionMeta(VOID, legId, VoiceAPIImpl$getCallDetailsAndDispatchCallReconnect$lambda($this, callback, legId))));
|
|
78629
78639
|
}
|
|
78630
78640
|
function VoiceAPIImpl$getLeg$lambda($callback, this$0, $legId) {
|
|
78631
78641
|
return function (response) {
|
|
@@ -78633,7 +78643,7 @@
|
|
|
78633
78643
|
var leg = Companion_instance_160.r3y(response);
|
|
78634
78644
|
$callback(null, leg);
|
|
78635
78645
|
} else {
|
|
78636
|
-
reportError(this$0.
|
|
78646
|
+
reportError(this$0.g44_1, $callback, response, ErrorTrail_GET_LEG_getInstance(), VOID, $legId);
|
|
78637
78647
|
}
|
|
78638
78648
|
return Unit_instance;
|
|
78639
78649
|
};
|
|
@@ -78671,7 +78681,7 @@
|
|
|
78671
78681
|
var page = new LegsPage(legs, previous, next);
|
|
78672
78682
|
$callback(null, page);
|
|
78673
78683
|
} else {
|
|
78674
|
-
reportError(this$0.
|
|
78684
|
+
reportError(this$0.g44_1, $callback, conversationLegsResponse, ErrorTrail_GET_CALL_LEGS_FETCH_FAILED_getInstance(), $conversationId, $callId);
|
|
78675
78685
|
}
|
|
78676
78686
|
return Unit_instance;
|
|
78677
78687
|
};
|
|
@@ -78684,7 +78694,7 @@
|
|
|
78684
78694
|
if (tmp1_elvis_lhs == null) {
|
|
78685
78695
|
// Inline function 'kotlin.run' call
|
|
78686
78696
|
var $this$run = this$0;
|
|
78687
|
-
reportError($this$run.
|
|
78697
|
+
reportError($this$run.g44_1, $callback, new NoCallMediaFound(), ErrorTrail_GET_CALL_LEGS_NO_MEDIA_getInstance(), $conversationId, $callId);
|
|
78688
78698
|
return Unit_instance;
|
|
78689
78699
|
} else {
|
|
78690
78700
|
tmp_0 = tmp1_elvis_lhs;
|
|
@@ -78696,25 +78706,25 @@
|
|
|
78696
78706
|
var tmp_2 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.q42_1;
|
|
78697
78707
|
var tmp4_safe_receiver = $parameters;
|
|
78698
78708
|
var tmp_3 = new GetConversationLegsRequest($conversationId, tmp_1, tmp_2, tmp4_safe_receiver == null ? null : tmp4_safe_receiver.r42_1);
|
|
78699
|
-
this$0.
|
|
78709
|
+
this$0.g44_1.z1z(new Action_0(tmp_3, new ActionMeta(VOID, VOID, VoiceAPIImpl$getCallLegs$lambda$lambda(conversationMedia, $callback, this$0, $conversationId, $callId))));
|
|
78700
78710
|
} else {
|
|
78701
|
-
reportError(this$0.
|
|
78711
|
+
reportError(this$0.g44_1, $callback, getConversationResponse, ErrorTrail_GET_CALL_LEGS_CONVERSATION_FAILED_getInstance(), $conversationId, $callId);
|
|
78702
78712
|
}
|
|
78703
78713
|
return Unit_instance;
|
|
78704
78714
|
};
|
|
78705
78715
|
}
|
|
78706
|
-
function VoiceAPIImpl$
|
|
78716
|
+
function VoiceAPIImpl$attemptOutboundCall$lambda$lambda$lambda$lambda$lambda$lambda($call, $cancel, this$0, $callback, $legId) {
|
|
78707
78717
|
return function () {
|
|
78708
|
-
if ($call.
|
|
78718
|
+
if ($call.r44_1.v2_1 === 5) {
|
|
78709
78719
|
var tmp1_safe_receiver = $cancel._v;
|
|
78710
78720
|
if (tmp1_safe_receiver == null)
|
|
78711
78721
|
;
|
|
78712
78722
|
else
|
|
78713
78723
|
tmp1_safe_receiver();
|
|
78714
|
-
reportError(this$0.
|
|
78715
|
-
this$0.
|
|
78724
|
+
reportError(this$0.g44_1, $callback, new MediaTimeout(), $call.s44_1 ? ErrorTrail_OUTBOUND_MEMBER_JOIN_TIMEOUT_getInstance() : ErrorTrail_OUTBOUND_POSTKNOCK_MEDIA_FAILED_getInstance(), VOID, $legId);
|
|
78725
|
+
this$0.g44_1.z1z(Action_init_$Create$(new CallCleanup($legId)));
|
|
78716
78726
|
} else {
|
|
78717
|
-
if ($call.
|
|
78727
|
+
if ($call.n44_1.g2() instanceof Joined) {
|
|
78718
78728
|
var tmp3_safe_receiver = $cancel._v;
|
|
78719
78729
|
if (tmp3_safe_receiver == null)
|
|
78720
78730
|
;
|
|
@@ -78726,46 +78736,51 @@
|
|
|
78726
78736
|
return Unit_instance;
|
|
78727
78737
|
};
|
|
78728
78738
|
}
|
|
78729
|
-
function VoiceAPIImpl$
|
|
78739
|
+
function VoiceAPIImpl$attemptOutboundCall$lambda$lambda$lambda$lambda$lambda($call, $cancel, this$0, $callback, $legId) {
|
|
78730
78740
|
return function () {
|
|
78731
|
-
return new StoredSubscription(VoiceAPIImpl$
|
|
78741
|
+
return new StoredSubscription(VoiceAPIImpl$attemptOutboundCall$lambda$lambda$lambda$lambda$lambda$lambda($call, $cancel, this$0, $callback, $legId));
|
|
78732
78742
|
};
|
|
78733
78743
|
}
|
|
78734
|
-
function VoiceAPIImpl$
|
|
78744
|
+
function VoiceAPIImpl$attemptOutboundCall$lambda$lambda$lambda$lambda(this$0, $call, $callback, $legId, $cancel) {
|
|
78735
78745
|
return function (it) {
|
|
78736
78746
|
if (it instanceof Exception) {
|
|
78737
|
-
this$0.
|
|
78738
|
-
reportError(this$0.
|
|
78747
|
+
this$0.g44_1.z1z(Action_init_$Create$(new CallKnockingRequestFailure($call.m44_1, it)));
|
|
78748
|
+
reportError(this$0.g44_1, $callback, it, ErrorTrail_OUTBOUND_KNOCK_FAILED_getInstance(), VOID, $legId);
|
|
78739
78749
|
} else {
|
|
78740
78750
|
var tmp_0 = getKClass(CallReducer);
|
|
78741
|
-
$cancel._v = this$0.
|
|
78751
|
+
$cancel._v = this$0.g44_1.r20(tmp_0, VoiceAPIImpl$attemptOutboundCall$lambda$lambda$lambda$lambda$lambda($call, $cancel, this$0, $callback, $legId));
|
|
78742
78752
|
}
|
|
78743
78753
|
return Unit_instance;
|
|
78744
78754
|
};
|
|
78745
78755
|
}
|
|
78746
|
-
function VoiceAPIImpl$
|
|
78756
|
+
function VoiceAPIImpl$attemptOutboundCall$lambda$lambda$lambda$lambda_0($attempt, $legId) {
|
|
78757
|
+
return function () {
|
|
78758
|
+
return 'Media setup failed on attempt ' + $attempt + ' of leg ' + $legId + ', retrying with a fresh leg';
|
|
78759
|
+
};
|
|
78760
|
+
}
|
|
78761
|
+
function VoiceAPIImpl$attemptOutboundCall$lambda$lambda$lambda$lambda_1() {
|
|
78747
78762
|
return 'Unexpected Media Connection Transition during setup';
|
|
78748
78763
|
}
|
|
78749
|
-
function VoiceAPIImpl$
|
|
78764
|
+
function VoiceAPIImpl$attemptOutboundCall$lambda$lambda$lambda(this$0, $legId, $cancel, $attempt, $user, $context, $callback) {
|
|
78750
78765
|
return function () {
|
|
78751
|
-
var state = this$0.
|
|
78766
|
+
var state = this$0.g44_1.l1z(getKClass(CallReducer));
|
|
78752
78767
|
var tmp0_safe_receiver = state.w44_1.j2($legId);
|
|
78753
78768
|
if (tmp0_safe_receiver == null)
|
|
78754
78769
|
;
|
|
78755
78770
|
else {
|
|
78756
78771
|
// Inline function 'kotlin.let' call
|
|
78757
|
-
switch (tmp0_safe_receiver.
|
|
78772
|
+
switch (tmp0_safe_receiver.r44_1.v2_1) {
|
|
78758
78773
|
case 3:
|
|
78759
78774
|
var tmp1_safe_receiver = $cancel._v;
|
|
78760
78775
|
if (tmp1_safe_receiver == null)
|
|
78761
78776
|
;
|
|
78762
78777
|
else
|
|
78763
78778
|
tmp1_safe_receiver();
|
|
78764
|
-
var tmp2_safe_receiver = tmp0_safe_receiver.
|
|
78779
|
+
var tmp2_safe_receiver = tmp0_safe_receiver.l44_1;
|
|
78765
78780
|
var tmp = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.j2('to');
|
|
78766
78781
|
var tmp3_elvis_lhs = (!(tmp == null) ? typeof tmp === 'string' : false) ? tmp : null;
|
|
78767
|
-
var tmp_0 = new AppKnockingRequest(tmp0_safe_receiver.
|
|
78768
|
-
this$0.
|
|
78782
|
+
var tmp_0 = new AppKnockingRequest(tmp0_safe_receiver.k44_1, new PhoneChannelEndpoint(tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs), $legId, tmp0_safe_receiver.l44_1);
|
|
78783
|
+
this$0.g44_1.z1z(new Action_0(tmp_0, new ActionMeta(VOID, tmp0_safe_receiver.m44_1, VoiceAPIImpl$attemptOutboundCall$lambda$lambda$lambda$lambda(this$0, tmp0_safe_receiver, $callback, $legId, $cancel))));
|
|
78769
78784
|
break;
|
|
78770
78785
|
case 2:
|
|
78771
78786
|
case 1:
|
|
@@ -78777,18 +78792,24 @@
|
|
|
78777
78792
|
;
|
|
78778
78793
|
else
|
|
78779
78794
|
tmp4_safe_receiver();
|
|
78780
|
-
|
|
78781
|
-
|
|
78795
|
+
this$0.g44_1.z1z(Action_init_$Create$(new CallCleanup($legId)));
|
|
78796
|
+
if ($attempt <= 1) {
|
|
78797
|
+
this$0.h44_1.a45(VOID, VoiceAPIImpl$attemptOutboundCall$lambda$lambda$lambda$lambda_0($attempt, $legId));
|
|
78798
|
+
attemptOutboundCall(this$0, $user, $context, $attempt + 1 | 0, 500, $callback);
|
|
78799
|
+
} else {
|
|
78800
|
+
reportError(this$0.g44_1, $callback, new MediaSetupFailed($attempt), ErrorTrail_OUTBOUND_MEDIA_FAILED_getInstance(), VOID, $legId);
|
|
78801
|
+
}
|
|
78802
|
+
|
|
78782
78803
|
break;
|
|
78783
78804
|
case 6:
|
|
78784
78805
|
case 4:
|
|
78785
|
-
this$0.
|
|
78806
|
+
this$0.h44_1.a45(VOID, VoiceAPIImpl$attemptOutboundCall$lambda$lambda$lambda$lambda_1);
|
|
78786
78807
|
var tmp5_safe_receiver = $cancel._v;
|
|
78787
78808
|
if (tmp5_safe_receiver == null)
|
|
78788
78809
|
;
|
|
78789
78810
|
else
|
|
78790
78811
|
tmp5_safe_receiver();
|
|
78791
|
-
this$0.
|
|
78812
|
+
this$0.g44_1.z1z(Action_init_$Create$(new CallCleanup($legId)));
|
|
78792
78813
|
break;
|
|
78793
78814
|
default:
|
|
78794
78815
|
noWhenBranchMatchedException();
|
|
@@ -78798,27 +78819,27 @@
|
|
|
78798
78819
|
return Unit_instance;
|
|
78799
78820
|
};
|
|
78800
78821
|
}
|
|
78801
|
-
function VoiceAPIImpl$
|
|
78822
|
+
function VoiceAPIImpl$attemptOutboundCall$lambda$lambda(this$0, $legId, $cancel, $attempt, $user, $context, $callback) {
|
|
78802
78823
|
return function () {
|
|
78803
|
-
return new StoredSubscription(VoiceAPIImpl$
|
|
78824
|
+
return new StoredSubscription(VoiceAPIImpl$attemptOutboundCall$lambda$lambda$lambda(this$0, $legId, $cancel, $attempt, $user, $context, $callback));
|
|
78804
78825
|
};
|
|
78805
78826
|
}
|
|
78806
|
-
function VoiceAPIImpl$
|
|
78827
|
+
function VoiceAPIImpl$attemptOutboundCall$lambda(this$0, $callback, $attempt, $user, $context) {
|
|
78807
78828
|
return function (it) {
|
|
78808
78829
|
if (!(it == null) ? typeof it === 'string' : false) {
|
|
78809
78830
|
var legId = it;
|
|
78810
78831
|
var cancel = {_v: null};
|
|
78811
78832
|
var tmp_0 = getKClass(CallReducer);
|
|
78812
|
-
cancel._v = this$0.
|
|
78833
|
+
cancel._v = this$0.g44_1.r20(tmp_0, VoiceAPIImpl$attemptOutboundCall$lambda$lambda(this$0, legId, cancel, $attempt, $user, $context, $callback));
|
|
78813
78834
|
} else {
|
|
78814
|
-
reportError(this$0.
|
|
78835
|
+
reportError(this$0.g44_1, $callback, it, ErrorTrail_OUTBOUND_SETUP_getInstance());
|
|
78815
78836
|
}
|
|
78816
78837
|
return Unit_instance;
|
|
78817
78838
|
};
|
|
78818
78839
|
}
|
|
78819
78840
|
function VoiceAPIImpl$reconnectCall$lambda$lambda(this$0, $callId, $once, $callback) {
|
|
78820
78841
|
return function () {
|
|
78821
|
-
var state = this$0.
|
|
78842
|
+
var state = this$0.g44_1.l1z(getKClass(CallReducer));
|
|
78822
78843
|
var tmp0_elvis_lhs = state.w44_1.j2($callId);
|
|
78823
78844
|
var tmp;
|
|
78824
78845
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -78827,14 +78848,14 @@
|
|
|
78827
78848
|
tmp = tmp0_elvis_lhs;
|
|
78828
78849
|
}
|
|
78829
78850
|
var call = tmp;
|
|
78830
|
-
var legState = call.
|
|
78851
|
+
var legState = call.o44_1;
|
|
78831
78852
|
if (legState.g2() instanceof Started) {
|
|
78832
78853
|
var tmp2_safe_receiver = $once._v;
|
|
78833
78854
|
if (tmp2_safe_receiver == null)
|
|
78834
78855
|
;
|
|
78835
78856
|
else
|
|
78836
78857
|
tmp2_safe_receiver();
|
|
78837
|
-
if (call.
|
|
78858
|
+
if (call.j44_1) {
|
|
78838
78859
|
$callback(null);
|
|
78839
78860
|
}
|
|
78840
78861
|
}
|
|
@@ -78848,11 +78869,11 @@
|
|
|
78848
78869
|
}
|
|
78849
78870
|
function VoiceAPIImpl$answerCall$lambda$lambda$lambda$lambda(this$0, $legIdOrErr, $callback, $invite, $cancel) {
|
|
78850
78871
|
return function () {
|
|
78851
|
-
var call = this$0.
|
|
78852
|
-
var tmp1_subject = call == null ? null : call.
|
|
78872
|
+
var call = this$0.g44_1.l1z(getKClass(CallReducer)).w44_1.j2($legIdOrErr);
|
|
78873
|
+
var tmp1_subject = call == null ? null : call.r44_1;
|
|
78853
78874
|
switch (tmp1_subject == null ? -1 : tmp1_subject.v2_1) {
|
|
78854
78875
|
case -1:
|
|
78855
|
-
reportError_0(this$0.
|
|
78876
|
+
reportError_0(this$0.g44_1, $callback, new NoInviteFound(), ErrorTrail_ANSWER_CALL_GONE_getInstance(), $invite.e45_1, $legIdOrErr);
|
|
78856
78877
|
// Inline function 'kotlin.also' call
|
|
78857
78878
|
|
|
78858
78879
|
var tmp0_safe_receiver = $cancel._v;
|
|
@@ -78874,7 +78895,7 @@
|
|
|
78874
78895
|
// Inline function 'kotlin.also' call
|
|
78875
78896
|
|
|
78876
78897
|
tmp3_safe_receiver == null || tmp3_safe_receiver();
|
|
78877
|
-
reportError_0(this$0.
|
|
78898
|
+
reportError_0(this$0.g44_1, $callback, new InboundCallFailed(), ErrorTrail_ANSWER_MEDIA_FAILED_getInstance(), $invite.e45_1, $legIdOrErr);
|
|
78878
78899
|
break;
|
|
78879
78900
|
}
|
|
78880
78901
|
return Unit_instance;
|
|
@@ -78890,9 +78911,9 @@
|
|
|
78890
78911
|
if (!(legIdOrErr == null) ? typeof legIdOrErr === 'string' : false) {
|
|
78891
78912
|
var cancel = {_v: null};
|
|
78892
78913
|
var tmp_0 = getKClass(CallReducer);
|
|
78893
|
-
cancel._v = this$0.
|
|
78914
|
+
cancel._v = this$0.g44_1.r20(tmp_0, VoiceAPIImpl$answerCall$lambda$lambda$lambda(this$0, legIdOrErr, $callback, $invite, cancel));
|
|
78894
78915
|
} else {
|
|
78895
|
-
reportError_0(this$0.
|
|
78916
|
+
reportError_0(this$0.g44_1, $callback, new InboundCallFailed(legIdOrErr instanceof Exception ? legIdOrErr : null), ErrorTrail_ANSWER_SETUP_getInstance(), $invite.e45_1, $callId);
|
|
78896
78917
|
}
|
|
78897
78918
|
return Unit_instance;
|
|
78898
78919
|
};
|
|
@@ -78900,16 +78921,16 @@
|
|
|
78900
78921
|
function VoiceAPIImpl$answerCall$lambda(this$0, $callback, $invite, $callId) {
|
|
78901
78922
|
return function (it) {
|
|
78902
78923
|
if (it instanceof Exception) {
|
|
78903
|
-
reportError_0(this$0.
|
|
78924
|
+
reportError_0(this$0.g44_1, $callback, it, ErrorTrail_ANSWER_MEMBER_JOIN_FAILED_getInstance(), $invite.e45_1, $callId);
|
|
78904
78925
|
} else {
|
|
78905
78926
|
if ($invite.f45_1 == null) {
|
|
78906
78927
|
// Inline function 'kotlin.run' call
|
|
78907
78928
|
var $this$run = this$0;
|
|
78908
|
-
reportError_0($this$run.
|
|
78929
|
+
reportError_0($this$run.g44_1, $callback, new NoOfferFound(), ErrorTrail_ANSWER_NO_OFFER_getInstance(), $invite.e45_1, $callId);
|
|
78909
78930
|
return Unit_instance;
|
|
78910
78931
|
}
|
|
78911
78932
|
var tmp_0 = new SetupInboundCall($callId, $invite.e45_1, $invite.d45_1, $invite.b45_1, $invite.f45_1, null);
|
|
78912
|
-
this$0.
|
|
78933
|
+
this$0.g44_1.z1z(new Action_0(tmp_0, new ActionMeta(VOID, VOID, VoiceAPIImpl$answerCall$lambda$lambda(this$0, $callback, $invite, $callId))));
|
|
78913
78934
|
}
|
|
78914
78935
|
return Unit_instance;
|
|
78915
78936
|
};
|
|
@@ -78917,7 +78938,7 @@
|
|
|
78917
78938
|
function VoiceAPIImpl$actionOutcome$lambda(this$0, $callback, $trail, $callId) {
|
|
78918
78939
|
return function (result) {
|
|
78919
78940
|
if (result instanceof Exception) {
|
|
78920
|
-
reportError_0(this$0.
|
|
78941
|
+
reportError_0(this$0.g44_1, $callback, result, $trail, VOID, $callId);
|
|
78921
78942
|
} else {
|
|
78922
78943
|
$callback(null);
|
|
78923
78944
|
}
|
|
@@ -78927,9 +78948,9 @@
|
|
|
78927
78948
|
function VoiceAPIImpl$mute$lambda$lambda(this$0, $callback, $callId, $cid, $mid) {
|
|
78928
78949
|
return function (muteOutcome) {
|
|
78929
78950
|
if (muteOutcome instanceof Exception) {
|
|
78930
|
-
reportError_0(this$0.
|
|
78951
|
+
reportError_0(this$0.g44_1, $callback, muteOutcome, ErrorTrail_MUTE_MEDIA_FAILED_getInstance(), VOID, $callId);
|
|
78931
78952
|
} else {
|
|
78932
|
-
this$0.
|
|
78953
|
+
this$0.g44_1.z1z(new Action_0(new LegMuteRequest($cid, $callId, $mid), new ActionMeta(VOID, $callId, actionOutcome(this$0, ErrorTrail_MUTE_REQUEST_FAILED_getInstance(), $callId, $callback))));
|
|
78933
78954
|
}
|
|
78934
78955
|
return Unit_instance;
|
|
78935
78956
|
};
|
|
@@ -78937,16 +78958,16 @@
|
|
|
78937
78958
|
function VoiceAPIImpl$mute$lambda(this$0, $callId, $callback) {
|
|
78938
78959
|
return function (cid, mid) {
|
|
78939
78960
|
var tmp = new Mute($callId);
|
|
78940
|
-
this$0.
|
|
78961
|
+
this$0.g44_1.z1z(new Action_0(tmp, new ActionMeta(VOID, $callId, VoiceAPIImpl$mute$lambda$lambda(this$0, $callback, $callId, cid, mid))));
|
|
78941
78962
|
return Unit_instance;
|
|
78942
78963
|
};
|
|
78943
78964
|
}
|
|
78944
78965
|
function VoiceAPIImpl$unmute$lambda$lambda(this$0, $callback, $callId, $cid, $mid) {
|
|
78945
78966
|
return function (unmuteOutcome) {
|
|
78946
78967
|
if (unmuteOutcome instanceof Exception) {
|
|
78947
|
-
reportError_0(this$0.
|
|
78968
|
+
reportError_0(this$0.g44_1, $callback, unmuteOutcome, ErrorTrail_UNMUTE_MEDIA_FAILED_getInstance(), VOID, $callId);
|
|
78948
78969
|
} else {
|
|
78949
|
-
this$0.
|
|
78970
|
+
this$0.g44_1.z1z(new Action_0(new LegUnmuteRequest($cid, $callId, $mid), new ActionMeta(VOID, $callId, actionOutcome(this$0, ErrorTrail_UNMUTE_REQUEST_FAILED_getInstance(), $callId, $callback))));
|
|
78950
78971
|
}
|
|
78951
78972
|
return Unit_instance;
|
|
78952
78973
|
};
|
|
@@ -78954,34 +78975,34 @@
|
|
|
78954
78975
|
function VoiceAPIImpl$unmute$lambda(this$0, $callId, $callback) {
|
|
78955
78976
|
return function (cid, mid) {
|
|
78956
78977
|
var tmp = new Unmute($callId);
|
|
78957
|
-
this$0.
|
|
78978
|
+
this$0.g44_1.z1z(new Action_0(tmp, new ActionMeta(VOID, $callId, VoiceAPIImpl$unmute$lambda$lambda(this$0, $callback, $callId, cid, mid))));
|
|
78958
78979
|
return Unit_instance;
|
|
78959
78980
|
};
|
|
78960
78981
|
}
|
|
78961
78982
|
function VoiceAPIImpl$enableEarmuff$lambda(this$0, $callId, $callback) {
|
|
78962
78983
|
return function (cid, mid) {
|
|
78963
|
-
this$0.
|
|
78964
|
-
this$0.
|
|
78984
|
+
this$0.g44_1.z1z(Action_init_$Create$(new EnableEarmuff($callId)));
|
|
78985
|
+
this$0.g44_1.z1z(new Action_0(new LegEarmuffEnableRequest(cid, $callId, mid), new ActionMeta(VOID, $callId, actionOutcome(this$0, ErrorTrail_ENABLE_EARMUFF_REQUEST_FAILED_getInstance(), $callId, $callback))));
|
|
78965
78986
|
return Unit_instance;
|
|
78966
78987
|
};
|
|
78967
78988
|
}
|
|
78968
78989
|
function VoiceAPIImpl$disableEarmuff$lambda(this$0, $callId, $callback) {
|
|
78969
78990
|
return function (cid, mid) {
|
|
78970
|
-
this$0.
|
|
78971
|
-
this$0.
|
|
78991
|
+
this$0.g44_1.z1z(Action_init_$Create$(new DisableEarmuff($callId)));
|
|
78992
|
+
this$0.g44_1.z1z(new Action_0(new LegEarmuffDisableRequest(cid, $callId, mid), new ActionMeta(VOID, $callId, actionOutcome(this$0, ErrorTrail_DISABLE_EARMUFF_REQUEST_FAILED_getInstance(), $callId, $callback))));
|
|
78972
78993
|
return Unit_instance;
|
|
78973
78994
|
};
|
|
78974
78995
|
}
|
|
78975
78996
|
function VoiceAPIImpl$sendDTMF$lambda(this$0, $callId, $digits, $callback) {
|
|
78976
78997
|
return function (cid, mid) {
|
|
78977
|
-
this$0.
|
|
78978
|
-
this$0.
|
|
78998
|
+
this$0.g44_1.z1z(Action_init_$Create$(new DisableEarmuff($callId)));
|
|
78999
|
+
this$0.g44_1.z1z(new Action_0(new LegDTMFRequest(cid, $callId, mid, $digits), new ActionMeta(VOID, $callId, actionOutcome(this$0, ErrorTrail_SEND_DTMF_REQUEST_FAILED_getInstance(), $callId, $callback))));
|
|
78979
79000
|
return Unit_instance;
|
|
78980
79001
|
};
|
|
78981
79002
|
}
|
|
78982
79003
|
function VoiceAPIImpl$say$lambda(this$0, $text, $level, $loop, $queue, $voiceName, $ssml, $callId, $callback) {
|
|
78983
79004
|
return function (cid, mid) {
|
|
78984
|
-
this$0.
|
|
79005
|
+
this$0.g44_1.z1z(new Action_0(new AudioSayRequest(cid, mid, $text, $level, $loop, $queue, $voiceName, $ssml), new ActionMeta(VOID, $callId, actionOutcome(this$0, ErrorTrail_SAY_REQUEST_FAILED_getInstance(), $callId, $callback))));
|
|
78985
79006
|
return Unit_instance;
|
|
78986
79007
|
};
|
|
78987
79008
|
}
|
|
@@ -78996,7 +79017,7 @@
|
|
|
78996
79017
|
tmp = tmp0_elvis_lhs;
|
|
78997
79018
|
}
|
|
78998
79019
|
var call = tmp;
|
|
78999
|
-
var tmp_1 = call.
|
|
79020
|
+
var tmp_1 = call.q44_1;
|
|
79000
79021
|
if (tmp_1 instanceof Connected) {
|
|
79001
79022
|
var tmp1_safe_receiver = $cancel._v;
|
|
79002
79023
|
if (tmp1_safe_receiver == null)
|
|
@@ -79004,7 +79025,7 @@
|
|
|
79004
79025
|
else
|
|
79005
79026
|
tmp1_safe_receiver();
|
|
79006
79027
|
}
|
|
79007
|
-
var tmp_2 = call.
|
|
79028
|
+
var tmp_2 = call.q44_1;
|
|
79008
79029
|
var tmp2_safe_receiver = tmp_2 instanceof Reconnecting ? tmp_2 : null;
|
|
79009
79030
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.n45_1;
|
|
79010
79031
|
var tmp_3;
|
|
@@ -79040,9 +79061,9 @@
|
|
|
79040
79061
|
function VoiceAPIImpl$reconnectCall$lambda_0($store, $updatedCall) {
|
|
79041
79062
|
return function (response) {
|
|
79042
79063
|
if (!(response == null) ? typeof response === 'string' : false) {
|
|
79043
|
-
$store.z1z(Action_init_$Create$(new CallReconnectSuccess($updatedCall.
|
|
79064
|
+
$store.z1z(Action_init_$Create$(new CallReconnectSuccess($updatedCall.m44_1)));
|
|
79044
79065
|
} else {
|
|
79045
|
-
var tmp_0 = $updatedCall.
|
|
79066
|
+
var tmp_0 = $updatedCall.q44_1;
|
|
79046
79067
|
var tmp1_safe_receiver = tmp_0 instanceof Reconnecting ? tmp_0 : null;
|
|
79047
79068
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n45_1;
|
|
79048
79069
|
var tmp_1;
|
|
@@ -79054,9 +79075,9 @@
|
|
|
79054
79075
|
var retryCount = tmp_1;
|
|
79055
79076
|
var csError = response instanceof CSError ? response : null;
|
|
79056
79077
|
if (retryCount === 5 || !(csError == null)) {
|
|
79057
|
-
$store.z1z(Action_init_$Create$(new CallReconnectFailure($updatedCall.
|
|
79078
|
+
$store.z1z(Action_init_$Create$(new CallReconnectFailure($updatedCall.m44_1)));
|
|
79058
79079
|
} else {
|
|
79059
|
-
$store.z1z(Action_init_$Create$(new TimeoutAction(new CallReconnectionRetry($updatedCall.
|
|
79080
|
+
$store.z1z(Action_init_$Create$(new TimeoutAction(new CallReconnectionRetry($updatedCall.m44_1), 3000)));
|
|
79060
79081
|
}
|
|
79061
79082
|
}
|
|
79062
79083
|
return Unit_instance;
|
|
@@ -79087,18 +79108,18 @@
|
|
|
79087
79108
|
var tmp0 = hangup.t33_1.q45_1.v2_1;
|
|
79088
79109
|
var reason = {_v: tmp0 === 0 ? HangupReason_localHangup_getInstance() : tmp0 === 2 ? HangupReason_remoteHangup_getInstance() : tmp0 === 1 ? HangupReason_mediaTimeout_getInstance() : tmp0 === 4 ? HangupReason_mediaTimeout_getInstance() : HangupReason_localHangup_getInstance()};
|
|
79089
79110
|
if (!(call == null)) {
|
|
79090
|
-
if (call.
|
|
79111
|
+
if (call.n44_1.x45() === null) {
|
|
79091
79112
|
var tmp_0;
|
|
79092
79113
|
var tmp_1;
|
|
79093
|
-
var tmp_2 = call.
|
|
79114
|
+
var tmp_2 = call.n44_1;
|
|
79094
79115
|
if (tmp_2 instanceof Resolved) {
|
|
79095
|
-
var tmp_3 = call.
|
|
79116
|
+
var tmp_3 = call.n44_1.g2();
|
|
79096
79117
|
tmp_1 = tmp_3 instanceof Left;
|
|
79097
79118
|
} else {
|
|
79098
79119
|
tmp_1 = false;
|
|
79099
79120
|
}
|
|
79100
79121
|
if (tmp_1) {
|
|
79101
|
-
var tmp_4 = call.
|
|
79122
|
+
var tmp_4 = call.n44_1.g2();
|
|
79102
79123
|
var tmp_5;
|
|
79103
79124
|
switch ((tmp_4 instanceof Left ? tmp_4 : THROW_CCE()).v45_1) {
|
|
79104
79125
|
case 'remote_rejected':
|
|
@@ -79125,7 +79146,7 @@
|
|
|
79125
79146
|
}
|
|
79126
79147
|
invokeListener$default(this.o45_1, conversationId, VOID, VoiceAPIImpl$o$onRTCHangup$lambda(hangup, reason));
|
|
79127
79148
|
}
|
|
79128
|
-
cleanupReducers(this.o45_1.
|
|
79149
|
+
cleanupReducers(this.o45_1.g44_1, legId, conversationId);
|
|
79129
79150
|
};
|
|
79130
79151
|
protoOf(VoiceAPIImpl$1).a3q = function (conversationId, legId, fromUserId, status) {
|
|
79131
79152
|
if (!(conversationId == null) && !isFromMe(this.o45_1, fromUserId)) {
|
|
@@ -79137,13 +79158,13 @@
|
|
|
79137
79158
|
};
|
|
79138
79159
|
function VoiceAPIImpl$lambda$lambda(this$0, $cachedSessionId) {
|
|
79139
79160
|
return function () {
|
|
79140
|
-
var state = this$0.
|
|
79161
|
+
var state = this$0.g44_1.l1z(getKClass(SessionReducer));
|
|
79141
79162
|
var currentSessionId = state.g2r_1.g2().g2x();
|
|
79142
79163
|
if (!state.h2r_1.w3k_1.equals(SocketConnectionStatus_Connected_getInstance())) {
|
|
79143
79164
|
$cachedSessionId._v = null;
|
|
79144
79165
|
} else if (!(currentSessionId == null) && !(currentSessionId == $cachedSessionId._v)) {
|
|
79145
|
-
cleanupReducers(this$0.
|
|
79146
|
-
var invites = this$0.
|
|
79166
|
+
cleanupReducers(this$0.g44_1);
|
|
79167
|
+
var invites = this$0.g44_1.l1z(getKClass(InviteReducer)).y45_1;
|
|
79147
79168
|
// Inline function 'kotlin.collections.filterValues' call
|
|
79148
79169
|
var result = LinkedHashMap_init_$Create$();
|
|
79149
79170
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -79160,7 +79181,7 @@
|
|
|
79160
79181
|
var _iterator__ex2g4s_0 = result.m2().t();
|
|
79161
79182
|
while (_iterator__ex2g4s_0.u()) {
|
|
79162
79183
|
var element = _iterator__ex2g4s_0.v();
|
|
79163
|
-
this$0.
|
|
79184
|
+
this$0.g44_1.z1z(new Action_0(new GetConversationRequest(element.g2().e45_1), new ActionMeta(VOID, element.g2().c45_1)));
|
|
79164
79185
|
}
|
|
79165
79186
|
} else ;
|
|
79166
79187
|
$cachedSessionId._v = state.g2r_1.g2().g2x();
|
|
@@ -79191,7 +79212,7 @@
|
|
|
79191
79212
|
var tmp0_safe_receiver = $state.y45_1.j2($it.c45_1);
|
|
79192
79213
|
var currentInviteState = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g45_1;
|
|
79193
79214
|
if (!(currentInviteState == null) && equals(currentInviteState.g2(), None_instance_1)) {
|
|
79194
|
-
this$0.
|
|
79215
|
+
this$0.g44_1.z1z(Action_init_$Create$(new InviteReconcile($it.c45_1)));
|
|
79195
79216
|
}
|
|
79196
79217
|
}
|
|
79197
79218
|
return Unit_instance;
|
|
@@ -79199,7 +79220,7 @@
|
|
|
79199
79220
|
}
|
|
79200
79221
|
function VoiceAPIImpl$lambda$lambda_0(this$0, $cache) {
|
|
79201
79222
|
return function () {
|
|
79202
|
-
var state = this$0.
|
|
79223
|
+
var state = this$0.g44_1.l1z(getKClass(InviteReducer));
|
|
79203
79224
|
var tmp;
|
|
79204
79225
|
if (state.a46_1 == null) {
|
|
79205
79226
|
tmp = null;
|
|
@@ -79228,18 +79249,18 @@
|
|
|
79228
79249
|
var value = updatedInvite.b46();
|
|
79229
79250
|
tmp0_1.n2(tmp2, value);
|
|
79230
79251
|
// Inline function 'kotlin.also' call
|
|
79231
|
-
var config = this$0.
|
|
79252
|
+
var config = this$0.g44_1.l1z(getKClass(ConfigReducer));
|
|
79232
79253
|
if (config.z2q_1 && updatedInvite.h45_1) {
|
|
79233
|
-
var tmp0_safe_receiver = this$0.
|
|
79254
|
+
var tmp0_safe_receiver = this$0.i44_1;
|
|
79234
79255
|
if (tmp0_safe_receiver == null)
|
|
79235
79256
|
;
|
|
79236
79257
|
else {
|
|
79237
79258
|
tmp0_safe_receiver.t43(updatedInvite.c45_1, from(updatedInvite.b45_1), updatedInvite.b45_1.z23());
|
|
79238
79259
|
}
|
|
79239
79260
|
}
|
|
79240
|
-
this$0.
|
|
79261
|
+
this$0.g44_1.z1z(new Action_0(new GetConversationRequest(updatedInvite.e45_1), new ActionMeta(VOID, updatedInvite.c45_1)));
|
|
79241
79262
|
var tmp_1 = new TimeoutAction(new GetConversationRequest(updatedInvite.e45_1), 60000);
|
|
79242
|
-
this$0.
|
|
79263
|
+
this$0.g44_1.z1z(new Action_0(tmp_1, new ActionMeta(VOID, updatedInvite.c45_1, VoiceAPIImpl$lambda$lambda$lambda(state, updatedInvite, this$0))));
|
|
79243
79264
|
} else {
|
|
79244
79265
|
var tmp_2;
|
|
79245
79266
|
var tmp_3;
|
|
@@ -79266,7 +79287,7 @@
|
|
|
79266
79287
|
tmp_2 = false;
|
|
79267
79288
|
}
|
|
79268
79289
|
if (tmp_2) {
|
|
79269
|
-
var tmp1_safe_receiver = this$0.
|
|
79290
|
+
var tmp1_safe_receiver = this$0.i44_1;
|
|
79270
79291
|
if (tmp1_safe_receiver == null)
|
|
79271
79292
|
;
|
|
79272
79293
|
else {
|
|
@@ -79329,7 +79350,7 @@
|
|
|
79329
79350
|
;
|
|
79330
79351
|
else {
|
|
79331
79352
|
// Inline function 'kotlin.let' call
|
|
79332
|
-
var tmp0_safe_receiver_0 = this$0.
|
|
79353
|
+
var tmp0_safe_receiver_0 = this$0.i44_1;
|
|
79333
79354
|
if (tmp0_safe_receiver_0 == null) ; else {
|
|
79334
79355
|
tmp0_safe_receiver_0.u43(updatedInvite.c45_1, reason);
|
|
79335
79356
|
}
|
|
@@ -79376,7 +79397,7 @@
|
|
|
79376
79397
|
}
|
|
79377
79398
|
function VoiceAPIImpl$lambda$lambda_1(this$0, $cache) {
|
|
79378
79399
|
return function () {
|
|
79379
|
-
var state = this$0.
|
|
79400
|
+
var state = this$0.g44_1.l1z(getKClass(CallReducer));
|
|
79380
79401
|
var tmp0_elvis_lhs = state.z44_1;
|
|
79381
79402
|
var tmp;
|
|
79382
79403
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -79395,16 +79416,16 @@
|
|
|
79395
79416
|
var updatedCall = tmp_0;
|
|
79396
79417
|
var cachedCall = $cache.j2(lastModifiedCallId);
|
|
79397
79418
|
var tmp0 = $cache;
|
|
79398
|
-
var tmp2 = updatedCall.
|
|
79419
|
+
var tmp2 = updatedCall.m44_1;
|
|
79399
79420
|
// Inline function 'kotlin.collections.set' call
|
|
79400
79421
|
var value = updatedCall.c46();
|
|
79401
79422
|
tmp0.n2(tmp2, value);
|
|
79402
79423
|
if (cachedCall == null)
|
|
79403
79424
|
return Unit_instance;
|
|
79404
|
-
if (!equals(updatedCall.
|
|
79425
|
+
if (!equals(updatedCall.n44_1, cachedCall.n44_1)) {
|
|
79405
79426
|
onCallMemberChange(this$0, updatedCall);
|
|
79406
79427
|
}
|
|
79407
|
-
if ((!(updatedCall.
|
|
79428
|
+
if ((!(updatedCall.p44_1.d46_1 == null) || updatedCall.j44_1) && (!updatedCall.p44_1.equals(cachedCall.p44_1) || !equals(updatedCall.o44_1, cachedCall.o44_1))) {
|
|
79408
79429
|
onCallMediaChange(this$0, updatedCall);
|
|
79409
79430
|
}
|
|
79410
79431
|
return Unit_instance;
|
|
@@ -79419,7 +79440,7 @@
|
|
|
79419
79440
|
}
|
|
79420
79441
|
function VoiceAPIImpl$lambda$lambda_2(this$0, $cache) {
|
|
79421
79442
|
return function () {
|
|
79422
|
-
var callState = this$0.
|
|
79443
|
+
var callState = this$0.g44_1.l1z(getKClass(CallReducer));
|
|
79423
79444
|
var tmp0_elvis_lhs = callState.z44_1;
|
|
79424
79445
|
var tmp;
|
|
79425
79446
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -79435,7 +79456,7 @@
|
|
|
79435
79456
|
} else {
|
|
79436
79457
|
// Inline function 'kotlin.takeUnless' call
|
|
79437
79458
|
var tmp_1;
|
|
79438
|
-
var tmp_2 = tmp1_safe_receiver.
|
|
79459
|
+
var tmp_2 = tmp1_safe_receiver.o44_1.g2();
|
|
79439
79460
|
if (!(tmp_2 instanceof Completed)) {
|
|
79440
79461
|
tmp_1 = tmp1_safe_receiver;
|
|
79441
79462
|
} else {
|
|
@@ -79458,7 +79479,7 @@
|
|
|
79458
79479
|
} else {
|
|
79459
79480
|
// Inline function 'kotlin.takeUnless' call
|
|
79460
79481
|
var tmp_5;
|
|
79461
|
-
if (!getKClassFromExpression(tmp3_safe_receiver.
|
|
79482
|
+
if (!getKClassFromExpression(tmp3_safe_receiver.q44_1).equals(getKClassFromExpression(updatedCall.q44_1))) {
|
|
79462
79483
|
tmp_5 = tmp3_safe_receiver;
|
|
79463
79484
|
} else {
|
|
79464
79485
|
tmp_5 = null;
|
|
@@ -79471,10 +79492,10 @@
|
|
|
79471
79492
|
else {
|
|
79472
79493
|
// Inline function 'kotlin.let' call
|
|
79473
79494
|
$l$block: {
|
|
79474
|
-
var tmp0_subject = updatedCall.
|
|
79495
|
+
var tmp0_subject = updatedCall.q44_1;
|
|
79475
79496
|
if (tmp0_subject instanceof Reconnecting) {
|
|
79476
79497
|
// Inline function 'kotlin.takeIf' call
|
|
79477
|
-
var this_0 = this$0.
|
|
79498
|
+
var this_0 = this$0.g44_1.l1z(getKClass(ConfigReducer));
|
|
79478
79499
|
var tmp_6;
|
|
79479
79500
|
if (this_0.e2r_1) {
|
|
79480
79501
|
tmp_6 = this_0;
|
|
@@ -79484,23 +79505,23 @@
|
|
|
79484
79505
|
if (tmp_6 == null) {
|
|
79485
79506
|
break $l$block;
|
|
79486
79507
|
}
|
|
79487
|
-
var tmp2_safe_receiver = this$0.
|
|
79508
|
+
var tmp2_safe_receiver = this$0.i44_1;
|
|
79488
79509
|
if (tmp2_safe_receiver == null)
|
|
79489
79510
|
;
|
|
79490
79511
|
else {
|
|
79491
|
-
tmp2_safe_receiver.b44(updatedCall.
|
|
79512
|
+
tmp2_safe_receiver.b44(updatedCall.m44_1);
|
|
79492
79513
|
}
|
|
79493
|
-
handleCallReconnection(this$0, this$0.
|
|
79514
|
+
handleCallReconnection(this$0, this$0.g44_1, updatedCall.m44_1);
|
|
79494
79515
|
} else {
|
|
79495
79516
|
if (equals(tmp0_subject, Connected_instance)) {
|
|
79496
|
-
var tmp3_safe_receiver_0 = this$0.
|
|
79517
|
+
var tmp3_safe_receiver_0 = this$0.i44_1;
|
|
79497
79518
|
var tmp_7;
|
|
79498
79519
|
if (tmp3_safe_receiver_0 == null) {
|
|
79499
79520
|
tmp_7 = null;
|
|
79500
79521
|
} else {
|
|
79501
79522
|
// Inline function 'kotlin.takeIf' call
|
|
79502
79523
|
var tmp_8;
|
|
79503
|
-
var tmp_9 = tmp4_safe_receiver.
|
|
79524
|
+
var tmp_9 = tmp4_safe_receiver.q44_1;
|
|
79504
79525
|
if (tmp_9 instanceof Reconnecting) {
|
|
79505
79526
|
tmp_8 = tmp3_safe_receiver_0;
|
|
79506
79527
|
} else {
|
|
@@ -79512,15 +79533,15 @@
|
|
|
79512
79533
|
if (tmp4_safe_receiver_0 == null)
|
|
79513
79534
|
;
|
|
79514
79535
|
else {
|
|
79515
|
-
tmp4_safe_receiver_0.c44(updatedCall.
|
|
79536
|
+
tmp4_safe_receiver_0.c44(updatedCall.m44_1);
|
|
79516
79537
|
}
|
|
79517
79538
|
} else {
|
|
79518
79539
|
if (equals(tmp0_subject, Disconnected_instance)) {
|
|
79519
|
-
var tmp5_safe_receiver = this$0.
|
|
79540
|
+
var tmp5_safe_receiver = this$0.i44_1;
|
|
79520
79541
|
if (tmp5_safe_receiver == null)
|
|
79521
79542
|
;
|
|
79522
79543
|
else {
|
|
79523
|
-
tmp5_safe_receiver.d44(updatedCall.
|
|
79544
|
+
tmp5_safe_receiver.d44(updatedCall.m44_1, CallDisconnectReason_networkChange_getInstance());
|
|
79524
79545
|
}
|
|
79525
79546
|
} else {
|
|
79526
79547
|
if (!equals(tmp0_subject, New_instance)) {
|
|
@@ -79547,7 +79568,7 @@
|
|
|
79547
79568
|
}
|
|
79548
79569
|
function VoiceAPIImpl$lambda$lambda_3(this$0) {
|
|
79549
79570
|
return function () {
|
|
79550
|
-
var state = this$0.
|
|
79571
|
+
var state = this$0.g44_1.l1z(getKClass(MediaEventReducer));
|
|
79551
79572
|
var tmp0_elvis_lhs = state.h46_1;
|
|
79552
79573
|
var tmp;
|
|
79553
79574
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -79565,7 +79586,7 @@
|
|
|
79565
79586
|
}
|
|
79566
79587
|
var mediaEvent = tmp_0;
|
|
79567
79588
|
if (mediaEvent instanceof MediaErrorEvent) {
|
|
79568
|
-
var tmp3_safe_receiver = this$0.
|
|
79589
|
+
var tmp3_safe_receiver = this$0.i44_1;
|
|
79569
79590
|
if (tmp3_safe_receiver == null)
|
|
79570
79591
|
;
|
|
79571
79592
|
else {
|
|
@@ -79573,7 +79594,7 @@
|
|
|
79573
79594
|
}
|
|
79574
79595
|
} else {
|
|
79575
79596
|
if (mediaEvent instanceof RTCStatsUpdate) {
|
|
79576
|
-
var tmp4_safe_receiver = this$0.
|
|
79597
|
+
var tmp4_safe_receiver = this$0.i44_1;
|
|
79577
79598
|
if (tmp4_safe_receiver == null)
|
|
79578
79599
|
;
|
|
79579
79600
|
else {
|
|
@@ -79593,13 +79614,13 @@
|
|
|
79593
79614
|
return function (memberResponse) {
|
|
79594
79615
|
if (memberResponse instanceof GetMember) {
|
|
79595
79616
|
if (memberResponse.s2h_1.v2_1 === 1) {
|
|
79596
|
-
this$0.
|
|
79617
|
+
this$0.g44_1.z1z(Action_init_$Create$(new CallReconnect($legId, memberResponse.r2h_1, $legResponse.l29_1)));
|
|
79597
79618
|
} else {
|
|
79598
|
-
reportError_0(this$0.
|
|
79619
|
+
reportError_0(this$0.g44_1, $callback, new MemberNotInConversation(), ErrorTrail_RECONNECT_MEMBER_NOT_JOINED_getInstance(), VOID, $legId);
|
|
79599
79620
|
}
|
|
79600
79621
|
} else {
|
|
79601
|
-
reportError_0(this$0.
|
|
79602
|
-
this$0.
|
|
79622
|
+
reportError_0(this$0.g44_1, $callback, new NoConversationFound(), ErrorTrail_RECONNECT_MEMBER_FETCH_FAILED_getInstance(), VOID, $legId);
|
|
79623
|
+
this$0.g44_1.z1z(Action_init_$Create$(new CallCleanup($legId)));
|
|
79603
79624
|
}
|
|
79604
79625
|
return Unit_instance;
|
|
79605
79626
|
};
|
|
@@ -79608,64 +79629,64 @@
|
|
|
79608
79629
|
return function (legResponse) {
|
|
79609
79630
|
if (legResponse instanceof GetLeg) {
|
|
79610
79631
|
var tmp_0 = new GetMyMemberRequest(legResponse.l29_1);
|
|
79611
|
-
this$0.
|
|
79632
|
+
this$0.g44_1.z1z(new Action_0(tmp_0, new ActionMeta(VOID, legResponse.k29_1, VoiceAPIImpl$getCallDetailsAndDispatchCallReconnect$lambda$lambda(this$0, $legId, legResponse, $callback))));
|
|
79612
79633
|
} else {
|
|
79613
|
-
reportError_0(this$0.
|
|
79614
|
-
this$0.
|
|
79634
|
+
reportError_0(this$0.g44_1, $callback, new NoLegFound(), ErrorTrail_RECONNECT_LEG_FETCH_FAILED_getInstance(), VOID, $legId);
|
|
79635
|
+
this$0.g44_1.z1z(Action_init_$Create$(new CallCleanup($legId)));
|
|
79615
79636
|
}
|
|
79616
79637
|
return Unit_instance;
|
|
79617
79638
|
};
|
|
79618
79639
|
}
|
|
79619
79640
|
function VoiceAPIImpl(store, events, loggerAdapter) {
|
|
79620
|
-
this.
|
|
79621
|
-
this.
|
|
79622
|
-
this.
|
|
79641
|
+
this.g44_1 = store;
|
|
79642
|
+
this.h44_1 = loggerAdapter.q20(Voice_getInstance());
|
|
79643
|
+
this.i44_1 = null;
|
|
79623
79644
|
events.d27(new VoiceAPIImpl$1(this));
|
|
79624
79645
|
var tmp = getKClass(SessionReducer);
|
|
79625
|
-
this.
|
|
79646
|
+
this.g44_1.r20(tmp, VoiceAPIImpl$lambda(this));
|
|
79626
79647
|
var tmp_0 = getKClass(InviteReducer);
|
|
79627
|
-
this.
|
|
79648
|
+
this.g44_1.r20(tmp_0, VoiceAPIImpl$lambda_0(this));
|
|
79628
79649
|
var tmp_1 = getKClass(CallReducer);
|
|
79629
|
-
this.
|
|
79650
|
+
this.g44_1.r20(tmp_1, VoiceAPIImpl$lambda_1(this));
|
|
79630
79651
|
var tmp_2 = getKClass(CallReducer);
|
|
79631
|
-
this.
|
|
79652
|
+
this.g44_1.r20(tmp_2, VoiceAPIImpl$lambda_2(this));
|
|
79632
79653
|
var tmp_3 = getKClass(MediaEventReducer);
|
|
79633
|
-
this.
|
|
79654
|
+
this.g44_1.r20(tmp_3, VoiceAPIImpl$lambda_3(this));
|
|
79634
79655
|
}
|
|
79635
79656
|
protoOf(VoiceAPIImpl).y25 = function (listener) {
|
|
79636
|
-
this.
|
|
79657
|
+
this.i44_1 = listener;
|
|
79637
79658
|
};
|
|
79638
79659
|
protoOf(VoiceAPIImpl).b26 = function (legId, callback) {
|
|
79639
|
-
if (getSessionUserOrError(this.
|
|
79660
|
+
if (getSessionUserOrError(this.g44_1, callback) == null)
|
|
79640
79661
|
return Unit_instance;
|
|
79641
79662
|
var tmp = new GetLegRequest(legId);
|
|
79642
|
-
this.
|
|
79663
|
+
this.g44_1.z1z(new Action_0(tmp, new ActionMeta(VOID, VOID, VoiceAPIImpl$getLeg$lambda(callback, this, legId))));
|
|
79643
79664
|
};
|
|
79644
79665
|
protoOf(VoiceAPIImpl).c26 = function (callId, parameters, callback) {
|
|
79645
|
-
if (getSessionUserOrError(this.
|
|
79666
|
+
if (getSessionUserOrError(this.g44_1, callback) == null)
|
|
79646
79667
|
return Unit_instance;
|
|
79647
|
-
var callState = this.
|
|
79668
|
+
var callState = this.g44_1.l1z(getKClass(CallReducer));
|
|
79648
79669
|
var call = callState.w44_1.j2(callId);
|
|
79649
|
-
var tmp2_safe_receiver = call == null ? null : call.
|
|
79670
|
+
var tmp2_safe_receiver = call == null ? null : call.n44_1;
|
|
79650
79671
|
var tmp = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.g2();
|
|
79651
79672
|
var joinedMemberState = tmp instanceof Joined ? tmp : null;
|
|
79652
|
-
var tmp4_elvis_lhs = joinedMemberState == null ? null : joinedMemberState.
|
|
79673
|
+
var tmp4_elvis_lhs = joinedMemberState == null ? null : joinedMemberState.t44_1;
|
|
79653
79674
|
var tmp_0;
|
|
79654
79675
|
if (tmp4_elvis_lhs == null) {
|
|
79655
|
-
var tmp5_safe_receiver = this.
|
|
79676
|
+
var tmp5_safe_receiver = this.g44_1.l1z(getKClass(InviteReducer)).y45_1.j2(callId);
|
|
79656
79677
|
tmp_0 = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.e45_1;
|
|
79657
79678
|
} else {
|
|
79658
79679
|
tmp_0 = tmp4_elvis_lhs;
|
|
79659
79680
|
}
|
|
79660
79681
|
var conversationId = tmp_0;
|
|
79661
79682
|
if (conversationId == null) {
|
|
79662
|
-
return reportError(this.
|
|
79683
|
+
return reportError(this.g44_1, callback, new NoCallFound(), ErrorTrail_GET_CALL_LEGS_NO_CALL_getInstance(), VOID, callId);
|
|
79663
79684
|
}
|
|
79664
79685
|
var tmp_1 = new GetConversationRequest(conversationId);
|
|
79665
|
-
this.
|
|
79686
|
+
this.g44_1.z1z(new Action_0(tmp_1, new ActionMeta(VOID, VOID, VoiceAPIImpl$getCallLegs$lambda(this, callback, conversationId, callId, parameters))));
|
|
79666
79687
|
};
|
|
79667
79688
|
protoOf(VoiceAPIImpl).z25 = function (context, callback) {
|
|
79668
|
-
var tmp0_elvis_lhs = getSessionUserOrError(this.
|
|
79689
|
+
var tmp0_elvis_lhs = getSessionUserOrError(this.g44_1, callback);
|
|
79669
79690
|
var tmp;
|
|
79670
79691
|
if (tmp0_elvis_lhs == null) {
|
|
79671
79692
|
return Unit_instance;
|
|
@@ -79673,30 +79694,29 @@
|
|
|
79673
79694
|
tmp = tmp0_elvis_lhs;
|
|
79674
79695
|
}
|
|
79675
79696
|
var user = tmp;
|
|
79676
|
-
|
|
79677
|
-
this.t44_1.z1z(new Action_0(tmp_0, new ActionMeta(VOID, VOID, VoiceAPIImpl$serverCall$lambda(this, callback))));
|
|
79697
|
+
attemptOutboundCall(this, user.v3q_1, context, 1, null, callback);
|
|
79678
79698
|
};
|
|
79679
79699
|
protoOf(VoiceAPIImpl).a26 = function (callId, callback) {
|
|
79680
79700
|
var once = {_v: null};
|
|
79681
79701
|
var tmp = getKClass(CallReducer);
|
|
79682
|
-
once._v = this.
|
|
79683
|
-
if (getSessionUserOrError_0(this.
|
|
79702
|
+
once._v = this.g44_1.r20(tmp, VoiceAPIImpl$reconnectCall$lambda(this, callId, once, callback));
|
|
79703
|
+
if (getSessionUserOrError_0(this.g44_1, callback) == null)
|
|
79684
79704
|
return Unit_instance;
|
|
79685
|
-
var callState = this.
|
|
79705
|
+
var callState = this.g44_1.l1z(getKClass(CallReducer));
|
|
79686
79706
|
var call = callState.w44_1.j2(callId);
|
|
79687
|
-
var tmp2_safe_receiver = call == null ? null : call.
|
|
79707
|
+
var tmp2_safe_receiver = call == null ? null : call.n44_1;
|
|
79688
79708
|
var tmp_0 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.g2();
|
|
79689
79709
|
var memberState = tmp_0 instanceof Joined ? tmp_0 : null;
|
|
79690
79710
|
if (call == null || memberState == null) {
|
|
79691
79711
|
getCallDetailsAndDispatchCallReconnect(this, callId, callback);
|
|
79692
79712
|
} else {
|
|
79693
|
-
this.
|
|
79713
|
+
this.g44_1.z1z(Action_init_$Create$(new CallReconnect(callId, memberState.u44_1, memberState.t44_1)));
|
|
79694
79714
|
}
|
|
79695
79715
|
};
|
|
79696
79716
|
protoOf(VoiceAPIImpl).d26 = function (callId, callback) {
|
|
79697
|
-
var invite = this.
|
|
79717
|
+
var invite = this.g44_1.l1z(getKClass(InviteReducer)).y45_1.j2(callId);
|
|
79698
79718
|
if (invite == null) {
|
|
79699
|
-
reportError_0(this.
|
|
79719
|
+
reportError_0(this.g44_1, callback, new NoInviteFound(), ErrorTrail_REJECT_NO_INVITE_getInstance(), VOID, callId);
|
|
79700
79720
|
return Unit_instance;
|
|
79701
79721
|
}
|
|
79702
79722
|
var tmp;
|
|
@@ -79715,15 +79735,15 @@
|
|
|
79715
79735
|
tmp = tmp_3 instanceof Left;
|
|
79716
79736
|
}
|
|
79717
79737
|
if (tmp) {
|
|
79718
|
-
reportError_0(this.
|
|
79738
|
+
reportError_0(this.g44_1, callback, new InvalidCallAction(), ErrorTrail_REJECT_INVALID_STATE_getInstance(), invite.e45_1, callId);
|
|
79719
79739
|
return Unit_instance;
|
|
79720
79740
|
}
|
|
79721
|
-
this.
|
|
79741
|
+
this.g44_1.z1z(new Action_0(new MemberKickRequest(invite.e45_1, invite.d45_1, 'call-rejected-by-callee', 'REMOTE_REJECT', invite.d45_1), new ActionMeta(VOID, callId, actionOutcome(this, ErrorTrail_REJECT_REQUEST_FAILED_getInstance(), callId, callback))));
|
|
79722
79742
|
};
|
|
79723
79743
|
protoOf(VoiceAPIImpl).e26 = function (callId, callback) {
|
|
79724
|
-
var invite = this.
|
|
79744
|
+
var invite = this.g44_1.l1z(getKClass(InviteReducer)).y45_1.j2(callId);
|
|
79725
79745
|
if (invite == null) {
|
|
79726
|
-
reportError_0(this.
|
|
79746
|
+
reportError_0(this.g44_1, callback, new NoInviteFound(), ErrorTrail_ANSWER_NO_INVITE_getInstance(), VOID, callId);
|
|
79727
79747
|
return Unit_instance;
|
|
79728
79748
|
}
|
|
79729
79749
|
var tmp;
|
|
@@ -79742,27 +79762,27 @@
|
|
|
79742
79762
|
tmp = tmp_3 instanceof Left;
|
|
79743
79763
|
}
|
|
79744
79764
|
if (tmp) {
|
|
79745
|
-
reportError_0(this.
|
|
79765
|
+
reportError_0(this.g44_1, callback, new InvalidCallAction(), ErrorTrail_ANSWER_INVALID_STATE_getInstance(), invite.e45_1, callId);
|
|
79746
79766
|
return Unit_instance;
|
|
79747
79767
|
}
|
|
79748
79768
|
var tmp_4 = new MemberJoinRequest(invite.e45_1, invite.d45_1, invite.d45_1);
|
|
79749
|
-
this.
|
|
79769
|
+
this.g44_1.z1z(new Action_0(tmp_4, new ActionMeta(VOID, callId, VoiceAPIImpl$answerCall$lambda(this, callback, invite, callId))));
|
|
79750
79770
|
};
|
|
79751
79771
|
protoOf(VoiceAPIImpl).f26 = function (callId, reasonText, reasonCode, callback) {
|
|
79752
|
-
var call = this.
|
|
79772
|
+
var call = this.g44_1.l1z(getKClass(CallReducer)).w44_1.j2(callId);
|
|
79753
79773
|
if (call == null) {
|
|
79754
|
-
reportError_0(this.
|
|
79774
|
+
reportError_0(this.g44_1, callback, new NoCallFound(), ErrorTrail_HANGUP_NO_CALL_getInstance(), VOID, callId);
|
|
79755
79775
|
return Unit_instance;
|
|
79756
79776
|
}
|
|
79757
|
-
this.
|
|
79758
|
-
var callMemberShipState = call.
|
|
79777
|
+
this.g44_1.z1z(Action_init_$Create$(new MediaDisable(callId)));
|
|
79778
|
+
var callMemberShipState = call.n44_1.g2();
|
|
79759
79779
|
if (callMemberShipState instanceof Joined) {
|
|
79760
|
-
this.
|
|
79780
|
+
this.g44_1.z1z(new Action_0(new MemberKickRequest(callMemberShipState.t44_1, callMemberShipState.u44_1, reasonText, reasonCode, callMemberShipState.u44_1), new ActionMeta(VOID, callId, actionOutcome(this, ErrorTrail_HANGUP_KICK_FAILED_getInstance(), callId, callback))));
|
|
79761
79781
|
} else {
|
|
79762
79782
|
if (callMemberShipState instanceof Knocking) {
|
|
79763
|
-
this.
|
|
79783
|
+
this.g44_1.z1z(new Action_0(new DeleteKnockerRequest(callMemberShipState.i46_1), new ActionMeta(VOID, callId, actionOutcome(this, ErrorTrail_HANGUP_KNOCKER_DELETE_FAILED_getInstance(), callId, callback))));
|
|
79764
79784
|
} else {
|
|
79765
|
-
reportError_0(this.
|
|
79785
|
+
reportError_0(this.g44_1, callback, new InvalidCallAction(), ErrorTrail_HANGUP_INVALID_STATE_getInstance(), VOID, callId);
|
|
79766
79786
|
}
|
|
79767
79787
|
}
|
|
79768
79788
|
};
|
|
@@ -84831,7 +84851,7 @@
|
|
|
84831
84851
|
tmp_1 = tmp2_elvis_lhs;
|
|
84832
84852
|
}
|
|
84833
84853
|
var applicationId = tmp_1;
|
|
84834
|
-
var tmp_2 = call.
|
|
84854
|
+
var tmp_2 = call.n44_1.g2();
|
|
84835
84855
|
var tmp3_elvis_lhs = isInterface(tmp_2, CoreMemberStateWithCid) ? tmp_2 : null;
|
|
84836
84856
|
var tmp_3;
|
|
84837
84857
|
if (tmp3_elvis_lhs == null) {
|
|
@@ -84840,8 +84860,8 @@
|
|
|
84840
84860
|
tmp_3 = tmp3_elvis_lhs;
|
|
84841
84861
|
}
|
|
84842
84862
|
var member = tmp_3;
|
|
84843
|
-
this.t4f_1.z1z(Action_init_$Create$(new RTCStatsUpdate(call.
|
|
84844
|
-
this.t4f_1.z1z(Action_init_$Create$(new RTCStatsReportRequest(call.
|
|
84863
|
+
this.t4f_1.z1z(Action_init_$Create$(new RTCStatsUpdate(call.m44_1, rtcStats)));
|
|
84864
|
+
this.t4f_1.z1z(Action_init_$Create$(new RTCStatsReportRequest(call.m44_1, rtcStats, applicationId, apiKey, member.d34(), member.u4f())));
|
|
84845
84865
|
};
|
|
84846
84866
|
protoOf(mediaActionMiddleware$1).c23 = function (id, error) {
|
|
84847
84867
|
this.t4f_1.z1z(Action_init_$Create$(new MediaErrorEvent(id, error)));
|
|
@@ -85128,9 +85148,9 @@
|
|
|
85128
85148
|
break $l$block_0;
|
|
85129
85149
|
}
|
|
85130
85150
|
if (autoReconnectMedia) {
|
|
85131
|
-
$store.z1z(Action_init_$Create$(new TimeoutAction(new CallReconnectionRetry(call.
|
|
85151
|
+
$store.z1z(Action_init_$Create$(new TimeoutAction(new CallReconnectionRetry(call.m44_1), 3000)));
|
|
85132
85152
|
} else {
|
|
85133
|
-
$store.z1z(Action_init_$Create$(new CallReconnectFailure(call.
|
|
85153
|
+
$store.z1z(Action_init_$Create$(new CallReconnectFailure(call.m44_1)));
|
|
85134
85154
|
}
|
|
85135
85155
|
} else {
|
|
85136
85156
|
if (tmp0_subject instanceof CallReconnectFailure) {
|
|
@@ -85719,7 +85739,7 @@
|
|
|
85719
85739
|
while (_iterator__ex2g4s_2.u()) {
|
|
85720
85740
|
var element_2 = _iterator__ex2g4s_2.v();
|
|
85721
85741
|
var tmp0_safe_receiver = $this$run.w44_1.j2(element_2);
|
|
85722
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
85742
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o44_1;
|
|
85723
85743
|
// Inline function 'kotlin.let' call
|
|
85724
85744
|
if ((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.g2())instanceof Completed) {
|
|
85725
85745
|
_this__u8e3s4.z1z(Action_init_$Create$(new CallCleanup(element_2)));
|
|
@@ -86405,47 +86425,47 @@
|
|
|
86405
86425
|
callConnectivityState = callConnectivityState === VOID ? New_instance : callConnectivityState;
|
|
86406
86426
|
mediaState = mediaState === VOID ? MediaConnectionState_New_getInstance() : mediaState;
|
|
86407
86427
|
memberJoinTimedOut = memberJoinTimedOut === VOID ? false : memberJoinTimedOut;
|
|
86408
|
-
this.
|
|
86409
|
-
this.
|
|
86410
|
-
this.
|
|
86411
|
-
this.
|
|
86412
|
-
this.
|
|
86413
|
-
this.
|
|
86414
|
-
this.
|
|
86415
|
-
this.
|
|
86416
|
-
this.
|
|
86417
|
-
this.
|
|
86428
|
+
this.j44_1 = isReconnect;
|
|
86429
|
+
this.k44_1 = from;
|
|
86430
|
+
this.l44_1 = customData;
|
|
86431
|
+
this.m44_1 = id;
|
|
86432
|
+
this.n44_1 = memberState;
|
|
86433
|
+
this.o44_1 = legState;
|
|
86434
|
+
this.p44_1 = localMedia;
|
|
86435
|
+
this.q44_1 = callConnectivityState;
|
|
86436
|
+
this.r44_1 = mediaState;
|
|
86437
|
+
this.s44_1 = memberJoinTimedOut;
|
|
86418
86438
|
}
|
|
86419
86439
|
protoOf(Call_1).h4i = function (isReconnect, from, customData, id, memberState, legState, localMedia, callConnectivityState, mediaState, memberJoinTimedOut) {
|
|
86420
86440
|
return new Call_1(isReconnect, from, customData, id, memberState, legState, localMedia, callConnectivityState, mediaState, memberJoinTimedOut);
|
|
86421
86441
|
};
|
|
86422
86442
|
protoOf(Call_1).c46 = function (isReconnect, from, customData, id, memberState, legState, localMedia, callConnectivityState, mediaState, memberJoinTimedOut, $super) {
|
|
86423
|
-
isReconnect = isReconnect === VOID ? this.
|
|
86424
|
-
from = from === VOID ? this.
|
|
86425
|
-
customData = customData === VOID ? this.
|
|
86426
|
-
id = id === VOID ? this.
|
|
86427
|
-
memberState = memberState === VOID ? this.
|
|
86428
|
-
legState = legState === VOID ? this.
|
|
86429
|
-
localMedia = localMedia === VOID ? this.
|
|
86430
|
-
callConnectivityState = callConnectivityState === VOID ? this.
|
|
86431
|
-
mediaState = mediaState === VOID ? this.
|
|
86432
|
-
memberJoinTimedOut = memberJoinTimedOut === VOID ? this.
|
|
86443
|
+
isReconnect = isReconnect === VOID ? this.j44_1 : isReconnect;
|
|
86444
|
+
from = from === VOID ? this.k44_1 : from;
|
|
86445
|
+
customData = customData === VOID ? this.l44_1 : customData;
|
|
86446
|
+
id = id === VOID ? this.m44_1 : id;
|
|
86447
|
+
memberState = memberState === VOID ? this.n44_1 : memberState;
|
|
86448
|
+
legState = legState === VOID ? this.o44_1 : legState;
|
|
86449
|
+
localMedia = localMedia === VOID ? this.p44_1 : localMedia;
|
|
86450
|
+
callConnectivityState = callConnectivityState === VOID ? this.q44_1 : callConnectivityState;
|
|
86451
|
+
mediaState = mediaState === VOID ? this.r44_1 : mediaState;
|
|
86452
|
+
memberJoinTimedOut = memberJoinTimedOut === VOID ? this.s44_1 : memberJoinTimedOut;
|
|
86433
86453
|
return $super === VOID ? this.h4i(isReconnect, from, customData, id, memberState, legState, localMedia, callConnectivityState, mediaState, memberJoinTimedOut) : $super.h4i.call(this, isReconnect, from, customData, id, memberState, legState, localMedia, callConnectivityState, mediaState, memberJoinTimedOut);
|
|
86434
86454
|
};
|
|
86435
86455
|
protoOf(Call_1).toString = function () {
|
|
86436
|
-
return 'Call(isReconnect=' + this.
|
|
86456
|
+
return 'Call(isReconnect=' + this.j44_1 + ', from=' + toString(this.k44_1) + ', customData=' + toString_0(this.l44_1) + ', id=' + this.m44_1 + ', memberState=' + toString(this.n44_1) + ', legState=' + toString(this.o44_1) + ', localMedia=' + this.p44_1.toString() + ', callConnectivityState=' + toString(this.q44_1) + ', mediaState=' + this.r44_1.toString() + ', memberJoinTimedOut=' + this.s44_1 + ')';
|
|
86437
86457
|
};
|
|
86438
86458
|
protoOf(Call_1).hashCode = function () {
|
|
86439
|
-
var result = getBooleanHashCode(this.
|
|
86440
|
-
result = imul(result, 31) + hashCode(this.h44_1) | 0;
|
|
86441
|
-
result = imul(result, 31) + (this.i44_1 == null ? 0 : hashCode(this.i44_1)) | 0;
|
|
86442
|
-
result = imul(result, 31) + getStringHashCode(this.j44_1) | 0;
|
|
86459
|
+
var result = getBooleanHashCode(this.j44_1);
|
|
86443
86460
|
result = imul(result, 31) + hashCode(this.k44_1) | 0;
|
|
86444
|
-
result = imul(result, 31) + hashCode(this.l44_1) | 0;
|
|
86445
|
-
result = imul(result, 31) + this.m44_1
|
|
86461
|
+
result = imul(result, 31) + (this.l44_1 == null ? 0 : hashCode(this.l44_1)) | 0;
|
|
86462
|
+
result = imul(result, 31) + getStringHashCode(this.m44_1) | 0;
|
|
86446
86463
|
result = imul(result, 31) + hashCode(this.n44_1) | 0;
|
|
86447
|
-
result = imul(result, 31) + this.o44_1
|
|
86448
|
-
result = imul(result, 31) +
|
|
86464
|
+
result = imul(result, 31) + hashCode(this.o44_1) | 0;
|
|
86465
|
+
result = imul(result, 31) + this.p44_1.hashCode() | 0;
|
|
86466
|
+
result = imul(result, 31) + hashCode(this.q44_1) | 0;
|
|
86467
|
+
result = imul(result, 31) + this.r44_1.hashCode() | 0;
|
|
86468
|
+
result = imul(result, 31) + getBooleanHashCode(this.s44_1) | 0;
|
|
86449
86469
|
return result;
|
|
86450
86470
|
};
|
|
86451
86471
|
protoOf(Call_1).equals = function (other) {
|
|
@@ -86453,25 +86473,25 @@
|
|
|
86453
86473
|
return true;
|
|
86454
86474
|
if (!(other instanceof Call_1))
|
|
86455
86475
|
return false;
|
|
86456
|
-
if (!(this.g44_1 === other.g44_1))
|
|
86457
|
-
return false;
|
|
86458
|
-
if (!equals(this.h44_1, other.h44_1))
|
|
86459
|
-
return false;
|
|
86460
|
-
if (!equals(this.i44_1, other.i44_1))
|
|
86461
|
-
return false;
|
|
86462
86476
|
if (!(this.j44_1 === other.j44_1))
|
|
86463
86477
|
return false;
|
|
86464
86478
|
if (!equals(this.k44_1, other.k44_1))
|
|
86465
86479
|
return false;
|
|
86466
86480
|
if (!equals(this.l44_1, other.l44_1))
|
|
86467
86481
|
return false;
|
|
86468
|
-
if (!this.m44_1
|
|
86482
|
+
if (!(this.m44_1 === other.m44_1))
|
|
86469
86483
|
return false;
|
|
86470
86484
|
if (!equals(this.n44_1, other.n44_1))
|
|
86471
86485
|
return false;
|
|
86472
|
-
if (!this.o44_1
|
|
86486
|
+
if (!equals(this.o44_1, other.o44_1))
|
|
86487
|
+
return false;
|
|
86488
|
+
if (!this.p44_1.equals(other.p44_1))
|
|
86489
|
+
return false;
|
|
86490
|
+
if (!equals(this.q44_1, other.q44_1))
|
|
86491
|
+
return false;
|
|
86492
|
+
if (!this.r44_1.equals(other.r44_1))
|
|
86473
86493
|
return false;
|
|
86474
|
-
if (!(this.
|
|
86494
|
+
if (!(this.s44_1 === other.s44_1))
|
|
86475
86495
|
return false;
|
|
86476
86496
|
return true;
|
|
86477
86497
|
};
|
|
@@ -86771,18 +86791,18 @@
|
|
|
86771
86791
|
return function ($this$modify) {
|
|
86772
86792
|
if ($action.l3a_1.u3a_1.k2o_1 === this$0.y44_1) {
|
|
86773
86793
|
var tmp_1;
|
|
86774
|
-
var tmp_2 = $this$modify.
|
|
86794
|
+
var tmp_2 = $this$modify.n44_1.g2();
|
|
86775
86795
|
if (isInterface(tmp_2, CoreMemberStateWithCid)) {
|
|
86776
|
-
var tmp_3 = $this$modify.
|
|
86796
|
+
var tmp_3 = $this$modify.n44_1.g2();
|
|
86777
86797
|
tmp_1 = (isInterface(tmp_3, CoreMemberStateWithCid) ? tmp_3 : THROW_CCE()).d34() === $action.n3a_1;
|
|
86778
86798
|
} else {
|
|
86779
86799
|
tmp_1 = false;
|
|
86780
86800
|
}
|
|
86781
86801
|
if (tmp_1) {
|
|
86782
86802
|
var tmp_4 = $this$modify;
|
|
86783
|
-
var tmp_5 = $this$modify.
|
|
86803
|
+
var tmp_5 = $this$modify.n44_1;
|
|
86784
86804
|
var tmp0_safe_receiver = $action.l3a_1.w3a_1;
|
|
86785
|
-
tmp_4.
|
|
86805
|
+
tmp_4.n44_1 = toResolved(tmp_5, new Left($action.n3a_1, $action.l3a_1.t3a_1, '', tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b3b_1));
|
|
86786
86806
|
}
|
|
86787
86807
|
}
|
|
86788
86808
|
return Unit_instance;
|
|
@@ -86799,22 +86819,22 @@
|
|
|
86799
86819
|
var tmp_0;
|
|
86800
86820
|
switch ($action.c47_1.v2_1) {
|
|
86801
86821
|
case 1:
|
|
86802
|
-
tmp_0 = toResolved(this_0.
|
|
86822
|
+
tmp_0 = toResolved(this_0.o44_1, new Started($action.a47_1));
|
|
86803
86823
|
break;
|
|
86804
86824
|
case 0:
|
|
86805
|
-
tmp_0 = toResolved(this_0.
|
|
86825
|
+
tmp_0 = toResolved(this_0.o44_1, new Prewarm($action.a47_1));
|
|
86806
86826
|
break;
|
|
86807
86827
|
default:
|
|
86808
86828
|
noWhenBranchMatchedException();
|
|
86809
86829
|
break;
|
|
86810
86830
|
}
|
|
86811
|
-
tmp.
|
|
86831
|
+
tmp.o44_1 = tmp_0;
|
|
86812
86832
|
var tmp1_safe_receiver = $action.e47_1;
|
|
86813
86833
|
if (tmp1_safe_receiver == null)
|
|
86814
86834
|
;
|
|
86815
86835
|
else {
|
|
86816
86836
|
// Inline function 'kotlin.let' call
|
|
86817
|
-
this_0.
|
|
86837
|
+
this_0.n44_1 = toResolved(this_0.n44_1, new Joined(tmp1_safe_receiver.g47_1, tmp1_safe_receiver.h47_1));
|
|
86818
86838
|
var tmp0 = $this$new.x44_1;
|
|
86819
86839
|
var tmp2 = tmp1_safe_receiver.g47_1;
|
|
86820
86840
|
// Inline function 'kotlin.collections.set' call
|
|
@@ -86826,9 +86846,9 @@
|
|
|
86826
86846
|
}
|
|
86827
86847
|
function CallState$update$lambda_1($action) {
|
|
86828
86848
|
return function ($this$modify) {
|
|
86829
|
-
var tmp_0 = $this$modify.
|
|
86849
|
+
var tmp_0 = $this$modify.n44_1.g2();
|
|
86830
86850
|
if (isInterface(tmp_0, CoreMemberStateWithCid)) {
|
|
86831
|
-
var tmp_1 = $this$modify.
|
|
86851
|
+
var tmp_1 = $this$modify.n44_1.g2();
|
|
86832
86852
|
(isInterface(tmp_1, CoreMemberStateWithCid) ? tmp_1 : THROW_CCE()).p4j($action.j47_1);
|
|
86833
86853
|
}
|
|
86834
86854
|
return Unit_instance;
|
|
@@ -86836,7 +86856,7 @@
|
|
|
86836
86856
|
}
|
|
86837
86857
|
function CallState$update$lambda_2($action, $requestId, $$this$apply, $callId) {
|
|
86838
86858
|
return function ($this$modify) {
|
|
86839
|
-
$this$modify.
|
|
86859
|
+
$this$modify.n44_1 = toPending($this$modify.n44_1, new Joined($action.p2c_1, $action.q2c_1), $requestId);
|
|
86840
86860
|
var tmp0 = $$this$apply.x44_1;
|
|
86841
86861
|
var tmp2 = $action.p2c_1;
|
|
86842
86862
|
// Inline function 'kotlin.collections.set' call
|
|
@@ -86847,7 +86867,7 @@
|
|
|
86847
86867
|
}
|
|
86848
86868
|
function CallState$update$lambda_3($event, $newMemberId, $$this$apply, $callId) {
|
|
86849
86869
|
return function ($this$modify) {
|
|
86850
|
-
$this$modify.
|
|
86870
|
+
$this$modify.n44_1 = new Resolved(new Joined($event.y36_1, $newMemberId));
|
|
86851
86871
|
$$this$apply.x44_1.o2($event.w36_1.f37_1);
|
|
86852
86872
|
var tmp0 = $$this$apply.x44_1;
|
|
86853
86873
|
var tmp2 = $event.y36_1;
|
|
@@ -86858,56 +86878,56 @@
|
|
|
86858
86878
|
};
|
|
86859
86879
|
}
|
|
86860
86880
|
function CallState$update$lambda_4($this$modify) {
|
|
86861
|
-
if ($this$modify.
|
|
86881
|
+
if ($this$modify.r44_1.equals(MediaConnectionState_Closed_getInstance()))
|
|
86862
86882
|
return Unit_instance;
|
|
86863
86883
|
var tmp;
|
|
86864
|
-
var tmp_0 = $this$modify.
|
|
86884
|
+
var tmp_0 = $this$modify.n44_1.g2();
|
|
86865
86885
|
if (!(tmp_0 instanceof Joined)) {
|
|
86866
|
-
tmp = $this$modify.
|
|
86886
|
+
tmp = $this$modify.r44_1.equals(MediaConnectionState_Connected_getInstance());
|
|
86867
86887
|
} else {
|
|
86868
86888
|
tmp = false;
|
|
86869
86889
|
}
|
|
86870
86890
|
if (tmp) {
|
|
86871
|
-
$this$modify.
|
|
86891
|
+
$this$modify.s44_1 = true;
|
|
86872
86892
|
}
|
|
86873
86893
|
var tmp_1 = $this$modify;
|
|
86874
86894
|
var tmp_2;
|
|
86875
|
-
if ($this$modify.
|
|
86895
|
+
if ($this$modify.r44_1.equals(MediaConnectionState_New_getInstance())) {
|
|
86876
86896
|
tmp_2 = MediaConnectionState_Failed_getInstance();
|
|
86877
86897
|
} else {
|
|
86878
|
-
var tmp_3 = $this$modify.
|
|
86898
|
+
var tmp_3 = $this$modify.n44_1.g2();
|
|
86879
86899
|
if (!(tmp_3 instanceof Joined)) {
|
|
86880
86900
|
tmp_2 = MediaConnectionState_Failed_getInstance();
|
|
86881
86901
|
} else {
|
|
86882
|
-
tmp_2 = $this$modify.
|
|
86902
|
+
tmp_2 = $this$modify.r44_1;
|
|
86883
86903
|
}
|
|
86884
86904
|
}
|
|
86885
|
-
tmp_1.
|
|
86905
|
+
tmp_1.r44_1 = tmp_2;
|
|
86886
86906
|
return Unit_instance;
|
|
86887
86907
|
}
|
|
86888
86908
|
function CallState$update$lambda_5($event) {
|
|
86889
86909
|
return function ($this$modify) {
|
|
86890
|
-
$this$modify.
|
|
86910
|
+
$this$modify.n44_1 = toFailed($this$modify.n44_1, $event.m46_1);
|
|
86891
86911
|
return Unit_instance;
|
|
86892
86912
|
};
|
|
86893
86913
|
}
|
|
86894
86914
|
function CallState$update$lambda_6($event) {
|
|
86895
86915
|
return function ($this$modify) {
|
|
86896
|
-
$this$modify.
|
|
86916
|
+
$this$modify.n44_1 = new Resolved(new Joined($event.r38_1, $event.p38_1.y38_1));
|
|
86897
86917
|
return Unit_instance;
|
|
86898
86918
|
};
|
|
86899
86919
|
}
|
|
86900
86920
|
function CallState$update$lambda_7($requestId) {
|
|
86901
86921
|
return function ($this$modify) {
|
|
86902
|
-
$this$modify.
|
|
86922
|
+
$this$modify.n44_1 = toPending($this$modify.n44_1, new Knocking('placeholder'), $requestId);
|
|
86903
86923
|
return Unit_instance;
|
|
86904
86924
|
};
|
|
86905
86925
|
}
|
|
86906
86926
|
function CallState$update$lambda_8($response) {
|
|
86907
86927
|
return function ($this$modify) {
|
|
86908
|
-
var tmp_0 = $this$modify.
|
|
86928
|
+
var tmp_0 = $this$modify.n44_1.g2();
|
|
86909
86929
|
if (tmp_0 instanceof Knocking) {
|
|
86910
|
-
$this$modify.
|
|
86930
|
+
$this$modify.n44_1 = toResolved($this$modify.n44_1, new Knocking($response.l2u_1));
|
|
86911
86931
|
}
|
|
86912
86932
|
return Unit_instance;
|
|
86913
86933
|
};
|
|
@@ -86918,74 +86938,74 @@
|
|
|
86918
86938
|
}
|
|
86919
86939
|
function CallState$update$lambda_10($response) {
|
|
86920
86940
|
return function ($this$modify) {
|
|
86921
|
-
$this$modify.
|
|
86941
|
+
$this$modify.o44_1 = toResolved($this$modify.o44_1, new Started($response.o2u_1));
|
|
86922
86942
|
return Unit_instance;
|
|
86923
86943
|
};
|
|
86924
86944
|
}
|
|
86925
86945
|
function CallState$update$lambda_11($action, $requestId) {
|
|
86926
86946
|
return function ($this$modify) {
|
|
86927
|
-
$this$modify.
|
|
86947
|
+
$this$modify.n44_1 = toPending($this$modify.n44_1, new Left($action.z2b_1, $action.a2c_1), $requestId);
|
|
86928
86948
|
return Unit_instance;
|
|
86929
86949
|
};
|
|
86930
86950
|
}
|
|
86931
86951
|
function CallState$update$lambda_12($action) {
|
|
86932
86952
|
return function ($this$modify) {
|
|
86933
|
-
$this$modify.
|
|
86953
|
+
$this$modify.n44_1 = toResolved($this$modify.n44_1, new Left($action.b2m_1, $action.c2m_1));
|
|
86934
86954
|
return Unit_instance;
|
|
86935
86955
|
};
|
|
86936
86956
|
}
|
|
86937
86957
|
function CallState$update$lambda_13($callId, $action) {
|
|
86938
86958
|
return function ($this$modify) {
|
|
86939
|
-
$this$modify.
|
|
86940
|
-
$this$modify.
|
|
86959
|
+
$this$modify.o44_1 = new Resolved(new Completed($callId, $action.p36_1.t33_1));
|
|
86960
|
+
$this$modify.q44_1 = Disconnected_instance;
|
|
86941
86961
|
return Unit_instance;
|
|
86942
86962
|
};
|
|
86943
86963
|
}
|
|
86944
86964
|
function CallState$update$lambda_14($action) {
|
|
86945
86965
|
return function ($this$modify) {
|
|
86946
|
-
$this$modify.
|
|
86966
|
+
$this$modify.n44_1 = toFailed($this$modify.n44_1, $action.w27_1);
|
|
86947
86967
|
return Unit_instance;
|
|
86948
86968
|
};
|
|
86949
86969
|
}
|
|
86950
86970
|
function CallState$update$lambda_15($offer) {
|
|
86951
86971
|
return function ($this$modify) {
|
|
86952
|
-
$this$modify.
|
|
86972
|
+
$this$modify.p44_1 = $this$modify.p44_1.u48(new Offer_0($offer.k3j_1));
|
|
86953
86973
|
return Unit_instance;
|
|
86954
86974
|
};
|
|
86955
86975
|
}
|
|
86956
86976
|
function CallState$update$lambda_16($offer) {
|
|
86957
86977
|
return function ($this$modify) {
|
|
86958
|
-
$this$modify.
|
|
86978
|
+
$this$modify.p44_1 = $this$modify.p44_1.u48(new Answer_0($offer.m3j_1));
|
|
86959
86979
|
return Unit_instance;
|
|
86960
86980
|
};
|
|
86961
86981
|
}
|
|
86962
86982
|
function CallState$update$lambda_17($this$modify) {
|
|
86963
|
-
$this$modify.
|
|
86983
|
+
$this$modify.p44_1 = $this$modify.p44_1.u48(VOID, VOID, false);
|
|
86964
86984
|
return Unit_instance;
|
|
86965
86985
|
}
|
|
86966
86986
|
function CallState$update$lambda_18($action) {
|
|
86967
86987
|
return function ($this$modify) {
|
|
86968
|
-
$this$modify.
|
|
86988
|
+
$this$modify.p44_1 = $this$modify.p44_1.u48(VOID, new Answer_0($action.f39_1.n39_1));
|
|
86969
86989
|
return Unit_instance;
|
|
86970
86990
|
};
|
|
86971
86991
|
}
|
|
86972
86992
|
function CallState$update$lambda_19($action) {
|
|
86973
86993
|
return function ($this$modify) {
|
|
86974
|
-
$this$modify.
|
|
86975
|
-
var tmp_0 = $this$modify.
|
|
86994
|
+
$this$modify.r44_1 = $action.f25_1;
|
|
86995
|
+
var tmp_0 = $this$modify.q44_1;
|
|
86976
86996
|
if (tmp_0 instanceof Disconnected) {
|
|
86977
86997
|
return Unit_instance;
|
|
86978
86998
|
}
|
|
86979
86999
|
var tmp_1 = $this$modify;
|
|
86980
|
-
switch ($this$modify.
|
|
87000
|
+
switch ($this$modify.r44_1.v2_1) {
|
|
86981
87001
|
case 3:
|
|
86982
|
-
tmp_1.
|
|
87002
|
+
tmp_1.q44_1 = Connected_instance;
|
|
86983
87003
|
break;
|
|
86984
87004
|
case 4:
|
|
86985
|
-
tmp_1.
|
|
87005
|
+
tmp_1.q44_1 = new Reconnecting();
|
|
86986
87006
|
break;
|
|
86987
87007
|
default:
|
|
86988
|
-
tmp_1.
|
|
87008
|
+
tmp_1.q44_1 = $this$modify.q44_1;
|
|
86989
87009
|
break;
|
|
86990
87010
|
}
|
|
86991
87011
|
return Unit_instance;
|
|
@@ -87006,11 +87026,11 @@
|
|
|
87006
87026
|
};
|
|
87007
87027
|
}
|
|
87008
87028
|
function CallState$update$lambda_21($this$modify) {
|
|
87009
|
-
$this$modify.
|
|
87029
|
+
$this$modify.j44_1 = true;
|
|
87010
87030
|
return Unit_instance;
|
|
87011
87031
|
}
|
|
87012
87032
|
function CallState$update$lambda_22($this$modify) {
|
|
87013
|
-
var tmp = $this$modify.
|
|
87033
|
+
var tmp = $this$modify.q44_1;
|
|
87014
87034
|
var tmp0_safe_receiver = tmp instanceof Reconnecting ? tmp : null;
|
|
87015
87035
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n45_1;
|
|
87016
87036
|
var tmp_0;
|
|
@@ -87020,16 +87040,16 @@
|
|
|
87020
87040
|
tmp_0 = tmp1_elvis_lhs;
|
|
87021
87041
|
}
|
|
87022
87042
|
var currentRetryCount = tmp_0;
|
|
87023
|
-
$this$modify.
|
|
87043
|
+
$this$modify.q44_1 = new Reconnecting(currentRetryCount + 1 | 0);
|
|
87024
87044
|
return Unit_instance;
|
|
87025
87045
|
}
|
|
87026
87046
|
function CallState$update$lambda_23($this$modify) {
|
|
87027
|
-
$this$modify.
|
|
87047
|
+
$this$modify.j44_1 = false;
|
|
87028
87048
|
return Unit_instance;
|
|
87029
87049
|
}
|
|
87030
87050
|
function CallState$update$lambda_24($this$modify) {
|
|
87031
|
-
$this$modify.
|
|
87032
|
-
$this$modify.
|
|
87051
|
+
$this$modify.j44_1 = false;
|
|
87052
|
+
$this$modify.q44_1 = Disconnected_instance;
|
|
87033
87053
|
return Unit_instance;
|
|
87034
87054
|
}
|
|
87035
87055
|
function CallState(calls, conversationIdToCallId, currentUserId) {
|
|
@@ -87268,26 +87288,26 @@
|
|
|
87268
87288
|
};
|
|
87269
87289
|
function Joined(cid, mid, conversationName) {
|
|
87270
87290
|
conversationName = conversationName === VOID ? null : conversationName;
|
|
87271
|
-
this.
|
|
87272
|
-
this.
|
|
87273
|
-
this.
|
|
87291
|
+
this.t44_1 = cid;
|
|
87292
|
+
this.u44_1 = mid;
|
|
87293
|
+
this.v44_1 = conversationName;
|
|
87274
87294
|
}
|
|
87275
87295
|
protoOf(Joined).d34 = function () {
|
|
87276
|
-
return this.
|
|
87296
|
+
return this.t44_1;
|
|
87277
87297
|
};
|
|
87278
87298
|
protoOf(Joined).p4j = function (_set____db54di) {
|
|
87279
|
-
this.
|
|
87299
|
+
this.v44_1 = _set____db54di;
|
|
87280
87300
|
};
|
|
87281
87301
|
protoOf(Joined).u4f = function () {
|
|
87282
|
-
return this.
|
|
87302
|
+
return this.v44_1;
|
|
87283
87303
|
};
|
|
87284
87304
|
protoOf(Joined).toString = function () {
|
|
87285
|
-
return 'Joined(cid=' + this.
|
|
87305
|
+
return 'Joined(cid=' + this.t44_1 + ', mid=' + this.u44_1 + ', conversationName=' + this.v44_1 + ')';
|
|
87286
87306
|
};
|
|
87287
87307
|
protoOf(Joined).hashCode = function () {
|
|
87288
|
-
var result = getStringHashCode(this.
|
|
87289
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
87290
|
-
result = imul(result, 31) + (this.
|
|
87308
|
+
var result = getStringHashCode(this.t44_1);
|
|
87309
|
+
result = imul(result, 31) + getStringHashCode(this.u44_1) | 0;
|
|
87310
|
+
result = imul(result, 31) + (this.v44_1 == null ? 0 : getStringHashCode(this.v44_1)) | 0;
|
|
87291
87311
|
return result;
|
|
87292
87312
|
};
|
|
87293
87313
|
protoOf(Joined).equals = function (other) {
|
|
@@ -87295,11 +87315,11 @@
|
|
|
87295
87315
|
return true;
|
|
87296
87316
|
if (!(other instanceof Joined))
|
|
87297
87317
|
return false;
|
|
87298
|
-
if (!(this.
|
|
87318
|
+
if (!(this.t44_1 === other.t44_1))
|
|
87299
87319
|
return false;
|
|
87300
|
-
if (!(this.
|
|
87320
|
+
if (!(this.u44_1 === other.u44_1))
|
|
87301
87321
|
return false;
|
|
87302
|
-
if (!(this.
|
|
87322
|
+
if (!(this.v44_1 == other.v44_1))
|
|
87303
87323
|
return false;
|
|
87304
87324
|
return true;
|
|
87305
87325
|
};
|