19f349cca2cc18a43161d28089fd9fb2c44ceba1
[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 _0xa4c1=['util','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','isAuthenticated','get','/:id','show','addApplications','put','destroy','exports'];(function(_0x3e1e8e,_0x5e49bf){var _0x10c861=function(_0x20925d){while(--_0x20925d){_0x3e1e8e['push'](_0x3e1e8e['shift']());}};_0x10c861(++_0x5e49bf);}(_0xa4c1,0x70));var _0x1a4c=function(_0x141e03,_0x18340e){_0x141e03=_0x141e03-0x0;var _0x2074e3=_0xa4c1[_0x141e03];return _0x2074e3;};'use strict';var multer=require('multer');var util=require(_0x1a4c('0x0'));var path=require(_0x1a4c('0x1'));var timeout=require(_0x1a4c('0x2'));var express=require(_0x1a4c('0x3'));var router=express[_0x1a4c('0x4')]();var fs_extra=require(_0x1a4c('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x1a4c('0x6'));var config=require(_0x1a4c('0x7'));var controller=require('./voiceExtension.controller');router['get']('/',auth[_0x1a4c('0x8')](),controller['index']);router[_0x1a4c('0x9')](_0x1a4c('0xa'),auth[_0x1a4c('0x8')](),controller[_0x1a4c('0xb')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router['post']('/:id/applications',auth[_0x1a4c('0x8')](),controller[_0x1a4c('0xc')]);router[_0x1a4c('0xd')](_0x1a4c('0xa'),auth['isAuthenticated'](),controller['update']);router['delete']('/:id',auth[_0x1a4c('0x8')](),controller[_0x1a4c('0xe')]);module[_0x1a4c('0xf')]=router;