Built motion from commit 10af8726.|2.6.34
[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 _0xeb56=['getMembers','/:id/teams','getTeams','/:id/users','getAgents','post','create','addTeams','addAgents','put','update','delete','removeAgents','multer','util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./openchannelQueue.controller','get','isAuthenticated','index','/describe','describe','/:id','show'];(function(_0xb0e65c,_0x4ad40d){var _0x3bc844=function(_0x1bbe03){while(--_0x1bbe03){_0xb0e65c['push'](_0xb0e65c['shift']());}};_0x3bc844(++_0x4ad40d);}(_0xeb56,0x193));var _0x6eb5=function(_0x3635ce,_0x33a6f9){_0x3635ce=_0x3635ce-0x0;var _0x97ecd0=_0xeb56[_0x3635ce];return _0x97ecd0;};'use strict';var multer=require(_0x6eb5('0x0'));var util=require(_0x6eb5('0x1'));var path=require(_0x6eb5('0x2'));var timeout=require(_0x6eb5('0x3'));var express=require(_0x6eb5('0x4'));var router=express['Router']();var fs_extra=require(_0x6eb5('0x5'));var auth=require(_0x6eb5('0x6'));var interaction=require(_0x6eb5('0x7'));var config=require(_0x6eb5('0x8'));var controller=require(_0x6eb5('0x9'));router[_0x6eb5('0xa')]('/',auth[_0x6eb5('0xb')](),controller[_0x6eb5('0xc')]);router[_0x6eb5('0xa')](_0x6eb5('0xd'),auth[_0x6eb5('0xb')](),controller[_0x6eb5('0xe')]);router[_0x6eb5('0xa')](_0x6eb5('0xf'),auth[_0x6eb5('0xb')](),controller[_0x6eb5('0x10')]);router[_0x6eb5('0xa')]('/:id/members',auth['isAuthenticated'](),controller[_0x6eb5('0x11')]);router[_0x6eb5('0xa')](_0x6eb5('0x12'),auth[_0x6eb5('0xb')](),controller[_0x6eb5('0x13')]);router[_0x6eb5('0xa')](_0x6eb5('0x14'),auth[_0x6eb5('0xb')](),controller[_0x6eb5('0x15')]);router[_0x6eb5('0x16')]('/',auth[_0x6eb5('0xb')](),controller[_0x6eb5('0x17')]);router[_0x6eb5('0x16')]('/:id/teams',auth[_0x6eb5('0xb')](),controller[_0x6eb5('0x18')]);router[_0x6eb5('0x16')](_0x6eb5('0x14'),auth[_0x6eb5('0xb')](),controller[_0x6eb5('0x19')]);router[_0x6eb5('0x1a')](_0x6eb5('0xf'),auth[_0x6eb5('0xb')](),controller[_0x6eb5('0x1b')]);router['delete']('/:id',auth['isAuthenticated'](),controller['destroy']);router[_0x6eb5('0x1c')](_0x6eb5('0x12'),auth['isAuthenticated'](),controller['removeTeams']);router[_0x6eb5('0x1c')]('/:id/users',auth[_0x6eb5('0xb')](),controller[_0x6eb5('0x1d')]);module['exports']=router;