Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
39 lines
1.1 KiB
JavaScript
39 lines
1.1 KiB
JavaScript
// Module ID: 12934
|
|
// Function ID: 12935
|
|
// Dependencies: [12854, 12833]
|
|
// Exports: captureFeedback
|
|
|
|
// Module 12934
|
|
import _mod12833 from "module_12833" /* 12833 */;
|
|
import _mod12854 from "module_12854" /* 12854 */;
|
|
|
|
require = arg1;
|
|
const dependencyMap = arg6;
|
|
|
|
export const captureFeedback = function captureFeedback(arg0) {
|
|
let obj = arg1;
|
|
if (arg1 === undefined) {
|
|
obj = {};
|
|
}
|
|
let currentScope = arg2;
|
|
if (arg2 === undefined) {
|
|
currentScope = _mod12854.getCurrentScope();
|
|
}
|
|
const obj2 = { contexts: null, type: "feedback", level: "info", tags: null };
|
|
const obj4 = { feedback: _mod12833.dropUndefinedKeys({ contact_email: email, name, message, url, source, associated_event_id: associatedEventId }) };
|
|
({ message, name, email, url, source, associatedEventId, tags } = arg0);
|
|
obj2.contexts = obj4;
|
|
obj2.tags = tags;
|
|
let client = currentScope;
|
|
if (currentScope) {
|
|
client = currentScope.getClient();
|
|
}
|
|
if (!client) {
|
|
client = _mod12854.getClient();
|
|
const tmp3Result = _mod12854;
|
|
}
|
|
if (client) {
|
|
client.emit("beforeSendFeedback", obj2, obj);
|
|
}
|
|
return currentScope.captureEvent(obj2, obj);
|
|
};
|