Built motion from commit (unavailable).|2.5.1
[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 _0x74b1=['emit','register','save'];(function(_0xbd9b37,_0x174462){var _0x74117=function(_0x19f1e3){while(--_0x19f1e3){_0xbd9b37['push'](_0xbd9b37['shift']());}};_0x74117(++_0x174462);}(_0x74b1,0x19d));var _0x174b=function(_0x587693,_0x27fe90){_0x587693=_0x587693-0x0;var _0x510a1a=_0x74b1[_0x587693];return _0x510a1a;};'use strict';var ChatGroupEvents=require('./chatGroup.events');var events=[_0x174b('0x0'),'remove','update'];function createListener(_0x3c6dae,_0x560339){return function(_0x4cda5f){_0x560339[_0x174b('0x1')](_0x3c6dae,_0x4cda5f);};}function removeListener(_0x453bc5,_0x37b5e2){return function(){ChatGroupEvents['removeListener'](_0x453bc5,_0x37b5e2);};}exports[_0x174b('0x2')]=function(_0x5890ca){for(var _0x3cd09b=0x0,_0x40f271=events['length'];_0x3cd09b<_0x40f271;_0x3cd09b++){var _0x4fc525=events[_0x3cd09b];var _0x5a9488=createListener('chatGroup:'+_0x4fc525,_0x5890ca);ChatGroupEvents['on'](_0x4fc525,_0x5a9488);}};