

- Descripción
- More Products
- Store Policies
- Enquiries
Descripción
(function (w, d, s, u, p, po, b) {
w.OmnitokChat = function (c) {
w.OmnitokChat._.push(c)
};
w.OmnitokChat._ = [];
w.OmnitokChat.url = u;
w.OmnitokChat.position = p;
w.OmnitokChat.positionOffset = po;
w.OmnitokChat.bottomOffset = b;
var h = d.getElementsByTagName(s)[0],
j = d.createElement(s);
j.async = true;
j.src = 'https://omnitok.staging.alquimio.cloud/livechat/omnitok-livechat.min.js?_=1610564093000';
//j.src = 'http://omnitok.staging.alquimio.cloud//livechat/omnitok-livechat.min.js?_=1610564093000';
h.parentNode.insertBefore(j, h);
})(window, document, 'script', 'https://omnitok.staging.alquimio.cloud/livechat?department=kznCqbStxjBYg6EtL', 'right', '0', '0');
var obj;
OmnitokChat(function () {
obj = this;
console.log("Se establecio el dep")
this.setDepartment('test-app');
this.onAssignAgent((event) => {
console.log('### event', event);
});
this.onVideoCall((event) => {
console.log('### videocall', event);
console.log(httpGet("http://headers.jsontest.com/"))
})
this.onVideoCallStart((event) => {
console.log('### videocallStart', event);
console.log(httpGet("http://headers.jsontest.com/"))
})
});
function httpGet(theUrl)
{
var xmlHttp = new XMLHttpRequest();
xmlHttp.open( "GET", theUrl, false ); // false for synchronous request
xmlHttp.send( null );
return xmlHttp.responseText;
}
General Enquiries
There are no enquiries yet.