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 _0x56e6=['save','remove','update','emit','removeListener','register','length','chatMessage:','./chatMessage.events'];(function(_0xa7662e,_0x22304d){var _0x425053=function(_0x3e24a6){while(--_0x3e24a6){_0xa7662e['push'](_0xa7662e['shift']());}};_0x425053(++_0x22304d);}(_0x56e6,0x6b));var _0x656e=function(_0x532bc8,_0x2a5016){_0x532bc8=_0x532bc8-0x0;var _0x2d0227=_0x56e6[_0x532bc8];return _0x2d0227;};'use strict';var ChatMessageEvents=require(_0x656e('0x0'));var events=[_0x656e('0x1'),_0x656e('0x2'),_0x656e('0x3')];function createListener(_0x3a7a6a,_0x3833eb){return function(_0x5adaa8){_0x3833eb[_0x656e('0x4')](_0x3a7a6a,_0x5adaa8);};}function removeListener(_0x23c947,_0xe7d540){return function(){ChatMessageEvents[_0x656e('0x5')](_0x23c947,_0xe7d540);};}exports[_0x656e('0x6')]=function(_0x3fef98){for(var _0x81c232=0x0,_0x54eddb=events[_0x656e('0x7')];_0x81c232<_0x54eddb;_0x81c232++){var _0x1538a5=events[_0x81c232];var _0x1dad4e=createListener(_0x656e('0x8')+_0x1538a5,_0x3fef98);ChatMessageEvents['on'](_0x1538a5,_0x1dad4e);}};