Built motion from commit 3c2ce842.|2.6.31
[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 _0x24fc=['./voiceExtension.controller','get','index','/:id','isAuthenticated','post','create','/:id/applications','addApplications','update','delete','exports','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0xdf3dbc,_0x3fbe15){var _0x2c23be=function(_0x907e7){while(--_0x907e7){_0xdf3dbc['push'](_0xdf3dbc['shift']());}};_0x2c23be(++_0x3fbe15);}(_0x24fc,0x75));var _0xc24f=function(_0x33a814,_0x4f94bc){_0x33a814=_0x33a814-0x0;var _0x29f4c3=_0x24fc[_0x33a814];return _0x29f4c3;};'use strict';var multer=require('multer');var util=require(_0xc24f('0x0'));var path=require(_0xc24f('0x1'));var timeout=require(_0xc24f('0x2'));var express=require(_0xc24f('0x3'));var router=express[_0xc24f('0x4')]();var fs_extra=require(_0xc24f('0x5'));var auth=require(_0xc24f('0x6'));var interaction=require(_0xc24f('0x7'));var config=require(_0xc24f('0x8'));var controller=require(_0xc24f('0x9'));router[_0xc24f('0xa')]('/',auth['isAuthenticated'](),controller[_0xc24f('0xb')]);router[_0xc24f('0xa')](_0xc24f('0xc'),auth[_0xc24f('0xd')](),controller['show']);router[_0xc24f('0xe')]('/',auth[_0xc24f('0xd')](),controller[_0xc24f('0xf')]);router['post'](_0xc24f('0x10'),auth[_0xc24f('0xd')](),controller[_0xc24f('0x11')]);router['put'](_0xc24f('0xc'),auth['isAuthenticated'](),controller[_0xc24f('0x12')]);router[_0xc24f('0x13')]('/:id',auth[_0xc24f('0xd')](),controller['destroy']);module[_0xc24f('0x14')]=router;