35 lines
971 B
TypeScript
35 lines
971 B
TypeScript
// Module ID: 4307
|
|
// Function ID: 37708
|
|
// Name: getSoundshareAnalyticsContext
|
|
// Dependencies: [4151, 2]
|
|
// Exports: default
|
|
|
|
// Module 4307 (getSoundshareAnalyticsContext)
|
|
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
|
|
|
|
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 (null != gameForPID) {
|
|
name = gameForPID.name;
|
|
}
|
|
let id;
|
|
if (null != gameForPID) {
|
|
id = gameForPID.id;
|
|
}
|
|
tmp2 = id;
|
|
tmp = name;
|
|
}
|
|
const obj = { soundshare_session: sourcePid.soundshareSession, share_game_name: tmp, share_game_id: tmp2 };
|
|
return obj;
|
|
}
|
|
};
|