decord/source/925_captureFeedback.js

44 lines
1.3 KiB
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 925
2026-07-25 08:10:48 +00:00
// Function ID: 10092
2026-07-20 16:05:17 +00:00
// Name: captureFeedback
2026-07-23 10:11:24 +00:00
// Dependencies: [825]
2026-07-20 16:05:17 +00:00
// Module 925 (captureFeedback)
2026-07-23 10:11:24 +00:00
const require = arg1;
const dependencyMap = arg6;
2026-07-20 16:05:17 +00:00
Object.defineProperty(arg5, Symbol.toStringTag, { value: "Module" });
arg5.captureFeedback = function captureFeedback(tags) {
if (arguments.length > 1) {
if (undefined !== arguments[1]) {
let obj = arguments[1];
}
if (arguments.length > 2) {
if (undefined !== arguments[2]) {
let currentScope = arguments[2];
}
2026-07-23 10:11:24 +00:00
obj = { contexts: null, type: "feedback", level: "info" };
2026-07-20 16:05:17 +00:00
obj = {};
let obj1 = {};
({ email: obj6.contact_email, name: obj6.name, message: obj6.message, url: obj6.url, source: obj6.source, associatedEventId: obj6.associated_event_id } = tags);
obj.feedback = obj1;
obj.contexts = obj;
obj.tags = tags.tags;
let client;
if (null != currentScope) {
client = currentScope.getClient();
}
if (!client) {
2026-07-23 10:11:24 +00:00
client = require(825) /* getCurrentScope */.getClient();
const obj7 = require(825) /* getCurrentScope */;
2026-07-20 16:05:17 +00:00
}
if (client) {
client.emit("beforeSendFeedback", obj, obj);
}
return currentScope.captureEvent(obj, obj);
}
2026-07-23 10:11:24 +00:00
obj1 = require(825) /* getCurrentScope */;
2026-07-20 16:05:17 +00:00
currentScope = obj1.getCurrentScope();
}
obj = {};
};