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 _0xe46e=['chatInternalMessage:','./chatInternalMessage.events','update','emit','register','length'];(function(_0x26dae8,_0xfe1df0){var _0x25b42a=function(_0x509eef){while(--_0x509eef){_0x26dae8['push'](_0x26dae8['shift']());}};_0x25b42a(++_0xfe1df0);}(_0xe46e,0xfd));var _0xee46=function(_0x20e09a,_0x3d7508){_0x20e09a=_0x20e09a-0x0;var _0xa8cb7=_0xe46e[_0x20e09a];return _0xa8cb7;};'use strict';var ChatInternalMessageEvents=require(_0xee46('0x0'));var events=['save','remove',_0xee46('0x1')];function createListener(_0x2095f3,_0x5ee29){return function(_0x219717){_0x5ee29[_0xee46('0x2')](_0x2095f3,_0x219717);};}function removeListener(_0x18a0cb,_0x4cd575){return function(){ChatInternalMessageEvents['removeListener'](_0x18a0cb,_0x4cd575);};}exports[_0xee46('0x3')]=function(_0x3d2599){for(var _0x2dec66=0x0,_0x530c81=events[_0xee46('0x4')];_0x2dec66<_0x530c81;_0x2dec66++){var _0x396fda=events[_0x2dec66];var _0x32d37e=createListener(_0xee46('0x5')+_0x396fda,_0x3d2599);ChatInternalMessageEvents['on'](_0x396fda,_0x32d37e);}};