Built motion from commit (unavailable).|2.5.29
[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 _0x4abf=['get','isAuthenticated','index','/:id','show','getQueues','/:id/users','getAgents','post','addQueues','addAgents','put','update','delete','destroy','/:id/queues','removeAgents','exports','multer','util','path','express','../../components/auth/service','../../components/interaction/service','./team.controller'];(function(_0x4b5b61,_0x52adda){var _0x13db00=function(_0x24b5c6){while(--_0x24b5c6){_0x4b5b61['push'](_0x4b5b61['shift']());}};_0x13db00(++_0x52adda);}(_0x4abf,0x8f));var _0xf4ab=function(_0x519e1b,_0x58dac3){_0x519e1b=_0x519e1b-0x0;var _0x4634ed=_0x4abf[_0x519e1b];return _0x4634ed;};'use strict';var multer=require(_0xf4ab('0x0'));var util=require(_0xf4ab('0x1'));var path=require(_0xf4ab('0x2'));var timeout=require('connect-timeout');var express=require(_0xf4ab('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xf4ab('0x4'));var interaction=require(_0xf4ab('0x5'));var config=require('../../config/environment');var controller=require(_0xf4ab('0x6'));router[_0xf4ab('0x7')]('/',auth[_0xf4ab('0x8')](),controller[_0xf4ab('0x9')]);router['get'](_0xf4ab('0xa'),auth[_0xf4ab('0x8')](),controller[_0xf4ab('0xb')]);router[_0xf4ab('0x7')]('/:id/queues',auth[_0xf4ab('0x8')](),controller[_0xf4ab('0xc')]);router[_0xf4ab('0x7')](_0xf4ab('0xd'),auth[_0xf4ab('0x8')](),controller[_0xf4ab('0xe')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0xf4ab('0xf')]('/:id/queues',auth[_0xf4ab('0x8')](),controller[_0xf4ab('0x10')]);router[_0xf4ab('0xf')](_0xf4ab('0xd'),auth[_0xf4ab('0x8')](),controller[_0xf4ab('0x11')]);router[_0xf4ab('0x12')](_0xf4ab('0xa'),auth[_0xf4ab('0x8')](),controller[_0xf4ab('0x13')]);router[_0xf4ab('0x14')]('/:id',auth[_0xf4ab('0x8')](),controller[_0xf4ab('0x15')]);router[_0xf4ab('0x14')](_0xf4ab('0x16'),auth['isAuthenticated'](),controller['removeQueues']);router[_0xf4ab('0x14')]('/:id/users',auth[_0xf4ab('0x8')](),controller[_0xf4ab('0x17')]);module[_0xf4ab('0x18')]=router;