Built motion from commit 1fd437e9.|2.6.19
[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 _0x3c36=['save','emit','removeListener','register','length','chatGroup:','./chatGroup.events'];(function(_0x3054be,_0x1bdc8b){var _0x3df150=function(_0x56cfbf){while(--_0x56cfbf){_0x3054be['push'](_0x3054be['shift']());}};_0x3df150(++_0x1bdc8b);}(_0x3c36,0x1d4));var _0x63c3=function(_0x6f01e4,_0x20f67a){_0x6f01e4=_0x6f01e4-0x0;var _0x15649e=_0x3c36[_0x6f01e4];return _0x15649e;};'use strict';var ChatGroupEvents=require(_0x63c3('0x0'));var events=[_0x63c3('0x1'),'remove','update'];function createListener(_0x5bdc10,_0x121482){return function(_0x358930){_0x121482[_0x63c3('0x2')](_0x5bdc10,_0x358930);};}function removeListener(_0x8b684f,_0x2eeceb){return function(){ChatGroupEvents[_0x63c3('0x3')](_0x8b684f,_0x2eeceb);};}exports[_0x63c3('0x4')]=function(_0x4799e){for(var _0x496551=0x0,_0x2b0899=events[_0x63c3('0x5')];_0x496551<_0x2b0899;_0x496551++){var _0x9f7fab=events[_0x496551];var _0x338ca3=createListener(_0x63c3('0x6')+_0x9f7fab,_0x4799e);ChatGroupEvents['on'](_0x9f7fab,_0x338ca3);}};