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 _0x21a0=['removeListener','register','save','update'];(function(_0x5272f7,_0x5cec27){var _0x167f03=function(_0x1bf5af){while(--_0x1bf5af){_0x5272f7['push'](_0x5272f7['shift']());}};_0x167f03(++_0x5cec27);}(_0x21a0,0xc2));var _0x021a=function(_0x38ea52,_0xb2aa25){_0x38ea52=_0x38ea52-0x0;var _0x12f20f=_0x21a0[_0x38ea52];return _0x12f20f;};'use strict';var ChatInternalMessageEvents=require('./chatInternalMessage.events');var events=[_0x021a('0x0'),'remove',_0x021a('0x1')];function createListener(_0xf8e6db,_0x55ece3){return function(_0x1d31d0){_0x55ece3['emit'](_0xf8e6db,_0x1d31d0);};}function removeListener(_0x278585,_0x3ee989){return function(){ChatInternalMessageEvents[_0x021a('0x2')](_0x278585,_0x3ee989);};}exports[_0x021a('0x3')]=function(_0x30a80e){for(var _0x6f28b4=0x0,_0x42d7ee=events['length'];_0x6f28b4<_0x42d7ee;_0x6f28b4++){var _0x319628=events[_0x6f28b4];var _0x172e89=createListener('chatInternalMessage:'+_0x319628,_0x30a80e);ChatInternalMessageEvents['on'](_0x319628,_0x172e89);}};