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 _0x2f53=['../../config/environment','./voiceExtension.controller','get','isAuthenticated','index','/:id','show','post','create','/:id/applications','addApplications','put','update','delete','destroy','multer','util','connect-timeout','express','Router','fs-extra'];(function(_0x32eb5f,_0x1b4725){var _0x4f95d2=function(_0x324fb6){while(--_0x324fb6){_0x32eb5f['push'](_0x32eb5f['shift']());}};_0x4f95d2(++_0x1b4725);}(_0x2f53,0xb7));var _0x32f5=function(_0x34645a,_0xa23bd1){_0x34645a=_0x34645a-0x0;var _0x3c28e2=_0x2f53[_0x34645a];return _0x3c28e2;};'use strict';var multer=require(_0x32f5('0x0'));var util=require(_0x32f5('0x1'));var path=require('path');var timeout=require(_0x32f5('0x2'));var express=require(_0x32f5('0x3'));var router=express[_0x32f5('0x4')]();var fs_extra=require(_0x32f5('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x32f5('0x6'));var controller=require(_0x32f5('0x7'));router[_0x32f5('0x8')]('/',auth[_0x32f5('0x9')](),controller[_0x32f5('0xa')]);router[_0x32f5('0x8')](_0x32f5('0xb'),auth[_0x32f5('0x9')](),controller[_0x32f5('0xc')]);router[_0x32f5('0xd')]('/',auth[_0x32f5('0x9')](),controller[_0x32f5('0xe')]);router[_0x32f5('0xd')](_0x32f5('0xf'),auth[_0x32f5('0x9')](),controller[_0x32f5('0x10')]);router[_0x32f5('0x11')](_0x32f5('0xb'),auth['isAuthenticated'](),controller[_0x32f5('0x12')]);router[_0x32f5('0x13')](_0x32f5('0xb'),auth['isAuthenticated'](),controller[_0x32f5('0x14')]);module['exports']=router;