Built motion from commit 9d1906d1.|2.5.40
[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 _0x58fd=['save','remove','emit','removeListener','register','length','chatGroup:','./chatGroup.events'];(function(_0x27c0a4,_0x26e3cd){var _0x1d9e52=function(_0x21b8b2){while(--_0x21b8b2){_0x27c0a4['push'](_0x27c0a4['shift']());}};_0x1d9e52(++_0x26e3cd);}(_0x58fd,0x8f));var _0xd58f=function(_0x376b45,_0x5964fb){_0x376b45=_0x376b45-0x0;var _0x2341b3=_0x58fd[_0x376b45];return _0x2341b3;};'use strict';var ChatGroupEvents=require(_0xd58f('0x0'));var events=[_0xd58f('0x1'),_0xd58f('0x2'),'update'];function createListener(_0x188af6,_0x2d5a0b){return function(_0x166560){_0x2d5a0b[_0xd58f('0x3')](_0x188af6,_0x166560);};}function removeListener(_0x47be87,_0x53fd18){return function(){ChatGroupEvents[_0xd58f('0x4')](_0x47be87,_0x53fd18);};}exports[_0xd58f('0x5')]=function(_0x573429){for(var _0x476144=0x0,_0xbd8007=events[_0xd58f('0x6')];_0x476144<_0xbd8007;_0x476144++){var _0x135fbc=events[_0x476144];var _0x397bf0=createListener(_0xd58f('0x7')+_0x135fbc,_0x573429);ChatGroupEvents['on'](_0x135fbc,_0x397bf0);}};