Built motion from commit (unavailable).|2.5.28
[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 _0x1a21=['./voiceExtension.controller','isAuthenticated','get','/:id','show','post','create','addApplications','put','update','delete','destroy','exports','multer','util','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0xfeb877,_0x5d23b9){var _0x58b3b3=function(_0x20245a){while(--_0x20245a){_0xfeb877['push'](_0xfeb877['shift']());}};_0x58b3b3(++_0x5d23b9);}(_0x1a21,0xf4));var _0x11a2=function(_0x4243a3,_0x447337){_0x4243a3=_0x4243a3-0x0;var _0x1b2a33=_0x1a21[_0x4243a3];return _0x1b2a33;};'use strict';var multer=require(_0x11a2('0x0'));var util=require(_0x11a2('0x1'));var path=require('path');var timeout=require(_0x11a2('0x2'));var express=require(_0x11a2('0x3'));var router=express['Router']();var fs_extra=require(_0x11a2('0x4'));var auth=require(_0x11a2('0x5'));var interaction=require(_0x11a2('0x6'));var config=require(_0x11a2('0x7'));var controller=require(_0x11a2('0x8'));router['get']('/',auth[_0x11a2('0x9')](),controller['index']);router[_0x11a2('0xa')](_0x11a2('0xb'),auth[_0x11a2('0x9')](),controller[_0x11a2('0xc')]);router[_0x11a2('0xd')]('/',auth[_0x11a2('0x9')](),controller[_0x11a2('0xe')]);router[_0x11a2('0xd')]('/:id/applications',auth[_0x11a2('0x9')](),controller[_0x11a2('0xf')]);router[_0x11a2('0x10')](_0x11a2('0xb'),auth[_0x11a2('0x9')](),controller[_0x11a2('0x11')]);router[_0x11a2('0x12')]('/:id',auth['isAuthenticated'](),controller[_0x11a2('0x13')]);module[_0x11a2('0x14')]=router;