2026-09-12 13:45:10 +00:00
|
|
|
// Module ID: 17327
|
|
|
|
|
// Function ID: 17328
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: trackStreamProblem
|
2026-09-05 10:56:28 +00:00
|
|
|
// Dependencies: [1074, 1242, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-12 13:45:10 +00:00
|
|
|
// Module 17327 (trackStreamProblem)
|
2026-09-10 05:38:07 +00:00
|
|
|
import Constants from "Constants" /* 1074 */;
|
|
|
|
|
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1242 */;
|
|
|
|
|
import size from "module_2" /* 2 */;
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const AnalyticEvents = Constants.AnalyticEvents;
|
|
|
|
|
const result = size.fileFinishedImporting("modules/go_live/utils/trackStreamProblem.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function trackStreamProblem(arg0) {
|
|
|
|
|
({ stream, streamApplication, analyticsData, rating } = arg0);
|
|
|
|
|
({ problem, feedback, location: _location } = arg0);
|
|
|
|
|
if (rating === undefined) {
|
|
|
|
|
rating = null;
|
|
|
|
|
}
|
|
|
|
|
({ category, variant } = arg0);
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj2 = { reason: problem, category, reason_variant: variant, streamer_user_id: stream.ownerId, stream_channel_id: stream.channelId, guild_id: stream.guildId, application_id: null, application_name: null, location: null, rating: null, feedback: null };
|
2026-07-20 16:05:17 +00:00
|
|
|
let id = null;
|
|
|
|
|
if (null != streamApplication) {
|
|
|
|
|
id = streamApplication.id;
|
|
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
obj2.application_id = id;
|
2026-07-20 16:05:17 +00:00
|
|
|
let name = null;
|
|
|
|
|
if (null != streamApplication) {
|
|
|
|
|
name = streamApplication.name;
|
|
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
obj2.application_name = name;
|
|
|
|
|
obj2.location = _location;
|
|
|
|
|
obj2.rating = rating;
|
|
|
|
|
obj2.feedback = feedback;
|
2026-07-20 16:05:17 +00:00
|
|
|
const merged = Object.assign(analyticsData);
|
2026-09-10 05:38:07 +00:00
|
|
|
AnalyticsUtilsDefault.track(AnalyticEvents.STREAM_REPORT_PROBLEM, obj2);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|