35ce5fa7db8a5e13924f54de599e4454197b4359
[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 _0x21a3=['isAuthenticated','index','describe','/:id','show','/:id/users','getAgents','post','put','update','destroy','delete','removeAgents','exports','multer','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','get'];(function(_0x1b1650,_0x3aa26b){var _0x297a68=function(_0x195e1d){while(--_0x195e1d){_0x1b1650['push'](_0x1b1650['shift']());}};_0x297a68(++_0x3aa26b);}(_0x21a3,0x66));var _0x321a=function(_0x433778,_0xf42c22){_0x433778=_0x433778-0x0;var _0x2f530f=_0x21a3[_0x433778];return _0x2f530f;};'use strict';var multer=require(_0x321a('0x0'));var util=require('util');var path=require(_0x321a('0x1'));var timeout=require(_0x321a('0x2'));var express=require(_0x321a('0x3'));var router=express[_0x321a('0x4')]();var auth=require(_0x321a('0x5'));var interaction=require(_0x321a('0x6'));var config=require('../../config/environment');var controller=require('./voicePrefix.controller');router[_0x321a('0x7')]('/',auth[_0x321a('0x8')](),controller[_0x321a('0x9')]);router[_0x321a('0x7')]('/describe',auth[_0x321a('0x8')](),controller[_0x321a('0xa')]);router[_0x321a('0x7')](_0x321a('0xb'),auth[_0x321a('0x8')](),controller[_0x321a('0xc')]);router[_0x321a('0x7')](_0x321a('0xd'),auth[_0x321a('0x8')](),controller[_0x321a('0xe')]);router[_0x321a('0xf')]('/',auth[_0x321a('0x8')](),controller['create']);router[_0x321a('0xf')](_0x321a('0xd'),auth['isAuthenticated'](),controller['addAgents']);router[_0x321a('0x10')]('/:id',auth[_0x321a('0x8')](),controller[_0x321a('0x11')]);router['delete']('/:id',auth[_0x321a('0x8')](),controller[_0x321a('0x12')]);router[_0x321a('0x13')](_0x321a('0xd'),auth[_0x321a('0x8')](),controller[_0x321a('0x14')]);module[_0x321a('0x15')]=router;