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 _0xbe74=['register','chatInteraction:','./chatInteraction.events','save','remove','update','emit','removeListener'];(function(_0x122d9f,_0x2c9e5b){var _0x41a09e=function(_0x3d9564){while(--_0x3d9564){_0x122d9f['push'](_0x122d9f['shift']());}};_0x41a09e(++_0x2c9e5b);}(_0xbe74,0x162));var _0x4be7=function(_0x1a9e78,_0x180720){_0x1a9e78=_0x1a9e78-0x0;var _0x113e06=_0xbe74[_0x1a9e78];return _0x113e06;};'use strict';var ChatInteractionEvents=require(_0x4be7('0x0'));var events=[_0x4be7('0x1'),_0x4be7('0x2'),_0x4be7('0x3')];function createListener(_0x1d50c1,_0x35b3cd){return function(_0x1c8287){_0x35b3cd[_0x4be7('0x4')](_0x1d50c1,_0x1c8287);};}function removeListener(_0xb62118,_0x33a387){return function(){ChatInteractionEvents[_0x4be7('0x5')](_0xb62118,_0x33a387);};}exports[_0x4be7('0x6')]=function(_0x4e0435){for(var _0x1a5555=0x0,_0x4a2b6d=events['length'];_0x1a5555<_0x4a2b6d;_0x1a5555++){var _0x3c63cb=events[_0x1a5555];var _0x2dbc4a=createListener(_0x4be7('0x7')+_0x3c63cb,_0x4e0435);ChatInteractionEvents['on'](_0x3c63cb,_0x2dbc4a);}};