b3694b9f6033320c7e2773409472e8ca4c656a79
[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 _0x2297=['length','chatGroup:','save','emit','register'];(function(_0x240ae9,_0x3a0229){var _0x4ceaae=function(_0x4b122c){while(--_0x4b122c){_0x240ae9['push'](_0x240ae9['shift']());}};_0x4ceaae(++_0x3a0229);}(_0x2297,0x93));var _0x7229=function(_0x1f926d,_0x1ec305){_0x1f926d=_0x1f926d-0x0;var _0x1452d3=_0x2297[_0x1f926d];return _0x1452d3;};'use strict';var ChatGroupEvents=require('./chatGroup.events');var events=[_0x7229('0x0'),'remove','update'];function createListener(_0x331140,_0x2b8edc){return function(_0x1468a4){_0x2b8edc[_0x7229('0x1')](_0x331140,_0x1468a4);};}function removeListener(_0x37e8cd,_0x2d0944){return function(){ChatGroupEvents['removeListener'](_0x37e8cd,_0x2d0944);};}exports[_0x7229('0x2')]=function(_0x41bb0e){for(var _0x1051c=0x0,_0x1ade79=events[_0x7229('0x3')];_0x1051c<_0x1ade79;_0x1051c++){var _0x2e6a09=events[_0x1051c];var _0x3329b1=createListener(_0x7229('0x4')+_0x2e6a09,_0x41bb0e);ChatGroupEvents['on'](_0x2e6a09,_0x3329b1);}};