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 _0xe9c7=['register','./chatInternalMessage.events','remove','update','emit'];(function(_0x53959f,_0x518993){var _0x30c6cd=function(_0x4971b5){while(--_0x4971b5){_0x53959f['push'](_0x53959f['shift']());}};_0x30c6cd(++_0x518993);}(_0xe9c7,0x105));var _0x7e9c=function(_0x1fc7ea,_0x1eb959){_0x1fc7ea=_0x1fc7ea-0x0;var _0x390677=_0xe9c7[_0x1fc7ea];return _0x390677;};'use strict';var ChatInternalMessageEvents=require(_0x7e9c('0x0'));var events=['save',_0x7e9c('0x1'),_0x7e9c('0x2')];function createListener(_0x4e5f4b,_0x2b9e27){return function(_0x425284){_0x2b9e27[_0x7e9c('0x3')](_0x4e5f4b,_0x425284);};}function removeListener(_0x4146a6,_0x3b9123){return function(){ChatInternalMessageEvents['removeListener'](_0x4146a6,_0x3b9123);};}exports[_0x7e9c('0x4')]=function(_0x55891f){for(var _0x9be77f=0x0,_0x16ad53=events['length'];_0x9be77f<_0x16ad53;_0x9be77f++){var _0xe94f56=events[_0x9be77f];var _0x5ac58e=createListener('chatInternalMessage:'+_0xe94f56,_0x55891f);ChatInternalMessageEvents['on'](_0xe94f56,_0x5ac58e);}};