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 _0x2a8e=['emit','removeListener','register','length','chatInternalMessage:','./chatInternalMessage.events','save','remove','update'];(function(_0x29573e,_0x4c5cc8){var _0x1b8444=function(_0x21a965){while(--_0x21a965){_0x29573e['push'](_0x29573e['shift']());}};_0x1b8444(++_0x4c5cc8);}(_0x2a8e,0xa7));var _0xe2a8=function(_0x1d930a,_0x362822){_0x1d930a=_0x1d930a-0x0;var _0x4f57d8=_0x2a8e[_0x1d930a];return _0x4f57d8;};'use strict';var ChatInternalMessageEvents=require(_0xe2a8('0x0'));var events=[_0xe2a8('0x1'),_0xe2a8('0x2'),_0xe2a8('0x3')];function createListener(_0x160df6,_0x3bb854){return function(_0x32f9ce){_0x3bb854[_0xe2a8('0x4')](_0x160df6,_0x32f9ce);};}function removeListener(_0xe844a0,_0x2c92c6){return function(){ChatInternalMessageEvents[_0xe2a8('0x5')](_0xe844a0,_0x2c92c6);};}exports[_0xe2a8('0x6')]=function(_0x406ee1){for(var _0xc967af=0x0,_0x8d87=events[_0xe2a8('0x7')];_0xc967af<_0x8d87;_0xc967af++){var _0x5bb2f5=events[_0xc967af];var _0x51ae44=createListener(_0xe2a8('0x8')+_0x5bb2f5,_0x406ee1);ChatInternalMessageEvents['on'](_0x5bb2f5,_0x51ae44);}};