Built motion from commit (unavailable).|2.3.9
[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 _0xe87d=['length','team:','save','remove','update','emit'];(function(_0x43af9f,_0x461cb1){var _0x4c6660=function(_0x1d99e1){while(--_0x1d99e1){_0x43af9f['push'](_0x43af9f['shift']());}};_0x4c6660(++_0x461cb1);}(_0xe87d,0x98));var _0xde87=function(_0x3a36c2,_0x414682){_0x3a36c2=_0x3a36c2-0x0;var _0x184975=_0xe87d[_0x3a36c2];return _0x184975;};'use strict';var TeamEvents=require('./team.events');var events=[_0xde87('0x0'),_0xde87('0x1'),_0xde87('0x2')];function createListener(_0x76e757,_0x436f59){return function(_0x421e72){_0x436f59[_0xde87('0x3')](_0x76e757,_0x421e72);};}function removeListener(_0x152c2e,_0x58095f){return function(){TeamEvents['removeListener'](_0x152c2e,_0x58095f);};}exports['register']=function(_0x1d94e7){for(var _0x416451=0x0,_0x1e09c5=events[_0xde87('0x4')];_0x416451<_0x1e09c5;_0x416451++){var _0x2f2517=events[_0x416451];var _0xf09c1b=createListener(_0xde87('0x5')+_0x2f2517,_0x1d94e7);TeamEvents['on'](_0x2f2517,_0xf09c1b);}};