Built motion from commit (unavailable).|2.5.1
[motion2.git] / server / api / team / index.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 _0x3b2c=['post','update','destroy','delete','removeQueues','removeAgents','exports','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./team.controller','get','isAuthenticated','index','/:id','show','/:id/queues','/:id/users','getAgents','create'];(function(_0x19e966,_0x55d008){var _0x24e3d6=function(_0x4d2d7f){while(--_0x4d2d7f){_0x19e966['push'](_0x19e966['shift']());}};_0x24e3d6(++_0x55d008);}(_0x3b2c,0x127));var _0xc3b2=function(_0x3e7c04,_0x860d26){_0x3e7c04=_0x3e7c04-0x0;var _0x39994a=_0x3b2c[_0x3e7c04];return _0x39994a;};'use strict';var multer=require('multer');var util=require(_0xc3b2('0x0'));var path=require(_0xc3b2('0x1'));var timeout=require(_0xc3b2('0x2'));var express=require('express');var router=express[_0xc3b2('0x3')]();var auth=require(_0xc3b2('0x4'));var interaction=require(_0xc3b2('0x5'));var config=require(_0xc3b2('0x6'));var controller=require(_0xc3b2('0x7'));router[_0xc3b2('0x8')]('/',auth[_0xc3b2('0x9')](),controller[_0xc3b2('0xa')]);router[_0xc3b2('0x8')](_0xc3b2('0xb'),auth[_0xc3b2('0x9')](),controller[_0xc3b2('0xc')]);router[_0xc3b2('0x8')](_0xc3b2('0xd'),auth['isAuthenticated'](),controller['getQueues']);router[_0xc3b2('0x8')](_0xc3b2('0xe'),auth[_0xc3b2('0x9')](),controller[_0xc3b2('0xf')]);router['post']('/',auth[_0xc3b2('0x9')](),controller[_0xc3b2('0x10')]);router[_0xc3b2('0x11')]('/:id/queues',auth[_0xc3b2('0x9')](),controller['addQueues']);router['post'](_0xc3b2('0xe'),auth[_0xc3b2('0x9')](),controller['addAgents']);router['put'](_0xc3b2('0xb'),auth['isAuthenticated'](),controller[_0xc3b2('0x12')]);router['delete'](_0xc3b2('0xb'),auth[_0xc3b2('0x9')](),controller[_0xc3b2('0x13')]);router[_0xc3b2('0x14')]('/:id/queues',auth[_0xc3b2('0x9')](),controller[_0xc3b2('0x15')]);router['delete'](_0xc3b2('0xe'),auth['isAuthenticated'](),controller[_0xc3b2('0x16')]);module[_0xc3b2('0x17')]=router;