Built motion from commit b0a9a629.|2.6.33
[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 _0x8892=['save','update','emit','removeListener','register','length','chatGroup:','./chatGroup.events'];(function(_0x2641f9,_0x26715f){var _0x585741=function(_0x2d1462){while(--_0x2d1462){_0x2641f9['push'](_0x2641f9['shift']());}};_0x585741(++_0x26715f);}(_0x8892,0xb7));var _0x2889=function(_0x174024,_0x1c34d3){_0x174024=_0x174024-0x0;var _0x1e6f08=_0x8892[_0x174024];return _0x1e6f08;};'use strict';var ChatGroupEvents=require(_0x2889('0x0'));var events=[_0x2889('0x1'),'remove',_0x2889('0x2')];function createListener(_0x22378f,_0x5dadc3){return function(_0x11009a){_0x5dadc3[_0x2889('0x3')](_0x22378f,_0x11009a);};}function removeListener(_0x13e14a,_0x1377ff){return function(){ChatGroupEvents[_0x2889('0x4')](_0x13e14a,_0x1377ff);};}exports[_0x2889('0x5')]=function(_0x51062c){for(var _0x1f7787=0x0,_0x231348=events[_0x2889('0x6')];_0x1f7787<_0x231348;_0x1f7787++){var _0x5202c9=events[_0x1f7787];var _0x34bf98=createListener(_0x2889('0x7')+_0x5202c9,_0x51062c);ChatGroupEvents['on'](_0x5202c9,_0x34bf98);}};