Built motion from commit eddce310.|2.6.12
[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 _0x1a3c=['removeListener','register','chatGroup:','./chatGroup.events','save','update','emit'];(function(_0x590a38,_0x2bc65c){var _0xf36626=function(_0x551cd1){while(--_0x551cd1){_0x590a38['push'](_0x590a38['shift']());}};_0xf36626(++_0x2bc65c);}(_0x1a3c,0x8f));var _0xc1a3=function(_0x3c3729,_0x260fbd){_0x3c3729=_0x3c3729-0x0;var _0x10464a=_0x1a3c[_0x3c3729];return _0x10464a;};'use strict';var ChatGroupEvents=require(_0xc1a3('0x0'));var events=[_0xc1a3('0x1'),'remove',_0xc1a3('0x2')];function createListener(_0x3afc29,_0xd63990){return function(_0x141dae){_0xd63990[_0xc1a3('0x3')](_0x3afc29,_0x141dae);};}function removeListener(_0x344029,_0x2649e7){return function(){ChatGroupEvents[_0xc1a3('0x4')](_0x344029,_0x2649e7);};}exports[_0xc1a3('0x5')]=function(_0x9a49b){for(var _0x1b8d43=0x0,_0x416f55=events['length'];_0x1b8d43<_0x416f55;_0x1b8d43++){var _0x267b51=events[_0x1b8d43];var _0x3e7684=createListener(_0xc1a3('0x6')+_0x267b51,_0x9a49b);ChatGroupEvents['on'](_0x267b51,_0x3e7684);}};