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 _0x63b6=['./chatMessage.events','save','remove','removeListener','chatMessage:'];(function(_0x2b305c,_0x5ae303){var _0x5d8c85=function(_0x33129f){while(--_0x33129f){_0x2b305c['push'](_0x2b305c['shift']());}};_0x5d8c85(++_0x5ae303);}(_0x63b6,0x127));var _0x663b=function(_0x153e6d,_0x28c072){_0x153e6d=_0x153e6d-0x0;var _0x244e95=_0x63b6[_0x153e6d];return _0x244e95;};'use strict';var ChatMessageEvents=require(_0x663b('0x0'));var events=[_0x663b('0x1'),_0x663b('0x2'),'update'];function createListener(_0x813f8c,_0x522472){return function(_0x10dcf6){_0x522472['emit'](_0x813f8c,_0x10dcf6);};}function removeListener(_0x93bab1,_0x3e2b4b){return function(){ChatMessageEvents[_0x663b('0x3')](_0x93bab1,_0x3e2b4b);};}exports['register']=function(_0x4486b1){for(var _0x57e43e=0x0,_0x210eb1=events['length'];_0x57e43e<_0x210eb1;_0x57e43e++){var _0x414dc2=events[_0x57e43e];var _0x2976ff=createListener(_0x663b('0x4')+_0x414dc2,_0x4486b1);ChatMessageEvents['on'](_0x414dc2,_0x2976ff);}};