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 _0xb40b=['register','./chatInteraction.events','save','update','emit'];(function(_0x4a9fb1,_0x273043){var _0x348672=function(_0x142b69){while(--_0x142b69){_0x4a9fb1['push'](_0x4a9fb1['shift']());}};_0x348672(++_0x273043);}(_0xb40b,0x119));var _0xbb40=function(_0x2064e5,_0x4f6fa2){_0x2064e5=_0x2064e5-0x0;var _0x21a233=_0xb40b[_0x2064e5];return _0x21a233;};'use strict';var ChatInteractionEvents=require(_0xbb40('0x0'));var events=[_0xbb40('0x1'),'remove',_0xbb40('0x2')];function createListener(_0x297e13,_0xdba715){return function(_0x7f4948){_0xdba715[_0xbb40('0x3')](_0x297e13,_0x7f4948);};}function removeListener(_0x48b97f,_0x5bfee7){return function(){ChatInteractionEvents['removeListener'](_0x48b97f,_0x5bfee7);};}exports[_0xbb40('0x4')]=function(_0x40444d){for(var _0x37acda=0x0,_0x195806=events['length'];_0x37acda<_0x195806;_0x37acda++){var _0x3dc666=events[_0x37acda];var _0x234c02=createListener('chatInteraction:'+_0x3dc666,_0x40444d);ChatInteractionEvents['on'](_0x3dc666,_0x234c02);}};