0c5153e8fb1e2936c45fc15e524b9b5a601970ec
[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 _0xa84f=['../../components/auth/service','../../config/environment','./voiceExtension.controller','get','isAuthenticated','/:id','post','create','/:id/applications','addApplications','delete','multer','connect-timeout','express','fs-extra'];(function(_0x35ed44,_0x2f66b9){var _0x8f9fd2=function(_0x2a5f34){while(--_0x2a5f34){_0x35ed44['push'](_0x35ed44['shift']());}};_0x8f9fd2(++_0x2f66b9);}(_0xa84f,0xec));var _0xfa84=function(_0x3a78a0,_0x44985f){_0x3a78a0=_0x3a78a0-0x0;var _0x48e917=_0xa84f[_0x3a78a0];return _0x48e917;};'use strict';var multer=require(_0xfa84('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xfa84('0x1'));var express=require(_0xfa84('0x2'));var router=express['Router']();var fs_extra=require(_0xfa84('0x3'));var auth=require(_0xfa84('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xfa84('0x5'));var controller=require(_0xfa84('0x6'));router[_0xfa84('0x7')]('/',auth[_0xfa84('0x8')](),controller['index']);router[_0xfa84('0x7')](_0xfa84('0x9'),auth[_0xfa84('0x8')](),controller['show']);router[_0xfa84('0xa')]('/',auth[_0xfa84('0x8')](),controller[_0xfa84('0xb')]);router[_0xfa84('0xa')](_0xfa84('0xc'),auth[_0xfa84('0x8')](),controller[_0xfa84('0xd')]);router['put'](_0xfa84('0x9'),auth[_0xfa84('0x8')](),controller['update']);router[_0xfa84('0xe')](_0xfa84('0x9'),auth[_0xfa84('0x8')](),controller['destroy']);module['exports']=router;