UNPKG

@cpaassdk/cpaas-sdk

Version:
793 lines (791 loc) 1.2 MB
(function (root, factory) { if (typeof define === 'function' && define.amd) define(['exports', '@aws-amplify/auth', './kotlin-kotlin-stdlib-js-ir.js', './kotlinx-serialization-kotlinx-serialization-core-js-ir.js', './kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js', './kotlinx-serialization-kotlinx-serialization-json-js-ir.js', './ktor-ktor-client-serialization-js-ir.js', './ktor-ktor-client-json-js-ir.js', './ktor-ktor-client-core-js-ir.js', './ktor-ktor-http-js-ir.js', './ktor-ktor-utils-js-ir.js', './indexeddb-external.js'], factory); else if (typeof exports === 'object') factory(module.exports, require('@aws-amplify/auth'), require('./kotlin-kotlin-stdlib-js-ir.js'), require('./kotlinx-serialization-kotlinx-serialization-core-js-ir.js'), require('./kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js'), require('./kotlinx-serialization-kotlinx-serialization-json-js-ir.js'), require('./ktor-ktor-client-serialization-js-ir.js'), require('./ktor-ktor-client-json-js-ir.js'), require('./ktor-ktor-client-core-js-ir.js'), require('./ktor-ktor-http-js-ir.js'), require('./ktor-ktor-utils-js-ir.js'), require('./indexeddb-external.js')); else { if (typeof Auth === 'undefined') { throw new Error("Error loading module 'cpaas-api'. Its dependency '@aws-amplify/auth' was not found. Please, check whether '@aws-amplify/auth' is loaded prior to 'cpaas-api'."); } if (typeof this['kotlin-kotlin-stdlib-js-ir'] === 'undefined') { throw new Error("Error loading module 'cpaas-api'. Its dependency 'kotlin-kotlin-stdlib-js-ir' was not found. Please, check whether 'kotlin-kotlin-stdlib-js-ir' is loaded prior to 'cpaas-api'."); } if (typeof this['kotlinx-serialization-kotlinx-serialization-core-js-ir'] === 'undefined') { throw new Error("Error loading module 'cpaas-api'. Its dependency 'kotlinx-serialization-kotlinx-serialization-core-js-ir' was not found. Please, check whether 'kotlinx-serialization-kotlinx-serialization-core-js-ir' is loaded prior to 'cpaas-api'."); } if (typeof this['kotlinx.coroutines-kotlinx-coroutines-core-js-ir'] === 'undefined') { throw new Error("Error loading module 'cpaas-api'. Its dependency 'kotlinx.coroutines-kotlinx-coroutines-core-js-ir' was not found. Please, check whether 'kotlinx.coroutines-kotlinx-coroutines-core-js-ir' is loaded prior to 'cpaas-api'."); } if (typeof this['kotlinx-serialization-kotlinx-serialization-json-js-ir'] === 'undefined') { throw new Error("Error loading module 'cpaas-api'. Its dependency 'kotlinx-serialization-kotlinx-serialization-json-js-ir' was not found. Please, check whether 'kotlinx-serialization-kotlinx-serialization-json-js-ir' is loaded prior to 'cpaas-api'."); } if (typeof this['ktor-ktor-client-serialization-js-ir'] === 'undefined') { throw new Error("Error loading module 'cpaas-api'. Its dependency 'ktor-ktor-client-serialization-js-ir' was not found. Please, check whether 'ktor-ktor-client-serialization-js-ir' is loaded prior to 'cpaas-api'."); } if (typeof this['ktor-ktor-client-json-js-ir'] === 'undefined') { throw new Error("Error loading module 'cpaas-api'. Its dependency 'ktor-ktor-client-json-js-ir' was not found. Please, check whether 'ktor-ktor-client-json-js-ir' is loaded prior to 'cpaas-api'."); } if (typeof this['ktor-ktor-client-core-js-ir'] === 'undefined') { throw new Error("Error loading module 'cpaas-api'. Its dependency 'ktor-ktor-client-core-js-ir' was not found. Please, check whether 'ktor-ktor-client-core-js-ir' is loaded prior to 'cpaas-api'."); } if (typeof this['ktor-ktor-http-js-ir'] === 'undefined') { throw new Error("Error loading module 'cpaas-api'. Its dependency 'ktor-ktor-http-js-ir' was not found. Please, check whether 'ktor-ktor-http-js-ir' is loaded prior to 'cpaas-api'."); } if (typeof this['ktor-ktor-utils-js-ir'] === 'undefined') { throw new Error("Error loading module 'cpaas-api'. Its dependency 'ktor-ktor-utils-js-ir' was not found. Please, check whether 'ktor-ktor-utils-js-ir' is loaded prior to 'cpaas-api'."); } if (typeof this['indexeddb-external'] === 'undefined') { throw new Error("Error loading module 'cpaas-api'. Its dependency 'indexeddb-external' was not found. Please, check whether 'indexeddb-external' is loaded prior to 'cpaas-api'."); } root['cpaas-api'] = factory(typeof this['cpaas-api'] === 'undefined' ? {} : this['cpaas-api'], Auth, this['kotlin-kotlin-stdlib-js-ir'], this['kotlinx-serialization-kotlinx-serialization-core-js-ir'], this['kotlinx.coroutines-kotlinx-coroutines-core-js-ir'], this['kotlinx-serialization-kotlinx-serialization-json-js-ir'], this['ktor-ktor-client-serialization-js-ir'], this['ktor-ktor-client-json-js-ir'], this['ktor-ktor-client-core-js-ir'], this['ktor-ktor-http-js-ir'], this['ktor-ktor-utils-js-ir'], this['indexeddb-external']); } }(this, function (_, Auth, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json, kotlin_io_ktor_ktor_client_serialization, kotlin_io_ktor_ktor_client_json, kotlin_io_ktor_ktor_client_core, kotlin_io_ktor_ktor_http, kotlin_io_ktor_ktor_utils, kotlin_com_juul_indexeddb_external) { 'use strict'; //region block: imports var imul = Math.imul; var getKClassFromExpression = kotlin_kotlin.$_$.c; var ensureNotNull = kotlin_kotlin.$_$.dd; var lazy = kotlin_kotlin.$_$.jd; var Unit_getInstance = kotlin_kotlin.$_$.h4; var objectMeta = kotlin_kotlin.$_$.da; var KProperty1 = kotlin_kotlin.$_$.va; var getPropertyCallableRef = kotlin_kotlin.$_$.d9; var interfaceMeta = kotlin_kotlin.$_$.g9; var Enum = kotlin_kotlin.$_$.gc; var classMeta = kotlin_kotlin.$_$.x8; var hashCode = kotlin_kotlin.$_$.f9; var THROW_CCE = kotlin_kotlin.$_$.qc; var isObject = kotlin_kotlin.$_$.s9; var THROW_ISE = kotlin_kotlin.$_$.rc; var equals = kotlin_kotlin.$_$.z8; var charSequenceLength = kotlin_kotlin.$_$.v8; var numberRangeToNumber = kotlin_kotlin.$_$.y9; var Default_getInstance = kotlin_kotlin.$_$.y3; var random = kotlin_kotlin.$_$.pa; var toString = kotlin_kotlin.$_$.ha; var getNumberHashCode = kotlin_kotlin.$_$.c9; var getStringHashCode = kotlin_kotlin.$_$.e9; var noWhenBranchMatchedException = kotlin_kotlin.$_$.kd; var EnumDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z1; var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b2; var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c2; var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.r1; var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f2; var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o; var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g; var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j2; var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r; var ArrayList_init_$Create$ = kotlin_kotlin.$_$.a1; var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.j1; var MutableStateFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.w; var getKClass = kotlin_kotlin.$_$.d; var PolymorphicSerializer_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c; var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.f; var lazy_0 = kotlin_kotlin.$_$.id; var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h2; var SerializersModuleBuilder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.m2; var PolymorphicModuleBuilder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l2; var DoubleSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p; var EnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a2; var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v; var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x1; var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q; var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.z3; var ReferenceArraySerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g2; var SealedClassSerializer_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d; var LinkedHashMapSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d2; var ArrayDeque_init_$Create$ = kotlin_kotlin.$_$.y; var Exception = kotlin_kotlin.$_$.ic; var Exception_init_$Init$ = kotlin_kotlin.$_$.w1; var captureStack = kotlin_kotlin.$_$.s8; var CoroutineImpl = kotlin_kotlin.$_$.h8; var ProducerScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.t; var isInterface = kotlin_kotlin.$_$.p9; var awaitClose = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a; var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.s7; var callbackFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.x; var SuspendFunction1 = kotlin_kotlin.$_$.j8; var listOf = kotlin_kotlin.$_$.o6; var Long = kotlin_kotlin.$_$.lc; var Json$default = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.a; var arrayOf = kotlin_kotlin.$_$.ad; var createKType = kotlin_kotlin.$_$.a; var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x2; var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q2; var mutableListOf = kotlin_kotlin.$_$.t6; var Map = kotlin_kotlin.$_$.u4; var launch$default = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.m; var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.v; var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e1; var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.q; var CoroutineScope_0 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.d1; var toLong = kotlin_kotlin.$_$.sb; var toString_0 = kotlin_kotlin.$_$.od; var numberToLong = kotlin_kotlin.$_$.ca; var equals$default = kotlin_kotlin.$_$.n; var KotlinxSerializer = kotlin_io_ktor_ktor_client_serialization.$_$.a; var Feature_getInstance = kotlin_io_ktor_ktor_client_json.$_$.a; var HttpClient = kotlin_io_ktor_ktor_client_core.$_$.n; var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.nd; var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.e2; var cancel$default = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l; var throwKotlinNothingValueException = kotlin_kotlin.$_$.md; var get_isActive = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.o1; var NotImplementedError = kotlin_kotlin.$_$.nc; var get_DEFAULT_PORT = kotlin_io_ktor_ktor_http.$_$.u; var EmptyContent_getInstance = kotlin_io_ktor_ktor_client_core.$_$.d; var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.g; var url$default = kotlin_io_ktor_ktor_client_core.$_$.a; var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.j; var takeFrom = kotlin_io_ktor_ktor_http.$_$.i1; var HttpStatement = kotlin_io_ktor_ktor_client_core.$_$.k; var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.j; var JsType_getInstance = kotlin_io_ktor_ktor_utils.$_$.d; var typeInfoImpl = kotlin_io_ktor_ktor_utils.$_$.l; var complete = kotlin_io_ktor_ktor_client_core.$_$.l; var Companion_getInstance_0 = kotlin_kotlin.$_$.c4; var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.z2; var createFailure = kotlin_kotlin.$_$.cd; var Result__exceptionOrNull_impl_p6xea9 = kotlin_kotlin.$_$.a3; var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.c3; var indexOf$default = kotlin_kotlin.$_$.p; var split$default = kotlin_kotlin.$_$.v; var copyToArray = kotlin_kotlin.$_$.x5; var joinToString$default = kotlin_kotlin.$_$.i; var isCharSequence = kotlin_kotlin.$_$.l9; var trim = kotlin_kotlin.$_$.zb; var replace$default = kotlin_kotlin.$_$.t; var contains$default = kotlin_kotlin.$_$.k; var StringBuilder_init_$Create$_0 = kotlin_kotlin.$_$.s1; var take = kotlin_kotlin.$_$.lb; var contains = kotlin_kotlin.$_$.xa; var toLong_0 = kotlin_kotlin.$_$.fa; var lastOrNull = kotlin_kotlin.$_$.m6; var newThrowable = kotlin_kotlin.$_$.x9; var to = kotlin_kotlin.$_$.pd; var mapOf = kotlin_kotlin.$_$.r6; var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.q2; var padStart = kotlin_kotlin.$_$.jb; var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.z; var arrayIterator = kotlin_kotlin.$_$.q8; var toList = kotlin_kotlin.$_$.i7; var SuspendFunction4 = kotlin_kotlin.$_$.m8; var get_indexedDB = kotlin_com_juul_indexeddb_external.$_$.a; var isArray = kotlin_kotlin.$_$.h9; var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.d; var println = kotlin_kotlin.$_$.o8; var intercepted = kotlin_kotlin.$_$.u7; var get_MODE_CANCELLABLE = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i1; var CancellableContinuationImpl = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.z; var Exception_init_$Init$_0 = kotlin_kotlin.$_$.x1; var await_0 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b; var json = kotlin_kotlin.$_$.v9; var plus = kotlin_kotlin.$_$.ld; var toShort = kotlin_kotlin.$_$.ga; var isNumber = kotlin_kotlin.$_$.r9; var numberToDouble = kotlin_kotlin.$_$.aa; var numberToInt = kotlin_kotlin.$_$.ba; var lastIndexOf$default = kotlin_kotlin.$_$.r; var HashSet_init_$Create$ = kotlin_kotlin.$_$.g1; var asList = kotlin_kotlin.$_$.h5; var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.l1; //endregion //region block: pre-declaration REGISTRATION_STATE.prototype = Object.create(Enum.prototype); REGISTRATION_STATE.prototype.constructor = REGISTRATION_STATE; function onRinging() { } function onConnected() { } function onConnectedFailure(reason) { } function onCallEnd(reason) { } function onReconnecting(reason) { } CPaaSReason.prototype = Object.create(Enum.prototype); CPaaSReason.prototype.constructor = CPaaSReason; CPaaSParticipantEvent.prototype = Object.create(Enum.prototype); CPaaSParticipantEvent.prototype.constructor = CPaaSParticipantEvent; function onParticipantEvent(event, pIds) { } function onVideo(pid, event, trackWrapper) { } VideoEvent.prototype = Object.create(Enum.prototype); VideoEvent.prototype.constructor = VideoEvent; VideoCodec.prototype = Object.create(Enum.prototype); VideoCodec.prototype.constructor = VideoCodec; StateValidation.prototype = Object.create(Enum.prototype); StateValidation.prototype.constructor = StateValidation; CallData.prototype = Object.create(ServiceData.prototype); CallData.prototype.constructor = CallData; StatusCode.prototype = Object.create(Enum.prototype); StatusCode.prototype.constructor = StatusCode; Reason.prototype = Object.create(Enum.prototype); Reason.prototype.constructor = Reason; CandidateType.prototype = Object.create(Enum.prototype); CandidateType.prototype.constructor = CandidateType; ServiceType.prototype = Object.create(Enum.prototype); ServiceType.prototype.constructor = ServiceType; CallOptionService.prototype = Object.create(Enum.prototype); CallOptionService.prototype.constructor = CallOptionService; CallState.prototype = Object.create(Enum.prototype); CallState.prototype.constructor = CallState; AudioStatus.prototype = Object.create(Enum.prototype); AudioStatus.prototype.constructor = AudioStatus; PlatformName.prototype = Object.create(Enum.prototype); PlatformName.prototype.constructor = PlatformName; StateValidation_0.prototype = Object.create(Enum.prototype); StateValidation_0.prototype.constructor = StateValidation_0; RoomData.prototype = Object.create(ServiceData.prototype); RoomData.prototype.constructor = RoomData; function onIncomingCall(callStartBody) { } function onIncomingRoom(roomInvitationBody) { } function onTerminateCall(terminateBody) { } function onCallStatus(callStatusBody) { } function onParticipantsList(participantsList) { } function onParticipantUpdate(participantUpdate) { } function onParticipantLeave(participantLeave) { } function onCurrentSpeaker(currentSpeaker) { } function onLSN(lsn) { } function onSetEncodingParameters(parameters) { } function onApplyConstraints(constraints) { } OnIncomingCall.prototype = Object.create(CallMessageEvent.prototype); OnIncomingCall.prototype.constructor = OnIncomingCall; OnIncomingRoom.prototype = Object.create(CallMessageEvent.prototype); OnIncomingRoom.prototype.constructor = OnIncomingRoom; OnTerminateCall.prototype = Object.create(CallMessageEvent.prototype); OnTerminateCall.prototype.constructor = OnTerminateCall; OnCallStatus.prototype = Object.create(CallMessageEvent.prototype); OnCallStatus.prototype.constructor = OnCallStatus; OnParticipantsList.prototype = Object.create(CallMessageEvent.prototype); OnParticipantsList.prototype.constructor = OnParticipantsList; OnParticipantUpdate.prototype = Object.create(CallMessageEvent.prototype); OnParticipantUpdate.prototype.constructor = OnParticipantUpdate; OnParticipantLeave.prototype = Object.create(CallMessageEvent.prototype); OnParticipantLeave.prototype.constructor = OnParticipantLeave; OnCurrentSpeaker.prototype = Object.create(CallMessageEvent.prototype); OnCurrentSpeaker.prototype.constructor = OnCurrentSpeaker; OnLSN.prototype = Object.create(CallMessageEvent.prototype); OnLSN.prototype.constructor = OnLSN; OnSetEncodingParameters.prototype = Object.create(CallMessageEvent.prototype); OnSetEncodingParameters.prototype.constructor = OnSetEncodingParameters; OnApplyConstraints.prototype = Object.create(CallMessageEvent.prototype); OnApplyConstraints.prototype.constructor = OnApplyConstraints; OnOpenCameraOffer.prototype = Object.create(CallMessageEvent.prototype); OnOpenCameraOffer.prototype.constructor = OnOpenCameraOffer; OnCloseCameraOffer.prototype = Object.create(CallMessageEvent.prototype); OnCloseCameraOffer.prototype.constructor = OnCloseCameraOffer; DCMessagesBase.prototype = Object.create(Message.prototype); DCMessagesBase.prototype.constructor = DCMessagesBase; GetMsStatus.prototype = Object.create(DCMessagesBase.prototype); GetMsStatus.prototype.constructor = GetMsStatus; Ack.prototype = Object.create(DCMessagesBase.prototype); Ack.prototype.constructor = Ack; UpdateParticipantStatus.prototype = Object.create(DCMessagesBase.prototype); UpdateParticipantStatus.prototype.constructor = UpdateParticipantStatus; Layout_0.prototype = Object.create(DCMessagesBase.prototype); Layout_0.prototype.constructor = Layout_0; ParticipantsList.prototype = Object.create(DCMessagesBase.prototype); ParticipantsList.prototype.constructor = ParticipantsList; ParticipantLeave.prototype = Object.create(DCMessagesBase.prototype); ParticipantLeave.prototype.constructor = ParticipantLeave; CurrentSpeaker.prototype = Object.create(DCMessagesBase.prototype); CurrentSpeaker.prototype.constructor = CurrentSpeaker; LSN.prototype = Object.create(DCMessagesBase.prototype); LSN.prototype.constructor = LSN; Statistics.prototype = Object.create(DCMessagesBase.prototype); Statistics.prototype.constructor = Statistics; History.prototype = Object.create(DCMessagesBase.prototype); History.prototype.constructor = History; SetEncodingParameters.prototype = Object.create(DCMessagesBase.prototype); SetEncodingParameters.prototype.constructor = SetEncodingParameters; ApplyConstraints.prototype = Object.create(DCMessagesBase.prototype); ApplyConstraints.prototype.constructor = ApplyConstraints; RegisterBody.prototype = Object.create(BaseBody.prototype); RegisterBody.prototype.constructor = RegisterBody; RegisterAckBody.prototype = Object.create(BaseBody.prototype); RegisterAckBody.prototype.constructor = RegisterAckBody; CallStartBody.prototype = Object.create(BaseBody.prototype); CallStartBody.prototype.constructor = CallStartBody; OfferBody.prototype = Object.create(BaseBody.prototype); OfferBody.prototype.constructor = OfferBody; CallStatusBody.prototype = Object.create(BaseBody.prototype); CallStatusBody.prototype.constructor = CallStatusBody; AnswerBody.prototype = Object.create(BaseBody.prototype); AnswerBody.prototype.constructor = AnswerBody; TerminateAckBody.prototype = Object.create(BaseBody.prototype); TerminateAckBody.prototype.constructor = TerminateAckBody; TerminateBody.prototype = Object.create(BaseBody.prototype); TerminateBody.prototype.constructor = TerminateBody; CreateRoomBody.prototype = Object.create(BaseBody.prototype); CreateRoomBody.prototype.constructor = CreateRoomBody; CreateRoomAckBody.prototype = Object.create(BaseBody.prototype); CreateRoomAckBody.prototype.constructor = CreateRoomAckBody; JoinBody.prototype = Object.create(BaseBody.prototype); JoinBody.prototype.constructor = JoinBody; Invitation.prototype = Object.create(BaseBody.prototype); Invitation.prototype.constructor = Invitation; ModifyCallBody.prototype = Object.create(BaseBody.prototype); ModifyCallBody.prototype.constructor = ModifyCallBody; ModifyCallReason.prototype = Object.create(Enum.prototype); ModifyCallReason.prototype.constructor = ModifyCallReason; ModifyCallAckBody.prototype = Object.create(BaseBody.prototype); ModifyCallAckBody.prototype.constructor = ModifyCallAckBody; AckBody.prototype = Object.create(BaseBody.prototype); AckBody.prototype.constructor = AckBody; GetMSStatusBody.prototype = Object.create(BaseBody.prototype); GetMSStatusBody.prototype.constructor = GetMSStatusBody; UpdateParticipantStatusBody.prototype = Object.create(BaseBody.prototype); UpdateParticipantStatusBody.prototype.constructor = UpdateParticipantStatusBody; LayoutBody.prototype = Object.create(BaseBody.prototype); LayoutBody.prototype.constructor = LayoutBody; ParticipantsListBody.prototype = Object.create(BaseBody.prototype); ParticipantsListBody.prototype.constructor = ParticipantsListBody; DataChannelParticipant.prototype = Object.create(BaseBody.prototype); DataChannelParticipant.prototype.constructor = DataChannelParticipant; ParticipantLeaveBody.prototype = Object.create(BaseBody.prototype); ParticipantLeaveBody.prototype.constructor = ParticipantLeaveBody; CurrentSpeakerBody.prototype = Object.create(BaseBody.prototype); CurrentSpeakerBody.prototype.constructor = CurrentSpeakerBody; LSNBody.prototype = Object.create(BaseBody.prototype); LSNBody.prototype.constructor = LSNBody; ParticipantLSNInfo.prototype = Object.create(BaseBody.prototype); ParticipantLSNInfo.prototype.constructor = ParticipantLSNInfo; StatisticsBody.prototype = Object.create(BaseBody.prototype); StatisticsBody.prototype.constructor = StatisticsBody; LayoutResponse.prototype = Object.create(BaseBody.prototype); LayoutResponse.prototype.constructor = LayoutResponse; HistoryBody.prototype = Object.create(BaseBody.prototype); HistoryBody.prototype.constructor = HistoryBody; EncodingBody.prototype = Object.create(BaseBody.prototype); EncodingBody.prototype.constructor = EncodingBody; Connection.prototype = Object.create(Enum.prototype); Connection.prototype.constructor = Connection; EncodingParameters.prototype = Object.create(BaseBody.prototype); EncodingParameters.prototype.constructor = EncodingParameters; ConstraintsBody.prototype = Object.create(BaseBody.prototype); ConstraintsBody.prototype.constructor = ConstraintsBody; Constraints.prototype = Object.create(BaseBody.prototype); Constraints.prototype.constructor = Constraints; Width.prototype = Object.create(BaseBody.prototype); Width.prototype.constructor = Width; Height.prototype = Object.create(BaseBody.prototype); Height.prototype.constructor = Height; FrameRate.prototype = Object.create(BaseBody.prototype); FrameRate.prototype.constructor = FrameRate; MessageType.prototype = Object.create(Enum.prototype); MessageType.prototype.constructor = MessageType; WsMessage.prototype = Object.create(Message.prototype); WsMessage.prototype.constructor = WsMessage; WsMessageHeaders.prototype = Object.create(MessageHeaders.prototype); WsMessageHeaders.prototype.constructor = WsMessageHeaders; MeetingNameBarItem.prototype = Object.create(BarItem.prototype); MeetingNameBarItem.prototype.constructor = MeetingNameBarItem; ActionBarItem.prototype = Object.create(BarItem.prototype); ActionBarItem.prototype.constructor = ActionBarItem; BarItemType.prototype = Object.create(Enum.prototype); BarItemType.prototype.constructor = BarItemType; Action.prototype = Object.create(Enum.prototype); Action.prototype.constructor = Action; GridItemDirection.prototype = Object.create(Enum.prototype); GridItemDirection.prototype.constructor = GridItemDirection; Position.prototype = Object.create(Enum.prototype); Position.prototype.constructor = Position; ResourceType.prototype = Object.create(Enum.prototype); ResourceType.prototype.constructor = ResourceType; UiSize.prototype = Object.create(Enum.prototype); UiSize.prototype.constructor = UiSize; UiElementSize.prototype = Object.create(Enum.prototype); UiElementSize.prototype.constructor = UiElementSize; UiShapeStyle.prototype = Object.create(Enum.prototype); UiShapeStyle.prototype.constructor = UiShapeStyle; DisplayNameType.prototype = Object.create(Enum.prototype); DisplayNameType.prototype.constructor = DisplayNameType; UserProfileType.prototype = Object.create(Enum.prototype); UserProfileType.prototype.constructor = UserProfileType; CPaaSError.prototype = Object.create(Exception.prototype); CPaaSError.prototype.constructor = CPaaSError; CallStartError.prototype = Object.create(CPaaSError.prototype); CallStartError.prototype.constructor = CallStartError; NotRegisteredError.prototype = Object.create(CallStartError.prototype); NotRegisteredError.prototype.constructor = NotRegisteredError; CallAlreadyExistError.prototype = Object.create(CallStartError.prototype); CallAlreadyExistError.prototype.constructor = CallAlreadyExistError; ConnectionError.prototype = Object.create(CallStartError.prototype); ConnectionError.prototype.constructor = ConnectionError; OpenCloseVideoError.prototype = Object.create(CPaaSError.prototype); OpenCloseVideoError.prototype.constructor = OpenCloseVideoError; CameraPermissionError.prototype = Object.create(OpenCloseVideoError.prototype); CameraPermissionError.prototype.constructor = CameraPermissionError; ConnectionError_0.prototype = Object.create(OpenCloseVideoError.prototype); ConnectionError_0.prototype.constructor = ConnectionError_0; LogLevel.prototype = Object.create(Enum.prototype); LogLevel.prototype.constructor = LogLevel; DcMessageManager$getCallMessages$slambda.prototype = Object.create(CoroutineImpl.prototype); DcMessageManager$getCallMessages$slambda.prototype.constructor = DcMessageManager$getCallMessages$slambda; DcMessageManager.prototype = Object.create(MessageManager.prototype); DcMessageManager.prototype.constructor = DcMessageManager; ServiceManagerList$startListeningToIncomingMessages$slambda$slambda.prototype = Object.create(CoroutineImpl.prototype); ServiceManagerList$startListeningToIncomingMessages$slambda$slambda.prototype.constructor = ServiceManagerList$startListeningToIncomingMessages$slambda$slambda; ServiceManagerList$startListeningToIncomingMessages$slambda.prototype = Object.create(CoroutineImpl.prototype); ServiceManagerList$startListeningToIncomingMessages$slambda.prototype.constructor = ServiceManagerList$startListeningToIncomingMessages$slambda; RegisterState.prototype = Object.create(Enum.prototype); RegisterState.prototype.constructor = RegisterState; WsMessageManager$getCallMessages$slambda.prototype = Object.create(CoroutineImpl.prototype); WsMessageManager$getCallMessages$slambda.prototype.constructor = WsMessageManager$getCallMessages$slambda; WsMessageManager.prototype = Object.create(MessageManager.prototype); WsMessageManager.prototype.constructor = WsMessageManager; VideoManager$startListeningToIncomingMessages$slambda$slambda.prototype = Object.create(CoroutineImpl.prototype); VideoManager$startListeningToIncomingMessages$slambda$slambda.prototype.constructor = VideoManager$startListeningToIncomingMessages$slambda$slambda; VideoManager$startListeningToIncomingMessages$slambda.prototype = Object.create(CoroutineImpl.prototype); VideoManager$startListeningToIncomingMessages$slambda.prototype.constructor = VideoManager$startListeningToIncomingMessages$slambda; VideoManager.prototype = Object.create(ServiceManager.prototype); VideoManager.prototype.constructor = VideoManager; VoiceManager.prototype = Object.create(ServiceManager.prototype); VoiceManager.prototype.constructor = VoiceManager; State.prototype = Object.create(Enum.prototype); State.prototype.constructor = State; WebSocketStatusCodes.prototype = Object.create(Enum.prototype); WebSocketStatusCodes.prototype.constructor = WebSocketStatusCodes; DCOperation.prototype = Object.create(NWOperation.prototype); DCOperation.prototype.constructor = DCOperation; OperationType.prototype = Object.create(Enum.prototype); OperationType.prototype.constructor = OperationType; NWOperation$execute$slambda$slambda.prototype = Object.create(CoroutineImpl.prototype); NWOperation$execute$slambda$slambda.prototype.constructor = NWOperation$execute$slambda$slambda; NWOperation$execute$slambda.prototype = Object.create(CoroutineImpl.prototype); NWOperation$execute$slambda.prototype.constructor = NWOperation$execute$slambda; WSOperation$executeWhenRegistered$slambda$slambda.prototype = Object.create(CoroutineImpl.prototype); WSOperation$executeWhenRegistered$slambda$slambda.prototype.constructor = WSOperation$executeWhenRegistered$slambda$slambda; WSOperation$executeWhenConnected$slambda$slambda.prototype = Object.create(CoroutineImpl.prototype); WSOperation$executeWhenConnected$slambda$slambda.prototype.constructor = WSOperation$executeWhenConnected$slambda$slambda; WSOperation$executeWhenRegistered$slambda.prototype = Object.create(CoroutineImpl.prototype); WSOperation$executeWhenRegistered$slambda.prototype.constructor = WSOperation$executeWhenRegistered$slambda; WSOperation$executeWhenConnected$slambda.prototype = Object.create(CoroutineImpl.prototype); WSOperation$executeWhenConnected$slambda.prototype.constructor = WSOperation$executeWhenConnected$slambda; WSOperation.prototype = Object.create(NWOperation.prototype); WSOperation.prototype.constructor = WSOperation; GetMsStatusOp.prototype = Object.create(DCOperation.prototype); GetMsStatusOp.prototype.constructor = GetMsStatusOp; LayoutOp.prototype = Object.create(DCOperation.prototype); LayoutOp.prototype.constructor = LayoutOp; UpdateMyStatusOp.prototype = Object.create(DCOperation.prototype); UpdateMyStatusOp.prototype.constructor = UpdateMyStatusOp; CognitoAuthOp.prototype = Object.create(NWOperation.prototype); CognitoAuthOp.prototype.constructor = CognitoAuthOp; CreateCallIdOp.prototype = Object.create(WSOperation.prototype); CreateCallIdOp.prototype.constructor = CreateCallIdOp; OpenWsOp$executeWhenNetworkAvailable$lambda$slambda.prototype = Object.create(CoroutineImpl.prototype); OpenWsOp$executeWhenNetworkAvailable$lambda$slambda.prototype.constructor = OpenWsOp$executeWhenNetworkAvailable$lambda$slambda; OpenWsOp.prototype = Object.create(NWOperation.prototype); OpenWsOp.prototype.constructor = OpenWsOp; PopDiscoveryOp$executeWhenNetworkAvailable$slambda.prototype = Object.create(CoroutineImpl.prototype); PopDiscoveryOp$executeWhenNetworkAvailable$slambda.prototype.constructor = PopDiscoveryOp$executeWhenNetworkAvailable$slambda; PopDiscoveryOp.prototype = Object.create(NWOperation.prototype); PopDiscoveryOp.prototype.constructor = PopDiscoveryOp; CreateConnectionAnswerOp.prototype = Object.create(NWOperation.prototype); CreateConnectionAnswerOp.prototype.constructor = CreateConnectionAnswerOp; CloseRemoteCameraOp.prototype = Object.create(DCOperation.prototype); CloseRemoteCameraOp.prototype.constructor = CloseRemoteCameraOp; EndCallAckOp.prototype = Object.create(WSOperation.prototype); EndCallAckOp.prototype.constructor = EndCallAckOp; EndCallOp.prototype = Object.create(WSOperation.prototype); EndCallOp.prototype.constructor = EndCallOp; ModifyCallOp.prototype = Object.create(WSOperation.prototype); ModifyCallOp.prototype.constructor = ModifyCallOp; OpenRemoteCameraOp.prototype = Object.create(DCOperation.prototype); OpenRemoteCameraOp.prototype.constructor = OpenRemoteCameraOp; RegisterOp.prototype = Object.create(WSOperation.prototype); RegisterOp.prototype.constructor = RegisterOp; SendAnswerOp.prototype = Object.create(WSOperation.prototype); SendAnswerOp.prototype.constructor = SendAnswerOp; SendOfferOp.prototype = Object.create(WSOperation.prototype); SendOfferOp.prototype.constructor = SendOfferOp; SendRejectOp.prototype = Object.create(WSOperation.prototype); SendRejectOp.prototype.constructor = SendRejectOp; State_0.prototype = Object.create(Enum.prototype); State_0.prototype.constructor = State_0; function createOfferSDP$default(iceRestart, completeListener, $mask0, $handler) { if (!(($mask0 & 1) === 0)) iceRestart = false; return $handler == null ? this.u5v(iceRestart, completeListener) : $handler(iceRestart, completeListener); } SessionDescriptionType.prototype = Object.create(Enum.prototype); SessionDescriptionType.prototype.constructor = SessionDescriptionType; MavConnectionState.prototype = Object.create(Enum.prototype); MavConnectionState.prototype.constructor = MavConnectionState; TransceiverDirection.prototype = Object.create(Enum.prototype); TransceiverDirection.prototype.constructor = TransceiverDirection; MavIceGatheringState.prototype = Object.create(Enum.prototype); MavIceGatheringState.prototype.constructor = MavIceGatheringState; function onInitialized() { } function onIceCandidate(candidate) { } function onIceGatheringChange(gatheringState) { } function onConnectionStateChange(connectionState) { } CPaaSActions$export$slambda.prototype = Object.create(CoroutineImpl.prototype); CPaaSActions$export$slambda.prototype.constructor = CPaaSActions$export$slambda; IndexedDbHandler$create$slambda.prototype = Object.create(CoroutineImpl.prototype); IndexedDbHandler$create$slambda.prototype.constructor = IndexedDbHandler$create$slambda; IndexedDbHandler$createObjectStore$slambda.prototype = Object.create(CoroutineImpl.prototype); IndexedDbHandler$createObjectStore$slambda.prototype.constructor = IndexedDbHandler$createObjectStore$slambda; IndexedDbHandler$export$slambda.prototype = Object.create(CoroutineImpl.prototype); IndexedDbHandler$export$slambda.prototype.constructor = IndexedDbHandler$export$slambda; IndexedDbHandler$writeValues$slambda.prototype = Object.create(CoroutineImpl.prototype); IndexedDbHandler$writeValues$slambda.prototype.constructor = IndexedDbHandler$writeValues$slambda; $createCOROUTINE$0.prototype = Object.create(CoroutineImpl.prototype); $createCOROUTINE$0.prototype.constructor = $createCOROUTINE$0; $createObjectStoreCOROUTINE$1.prototype = Object.create(CoroutineImpl.prototype); $createObjectStoreCOROUTINE$1.prototype.constructor = $createObjectStoreCOROUTINE$1; $deleteCOROUTINE$2.prototype = Object.create(CoroutineImpl.prototype); $deleteCOROUTINE$2.prototype.constructor = $deleteCOROUTINE$2; $exportCOROUTINE$3.prototype = Object.create(CoroutineImpl.prototype); $exportCOROUTINE$3.prototype.constructor = $exportCOROUTINE$3; $writeValuesCOROUTINE$4.prototype = Object.create(CoroutineImpl.prototype); $writeValuesCOROUTINE$4.prototype.constructor = $writeValuesCOROUTINE$4; PlatformLogger$initIndexedDB$slambda.prototype = Object.create(CoroutineImpl.prototype); PlatformLogger$initIndexedDB$slambda.prototype.constructor = PlatformLogger$initIndexedDB$slambda; PlatformLogger$writeToIndexDB$slambda.prototype = Object.create(CoroutineImpl.prototype); PlatformLogger$writeToIndexDB$slambda.prototype.constructor = PlatformLogger$writeToIndexDB$slambda; PlatformLogger$deleteLogFile$slambda.prototype = Object.create(CoroutineImpl.prototype); PlatformLogger$deleteLogFile$slambda.prototype.constructor = PlatformLogger$deleteLogFile$slambda; PlatformLogger$addInitiationLogsToDB$slambda.prototype = Object.create(CoroutineImpl.prototype); PlatformLogger$addInitiationLogsToDB$slambda.prototype.constructor = PlatformLogger$addInitiationLogsToDB$slambda; Database$transaction$slambda.prototype = Object.create(CoroutineImpl.prototype); Database$transaction$slambda.prototype.constructor = Database$transaction$slambda; Database$writeTransaction$slambda.prototype = Object.create(CoroutineImpl.prototype); Database$writeTransaction$slambda.prototype.constructor = Database$writeTransaction$slambda; openDatabase$slambda.prototype = Object.create(CoroutineImpl.prototype); openDatabase$slambda.prototype.constructor = openDatabase$slambda; $openDatabaseCOROUTINE$5.prototype = Object.create(CoroutineImpl.prototype); $openDatabaseCOROUTINE$5.prototype.constructor = $openDatabaseCOROUTINE$5; EventException.prototype = Object.create(Exception.prototype); EventException.prototype.constructor = EventException; EventHandlerException.prototype = Object.create(EventException.prototype); EventHandlerException.prototype.constructor = EventHandlerException; ErrorEventException.prototype = Object.create(EventException.prototype); ErrorEventException.prototype.constructor = ErrorEventException; OpenBlockedException.prototype = Object.create(EventException.prototype); OpenBlockedException.prototype.constructor = OpenBlockedException; AbortTransactionException.prototype = Object.create(EventException.prototype); AbortTransactionException.prototype.constructor = AbortTransactionException; ObjectStore.prototype = Object.create(Queryable.prototype); ObjectStore.prototype.constructor = ObjectStore; WriteTransaction.prototype = Object.create(Transaction.prototype); WriteTransaction.prototype.constructor = WriteTransaction; VersionChangeTransaction.prototype = Object.create(WriteTransaction.prototype); VersionChangeTransaction.prototype.constructor = VersionChangeTransaction; PlatformCognito$logout$slambda.prototype = Object.create(CoroutineImpl.prototype); PlatformCognito$logout$slambda.prototype.constructor = PlatformCognito$logout$slambda; PlatformWebrtcHandler$createPeerConnection$slambda.prototype = Object.create(CoroutineImpl.prototype); PlatformWebrtcHandler$createPeerConnection$slambda.prototype.constructor = PlatformWebrtcHandler$createPeerConnection$slambda; PlatformWebrtcHandler$addAudioSender$slambda.prototype = Object.create(CoroutineImpl.prototype); PlatformWebrtcHandler$addAudioSender$slambda.prototype.constructor = PlatformWebrtcHandler$addAudioSender$slambda; PlatformWebrtcHandler$sendLocalCamera$slambda.prototype = Object.create(CoroutineImpl.prototype); PlatformWebrtcHandler$sendLocalCamera$slambda.prototype.constructor = PlatformWebrtcHandler$sendLocalCamera$slambda; PlatformWebrtcHandler$inactivateLocalCamera$slambda.prototype = Object.create(CoroutineImpl.prototype); PlatformWebrtcHandler$inactivateLocalCamera$slambda.prototype.constructor = PlatformWebrtcHandler$inactivateLocalCamera$slambda; PlatformWebrtcHandler$getVideoElements$slambda.prototype = Object.create(CoroutineImpl.prototype); PlatformWebrtcHandler$getVideoElements$slambda.prototype.constructor = PlatformWebrtcHandler$getVideoElements$slambda; PeerConnectionHelper$addVideoReceivers$slambda.prototype = Object.create(CoroutineImpl.prototype); PeerConnectionHelper$addVideoReceivers$slambda.prototype.constructor = PeerConnectionHelper$addVideoReceivers$slambda; PeerConnectionHelper$createOffer$slambda.prototype = Object.create(CoroutineImpl.prototype); PeerConnectionHelper$createOffer$slambda.prototype.constructor = PeerConnectionHelper$createOffer$slambda; PeerConnectionHelper$createAnswer$slambda.prototype = Object.create(CoroutineImpl.prototype); PeerConnectionHelper$createAnswer$slambda.prototype.constructor = PeerConnectionHelper$createAnswer$slambda; PeerConnectionHelper$setLocalSdp$slambda.prototype = Object.create(CoroutineImpl.prototype); PeerConnectionHelper$setLocalSdp$slambda.prototype.constructor = PeerConnectionHelper$setLocalSdp$slambda; PeerConnectionHelper$setRemoteSdp$slambda.prototype = Object.create(CoroutineImpl.prototype); PeerConnectionHelper$setRemoteSdp$slambda.prototype.constructor = PeerConnectionHelper$setRemoteSdp$slambda; PeerConnectionHelper$getStats$slambda.prototype = Object.create(CoroutineImpl.prototype); PeerConnectionHelper$getStats$slambda.prototype.constructor = PeerConnectionHelper$getStats$slambda; PeerConnectionHelper$getTrackWrapper$slambda.prototype = Object.create(CoroutineImpl.prototype); PeerConnectionHelper$getTrackWrapper$slambda.prototype.constructor = PeerConnectionHelper$getTrackWrapper$slambda; PeerConnectionHelper$updateTransceiversDirection$slambda.prototype = Object.create(CoroutineImpl.prototype); PeerConnectionHelper$updateTransceiversDirection$slambda.prototype.constructor = PeerConnectionHelper$updateTransceiversDirection$slambda; $initLocalAudioCOROUTINE$6.prototype = Object.create(CoroutineImpl.prototype); $initLocalAudioCOROUTINE$6.prototype.constructor = $initLocalAudioCOROUTINE$6; $getLocalVideoTrackCOROUTINE$7.prototype = Object.create(CoroutineImpl.prototype); $getLocalVideoTrackCOROUTINE$7.prototype.constructor = $getLocalVideoTrackCOROUTINE$7; $getLocalAudioTrackCOROUTINE$8.prototype = Object.create(CoroutineImpl.prototype); $getLocalAudioTrackCOROUTINE$8.prototype.constructor = $getLocalAudioTrackCOROUTINE$8; CPaasCall.prototype = Object.create(CPaaSCallBase.prototype); CPaasCall.prototype.constructor = CPaasCall; CPaaSParticipantEvent_0.prototype = Object.create(Enum.prototype); CPaaSParticipantEvent_0.prototype.constructor = CPaaSParticipantEvent_0; VideoEvent_0.prototype = Object.create(Enum.prototype); VideoEvent_0.prototype.constructor = VideoEvent_0; JSWindowEvent.prototype = Object.create(Enum.prototype); JSWindowEvent.prototype.constructor = JSWindowEvent; EmptyEvent.prototype = Object.create(EventArgs.prototype); EmptyEvent.prototype.constructor = EmptyEvent; OnRemoteVideoStartedEventArgs.prototype = Object.create(EventArgs.prototype); OnRemoteVideoStartedEventArgs.prototype.constructor = OnRemoteVideoStartedEventArgs; OnRemoteVideoStoppedEventArgs.prototype = Object.create(EventArgs.prototype); OnRemoteVideoStoppedEventArgs.prototype.constructor = OnRemoteVideoStoppedEventArgs; OnVideoRingingEventArgs.prototype = Object.create(EventArgs.prototype); OnVideoRingingEventArgs.prototype.constructor = OnVideoRingingEventArgs; OnVideoConnectedEventArgs.prototype = Object.create(EventArgs.prototype); OnVideoConnectedEventArgs.prototype.constructor = OnVideoConnectedEventArgs; VideoCallStateEventArgs.prototype = Object.create(EventArgs.prototype); VideoCallStateEventArgs.prototype.constructor = VideoCallStateEventArgs; OnParticipantEventArgs.prototype = Object.create(EventArgs.prototype); OnParticipantEventArgs.prototype.constructor = OnParticipantEventArgs; OnVideoEventArgs.prototype = Object.create(EventArgs.prototype); OnVideoEventArgs.prototype.constructor = OnVideoEventArgs; OnRemoteVideoStarted.prototype = Object.create(Event.prototype); OnRemoteVideoStarted.prototype.constructor = OnRemoteVideoStarted; OnRemoteVideoStopped.prototype = Object.create(Event.prototype); OnRemoteVideoStopped.prototype.constructor = OnRemoteVideoStopped; OnVideoRinging.prototype = Object.create(Event.prototype); OnVideoRinging.prototype.constructor = OnVideoRinging; OnVideoConnected.prototype = Object.create(Event.prototype); OnVideoConnected.prototype.constructor = OnVideoConnected; OnVideoCallEnd.prototype = Object.create(Event.prototype); OnVideoCallEnd.prototype.constructor = OnVideoCallEnd; OnVideoConnectionFailure.prototype = Object.create(Event.prototype); OnVideoConnectionFailure.prototype.constructor = OnVideoConnectionFailure; OnVideoReconnecting.prototype = Object.create(Event.prototype); OnVideoReconnecting.prototype.constructor = OnVideoReconnecting; OnParticipant.prototype = Object.create(Event.prototype); OnParticipant.prototype.constructor = OnParticipant; OnVideo.prototype = Object.create(Event.prototype); OnVideo.prototype.constructor = OnVideo; IncomingCallEventArgs.prototype = Object.create(EventArgs.prototype); IncomingCallEventArgs.prototype.constructor = IncomingCallEventArgs; CallStateEventArgs.prototype = Object.create(EventArgs.prototype); CallStateEventArgs.prototype.constructor = CallStateEventArgs; RemoteVideoEndedEventArgs.prototype = Object.create(EventArgs.prototype); RemoteVideoEndedEventArgs.prototype.constructor = RemoteVideoEndedEventArgs; RemoteVideoStartedEventArgs.prototype = Object.create(EventArgs.prototype); RemoteVideoStartedEventArgs.prototype.constructor = RemoteVideoStartedEventArgs; OnIncomingCall_0.prototype = Object.create(Event.prototype); OnIncomingCall_0.prototype.constructor = OnIncomingCall_0; OnRinging.prototype = Object.create(Event.prototype); OnRinging.prototype.constructor = OnRinging; OnConnected.prototype = Object.create(Event.prototype); OnConnected.prototype.constructor = OnConnected; OnConnectionFailure.prototype = Object.create(Event.prototype); OnConnectionFailure.prototype.constructor = OnConnectionFailure; OnCallEnd.prototype = Object.create(Event.prototype); OnCallEnd.prototype.constructor = OnCallEnd; OnReconnecting.prototype = Object.create(Event.prototype); OnReconnecting.prototype.constructor = OnReconnecting; //endregion function getCommManager($this) { return $this.h48_1; } function BaseAPI$getCommManager$ref($boundThis) { var l = function () { return getCommManager($boundThis); }; l.callableName = 'getCommManager'; return l; } function BaseAPI$voice$delegate$lambda(this$0) { return function () { return new Voice(BaseAPI$getCommManager$ref(this$0)); }; } function BaseAPI$getCommManager$ref_0($boundThis) { var l = function () { return getCommManager($boundThis); }; l.callableName = 'getCommManager'; return l; } function BaseAPI$video$delegate$lambda(this$0) { return function () { return new Video(BaseAPI$getCommManager$ref_0(this$0)); }; } function BaseAPI() { BaseAPI_instance = this; this.g48_1 = ensureNotNull(getKClassFromExpression(this).me()); this.h48_1 = null; var tmp = this; tmp.i48_1 = lazy(BaseAPI$voice$delegate$lambda(this)); var tmp_0 = this; tmp_0.j48_1 = lazy(BaseAPI$video$delegate$lambda(this)); } BaseAPI.prototype.k48 = function () { var tmp$ret$0; { var tmp0_getValue = voice$factory(); tmp$ret$0 = this.i48_1.y(); } return tmp$ret$0; }; BaseAPI.prototype.l48 = function () { var tmp$ret$0; { var tmp0_getValue = video$factory(); tmp$ret$0 = this.j48_1.y(); } return tmp$ret$0; }; BaseAPI.prototype.m48 = function (settings, cpaasAPICb) { var tmp0_safe_receiver = this.h48_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r48(); var registerState = tmp1_elvis_lhs == null ? RegisterState_NotRegistered_getInstance() : tmp1_elvis_lhs; var tmp2_subject = registerState; var tmp0 = tmp2_subject.lh(); switch (tmp0) { case 3: var tmp = CPaaSLog_getInstance(); tmp.e49(this.g48_1, 'register', null, 'user already registered. clientId: ' + settings.w48_1 + ', customDomain: ' + settings.s48_1 + ', BaseURL: ' + settings.y48_1, 4, null); break; case 2: var tmp_0 = CPaaSLog_getInstance(); tmp_0.e49(this.g48_1, 'register', null, 'registration in process, please wait. clientId: ' + settings.w48_1 + ', customDomain: ' + settings.s48_1 + ', BaseURL: ' + settings.y48_1, 4, null); break; case 1: case 0: if (this.h48_1 == null) { this.h48_1 = new CommManager(settings, cpaasAPICb); } var tmp_1 = CPaaSLog_getInstance(); tmp_1.e49(this.g48_1, 'register', null, 'Creating CommManager... clientId: ' + settings.w48_1 + ', customDomain: ' + settings.s48_1 + ', BaseURL: ' + settings.y48_1, 4, null); var tmp3_safe_receiver = this.h48_1; if (tmp3_safe_receiver == null) null; else { tmp3_safe_receiver.f49(); } ; break; } }; BaseAPI.prototype.g49 = function () { Companion_getInstance_59().j3(); PopDiscoveryInfo_getInstance().j49(); CPaaSLog_getInstance().k49(); var tmp0_safe_receiver = this.h48_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.g49(); } this.h48_1 = null; }; BaseAPI.prototype.l49 = function () { var tmp0_safe_receiver = this.h48_1; var uiRoot = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l49(); return uiRoot; }; BaseAPI.$metada