decord/source/7343_captureFeedback.js

50 lines
1.4 KiB
JavaScript
Raw Normal View History

2026-07-23 10:11:24 +00:00
// Module ID: 7343
2026-07-24 07:16:23 +00:00
// Function ID: 59254
2026-07-20 16:05:17 +00:00
// Name: captureFeedback
2026-07-23 10:11:24 +00:00
// Dependencies: [7263, 7242]
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
// Module 7343 (captureFeedback)
const require = arg1;
const dependencyMap = arg6;
2026-07-20 16:05:17 +00:00
arg5.captureFeedback = function captureFeedback(arg0) {
let associatedEventId;
let email;
let message;
let name;
let source;
let tags;
let url;
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 = {};
({ message, name, email, url, source, associatedEventId, tags } = arg0);
let obj1 = { contact_email: email, name, message, url, source, associated_event_id: associatedEventId };
2026-07-23 10:11:24 +00:00
obj.feedback = require(7242) /* addNonEnumerableProperty */.dropUndefinedKeys(obj1);
2026-07-20 16:05:17 +00:00
obj.contexts = obj;
obj.tags = tags;
let client = currentScope;
if (currentScope) {
client = currentScope.getClient();
}
if (!client) {
2026-07-23 10:11:24 +00:00
client = require(7263) /* getCurrentScope */.getClient();
const obj9 = require(7263) /* 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(7263) /* getCurrentScope */;
2026-07-20 16:05:17 +00:00
currentScope = obj1.getCurrentScope();
}
obj = {};
};