1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
17 // *************************************************************************
18 var _0x9aa2=['emit','removeListener','register','length','chatWebsite:','./chatWebsite.events','remove','update'];(function(_0x4430b3,_0x43ff47){var _0xed44da=function(_0x4c31a3){while(--_0x4c31a3){_0x4430b3['push'](_0x4430b3['shift']());}};_0xed44da(++_0x43ff47);}(_0x9aa2,0x85));var _0x29aa=function(_0x44ed71,_0x175c83){_0x44ed71=_0x44ed71-0x0;var _0x332ad9=_0x9aa2[_0x44ed71];return _0x332ad9;};'use strict';var ChatWebsiteEvents=require(_0x29aa('0x0'));var events=['save',_0x29aa('0x1'),_0x29aa('0x2')];function createListener(_0x581c39,_0x554ba4){return function(_0xa8cc9a){_0x554ba4[_0x29aa('0x3')](_0x581c39,_0xa8cc9a);};}function removeListener(_0x4f9788,_0x3bf77c){return function(){ChatWebsiteEvents[_0x29aa('0x4')](_0x4f9788,_0x3bf77c);};}exports[_0x29aa('0x5')]=function(_0x5e3f2d){for(var _0x391681=0x0,_0x4e38f9=events[_0x29aa('0x6')];_0x391681<_0x4e38f9;_0x391681++){var _0x54f523=events[_0x391681];var _0xe29cf1=createListener(_0x29aa('0x7')+_0x54f523,_0x5e3f2d);ChatWebsiteEvents['on'](_0x54f523,_0xe29cf1);}};