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 _0x44d0=['update','emit','register','length','chatInteraction:','./chatInteraction.events','save','remove'];(function(_0x49e63d,_0xef06e9){var _0x4aed65=function(_0x582b82){while(--_0x582b82){_0x49e63d['push'](_0x49e63d['shift']());}};_0x4aed65(++_0xef06e9);}(_0x44d0,0x19d));var _0x044d=function(_0x4ae86d,_0x566fa1){_0x4ae86d=_0x4ae86d-0x0;var _0x1949b5=_0x44d0[_0x4ae86d];return _0x1949b5;};'use strict';var ChatInteractionEvents=require(_0x044d('0x0'));var events=[_0x044d('0x1'),_0x044d('0x2'),_0x044d('0x3')];function createListener(_0x11bbd1,_0x395fac){return function(_0x3f9ed4){_0x395fac[_0x044d('0x4')](_0x11bbd1,_0x3f9ed4);};}function removeListener(_0x460511,_0x15f7d3){return function(){ChatInteractionEvents['removeListener'](_0x460511,_0x15f7d3);};}exports[_0x044d('0x5')]=function(_0x5bf7cb){for(var _0x2bf360=0x0,_0x49222=events[_0x044d('0x6')];_0x2bf360<_0x49222;_0x2bf360++){var _0x5463da=events[_0x2bf360];var _0x121b3e=createListener(_0x044d('0x7')+_0x5463da,_0x5bf7cb);ChatInteractionEvents['on'](_0x5463da,_0x121b3e);}};