38 lines
1.3 KiB
TypeScript
38 lines
1.3 KiB
TypeScript
// Module ID: 9459
|
|
// Function ID: 9460
|
|
// Name: trackVoiceCallTransfer
|
|
// Dependencies: [1957, 4583, 4578, 1074, 1242, 2]
|
|
// Exports: default
|
|
|
|
// Module 9459 (trackVoiceCallTransfer)
|
|
import expandEventPropertiesDefault from "expandEventProperties" /* 1242 */;
|
|
import closure_2 from "ensureGuildLoaded" /* 1957 */;
|
|
import closure_3 from "createRTCConnection" /* 4583 */;
|
|
import closure_4 from "handleUpdate" /* 4578 */;
|
|
import { AnalyticEvents } from "ME" /* 1074 */;
|
|
|
|
const result = require("set").fileFinishedImporting("modules/game_console/trackVoiceCallTransfer.tsx");
|
|
|
|
export default function trackVoiceCallTransfer(arg0, arg1, sessionId) {
|
|
let obj = expandEventPropertiesDefault;
|
|
let str = "discord_client";
|
|
if (null != sessionId) {
|
|
sessionById = sessionById.getSessionById(sessionId);
|
|
let os;
|
|
if (sessionById != null) {
|
|
os = sessionById.clientInfo.os;
|
|
}
|
|
str = os;
|
|
}
|
|
obj = { source_platform: str, guild_id: null, channel_id: null, rtc_connection_id: null, target_platform: null };
|
|
channel = channel.getChannel(arg0);
|
|
let guild_id;
|
|
if (channel != null) {
|
|
guild_id = channel.guild_id;
|
|
}
|
|
obj[1] = guild_id;
|
|
obj[2] = arg0;
|
|
obj[3] = rTCConnectionId.getRTCConnectionId();
|
|
obj[4] = arg1;
|
|
obj.track(AnalyticEvents.VOICE_CALL_TRANSFER, obj);
|
|
};
|