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 _0x7aee=['removeListener','register','length','chatWebsite:','save','remove','update','emit'];(function(_0x2bd8a6,_0x5b9211){var _0x1e037a=function(_0x486e4b){while(--_0x486e4b){_0x2bd8a6['push'](_0x2bd8a6['shift']());}};_0x1e037a(++_0x5b9211);}(_0x7aee,0x9c));var _0xe7ae=function(_0x54bf82,_0x2e146b){_0x54bf82=_0x54bf82-0x0;var _0x2f74ba=_0x7aee[_0x54bf82];return _0x2f74ba;};'use strict';var ChatWebsiteEvents=require('./chatWebsite.events');var events=[_0xe7ae('0x0'),_0xe7ae('0x1'),_0xe7ae('0x2')];function createListener(_0x2d1a8b,_0x3fc893){return function(_0x5a6614){_0x3fc893[_0xe7ae('0x3')](_0x2d1a8b,_0x5a6614);};}function removeListener(_0x20438d,_0x546633){return function(){ChatWebsiteEvents[_0xe7ae('0x4')](_0x20438d,_0x546633);};}exports[_0xe7ae('0x5')]=function(_0x5a6fda){for(var _0x26badb=0x0,_0x4f1f15=events[_0xe7ae('0x6')];_0x26badb<_0x4f1f15;_0x26badb++){var _0x33c152=events[_0x26badb];var _0x384cbc=createListener(_0xe7ae('0x7')+_0x33c152,_0x5a6fda);ChatWebsiteEvents['on'](_0x33c152,_0x384cbc);}};