Built motion from commit fe909640.|2.6.8
[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 _0x5f66=['length','chatGroup:','./chatGroup.events','save','remove','update','removeListener','register'];(function(_0x5f573d,_0x1b9256){var _0x432c6a=function(_0x4d6632){while(--_0x4d6632){_0x5f573d['push'](_0x5f573d['shift']());}};_0x432c6a(++_0x1b9256);}(_0x5f66,0x1ca));var _0x65f6=function(_0x17d9e3,_0x1f969c){_0x17d9e3=_0x17d9e3-0x0;var _0x14192d=_0x5f66[_0x17d9e3];return _0x14192d;};'use strict';var ChatGroupEvents=require(_0x65f6('0x0'));var events=[_0x65f6('0x1'),_0x65f6('0x2'),_0x65f6('0x3')];function createListener(_0x5dff46,_0x4effc6){return function(_0x55aea2){_0x4effc6['emit'](_0x5dff46,_0x55aea2);};}function removeListener(_0x32cec2,_0x473ceb){return function(){ChatGroupEvents[_0x65f6('0x4')](_0x32cec2,_0x473ceb);};}exports[_0x65f6('0x5')]=function(_0x4da11d){for(var _0x50038f=0x0,_0xd3433f=events[_0x65f6('0x6')];_0x50038f<_0xd3433f;_0x50038f++){var _0x509e0e=events[_0x50038f];var _0x328b96=createListener(_0x65f6('0x7')+_0x509e0e,_0x4da11d);ChatGroupEvents['on'](_0x509e0e,_0x328b96);}};