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 _0x39e0=['update','./chatWebsite.events','save','remove'];(function(_0x2662ad,_0x116983){var _0x1451c7=function(_0x49916c){while(--_0x49916c){_0x2662ad['push'](_0x2662ad['shift']());}};_0x1451c7(++_0x116983);}(_0x39e0,0x161));var _0x039e=function(_0x4ab0fb,_0x5abe09){_0x4ab0fb=_0x4ab0fb-0x0;var _0xba2877=_0x39e0[_0x4ab0fb];return _0xba2877;};'use strict';var ChatWebsiteEvents=require(_0x039e('0x0'));var events=[_0x039e('0x1'),_0x039e('0x2'),_0x039e('0x3')];function createListener(_0xd71b06,_0x709731){return function(_0x240091){_0x709731['emit'](_0xd71b06,_0x240091);};}function removeListener(_0x5dd091,_0x50829a){return function(){ChatWebsiteEvents['removeListener'](_0x5dd091,_0x50829a);};}exports['register']=function(_0x540932){for(var _0x51fac1=0x0,_0x2488ce=events['length'];_0x51fac1<_0x2488ce;_0x51fac1++){var _0x556dfc=events[_0x51fac1];var _0x56071b=createListener('chatWebsite:'+_0x556dfc,_0x540932);ChatWebsiteEvents['on'](_0x556dfc,_0x56071b);}};