Built motion from commit 775e2a94.|2.6.3
[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 _0x88b5=['create','/:id/applications','addApplications','put','/:id','update','destroy','exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./voiceExtension.controller','isAuthenticated','index','get','show','post'];(function(_0x42a250,_0x24d268){var _0x45f350=function(_0x465ab5){while(--_0x465ab5){_0x42a250['push'](_0x42a250['shift']());}};_0x45f350(++_0x24d268);}(_0x88b5,0x152));var _0x588b=function(_0x5aaf63,_0x44d56e){_0x5aaf63=_0x5aaf63-0x0;var _0x20fae6=_0x88b5[_0x5aaf63];return _0x20fae6;};'use strict';var multer=require(_0x588b('0x0'));var util=require('util');var path=require(_0x588b('0x1'));var timeout=require(_0x588b('0x2'));var express=require(_0x588b('0x3'));var router=express[_0x588b('0x4')]();var fs_extra=require(_0x588b('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x588b('0x6'));var config=require(_0x588b('0x7'));var controller=require(_0x588b('0x8'));router['get']('/',auth[_0x588b('0x9')](),controller[_0x588b('0xa')]);router[_0x588b('0xb')]('/:id',auth['isAuthenticated'](),controller[_0x588b('0xc')]);router[_0x588b('0xd')]('/',auth[_0x588b('0x9')](),controller[_0x588b('0xe')]);router[_0x588b('0xd')](_0x588b('0xf'),auth['isAuthenticated'](),controller[_0x588b('0x10')]);router[_0x588b('0x11')](_0x588b('0x12'),auth[_0x588b('0x9')](),controller[_0x588b('0x13')]);router['delete'](_0x588b('0x12'),auth[_0x588b('0x9')](),controller[_0x588b('0x14')]);module[_0x588b('0x15')]=router;