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 _0x7729=['./chatWebsite.events','remove','update','emit','removeListener'];(function(_0x38b14f,_0xd08fa8){var _0x22a324=function(_0x4bbb05){while(--_0x4bbb05){_0x38b14f['push'](_0x38b14f['shift']());}};_0x22a324(++_0xd08fa8);}(_0x7729,0xaf));var _0x9772=function(_0x2e5124,_0x518e6a){_0x2e5124=_0x2e5124-0x0;var _0x2e9223=_0x7729[_0x2e5124];return _0x2e9223;};'use strict';var ChatWebsiteEvents=require(_0x9772('0x0'));var events=['save',_0x9772('0x1'),_0x9772('0x2')];function createListener(_0x142e6b,_0x1a9811){return function(_0x5af5fc){_0x1a9811[_0x9772('0x3')](_0x142e6b,_0x5af5fc);};}function removeListener(_0x41bad2,_0x6983fc){return function(){ChatWebsiteEvents[_0x9772('0x4')](_0x41bad2,_0x6983fc);};}exports['register']=function(_0x1ed853){for(var _0x45d677=0x0,_0x4c9d26=events['length'];_0x45d677<_0x4c9d26;_0x45d677++){var _0x3228c0=events[_0x45d677];var _0x378d6e=createListener('chatWebsite:'+_0x3228c0,_0x1ed853);ChatWebsiteEvents['on'](_0x3228c0,_0x378d6e);}};