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 _0xc818=['update','emit','removeListener','register','length','chatMessage:','./chatMessage.events','save','remove'];(function(_0x5b644e,_0x2e5e07){var _0x49c6bf=function(_0x3032d9){while(--_0x3032d9){_0x5b644e['push'](_0x5b644e['shift']());}};_0x49c6bf(++_0x2e5e07);}(_0xc818,0x1e3));var _0x8c81=function(_0x423fed,_0x41bf07){_0x423fed=_0x423fed-0x0;var _0x16a581=_0xc818[_0x423fed];return _0x16a581;};'use strict';var ChatMessageEvents=require(_0x8c81('0x0'));var events=[_0x8c81('0x1'),_0x8c81('0x2'),_0x8c81('0x3')];function createListener(_0x5e6597,_0x461c5f){return function(_0x7a8137){_0x461c5f[_0x8c81('0x4')](_0x5e6597,_0x7a8137);};}function removeListener(_0x7e329f,_0x1a61ab){return function(){ChatMessageEvents[_0x8c81('0x5')](_0x7e329f,_0x1a61ab);};}exports[_0x8c81('0x6')]=function(_0x4a6e65){for(var _0x2c5966=0x0,_0x3d663e=events[_0x8c81('0x7')];_0x2c5966<_0x3d663e;_0x2c5966++){var _0x43d142=events[_0x2c5966];var _0x501240=createListener(_0x8c81('0x8')+_0x43d142,_0x4a6e65);ChatMessageEvents['on'](_0x43d142,_0x501240);}};