919c6fcea358d536cf2f261eeb470322e02721f2
[motion2.git] / server / api / chatInternalMessage / chatInternalMessage.socket.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x3db8=['save','remove','update','emit','removeListener','register','chatInternalMessage:','./chatInternalMessage.events'];(function(_0x567fde,_0x3c93ef){var _0x25e76d=function(_0x3012ca){while(--_0x3012ca){_0x567fde['push'](_0x567fde['shift']());}};_0x25e76d(++_0x3c93ef);}(_0x3db8,0xc7));var _0x83db=function(_0x14a7bf,_0xd82d0c){_0x14a7bf=_0x14a7bf-0x0;var _0x573a06=_0x3db8[_0x14a7bf];return _0x573a06;};'use strict';var ChatInternalMessageEvents=require(_0x83db('0x0'));var events=[_0x83db('0x1'),_0x83db('0x2'),_0x83db('0x3')];function createListener(_0xa2a8a1,_0x3f77a5){return function(_0x3afbfa){_0x3f77a5[_0x83db('0x4')](_0xa2a8a1,_0x3afbfa);};}function removeListener(_0x4cf924,_0x5116ee){return function(){ChatInternalMessageEvents[_0x83db('0x5')](_0x4cf924,_0x5116ee);};}exports[_0x83db('0x6')]=function(_0x44e4b1){for(var _0x11fe95=0x0,_0x283d24=events['length'];_0x11fe95<_0x283d24;_0x11fe95++){var _0x6eebd9=events[_0x11fe95];var _0x2cf045=createListener(_0x83db('0x7')+_0x6eebd9,_0x44e4b1);ChatInternalMessageEvents['on'](_0x6eebd9,_0x2cf045);}};