in src/init/consented/prepare-permutive.ts [181:220]
(function (n, e, o, r, i) {
if (!e) {
(e = e || {}),
(window.permutive = e),
(e.q = []),
(e.config = i || {}),
(e.config.projectId = o),
(e.config.apiKey = r),
(e.config.environment = e.config.environment || 'production');
for (
let t = [
'addon',
'identify',
'track',
'trigger',
'query',
'segment',
'segments',
'ready',
'on',
'once',
'user',
'consent',
],
c = 0;
c < t.length;
c++
) {
const f = t[c];
// @ts-expect-error -- best not to change this code from permutive
e[f] = (function (n) {
return function () {
const o = Array.prototype.slice.call(arguments, 0);
// @ts-expect-error -- best not to change this code from permutive
e.q.push({ functionName: n, arguments: o });
};
})(f);
}
}
})(