Built motion from commit 2b9af5da.|2.6.26
[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 _0x12de=['/:id','show','post','/:id/applications','destroy','exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index'];(function(_0x158068,_0x4b5e25){var _0x510292=function(_0x1d2f62){while(--_0x1d2f62){_0x158068['push'](_0x158068['shift']());}};_0x510292(++_0x4b5e25);}(_0x12de,0x1ec));var _0xe12d=function(_0x4516e2,_0x1d466e){_0x4516e2=_0x4516e2-0x0;var _0x168b13=_0x12de[_0x4516e2];return _0x168b13;};'use strict';var multer=require(_0xe12d('0x0'));var util=require('util');var path=require(_0xe12d('0x1'));var timeout=require(_0xe12d('0x2'));var express=require(_0xe12d('0x3'));var router=express[_0xe12d('0x4')]();var fs_extra=require(_0xe12d('0x5'));var auth=require(_0xe12d('0x6'));var interaction=require(_0xe12d('0x7'));var config=require(_0xe12d('0x8'));var controller=require('./voiceExtension.controller');router[_0xe12d('0x9')]('/',auth[_0xe12d('0xa')](),controller[_0xe12d('0xb')]);router[_0xe12d('0x9')](_0xe12d('0xc'),auth[_0xe12d('0xa')](),controller[_0xe12d('0xd')]);router[_0xe12d('0xe')]('/',auth['isAuthenticated'](),controller['create']);router[_0xe12d('0xe')](_0xe12d('0xf'),auth['isAuthenticated'](),controller['addApplications']);router['put'](_0xe12d('0xc'),auth[_0xe12d('0xa')](),controller['update']);router['delete'](_0xe12d('0xc'),auth[_0xe12d('0xa')](),controller[_0xe12d('0x10')]);module[_0xe12d('0x11')]=router;