Built motion from commit 85328c08.|2.5.50
[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 _0x685a=['/:id/applications','addApplications','put','update','delete','destroy','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceExtension.controller','get','isAuthenticated','index','/:id','show','create'];(function(_0x515e13,_0x3fabd7){var _0x1dd659=function(_0xc76ee7){while(--_0xc76ee7){_0x515e13['push'](_0x515e13['shift']());}};_0x1dd659(++_0x3fabd7);}(_0x685a,0x8a));var _0xa685=function(_0x2c38fe,_0x165fcd){_0x2c38fe=_0x2c38fe-0x0;var _0x131ab5=_0x685a[_0x2c38fe];return _0x131ab5;};'use strict';var multer=require(_0xa685('0x0'));var util=require(_0xa685('0x1'));var path=require(_0xa685('0x2'));var timeout=require('connect-timeout');var express=require(_0xa685('0x3'));var router=express[_0xa685('0x4')]();var fs_extra=require(_0xa685('0x5'));var auth=require(_0xa685('0x6'));var interaction=require(_0xa685('0x7'));var config=require(_0xa685('0x8'));var controller=require(_0xa685('0x9'));router[_0xa685('0xa')]('/',auth[_0xa685('0xb')](),controller[_0xa685('0xc')]);router['get'](_0xa685('0xd'),auth[_0xa685('0xb')](),controller[_0xa685('0xe')]);router['post']('/',auth['isAuthenticated'](),controller[_0xa685('0xf')]);router['post'](_0xa685('0x10'),auth[_0xa685('0xb')](),controller[_0xa685('0x11')]);router[_0xa685('0x12')](_0xa685('0xd'),auth[_0xa685('0xb')](),controller[_0xa685('0x13')]);router[_0xa685('0x14')](_0xa685('0xd'),auth[_0xa685('0xb')](),controller[_0xa685('0x15')]);module['exports']=router;