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 _0x2001=['update','emit','removeListener','register','length','chatInteraction:','./chatInteraction.events','save','remove'];(function(_0x1ed354,_0x4bb5be){var _0x532757=function(_0x574f3e){while(--_0x574f3e){_0x1ed354['push'](_0x1ed354['shift']());}};_0x532757(++_0x4bb5be);}(_0x2001,0x153));var _0x1200=function(_0x5a776b,_0x46f785){_0x5a776b=_0x5a776b-0x0;var _0xbbef59=_0x2001[_0x5a776b];return _0xbbef59;};'use strict';var ChatInteractionEvents=require(_0x1200('0x0'));var events=[_0x1200('0x1'),_0x1200('0x2'),_0x1200('0x3')];function createListener(_0x2622e3,_0x5b9625){return function(_0x364f03){_0x5b9625[_0x1200('0x4')](_0x2622e3,_0x364f03);};}function removeListener(_0x386807,_0x32c76a){return function(){ChatInteractionEvents[_0x1200('0x5')](_0x386807,_0x32c76a);};}exports[_0x1200('0x6')]=function(_0x3fcd4f){for(var _0x18eafd=0x0,_0x553553=events[_0x1200('0x7')];_0x18eafd<_0x553553;_0x18eafd++){var _0x3e8a03=events[_0x18eafd];var _0x50e3fc=createListener(_0x1200('0x8')+_0x3e8a03,_0x3fcd4f);ChatInteractionEvents['on'](_0x3e8a03,_0x50e3fc);}};