Built motion from commit (unavailable).|2.4.17
[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 _0x7d14=['team:','./team.events','save','update','removeListener','register'];(function(_0x9e6b8e,_0x5b986b){var _0x185aa9=function(_0x93e26e){while(--_0x93e26e){_0x9e6b8e['push'](_0x9e6b8e['shift']());}};_0x185aa9(++_0x5b986b);}(_0x7d14,0x6d));var _0x47d1=function(_0x3143bc,_0x3ca4e7){_0x3143bc=_0x3143bc-0x0;var _0x847340=_0x7d14[_0x3143bc];return _0x847340;};'use strict';var TeamEvents=require(_0x47d1('0x0'));var events=[_0x47d1('0x1'),'remove',_0x47d1('0x2')];function createListener(_0x325761,_0x21f244){return function(_0x8645d1){_0x21f244['emit'](_0x325761,_0x8645d1);};}function removeListener(_0x37d8f2,_0x33fe33){return function(){TeamEvents[_0x47d1('0x3')](_0x37d8f2,_0x33fe33);};}exports[_0x47d1('0x4')]=function(_0x1b2f47){for(var _0x550ee2=0x0,_0x533402=events['length'];_0x550ee2<_0x533402;_0x550ee2++){var _0x38e165=events[_0x550ee2];var _0x57d410=createListener(_0x47d1('0x5')+_0x38e165,_0x1b2f47);TeamEvents['on'](_0x38e165,_0x57d410);}};