cce14472f2370e0007cc149b1fe8152bc1592bc5
[motion2.git] / server / api / voicePrefix / 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 _0xa5c0=['/:id','show','getAgents','/:id/teams','getTeams','create','post','/:id/users','addAgents','addTeams','put','update','destroy','removeAgents','delete','removeTeams','exports','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','index','isAuthenticated','describe','get'];(function(_0xd13a88,_0x3c5269){var _0x1c993c=function(_0x245af5){while(--_0x245af5){_0xd13a88['push'](_0xd13a88['shift']());}};_0x1c993c(++_0x3c5269);}(_0xa5c0,0xbf));var _0x0a5c=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xa5c0[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0x0a5c('0x0'));var util=require(_0x0a5c('0x1'));var path=require(_0x0a5c('0x2'));var timeout=require('connect-timeout');var express=require(_0x0a5c('0x3'));var router=express[_0x0a5c('0x4')]();var fs_extra=require(_0x0a5c('0x5'));var auth=require(_0x0a5c('0x6'));var interaction=require(_0x0a5c('0x7'));var config=require('../../config/environment');var controller=require('./voicePrefix.controller');router['get']('/',auth['isAuthenticated'](),controller[_0x0a5c('0x8')]);router['get']('/describe',auth[_0x0a5c('0x9')](),controller[_0x0a5c('0xa')]);router[_0x0a5c('0xb')](_0x0a5c('0xc'),auth[_0x0a5c('0x9')](),controller[_0x0a5c('0xd')]);router[_0x0a5c('0xb')]('/:id/users',auth[_0x0a5c('0x9')](),controller[_0x0a5c('0xe')]);router['get'](_0x0a5c('0xf'),auth[_0x0a5c('0x9')](),controller[_0x0a5c('0x10')]);router['post']('/',auth['isAuthenticated'](),controller[_0x0a5c('0x11')]);router[_0x0a5c('0x12')](_0x0a5c('0x13'),auth[_0x0a5c('0x9')](),controller[_0x0a5c('0x14')]);router[_0x0a5c('0x12')](_0x0a5c('0xf'),auth[_0x0a5c('0x9')](),controller[_0x0a5c('0x15')]);router[_0x0a5c('0x16')](_0x0a5c('0xc'),auth[_0x0a5c('0x9')](),controller[_0x0a5c('0x17')]);router['delete']('/:id',auth[_0x0a5c('0x9')](),controller[_0x0a5c('0x18')]);router['delete']('/:id/users',auth['isAuthenticated'](),controller[_0x0a5c('0x19')]);router[_0x0a5c('0x1a')](_0x0a5c('0xf'),auth[_0x0a5c('0x9')](),controller[_0x0a5c('0x1b')]);module[_0x0a5c('0x1c')]=router;