Built motion from commit (unavailable).|2.5.5
[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 _0xfd50=['path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','isAuthenticated','index','get','/describe','describe','show','/:id/members','getMembers','getTeams','/:id/users','getAgents','post','create','addTeams','addAgents','put','/:id','update','delete','destroy','removeTeams','exports','util'];(function(_0x13e741,_0x5d3c24){var _0x3f8bb3=function(_0x4440a0){while(--_0x4440a0){_0x13e741['push'](_0x13e741['shift']());}};_0x3f8bb3(++_0x5d3c24);}(_0xfd50,0x178));var _0x0fd5=function(_0x1f9f37,_0x18776e){_0x1f9f37=_0x1f9f37-0x0;var _0x21c080=_0xfd50[_0x1f9f37];return _0x21c080;};'use strict';var multer=require('multer');var util=require(_0x0fd5('0x0'));var path=require(_0x0fd5('0x1'));var timeout=require(_0x0fd5('0x2'));var express=require(_0x0fd5('0x3'));var router=express[_0x0fd5('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x0fd5('0x5'));var config=require(_0x0fd5('0x6'));var controller=require('./openchannelQueue.controller');router['get']('/',auth[_0x0fd5('0x7')](),controller[_0x0fd5('0x8')]);router[_0x0fd5('0x9')](_0x0fd5('0xa'),auth['isAuthenticated'](),controller[_0x0fd5('0xb')]);router[_0x0fd5('0x9')]('/:id',auth[_0x0fd5('0x7')](),controller[_0x0fd5('0xc')]);router[_0x0fd5('0x9')](_0x0fd5('0xd'),auth[_0x0fd5('0x7')](),controller[_0x0fd5('0xe')]);router[_0x0fd5('0x9')]('/:id/teams',auth[_0x0fd5('0x7')](),controller[_0x0fd5('0xf')]);router['get'](_0x0fd5('0x10'),auth[_0x0fd5('0x7')](),controller[_0x0fd5('0x11')]);router[_0x0fd5('0x12')]('/',auth[_0x0fd5('0x7')](),controller[_0x0fd5('0x13')]);router[_0x0fd5('0x12')]('/:id/teams',auth['isAuthenticated'](),controller[_0x0fd5('0x14')]);router['post'](_0x0fd5('0x10'),auth[_0x0fd5('0x7')](),controller[_0x0fd5('0x15')]);router[_0x0fd5('0x16')](_0x0fd5('0x17'),auth['isAuthenticated'](),controller[_0x0fd5('0x18')]);router[_0x0fd5('0x19')](_0x0fd5('0x17'),auth[_0x0fd5('0x7')](),controller[_0x0fd5('0x1a')]);router[_0x0fd5('0x19')]('/:id/teams',auth[_0x0fd5('0x7')](),controller[_0x0fd5('0x1b')]);router[_0x0fd5('0x19')](_0x0fd5('0x10'),auth[_0x0fd5('0x7')](),controller['removeAgents']);module[_0x0fd5('0x1c')]=router;