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 _0x949d=['./chatInternalMessage.events','save','remove','update','emit','removeListener'];(function(_0x54defc,_0x627178){var _0x1955d3=function(_0x299afe){while(--_0x299afe){_0x54defc['push'](_0x54defc['shift']());}};_0x1955d3(++_0x627178);}(_0x949d,0x162));var _0xd949=function(_0x27564d,_0x232756){_0x27564d=_0x27564d-0x0;var _0x4fc7f1=_0x949d[_0x27564d];return _0x4fc7f1;};'use strict';var ChatInternalMessageEvents=require(_0xd949('0x0'));var events=[_0xd949('0x1'),_0xd949('0x2'),_0xd949('0x3')];function createListener(_0x59c4ae,_0x5c5854){return function(_0x2024d0){_0x5c5854[_0xd949('0x4')](_0x59c4ae,_0x2024d0);};}function removeListener(_0x596628,_0x2768a3){return function(){ChatInternalMessageEvents[_0xd949('0x5')](_0x596628,_0x2768a3);};}exports['register']=function(_0x3d2be5){for(var _0x416d5e=0x0,_0x6e8175=events['length'];_0x416d5e<_0x6e8175;_0x416d5e++){var _0x208942=events[_0x416d5e];var _0x158cc2=createListener('chatInternalMessage:'+_0x208942,_0x3d2be5);ChatInternalMessageEvents['on'](_0x208942,_0x158cc2);}};