Built motion from commit (unavailable).|2.5.21
[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 _0x02c9=['post','/:id/users','addAgents','put','/:id','update','delete','removeAgents','exports','multer','util','path','connect-timeout','express','../../components/interaction/service','../../config/environment','./voicePrefix.controller','get','isAuthenticated','index','/describe','describe','getAgents'];(function(_0xf7d64b,_0x91f8d5){var _0x17ab78=function(_0x253693){while(--_0x253693){_0xf7d64b['push'](_0xf7d64b['shift']());}};_0x17ab78(++_0x91f8d5);}(_0x02c9,0xef));var _0x902c=function(_0x5e7cc6,_0x4185a7){_0x5e7cc6=_0x5e7cc6-0x0;var _0x2b35ca=_0x02c9[_0x5e7cc6];return _0x2b35ca;};'use strict';var multer=require(_0x902c('0x0'));var util=require(_0x902c('0x1'));var path=require(_0x902c('0x2'));var timeout=require(_0x902c('0x3'));var express=require(_0x902c('0x4'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x902c('0x5'));var config=require(_0x902c('0x6'));var controller=require(_0x902c('0x7'));router[_0x902c('0x8')]('/',auth[_0x902c('0x9')](),controller[_0x902c('0xa')]);router[_0x902c('0x8')](_0x902c('0xb'),auth[_0x902c('0x9')](),controller[_0x902c('0xc')]);router[_0x902c('0x8')]('/:id',auth[_0x902c('0x9')](),controller['show']);router[_0x902c('0x8')]('/:id/users',auth[_0x902c('0x9')](),controller[_0x902c('0xd')]);router[_0x902c('0xe')]('/',auth[_0x902c('0x9')](),controller['create']);router['post'](_0x902c('0xf'),auth['isAuthenticated'](),controller[_0x902c('0x10')]);router[_0x902c('0x11')](_0x902c('0x12'),auth[_0x902c('0x9')](),controller[_0x902c('0x13')]);router[_0x902c('0x14')](_0x902c('0x12'),auth[_0x902c('0x9')](),controller['destroy']);router[_0x902c('0x14')](_0x902c('0xf'),auth[_0x902c('0x9')](),controller[_0x902c('0x15')]);module[_0x902c('0x16')]=router;