e7d4bcacc96aef166fac9efaad2cb1de8c7a68a1
[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 _0x65eb=['util','connect-timeout','express','Router','fs-extra','./voiceQueue.controller','get','isAuthenticated','index','/:id','show','/:id/hoppers','/:id/hopper_histories','getHopperHistories','getHopperFinals','/:id/hopper_black','getHopperBlacks','getTeams','/:id/users','getAgents','getMembers','/:id/lists','getLists','post','create','/:id/clone','clone','/:id/teams','addTeams','addAgents','addLists','/:id/blacklists','put','update','delete','destroy','removeTeams','removeAgents','removeLists','removeBlackLists','exports','multer'];(function(_0x20db66,_0x4272f3){var _0x17e554=function(_0x4307c9){while(--_0x4307c9){_0x20db66['push'](_0x20db66['shift']());}};_0x17e554(++_0x4272f3);}(_0x65eb,0x1a3));var _0xb65e=function(_0x56e1b3,_0xca670d){_0x56e1b3=_0x56e1b3-0x0;var _0xaccef4=_0x65eb[_0x56e1b3];return _0xaccef4;};'use strict';var multer=require(_0xb65e('0x0'));var util=require(_0xb65e('0x1'));var path=require('path');var timeout=require(_0xb65e('0x2'));var express=require(_0xb65e('0x3'));var router=express[_0xb65e('0x4')]();var fs_extra=require(_0xb65e('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xb65e('0x6'));router[_0xb65e('0x7')]('/',auth[_0xb65e('0x8')](),controller[_0xb65e('0x9')]);router[_0xb65e('0x7')](_0xb65e('0xa'),auth['isAuthenticated'](),controller[_0xb65e('0xb')]);router[_0xb65e('0x7')](_0xb65e('0xc'),auth[_0xb65e('0x8')](),controller['getHoppers']);router[_0xb65e('0x7')](_0xb65e('0xd'),auth[_0xb65e('0x8')](),controller[_0xb65e('0xe')]);router[_0xb65e('0x7')]('/:id/hopper_finals',auth['isAuthenticated'](),controller[_0xb65e('0xf')]);router[_0xb65e('0x7')](_0xb65e('0x10'),auth[_0xb65e('0x8')](),controller[_0xb65e('0x11')]);router['get']('/:id/teams',auth[_0xb65e('0x8')](),controller[_0xb65e('0x12')]);router[_0xb65e('0x7')](_0xb65e('0x13'),auth[_0xb65e('0x8')](),controller[_0xb65e('0x14')]);router[_0xb65e('0x7')]('/:id/members',auth[_0xb65e('0x8')](),controller[_0xb65e('0x15')]);router[_0xb65e('0x7')](_0xb65e('0x16'),auth[_0xb65e('0x8')](),controller[_0xb65e('0x17')]);router[_0xb65e('0x7')]('/:id/blacklists',auth[_0xb65e('0x8')](),controller['getBlackLists']);router[_0xb65e('0x18')]('/',auth[_0xb65e('0x8')](),controller[_0xb65e('0x19')]);router[_0xb65e('0x18')](_0xb65e('0x1a'),auth[_0xb65e('0x8')](),controller[_0xb65e('0x1b')]);router[_0xb65e('0x18')](_0xb65e('0x1c'),auth[_0xb65e('0x8')](),controller[_0xb65e('0x1d')]);router[_0xb65e('0x18')](_0xb65e('0x13'),auth['isAuthenticated'](),controller[_0xb65e('0x1e')]);router[_0xb65e('0x18')](_0xb65e('0x16'),auth[_0xb65e('0x8')](),controller[_0xb65e('0x1f')]);router[_0xb65e('0x18')](_0xb65e('0x20'),auth[_0xb65e('0x8')](),controller['addBlackLists']);router[_0xb65e('0x21')](_0xb65e('0xa'),auth['isAuthenticated'](),controller[_0xb65e('0x22')]);router[_0xb65e('0x23')](_0xb65e('0xa'),auth[_0xb65e('0x8')](),controller[_0xb65e('0x24')]);router[_0xb65e('0x23')](_0xb65e('0x1c'),auth['isAuthenticated'](),controller[_0xb65e('0x25')]);router[_0xb65e('0x23')]('/:id/users',auth[_0xb65e('0x8')](),controller[_0xb65e('0x26')]);router[_0xb65e('0x23')](_0xb65e('0x16'),auth[_0xb65e('0x8')](),controller[_0xb65e('0x27')]);router['delete'](_0xb65e('0x20'),auth[_0xb65e('0x8')](),controller[_0xb65e('0x28')]);module[_0xb65e('0x29')]=router;