988c454a248184bc16b7340a390e330aa104bc41
[motion2.git] / server / api / voiceExtension / 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 _0xdc3f=['addApplications','update','delete','destroy','multer','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','post','/:id/applications'];(function(_0x3dc68d,_0x1c1951){var _0xdf7f94=function(_0x339428){while(--_0x339428){_0x3dc68d['push'](_0x3dc68d['shift']());}};_0xdf7f94(++_0x1c1951);}(_0xdc3f,0xaf));var _0xfdc3=function(_0x2d89eb,_0x4df7d8){_0x2d89eb=_0x2d89eb-0x0;var _0xea6c73=_0xdc3f[_0x2d89eb];return _0xea6c73;};'use strict';var multer=require(_0xfdc3('0x0'));var util=require(_0xfdc3('0x1'));var path=require(_0xfdc3('0x2'));var timeout=require(_0xfdc3('0x3'));var express=require(_0xfdc3('0x4'));var router=express['Router']();var auth=require(_0xfdc3('0x5'));var interaction=require(_0xfdc3('0x6'));var config=require(_0xfdc3('0x7'));var controller=require('./voiceExtension.controller');router[_0xfdc3('0x8')]('/',auth[_0xfdc3('0x9')](),controller[_0xfdc3('0xa')]);router[_0xfdc3('0x8')](_0xfdc3('0xb'),auth['isAuthenticated'](),controller[_0xfdc3('0xc')]);router[_0xfdc3('0xd')]('/',auth[_0xfdc3('0x9')](),controller['create']);router[_0xfdc3('0xd')](_0xfdc3('0xe'),auth['isAuthenticated'](),controller[_0xfdc3('0xf')]);router['put'](_0xfdc3('0xb'),auth[_0xfdc3('0x9')](),controller[_0xfdc3('0x10')]);router[_0xfdc3('0x11')](_0xfdc3('0xb'),auth[_0xfdc3('0x9')](),controller[_0xfdc3('0x12')]);module['exports']=router;