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 _0x6f31=['register','length','chatWebsite:','./chatWebsite.events','save','emit'];(function(_0x36694b,_0x4c76c9){var _0x3a6cdc=function(_0x358333){while(--_0x358333){_0x36694b['push'](_0x36694b['shift']());}};_0x3a6cdc(++_0x4c76c9);}(_0x6f31,0x135));var _0x16f3=function(_0x3e8b0a,_0xda6ad1){_0x3e8b0a=_0x3e8b0a-0x0;var _0x369dcc=_0x6f31[_0x3e8b0a];return _0x369dcc;};'use strict';var ChatWebsiteEvents=require(_0x16f3('0x0'));var events=[_0x16f3('0x1'),'remove','update'];function createListener(_0x26197d,_0x109e00){return function(_0x1b3ea3){_0x109e00[_0x16f3('0x2')](_0x26197d,_0x1b3ea3);};}function removeListener(_0x58a283,_0x374b1e){return function(){ChatWebsiteEvents['removeListener'](_0x58a283,_0x374b1e);};}exports[_0x16f3('0x3')]=function(_0x297661){for(var _0x16fedf=0x0,_0x19d6c4=events[_0x16f3('0x4')];_0x16fedf<_0x19d6c4;_0x16fedf++){var _0x649416=events[_0x16fedf];var _0x7d1919=createListener(_0x16f3('0x5')+_0x649416,_0x297661);ChatWebsiteEvents['on'](_0x649416,_0x7d1919);}};