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