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 _0xf5a7=['save','update','emit','removeListener','register','chatMessage:','./chatMessage.events'];(function(_0x2cd1bc,_0x4db04d){var _0x24c3e3=function(_0x1de918){while(--_0x1de918){_0x2cd1bc['push'](_0x2cd1bc['shift']());}};_0x24c3e3(++_0x4db04d);}(_0xf5a7,0x133));var _0x7f5a=function(_0x16c82b,_0x526c77){_0x16c82b=_0x16c82b-0x0;var _0x5e1a9f=_0xf5a7[_0x16c82b];return _0x5e1a9f;};'use strict';var ChatMessageEvents=require(_0x7f5a('0x0'));var events=[_0x7f5a('0x1'),'remove',_0x7f5a('0x2')];function createListener(_0x13cc6f,_0x15a24a){return function(_0x25616d){_0x15a24a[_0x7f5a('0x3')](_0x13cc6f,_0x25616d);};}function removeListener(_0x342fa0,_0x6da3f3){return function(){ChatMessageEvents[_0x7f5a('0x4')](_0x342fa0,_0x6da3f3);};}exports[_0x7f5a('0x5')]=function(_0x520bf9){for(var _0x2808f2=0x0,_0x2be845=events['length'];_0x2808f2<_0x2be845;_0x2808f2++){var _0x19c400=events[_0x2808f2];var _0x46d6d5=createListener(_0x7f5a('0x6')+_0x19c400,_0x520bf9);ChatMessageEvents['on'](_0x19c400,_0x46d6d5);}};