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 _0xf68c=['./chatInternalMessage.events','remove','removeListener','register','chatInternalMessage:'];(function(_0x10bdd8,_0x5220ef){var _0x3627fb=function(_0x357e00){while(--_0x357e00){_0x10bdd8['push'](_0x10bdd8['shift']());}};_0x3627fb(++_0x5220ef);}(_0xf68c,0x195));var _0xcf68=function(_0x2e937e,_0x43ec8a){_0x2e937e=_0x2e937e-0x0;var _0x4e1403=_0xf68c[_0x2e937e];return _0x4e1403;};'use strict';var ChatInternalMessageEvents=require(_0xcf68('0x0'));var events=['save',_0xcf68('0x1'),'update'];function createListener(_0x46d788,_0x45db5f){return function(_0x180c82){_0x45db5f['emit'](_0x46d788,_0x180c82);};}function removeListener(_0x414da4,_0x330fe8){return function(){ChatInternalMessageEvents[_0xcf68('0x2')](_0x414da4,_0x330fe8);};}exports[_0xcf68('0x3')]=function(_0x3b7ead){for(var _0x2bd54a=0x0,_0x153d3d=events['length'];_0x2bd54a<_0x153d3d;_0x2bd54a++){var _0x5bc2c3=events[_0x2bd54a];var _0x32c329=createListener(_0xcf68('0x4')+_0x5bc2c3,_0x3b7ead);ChatInternalMessageEvents['on'](_0x5bc2c3,_0x32c329);}};