Built motion from commit (unavailable).|2.5.7
[motion2.git] / server / api / openchannelQueue / 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 _0x6bb4=['path','express','Router','../../components/interaction/service','../../config/environment','./openchannelQueue.controller','get','isAuthenticated','index','describe','show','getMembers','getTeams','/:id/users','getAgents','/:id/teams','addTeams','post','put','/:id','delete','removeAgents','exports','multer','util'];(function(_0x4ae6e5,_0x237dae){var _0x14261c=function(_0x467ffa){while(--_0x467ffa){_0x4ae6e5['push'](_0x4ae6e5['shift']());}};_0x14261c(++_0x237dae);}(_0x6bb4,0x1a7));var _0x46bb=function(_0x1eba8d,_0x5d4160){_0x1eba8d=_0x1eba8d-0x0;var _0x5dfc75=_0x6bb4[_0x1eba8d];return _0x5dfc75;};'use strict';var multer=require(_0x46bb('0x0'));var util=require(_0x46bb('0x1'));var path=require(_0x46bb('0x2'));var timeout=require('connect-timeout');var express=require(_0x46bb('0x3'));var router=express[_0x46bb('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x46bb('0x5'));var config=require(_0x46bb('0x6'));var controller=require(_0x46bb('0x7'));router[_0x46bb('0x8')]('/',auth[_0x46bb('0x9')](),controller[_0x46bb('0xa')]);router['get']('/describe',auth[_0x46bb('0x9')](),controller[_0x46bb('0xb')]);router['get']('/:id',auth['isAuthenticated'](),controller[_0x46bb('0xc')]);router[_0x46bb('0x8')]('/:id/members',auth[_0x46bb('0x9')](),controller[_0x46bb('0xd')]);router[_0x46bb('0x8')]('/:id/teams',auth[_0x46bb('0x9')](),controller[_0x46bb('0xe')]);router['get'](_0x46bb('0xf'),auth[_0x46bb('0x9')](),controller[_0x46bb('0x10')]);router['post']('/',auth[_0x46bb('0x9')](),controller['create']);router['post'](_0x46bb('0x11'),auth['isAuthenticated'](),controller[_0x46bb('0x12')]);router[_0x46bb('0x13')]('/:id/users',auth[_0x46bb('0x9')](),controller['addAgents']);router[_0x46bb('0x14')]('/:id',auth[_0x46bb('0x9')](),controller['update']);router['delete'](_0x46bb('0x15'),auth[_0x46bb('0x9')](),controller['destroy']);router[_0x46bb('0x16')](_0x46bb('0x11'),auth['isAuthenticated'](),controller['removeTeams']);router[_0x46bb('0x16')](_0x46bb('0xf'),auth[_0x46bb('0x9')](),controller[_0x46bb('0x17')]);module[_0x46bb('0x18')]=router;