Built motion from commit f7863d46.|2.5.41
[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 _0xfcbf=['team:','./team.events','save','remove','update','removeListener','register','length'];(function(_0x47dfb8,_0x5257c0){var _0x1a00f9=function(_0x35c741){while(--_0x35c741){_0x47dfb8['push'](_0x47dfb8['shift']());}};_0x1a00f9(++_0x5257c0);}(_0xfcbf,0x1d1));var _0xffcb=function(_0x180838,_0x12d8bc){_0x180838=_0x180838-0x0;var _0xb6ff6e=_0xfcbf[_0x180838];return _0xb6ff6e;};'use strict';var TeamEvents=require(_0xffcb('0x0'));var events=[_0xffcb('0x1'),_0xffcb('0x2'),_0xffcb('0x3')];function createListener(_0x75f520,_0x124439){return function(_0x4ae71c){_0x124439['emit'](_0x75f520,_0x4ae71c);};}function removeListener(_0x232316,_0x165342){return function(){TeamEvents[_0xffcb('0x4')](_0x232316,_0x165342);};}exports[_0xffcb('0x5')]=function(_0x1ed82f){for(var _0x49201c=0x0,_0x471cf1=events[_0xffcb('0x6')];_0x49201c<_0x471cf1;_0x49201c++){var _0x442d9c=events[_0x49201c];var _0x338495=createListener(_0xffcb('0x7')+_0x442d9c,_0x1ed82f);TeamEvents['on'](_0x442d9c,_0x338495);}};