Built motion from commit f3da74b7.|2.5.36
[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 _0x4b02=['../../components/auth/service','../../components/interaction/service','../../config/environment','./cloudProvider.controller','get','isAuthenticated','update','delete','destroy','util','path','express','Router','fs-extra'];(function(_0x689740,_0x15278f){var _0x413ae1=function(_0x2582e5){while(--_0x2582e5){_0x689740['push'](_0x689740['shift']());}};_0x413ae1(++_0x15278f);}(_0x4b02,0xcd));var _0x24b0=function(_0x518c05,_0x705614){_0x518c05=_0x518c05-0x0;var _0x5adb6e=_0x4b02[_0x518c05];return _0x5adb6e;};'use strict';var multer=require('multer');var util=require(_0x24b0('0x0'));var path=require(_0x24b0('0x1'));var timeout=require('connect-timeout');var express=require(_0x24b0('0x2'));var router=express[_0x24b0('0x3')]();var fs_extra=require(_0x24b0('0x4'));var auth=require(_0x24b0('0x5'));var interaction=require(_0x24b0('0x6'));var config=require(_0x24b0('0x7'));var controller=require(_0x24b0('0x8'));router[_0x24b0('0x9')]('/',auth['isAuthenticated'](),controller['index']);router[_0x24b0('0x9')]('/:id',auth[_0x24b0('0xa')](),controller['show']);router['post']('/',auth[_0x24b0('0xa')](),controller['create']);router['put']('/:id',auth[_0x24b0('0xa')](),controller[_0x24b0('0xb')]);router[_0x24b0('0xc')]('/:id',auth['isAuthenticated'](),controller[_0x24b0('0xd')]);module['exports']=router;