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 _0x44ef=['./chatInternalMessage.events','save','emit','removeListener','register','length'];(function(_0x3fb5a8,_0x57d3f6){var _0x519841=function(_0x35c08a){while(--_0x35c08a){_0x3fb5a8['push'](_0x3fb5a8['shift']());}};_0x519841(++_0x57d3f6);}(_0x44ef,0x17a));var _0xf44e=function(_0x5cbf0c,_0xc11af6){_0x5cbf0c=_0x5cbf0c-0x0;var _0x28e658=_0x44ef[_0x5cbf0c];return _0x28e658;};'use strict';var ChatInternalMessageEvents=require(_0xf44e('0x0'));var events=[_0xf44e('0x1'),'remove','update'];function createListener(_0x4c7516,_0x216d92){return function(_0x24f026){_0x216d92[_0xf44e('0x2')](_0x4c7516,_0x24f026);};}function removeListener(_0x219b18,_0x315222){return function(){ChatInternalMessageEvents[_0xf44e('0x3')](_0x219b18,_0x315222);};}exports[_0xf44e('0x4')]=function(_0x4a74c5){for(var _0x37cb4e=0x0,_0x370573=events[_0xf44e('0x5')];_0x37cb4e<_0x370573;_0x37cb4e++){var _0x10b95c=events[_0x37cb4e];var _0x579977=createListener('chatInternalMessage:'+_0x10b95c,_0x4a74c5);ChatInternalMessageEvents['on'](_0x10b95c,_0x579977);}};