38 lines
997 B
TypeScript
38 lines
997 B
TypeScript
// Module ID: 4431
|
|
// Function ID: 4432
|
|
// Name: getSoundshareAnalyticsContext
|
|
// Dependencies: [4275, 2]
|
|
// Exports: default
|
|
|
|
// Module 4431 (getSoundshareAnalyticsContext)
|
|
import initialize from "initialize";
|
|
|
|
const result = require("set").fileFinishedImporting("modules/go_live/utils/getSoundshareAnalyticsContext.tsx");
|
|
|
|
export default function getSoundshareAnalyticsContext(sourcePid) {
|
|
if (null == sourcePid) {
|
|
return {};
|
|
} else {
|
|
sourcePid = sourcePid.sourcePid;
|
|
let tmp;
|
|
let tmp2;
|
|
if (null != sourcePid) {
|
|
gameForPID = gameForPID.getGameForPID(sourcePid);
|
|
let name;
|
|
if (gameForPID != null) {
|
|
name = gameForPID.name;
|
|
}
|
|
let id;
|
|
if (gameForPID != null) {
|
|
id = gameForPID.id;
|
|
}
|
|
tmp = id;
|
|
tmp2 = name;
|
|
}
|
|
const obj = { soundshare_session: null, share_game_name: null, share_game_id: null };
|
|
obj[0] = sourcePid.soundshareSession;
|
|
obj[1] = tmp2;
|
|
obj[2] = tmp;
|
|
return obj;
|
|
}
|
|
};
|