37f57b023d1a07ae3bdef2a804114c8fcd51b75a
[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 _0x6bc1=['destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceExtension.controller','get','index','/:id','show','post','isAuthenticated','create','/:id/applications','put','update','delete'];(function(_0x1e124c,_0x247677){var _0x318b13=function(_0x3cf386){while(--_0x3cf386){_0x1e124c['push'](_0x1e124c['shift']());}};_0x318b13(++_0x247677);}(_0x6bc1,0xc2));var _0x16bc=function(_0x375bdc,_0x211004){_0x375bdc=_0x375bdc-0x0;var _0x34bdda=_0x6bc1[_0x375bdc];return _0x34bdda;};'use strict';var multer=require(_0x16bc('0x0'));var util=require(_0x16bc('0x1'));var path=require(_0x16bc('0x2'));var timeout=require(_0x16bc('0x3'));var express=require(_0x16bc('0x4'));var router=express[_0x16bc('0x5')]();var fs_extra=require(_0x16bc('0x6'));var auth=require(_0x16bc('0x7'));var interaction=require(_0x16bc('0x8'));var config=require(_0x16bc('0x9'));var controller=require(_0x16bc('0xa'));router[_0x16bc('0xb')]('/',auth['isAuthenticated'](),controller[_0x16bc('0xc')]);router[_0x16bc('0xb')](_0x16bc('0xd'),auth['isAuthenticated'](),controller[_0x16bc('0xe')]);router[_0x16bc('0xf')]('/',auth[_0x16bc('0x10')](),controller[_0x16bc('0x11')]);router[_0x16bc('0xf')](_0x16bc('0x12'),auth[_0x16bc('0x10')](),controller['addApplications']);router[_0x16bc('0x13')](_0x16bc('0xd'),auth[_0x16bc('0x10')](),controller[_0x16bc('0x14')]);router[_0x16bc('0x15')]('/:id',auth[_0x16bc('0x10')](),controller[_0x16bc('0x16')]);module[_0x16bc('0x17')]=router;