Built motion from commit 936e8062.|2.5.33
[motion2.git] / server / api / cloudProvider / 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 _0x6ff6=['fs-extra','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','/:id','post','create','put','update','delete','path','connect-timeout','express','Router'];(function(_0x1d42c3,_0x35ec12){var _0x356275=function(_0x3c0d98){while(--_0x3c0d98){_0x1d42c3['push'](_0x1d42c3['shift']());}};_0x356275(++_0x35ec12);}(_0x6ff6,0x182));var _0x66ff=function(_0xf94e31,_0x252426){_0xf94e31=_0xf94e31-0x0;var _0xd68157=_0x6ff6[_0xf94e31];return _0xd68157;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x66ff('0x0'));var timeout=require(_0x66ff('0x1'));var express=require(_0x66ff('0x2'));var router=express[_0x66ff('0x3')]();var fs_extra=require(_0x66ff('0x4'));var auth=require(_0x66ff('0x5'));var interaction=require(_0x66ff('0x6'));var config=require('../../config/environment');var controller=require('./cloudProvider.controller');router[_0x66ff('0x7')]('/',auth[_0x66ff('0x8')](),controller['index']);router['get'](_0x66ff('0x9'),auth[_0x66ff('0x8')](),controller['show']);router[_0x66ff('0xa')]('/',auth[_0x66ff('0x8')](),controller[_0x66ff('0xb')]);router[_0x66ff('0xc')](_0x66ff('0x9'),auth[_0x66ff('0x8')](),controller[_0x66ff('0xd')]);router[_0x66ff('0xe')]('/:id',auth['isAuthenticated'](),controller['destroy']);module['exports']=router;