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 _0x07d0=['chatWebsite:','./chatWebsite.events','save','remove','update','emit','register','length'];(function(_0x31a6b1,_0x7c3be1){var _0x8c77f5=function(_0x35b0d7){while(--_0x35b0d7){_0x31a6b1['push'](_0x31a6b1['shift']());}};_0x8c77f5(++_0x7c3be1);}(_0x07d0,0xa1));var _0x007d=function(_0x4792c8,_0x5158a1){_0x4792c8=_0x4792c8-0x0;var _0x35edb1=_0x07d0[_0x4792c8];return _0x35edb1;};'use strict';var ChatWebsiteEvents=require(_0x007d('0x0'));var events=[_0x007d('0x1'),_0x007d('0x2'),_0x007d('0x3')];function createListener(_0xe1ade7,_0x325bf7){return function(_0x1d97f7){_0x325bf7[_0x007d('0x4')](_0xe1ade7,_0x1d97f7);};}function removeListener(_0x28ec9c,_0x343b9c){return function(){ChatWebsiteEvents['removeListener'](_0x28ec9c,_0x343b9c);};}exports[_0x007d('0x5')]=function(_0x2d1fa5){for(var _0x592c7b=0x0,_0x5477ab=events[_0x007d('0x6')];_0x592c7b<_0x5477ab;_0x592c7b++){var _0x5c84e4=events[_0x592c7b];var _0x87f4b=createListener(_0x007d('0x7')+_0x5c84e4,_0x2d1fa5);ChatWebsiteEvents['on'](_0x5c84e4,_0x87f4b);}};