-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
34 lines (31 loc) · 1.06 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
module.exports = {
customerly: {
initialize: function (appId, options) {
window.customerlySettings = {
app_id: appId,
...options,
};
function loadCustomerly() {
let e = t.createElement("script");
(e.type = "text/javascript"),
(e.async = !0),
(e.src = "https://widget.customerly.io/widget/" + appId);
let r = t.getElementsByTagName("script")[0];
r.parentNode.insertBefore(e, r);
}
let r = window,
t = document,
n = function () {
n.c(arguments);
};
(r.customerly_queue = []),
(n.c = function (e) {
r.customerly_queue.push(e);
}),
(r.customerly = n),
r.attachEvent
? r.attachEvent("onload", loadCustomerly)
: r.addEventListener("load", loadCustomerly, !1);
},
},
};