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 _0xc7df=['chatInteraction:','./chatInteraction.events','save','remove','emit','removeListener','register','length'];(function(_0xf6c3e9,_0x608df7){var _0x4de0a0=function(_0x47654e){while(--_0x47654e){_0xf6c3e9['push'](_0xf6c3e9['shift']());}};_0x4de0a0(++_0x608df7);}(_0xc7df,0x149));var _0xfc7d=function(_0x460775,_0x465a77){_0x460775=_0x460775-0x0;var _0x4f1f91=_0xc7df[_0x460775];return _0x4f1f91;};'use strict';var ChatInteractionEvents=require(_0xfc7d('0x0'));var events=[_0xfc7d('0x1'),_0xfc7d('0x2'),'update'];function createListener(_0xd1ce0f,_0x14b889){return function(_0x22dfaf){_0x14b889[_0xfc7d('0x3')](_0xd1ce0f,_0x22dfaf);};}function removeListener(_0x43c5b3,_0x453334){return function(){ChatInteractionEvents[_0xfc7d('0x4')](_0x43c5b3,_0x453334);};}exports[_0xfc7d('0x5')]=function(_0x26c030){for(var _0x49b69d=0x0,_0xb1ed18=events[_0xfc7d('0x6')];_0x49b69d<_0xb1ed18;_0x49b69d++){var _0x46dd04=events[_0x49b69d];var _0x3e4b7a=createListener(_0xfc7d('0x7')+_0x46dd04,_0x26c030);ChatInteractionEvents['on'](_0x46dd04,_0x3e4b7a);}};