Built motion from commit (unavailable).|2.6.0
[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 _0xcc5b=['./chatGroup.events','save','remove','update','emit','removeListener','register','chatGroup:'];(function(_0x4415c3,_0x30d5d1){var _0x25edf3=function(_0x644921){while(--_0x644921){_0x4415c3['push'](_0x4415c3['shift']());}};_0x25edf3(++_0x30d5d1);}(_0xcc5b,0xd0));var _0xbcc5=function(_0x3e55eb,_0x454c2c){_0x3e55eb=_0x3e55eb-0x0;var _0x5d986c=_0xcc5b[_0x3e55eb];return _0x5d986c;};'use strict';var ChatGroupEvents=require(_0xbcc5('0x0'));var events=[_0xbcc5('0x1'),_0xbcc5('0x2'),_0xbcc5('0x3')];function createListener(_0x1c21fb,_0x534925){return function(_0x131e68){_0x534925[_0xbcc5('0x4')](_0x1c21fb,_0x131e68);};}function removeListener(_0x5408ca,_0x5a2ec9){return function(){ChatGroupEvents[_0xbcc5('0x5')](_0x5408ca,_0x5a2ec9);};}exports[_0xbcc5('0x6')]=function(_0x26051f){for(var _0x45708c=0x0,_0x5b7247=events['length'];_0x45708c<_0x5b7247;_0x45708c++){var _0x228cfd=events[_0x45708c];var _0x160117=createListener(_0xbcc5('0x7')+_0x228cfd,_0x26051f);ChatGroupEvents['on'](_0x228cfd,_0x160117);}};