5820684ae0fd6dee73950e2cdbe3df1f90f042c6
[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 _0x2fc6=['removeListener','register','length','chatInternalMessage:','./chatInternalMessage.events','save','remove','update','emit'];(function(_0x243dce,_0x548bcf){var _0x482b9d=function(_0x504104){while(--_0x504104){_0x243dce['push'](_0x243dce['shift']());}};_0x482b9d(++_0x548bcf);}(_0x2fc6,0xf7));var _0x62fc=function(_0x375308,_0x2afd0d){_0x375308=_0x375308-0x0;var _0x35b040=_0x2fc6[_0x375308];return _0x35b040;};'use strict';var ChatInternalMessageEvents=require(_0x62fc('0x0'));var events=[_0x62fc('0x1'),_0x62fc('0x2'),_0x62fc('0x3')];function createListener(_0x324072,_0x50afdb){return function(_0x4b8f24){_0x50afdb[_0x62fc('0x4')](_0x324072,_0x4b8f24);};}function removeListener(_0x141c26,_0x4965dd){return function(){ChatInternalMessageEvents[_0x62fc('0x5')](_0x141c26,_0x4965dd);};}exports[_0x62fc('0x6')]=function(_0x456e06){for(var _0x729022=0x0,_0xd58bf9=events[_0x62fc('0x7')];_0x729022<_0xd58bf9;_0x729022++){var _0xa38461=events[_0x729022];var _0x2296ab=createListener(_0x62fc('0x8')+_0xa38461,_0x456e06);ChatInternalMessageEvents['on'](_0xa38461,_0x2296ab);}};