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 _0x7db0=['./chatWebsite.events','save','update','removeListener','register','length'];(function(_0x39556f,_0x3c28fb){var _0x3f87c7=function(_0x47a1ce){while(--_0x47a1ce){_0x39556f['push'](_0x39556f['shift']());}};_0x3f87c7(++_0x3c28fb);}(_0x7db0,0x168));var _0x07db=function(_0x387dc1,_0x3ba649){_0x387dc1=_0x387dc1-0x0;var _0x17567c=_0x7db0[_0x387dc1];return _0x17567c;};'use strict';var ChatWebsiteEvents=require(_0x07db('0x0'));var events=[_0x07db('0x1'),'remove',_0x07db('0x2')];function createListener(_0x79f8a7,_0x350083){return function(_0x7860d4){_0x350083['emit'](_0x79f8a7,_0x7860d4);};}function removeListener(_0x35a051,_0x4798b6){return function(){ChatWebsiteEvents[_0x07db('0x3')](_0x35a051,_0x4798b6);};}exports[_0x07db('0x4')]=function(_0x3775c7){for(var _0x40b704=0x0,_0x4e1b0e=events[_0x07db('0x5')];_0x40b704<_0x4e1b0e;_0x40b704++){var _0x4ea816=events[_0x40b704];var _0x551061=createListener('chatWebsite:'+_0x4ea816,_0x3775c7);ChatWebsiteEvents['on'](_0x4ea816,_0x551061);}};