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 _0x3ee5=['save','remove','emit','removeListener','register','chatInternalMessage:'];(function(_0x38ff2b,_0x3a0316){var _0x341f5e=function(_0x346368){while(--_0x346368){_0x38ff2b['push'](_0x38ff2b['shift']());}};_0x341f5e(++_0x3a0316);}(_0x3ee5,0x1b6));var _0x53ee=function(_0xb693e6,_0x1ef65b){_0xb693e6=_0xb693e6-0x0;var _0x417eb0=_0x3ee5[_0xb693e6];return _0x417eb0;};'use strict';var ChatInternalMessageEvents=require('./chatInternalMessage.events');var events=[_0x53ee('0x0'),_0x53ee('0x1'),'update'];function createListener(_0x116163,_0x14adf3){return function(_0x2de317){_0x14adf3[_0x53ee('0x2')](_0x116163,_0x2de317);};}function removeListener(_0x25e597,_0x119975){return function(){ChatInternalMessageEvents[_0x53ee('0x3')](_0x25e597,_0x119975);};}exports[_0x53ee('0x4')]=function(_0x343bbb){for(var _0x16ad68=0x0,_0x3173b2=events['length'];_0x16ad68<_0x3173b2;_0x16ad68++){var _0x299b23=events[_0x16ad68];var _0x235c9f=createListener(_0x53ee('0x5')+_0x299b23,_0x343bbb);ChatInternalMessageEvents['on'](_0x299b23,_0x235c9f);}};