Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / api / voiceQueue / 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 _0x3fae=['/:id/hopper_finals','getHopperFinals','/:id/hopper_black','/:id/teams','getTeams','/:id/users','/:id/members','getMembers','/:id/lists','/:id/blacklists','getBlackLists','post','/:id/clone','addTeams','addAgents','addLists','addBlackLists','/:id','update','delete','destroy','removeTeams','exports','util','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','isAuthenticated','show','get','/:id/hoppers','getHoppers','/:id/hopper_histories','getHopperHistories'];(function(_0x51382e,_0x51c98d){var _0x2efdc0=function(_0x37a5b0){while(--_0x37a5b0){_0x51382e['push'](_0x51382e['shift']());}};_0x2efdc0(++_0x51c98d);}(_0x3fae,0xd0));var _0xe3fa=function(_0x30e91e,_0x338f69){_0x30e91e=_0x30e91e-0x0;var _0x1a778c=_0x3fae[_0x30e91e];return _0x1a778c;};'use strict';var multer=require('multer');var util=require(_0xe3fa('0x0'));var path=require(_0xe3fa('0x1'));var timeout=require(_0xe3fa('0x2'));var express=require(_0xe3fa('0x3'));var router=express[_0xe3fa('0x4')]();var auth=require(_0xe3fa('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xe3fa('0x6'));var controller=require('./voiceQueue.controller');router['get']('/',auth[_0xe3fa('0x7')](),controller['index']);router['get']('/:id',auth[_0xe3fa('0x7')](),controller[_0xe3fa('0x8')]);router[_0xe3fa('0x9')](_0xe3fa('0xa'),auth[_0xe3fa('0x7')](),controller[_0xe3fa('0xb')]);router['get'](_0xe3fa('0xc'),auth[_0xe3fa('0x7')](),controller[_0xe3fa('0xd')]);router['get'](_0xe3fa('0xe'),auth[_0xe3fa('0x7')](),controller[_0xe3fa('0xf')]);router[_0xe3fa('0x9')](_0xe3fa('0x10'),auth[_0xe3fa('0x7')](),controller['getHopperBlacks']);router[_0xe3fa('0x9')](_0xe3fa('0x11'),auth[_0xe3fa('0x7')](),controller[_0xe3fa('0x12')]);router['get'](_0xe3fa('0x13'),auth['isAuthenticated'](),controller['getAgents']);router[_0xe3fa('0x9')](_0xe3fa('0x14'),auth[_0xe3fa('0x7')](),controller[_0xe3fa('0x15')]);router[_0xe3fa('0x9')](_0xe3fa('0x16'),auth[_0xe3fa('0x7')](),controller['getLists']);router[_0xe3fa('0x9')](_0xe3fa('0x17'),auth[_0xe3fa('0x7')](),controller[_0xe3fa('0x18')]);router[_0xe3fa('0x19')]('/',auth[_0xe3fa('0x7')](),controller['create']);router[_0xe3fa('0x19')](_0xe3fa('0x1a'),auth['isAuthenticated'](),controller['clone']);router['post'](_0xe3fa('0x11'),auth[_0xe3fa('0x7')](),controller[_0xe3fa('0x1b')]);router[_0xe3fa('0x19')]('/:id/users',auth[_0xe3fa('0x7')](),controller[_0xe3fa('0x1c')]);router['post'](_0xe3fa('0x16'),auth[_0xe3fa('0x7')](),controller[_0xe3fa('0x1d')]);router['post']('/:id/blacklists',auth['isAuthenticated'](),controller[_0xe3fa('0x1e')]);router['put'](_0xe3fa('0x1f'),auth[_0xe3fa('0x7')](),controller[_0xe3fa('0x20')]);router[_0xe3fa('0x21')](_0xe3fa('0x1f'),auth[_0xe3fa('0x7')](),controller[_0xe3fa('0x22')]);router[_0xe3fa('0x21')](_0xe3fa('0x11'),auth[_0xe3fa('0x7')](),controller[_0xe3fa('0x23')]);router[_0xe3fa('0x21')]('/:id/users',auth[_0xe3fa('0x7')](),controller['removeAgents']);router[_0xe3fa('0x21')](_0xe3fa('0x16'),auth[_0xe3fa('0x7')](),controller['removeLists']);router[_0xe3fa('0x21')](_0xe3fa('0x17'),auth[_0xe3fa('0x7')](),controller['removeBlackLists']);module[_0xe3fa('0x24')]=router;