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 _0xbb8d=['length','./chatWebsite.events','remove','emit','removeListener'];(function(_0x32eed3,_0x461400){var _0x412032=function(_0x545f51){while(--_0x545f51){_0x32eed3['push'](_0x32eed3['shift']());}};_0x412032(++_0x461400);}(_0xbb8d,0x146));var _0xdbb8=function(_0x7f4fc2,_0x302c33){_0x7f4fc2=_0x7f4fc2-0x0;var _0x39e7cd=_0xbb8d[_0x7f4fc2];return _0x39e7cd;};'use strict';var ChatWebsiteEvents=require(_0xdbb8('0x0'));var events=['save',_0xdbb8('0x1'),'update'];function createListener(_0x5f5046,_0x529aed){return function(_0x3e1fe5){_0x529aed[_0xdbb8('0x2')](_0x5f5046,_0x3e1fe5);};}function removeListener(_0x12ca7c,_0x29ee4b){return function(){ChatWebsiteEvents[_0xdbb8('0x3')](_0x12ca7c,_0x29ee4b);};}exports['register']=function(_0x6a6db3){for(var _0x149c99=0x0,_0x46738f=events[_0xdbb8('0x4')];_0x149c99<_0x46738f;_0x149c99++){var _0x57091f=events[_0x149c99];var _0x18ff85=createListener('chatWebsite:'+_0x57091f,_0x6a6db3);ChatWebsiteEvents['on'](_0x57091f,_0x18ff85);}};