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 _0x8ff7=['length','./chatWebsite.events','update','emit','register'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x8ff7,0x10a));var _0x78ff=function(_0x5b5ebf,_0x2b0a3f){_0x5b5ebf=_0x5b5ebf-0x0;var _0x25243c=_0x8ff7[_0x5b5ebf];return _0x25243c;};'use strict';var ChatWebsiteEvents=require(_0x78ff('0x0'));var events=['save','remove',_0x78ff('0x1')];function createListener(_0x50e36d,_0x1df00c){return function(_0x9cb999){_0x1df00c[_0x78ff('0x2')](_0x50e36d,_0x9cb999);};}function removeListener(_0x540135,_0x26e6d1){return function(){ChatWebsiteEvents['removeListener'](_0x540135,_0x26e6d1);};}exports[_0x78ff('0x3')]=function(_0x3c4e76){for(var _0x45c881=0x0,_0x2c97e3=events[_0x78ff('0x4')];_0x45c881<_0x2c97e3;_0x45c881++){var _0x1b588a=events[_0x45c881];var _0x4ea477=createListener('chatWebsite:'+_0x1b588a,_0x3c4e76);ChatWebsiteEvents['on'](_0x1b588a,_0x4ea477);}};