Built motion from commit 936e8062.|2.5.33
[motion2.git] / server / api / team / team.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 _0x97cf=['save','remove','update','emit','register'];(function(_0x80b6a,_0x1b138c){var _0x58de9b=function(_0x1973ae){while(--_0x1973ae){_0x80b6a['push'](_0x80b6a['shift']());}};_0x58de9b(++_0x1b138c);}(_0x97cf,0xa0));var _0xf97c=function(_0x345ac6,_0x43a5de){_0x345ac6=_0x345ac6-0x0;var _0x4c6fe6=_0x97cf[_0x345ac6];return _0x4c6fe6;};'use strict';var TeamEvents=require('./team.events');var events=[_0xf97c('0x0'),_0xf97c('0x1'),_0xf97c('0x2')];function createListener(_0x5a9e3a,_0x21d214){return function(_0x45a790){_0x21d214[_0xf97c('0x3')](_0x5a9e3a,_0x45a790);};}function removeListener(_0x2e72ba,_0x4b0b59){return function(){TeamEvents['removeListener'](_0x2e72ba,_0x4b0b59);};}exports[_0xf97c('0x4')]=function(_0x43dbac){for(var _0x27fd1e=0x0,_0x33e845=events['length'];_0x27fd1e<_0x33e845;_0x27fd1e++){var _0x2d4dd9=events[_0x27fd1e];var _0x3d8a9f=createListener('team:'+_0x2d4dd9,_0x43dbac);TeamEvents['on'](_0x2d4dd9,_0x3d8a9f);}};