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 _0xee90=['remove','update','register','length','chatInternalMessage:','save'];(function(_0x212261,_0x5aa5ac){var _0x599f03=function(_0x59bb3b){while(--_0x59bb3b){_0x212261['push'](_0x212261['shift']());}};_0x599f03(++_0x5aa5ac);}(_0xee90,0x173));var _0x0ee9=function(_0x345d4d,_0x3450e8){_0x345d4d=_0x345d4d-0x0;var _0x9c7c6f=_0xee90[_0x345d4d];return _0x9c7c6f;};'use strict';var ChatInternalMessageEvents=require('./chatInternalMessage.events');var events=[_0x0ee9('0x0'),_0x0ee9('0x1'),_0x0ee9('0x2')];function createListener(_0x3d42c7,_0x2c6fcd){return function(_0x40a6b6){_0x2c6fcd['emit'](_0x3d42c7,_0x40a6b6);};}function removeListener(_0x2d908e,_0x5f5caf){return function(){ChatInternalMessageEvents['removeListener'](_0x2d908e,_0x5f5caf);};}exports[_0x0ee9('0x3')]=function(_0x2afd40){for(var _0x3a9d77=0x0,_0x385669=events[_0x0ee9('0x4')];_0x3a9d77<_0x385669;_0x3a9d77++){var _0x160276=events[_0x3a9d77];var _0x2105a9=createListener(_0x0ee9('0x5')+_0x160276,_0x2afd40);ChatInternalMessageEvents['on'](_0x160276,_0x2105a9);}};