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