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