Built motion from commit (unavailable).|2.5.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 _0xdecf=['remove','update','emit','removeListener','register','length','chatGroup:','save'];(function(_0x53eb32,_0x4ed8a9){var _0x1418c6=function(_0x3208e9){while(--_0x3208e9){_0x53eb32['push'](_0x53eb32['shift']());}};_0x1418c6(++_0x4ed8a9);}(_0xdecf,0x197));var _0xfdec=function(_0x5db5c4,_0x3e5d08){_0x5db5c4=_0x5db5c4-0x0;var _0x10e4c5=_0xdecf[_0x5db5c4];return _0x10e4c5;};'use strict';var ChatGroupEvents=require('./chatGroup.events');var events=[_0xfdec('0x0'),_0xfdec('0x1'),_0xfdec('0x2')];function createListener(_0x3ee7f4,_0x31b5de){return function(_0x783ce9){_0x31b5de[_0xfdec('0x3')](_0x3ee7f4,_0x783ce9);};}function removeListener(_0x2578a6,_0x40dfc4){return function(){ChatGroupEvents[_0xfdec('0x4')](_0x2578a6,_0x40dfc4);};}exports[_0xfdec('0x5')]=function(_0x2674b6){for(var _0x346f27=0x0,_0x2e6bf0=events[_0xfdec('0x6')];_0x346f27<_0x2e6bf0;_0x346f27++){var _0x1fd4c5=events[_0x346f27];var _0x140fa1=createListener(_0xfdec('0x7')+_0x1fd4c5,_0x2674b6);ChatGroupEvents['on'](_0x1fd4c5,_0x140fa1);}};