6b5a307b93e8fabf68a01f1bd51e8d75cbff6878
[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 _0xda96=['update','delete','destroy','removeTeams','removeAgents','multer','util','path','connect-timeout','express','fs-extra','../../config/environment','./openchannelQueue.controller','isAuthenticated','/describe','get','/:id','show','/:id/teams','getTeams','/:id/users','getAgents','post','create','addAgents'];(function(_0x462e7e,_0x1aa375){var _0x35eed4=function(_0x54ee80){while(--_0x54ee80){_0x462e7e['push'](_0x462e7e['shift']());}};_0x35eed4(++_0x1aa375);}(_0xda96,0x82));var _0x6da9=function(_0xe33b86,_0x561afc){_0xe33b86=_0xe33b86-0x0;var _0x1192f5=_0xda96[_0xe33b86];return _0x1192f5;};'use strict';var multer=require(_0x6da9('0x0'));var util=require(_0x6da9('0x1'));var path=require(_0x6da9('0x2'));var timeout=require(_0x6da9('0x3'));var express=require(_0x6da9('0x4'));var router=express['Router']();var fs_extra=require(_0x6da9('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x6da9('0x6'));var controller=require(_0x6da9('0x7'));router['get']('/',auth[_0x6da9('0x8')](),controller['index']);router['get'](_0x6da9('0x9'),auth[_0x6da9('0x8')](),controller['describe']);router[_0x6da9('0xa')](_0x6da9('0xb'),auth[_0x6da9('0x8')](),controller[_0x6da9('0xc')]);router[_0x6da9('0xa')]('/:id/members',auth[_0x6da9('0x8')](),controller['getMembers']);router[_0x6da9('0xa')](_0x6da9('0xd'),auth[_0x6da9('0x8')](),controller[_0x6da9('0xe')]);router[_0x6da9('0xa')](_0x6da9('0xf'),auth[_0x6da9('0x8')](),controller[_0x6da9('0x10')]);router[_0x6da9('0x11')]('/',auth[_0x6da9('0x8')](),controller[_0x6da9('0x12')]);router[_0x6da9('0x11')](_0x6da9('0xd'),auth[_0x6da9('0x8')](),controller['addTeams']);router['post'](_0x6da9('0xf'),auth[_0x6da9('0x8')](),controller[_0x6da9('0x13')]);router['put'](_0x6da9('0xb'),auth[_0x6da9('0x8')](),controller[_0x6da9('0x14')]);router[_0x6da9('0x15')]('/:id',auth[_0x6da9('0x8')](),controller[_0x6da9('0x16')]);router[_0x6da9('0x15')](_0x6da9('0xd'),auth[_0x6da9('0x8')](),controller[_0x6da9('0x17')]);router['delete'](_0x6da9('0xf'),auth[_0x6da9('0x8')](),controller[_0x6da9('0x18')]);module['exports']=router;