Built motion from commit (unavailable).|2.0.71
[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 _0x4c25=['Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./team.controller','index','get','isAuthenticated','show','/:id/queues','getQueues','getAgents','post','create','/:id/users','addAgents','put','/:id','update','delete','destroy','removeAgents','exports','express'];(function(_0x2aa4c7,_0x38af32){var _0x32acc3=function(_0x5d3700){while(--_0x5d3700){_0x2aa4c7['push'](_0x2aa4c7['shift']());}};_0x32acc3(++_0x38af32);}(_0x4c25,0xbf));var _0x54c2=function(_0x7ad123,_0xeeeef3){_0x7ad123=_0x7ad123-0x0;var _0x37d073=_0x4c25[_0x7ad123];return _0x37d073;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var express=require(_0x54c2('0x0'));var router=express[_0x54c2('0x1')]();var auth=require(_0x54c2('0x2'));var interaction=require(_0x54c2('0x3'));var config=require(_0x54c2('0x4'));var controller=require(_0x54c2('0x5'));router['get']('/',auth['isAuthenticated'](),controller[_0x54c2('0x6')]);router[_0x54c2('0x7')]('/:id',auth[_0x54c2('0x8')](),controller[_0x54c2('0x9')]);router[_0x54c2('0x7')](_0x54c2('0xa'),auth[_0x54c2('0x8')](),controller[_0x54c2('0xb')]);router[_0x54c2('0x7')]('/:id/users',auth[_0x54c2('0x8')](),controller[_0x54c2('0xc')]);router[_0x54c2('0xd')]('/',auth[_0x54c2('0x8')](),controller[_0x54c2('0xe')]);router[_0x54c2('0xd')]('/:id/queues',auth[_0x54c2('0x8')](),controller['addQueues']);router['post'](_0x54c2('0xf'),auth[_0x54c2('0x8')](),controller[_0x54c2('0x10')]);router[_0x54c2('0x11')](_0x54c2('0x12'),auth[_0x54c2('0x8')](),controller[_0x54c2('0x13')]);router[_0x54c2('0x14')]('/:id',auth[_0x54c2('0x8')](),controller[_0x54c2('0x15')]);router[_0x54c2('0x14')](_0x54c2('0xa'),auth['isAuthenticated'](),controller['removeQueues']);router[_0x54c2('0x14')](_0x54c2('0xf'),auth[_0x54c2('0x8')](),controller[_0x54c2('0x16')]);module[_0x54c2('0x17')]=router;