Built motion from commit da617fac.|2.6.6
[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 _0x0e95=['removeListener','register','length','./chatGroup.events','save','remove','emit'];(function(_0x13d07a,_0x41efc3){var _0x5ee0ee=function(_0x4ca94a){while(--_0x4ca94a){_0x13d07a['push'](_0x13d07a['shift']());}};_0x5ee0ee(++_0x41efc3);}(_0x0e95,0x1d1));var _0x50e9=function(_0x2c2c86,_0x58399b){_0x2c2c86=_0x2c2c86-0x0;var _0xe6ede3=_0x0e95[_0x2c2c86];return _0xe6ede3;};'use strict';var ChatGroupEvents=require(_0x50e9('0x0'));var events=[_0x50e9('0x1'),_0x50e9('0x2'),'update'];function createListener(_0x55097d,_0x5712a6){return function(_0x4694f1){_0x5712a6[_0x50e9('0x3')](_0x55097d,_0x4694f1);};}function removeListener(_0x2ae11a,_0x483613){return function(){ChatGroupEvents[_0x50e9('0x4')](_0x2ae11a,_0x483613);};}exports[_0x50e9('0x5')]=function(_0x1be434){for(var _0x4ded02=0x0,_0x2d31d6=events[_0x50e9('0x6')];_0x4ded02<_0x2d31d6;_0x4ded02++){var _0x5e2a43=events[_0x4ded02];var _0x1e2bd1=createListener('chatGroup:'+_0x5e2a43,_0x1be434);ChatGroupEvents['on'](_0x5e2a43,_0x1e2bd1);}};