9c75416408a8a7f352db672042db6578711a4fd6
[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 _0x71ca=['../../components/auth/service','../../config/environment','./cloudProvider.controller','get','isAuthenticated','/:id','create','put','update','multer','util','path','connect-timeout','express','Router'];(function(_0x1fd09e,_0x2588eb){var _0x3ba26d=function(_0x2de8a7){while(--_0x2de8a7){_0x1fd09e['push'](_0x1fd09e['shift']());}};_0x3ba26d(++_0x2588eb);}(_0x71ca,0x162));var _0xa71c=function(_0xfb90c7,_0x528fd9){_0xfb90c7=_0xfb90c7-0x0;var _0x1189bb=_0x71ca[_0xfb90c7];return _0x1189bb;};'use strict';var multer=require(_0xa71c('0x0'));var util=require(_0xa71c('0x1'));var path=require(_0xa71c('0x2'));var timeout=require(_0xa71c('0x3'));var express=require(_0xa71c('0x4'));var router=express[_0xa71c('0x5')]();var auth=require(_0xa71c('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xa71c('0x7'));var controller=require(_0xa71c('0x8'));router[_0xa71c('0x9')]('/',auth[_0xa71c('0xa')](),controller['index']);router[_0xa71c('0x9')](_0xa71c('0xb'),auth['isAuthenticated'](),controller['show']);router['post']('/',auth[_0xa71c('0xa')](),controller[_0xa71c('0xc')]);router[_0xa71c('0xd')](_0xa71c('0xb'),auth[_0xa71c('0xa')](),controller[_0xa71c('0xe')]);router['delete'](_0xa71c('0xb'),auth[_0xa71c('0xa')](),controller['destroy']);module['exports']=router;