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 _0xec3a=['remove','update','emit','register','length','chatInternalMessage:','./chatInternalMessage.events','save'];(function(_0x40a107,_0x5acc82){var _0x4beb59=function(_0x4bfb2a){while(--_0x4bfb2a){_0x40a107['push'](_0x40a107['shift']());}};_0x4beb59(++_0x5acc82);}(_0xec3a,0x116));var _0xaec3=function(_0x2aecb2,_0x343312){_0x2aecb2=_0x2aecb2-0x0;var _0x3ebb80=_0xec3a[_0x2aecb2];return _0x3ebb80;};'use strict';var ChatInternalMessageEvents=require(_0xaec3('0x0'));var events=[_0xaec3('0x1'),_0xaec3('0x2'),_0xaec3('0x3')];function createListener(_0x410d2e,_0xab0964){return function(_0x4bd2e3){_0xab0964[_0xaec3('0x4')](_0x410d2e,_0x4bd2e3);};}function removeListener(_0x1a96c1,_0x5307ee){return function(){ChatInternalMessageEvents['removeListener'](_0x1a96c1,_0x5307ee);};}exports[_0xaec3('0x5')]=function(_0x52e276){for(var _0x2cf193=0x0,_0x573331=events[_0xaec3('0x6')];_0x2cf193<_0x573331;_0x2cf193++){var _0x3b28c0=events[_0x2cf193];var _0x52bad1=createListener(_0xaec3('0x7')+_0x3b28c0,_0x52e276);ChatInternalMessageEvents['on'](_0x3b28c0,_0x52bad1);}};