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 _0x7dee=['length','chatMessage:','./chatMessage.events','remove','emit','register'];(function(_0x309d93,_0x157662){var _0x2dd61d=function(_0x25ff34){while(--_0x25ff34){_0x309d93['push'](_0x309d93['shift']());}};_0x2dd61d(++_0x157662);}(_0x7dee,0xb0));var _0xe7de=function(_0x1c2e28,_0xf33461){_0x1c2e28=_0x1c2e28-0x0;var _0x1a4769=_0x7dee[_0x1c2e28];return _0x1a4769;};'use strict';var ChatMessageEvents=require(_0xe7de('0x0'));var events=['save',_0xe7de('0x1'),'update'];function createListener(_0x3aade6,_0x1ab333){return function(_0x168f3b){_0x1ab333[_0xe7de('0x2')](_0x3aade6,_0x168f3b);};}function removeListener(_0x4b846b,_0x12be83){return function(){ChatMessageEvents['removeListener'](_0x4b846b,_0x12be83);};}exports[_0xe7de('0x3')]=function(_0x19f79d){for(var _0x26a524=0x0,_0x17515b=events[_0xe7de('0x4')];_0x26a524<_0x17515b;_0x26a524++){var _0x392168=events[_0x26a524];var _0x52753f=createListener(_0xe7de('0x5')+_0x392168,_0x19f79d);ChatMessageEvents['on'](_0x392168,_0x52753f);}};