Built motion from commit 936e8062.|2.5.33
[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 _0x786a=['chatGroup:','remove','update','emit','removeListener','length'];(function(_0x1c74cf,_0x5cd948){var _0x15ceee=function(_0x16e828){while(--_0x16e828){_0x1c74cf['push'](_0x1c74cf['shift']());}};_0x15ceee(++_0x5cd948);}(_0x786a,0x17b));var _0xa786=function(_0x3cc0ee,_0x404c1a){_0x3cc0ee=_0x3cc0ee-0x0;var _0x2912b4=_0x786a[_0x3cc0ee];return _0x2912b4;};'use strict';var ChatGroupEvents=require('./chatGroup.events');var events=['save',_0xa786('0x0'),_0xa786('0x1')];function createListener(_0x2d0b5d,_0x5ebe32){return function(_0x479cd8){_0x5ebe32[_0xa786('0x2')](_0x2d0b5d,_0x479cd8);};}function removeListener(_0x39d725,_0x5278b2){return function(){ChatGroupEvents[_0xa786('0x3')](_0x39d725,_0x5278b2);};}exports['register']=function(_0x22809d){for(var _0x55044b=0x0,_0x2d7b1a=events[_0xa786('0x4')];_0x55044b<_0x2d7b1a;_0x55044b++){var _0xff8daa=events[_0x55044b];var _0xb37d5d=createListener(_0xa786('0x5')+_0xff8daa,_0x22809d);ChatGroupEvents['on'](_0xff8daa,_0xb37d5d);}};