Built motion from commit a61a4a20.|2.5.46
[motion2.git] / server / api / chatGroup / chatGroup.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 _0xf3b3=['removeListener','register','length','chatGroup:','./chatGroup.events','remove','update','emit'];(function(_0x1dbaf7,_0x3d05b3){var _0x593f05=function(_0x381936){while(--_0x381936){_0x1dbaf7['push'](_0x1dbaf7['shift']());}};_0x593f05(++_0x3d05b3);}(_0xf3b3,0xe4));var _0x3f3b=function(_0x55821d,_0x27a22e){_0x55821d=_0x55821d-0x0;var _0x58ea8a=_0xf3b3[_0x55821d];return _0x58ea8a;};'use strict';var ChatGroupEvents=require(_0x3f3b('0x0'));var events=['save',_0x3f3b('0x1'),_0x3f3b('0x2')];function createListener(_0x3b2aec,_0x2b9bdc){return function(_0x441963){_0x2b9bdc[_0x3f3b('0x3')](_0x3b2aec,_0x441963);};}function removeListener(_0x26d86c,_0x285c29){return function(){ChatGroupEvents[_0x3f3b('0x4')](_0x26d86c,_0x285c29);};}exports[_0x3f3b('0x5')]=function(_0x372f7a){for(var _0x58d1dc=0x0,_0x592a3e=events[_0x3f3b('0x6')];_0x58d1dc<_0x592a3e;_0x58d1dc++){var _0x594a49=events[_0x58d1dc];var _0xff933c=createListener(_0x3f3b('0x7')+_0x594a49,_0x372f7a);ChatGroupEvents['on'](_0x594a49,_0xff933c);}};