Built motion from commit d5e4af8c.|2.6.23
[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 _0xe9ff=['length','team:','update','emit','removeListener','register'];(function(_0x2dd3fa,_0x347ce6){var _0x129a26=function(_0x1ff53){while(--_0x1ff53){_0x2dd3fa['push'](_0x2dd3fa['shift']());}};_0x129a26(++_0x347ce6);}(_0xe9ff,0x17c));var _0xfe9f=function(_0x25f534,_0xf9a7f3){_0x25f534=_0x25f534-0x0;var _0x10841a=_0xe9ff[_0x25f534];return _0x10841a;};'use strict';var TeamEvents=require('./team.events');var events=['save','remove',_0xfe9f('0x0')];function createListener(_0x5d9f8c,_0x3bd6ea){return function(_0xfb3bf3){_0x3bd6ea[_0xfe9f('0x1')](_0x5d9f8c,_0xfb3bf3);};}function removeListener(_0x15cd60,_0x4226ce){return function(){TeamEvents[_0xfe9f('0x2')](_0x15cd60,_0x4226ce);};}exports[_0xfe9f('0x3')]=function(_0x5f9833){for(var _0xe96c92=0x0,_0x53767c=events[_0xfe9f('0x4')];_0xe96c92<_0x53767c;_0xe96c92++){var _0x4e4857=events[_0xe96c92];var _0x4a837d=createListener(_0xfe9f('0x5')+_0x4e4857,_0x5f9833);TeamEvents['on'](_0x4e4857,_0x4a837d);}};