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