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 _0xe57b=['update','emit','removeListener','register','length','./chatInternalMessage.events','save'];(function(_0x3bf83f,_0x181cac){var _0x22c4a9=function(_0xb3ff0d){while(--_0xb3ff0d){_0x3bf83f['push'](_0x3bf83f['shift']());}};_0x22c4a9(++_0x181cac);}(_0xe57b,0x1b0));var _0xbe57=function(_0x29ef86,_0x189bd1){_0x29ef86=_0x29ef86-0x0;var _0x37afd7=_0xe57b[_0x29ef86];return _0x37afd7;};'use strict';var ChatInternalMessageEvents=require(_0xbe57('0x0'));var events=[_0xbe57('0x1'),'remove',_0xbe57('0x2')];function createListener(_0x1eabbe,_0x790f04){return function(_0x5e5781){_0x790f04[_0xbe57('0x3')](_0x1eabbe,_0x5e5781);};}function removeListener(_0x1f0e1c,_0x111787){return function(){ChatInternalMessageEvents[_0xbe57('0x4')](_0x1f0e1c,_0x111787);};}exports[_0xbe57('0x5')]=function(_0x345b87){for(var _0x23608a=0x0,_0x4165b7=events[_0xbe57('0x6')];_0x23608a<_0x4165b7;_0x23608a++){var _0x9e18c1=events[_0x23608a];var _0x5cd66a=createListener('chatInternalMessage:'+_0x9e18c1,_0x345b87);ChatInternalMessageEvents['on'](_0x9e18c1,_0x5cd66a);}};