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 _0x35d4=['update','emit','removeListener','register','chatWebsite:','./chatWebsite.events','save','remove'];(function(_0x501dbc,_0x112a28){var _0x304d18=function(_0x5260b0){while(--_0x5260b0){_0x501dbc['push'](_0x501dbc['shift']());}};_0x304d18(++_0x112a28);}(_0x35d4,0x19d));var _0x435d=function(_0x4f3897,_0x2fe9ac){_0x4f3897=_0x4f3897-0x0;var _0xd4004d=_0x35d4[_0x4f3897];return _0xd4004d;};'use strict';var ChatWebsiteEvents=require(_0x435d('0x0'));var events=[_0x435d('0x1'),_0x435d('0x2'),_0x435d('0x3')];function createListener(_0x178867,_0x1363c3){return function(_0xb8fd47){_0x1363c3[_0x435d('0x4')](_0x178867,_0xb8fd47);};}function removeListener(_0x38dde0,_0x76b434){return function(){ChatWebsiteEvents[_0x435d('0x5')](_0x38dde0,_0x76b434);};}exports[_0x435d('0x6')]=function(_0x48ad5f){for(var _0x4c0217=0x0,_0x426877=events['length'];_0x4c0217<_0x426877;_0x4c0217++){var _0x29c7d4=events[_0x4c0217];var _0x5b262e=createListener(_0x435d('0x7')+_0x29c7d4,_0x48ad5f);ChatWebsiteEvents['on'](_0x29c7d4,_0x5b262e);}};