2026-07-27 11:26:19 +00:00
|
|
|
// Module ID: 15963
|
|
|
|
|
// Function ID: 123325
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: trackStreamProblem
|
2026-07-23 10:11:24 +00:00
|
|
|
// Dependencies: [653, 675, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-07-27 11:26:19 +00:00
|
|
|
// Module 15963 (trackStreamProblem)
|
2026-07-23 10:11:24 +00:00
|
|
|
import { AnalyticEvents } from "ME";
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-23 10:11:24 +00:00
|
|
|
const result = require("set").fileFinishedImporting("modules/go_live/utils/trackStreamProblem.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function trackStreamProblem(arg0) {
|
|
|
|
|
let _location;
|
|
|
|
|
let analyticsData;
|
|
|
|
|
let category;
|
|
|
|
|
let feedback;
|
|
|
|
|
let problem;
|
|
|
|
|
let rating;
|
|
|
|
|
let stream;
|
|
|
|
|
let streamApplication;
|
|
|
|
|
let variant;
|
|
|
|
|
({ stream, streamApplication, analyticsData, rating } = arg0);
|
|
|
|
|
({ problem, feedback, location: _location } = arg0);
|
|
|
|
|
if (rating === undefined) {
|
|
|
|
|
rating = null;
|
|
|
|
|
}
|
|
|
|
|
({ category, variant } = arg0);
|
2026-07-23 10:11:24 +00:00
|
|
|
let obj = importDefault(675);
|
2026-07-20 16:05:17 +00:00
|
|
|
obj = { reason: problem, category, reason_variant: variant, streamer_user_id: stream.ownerId, stream_channel_id: stream.channelId, guild_id: stream.guildId };
|
|
|
|
|
let id = null;
|
|
|
|
|
if (null != streamApplication) {
|
|
|
|
|
id = streamApplication.id;
|
|
|
|
|
}
|
|
|
|
|
obj.application_id = id;
|
|
|
|
|
let name = null;
|
|
|
|
|
if (null != streamApplication) {
|
|
|
|
|
name = streamApplication.name;
|
|
|
|
|
}
|
|
|
|
|
obj.application_name = name;
|
|
|
|
|
obj.location = _location;
|
|
|
|
|
obj.rating = rating;
|
|
|
|
|
obj.feedback = feedback;
|
|
|
|
|
const merged = Object.assign(analyticsData);
|
|
|
|
|
obj.track(AnalyticEvents.STREAM_REPORT_PROBLEM, obj);
|
|
|
|
|
};
|