6318b43f3ca96cb06312e6dd7caac1edfe3d36b3
[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 _0xf628=['get','index','/:id','isAuthenticated','post','create','exports','multer','util','path','connect-timeout','../../components/auth/service','../../components/interaction/service','../../config/environment','./cloudProvider.controller'];(function(_0x49d27a,_0x166543){var _0x3f0b62=function(_0x4eb485){while(--_0x4eb485){_0x49d27a['push'](_0x49d27a['shift']());}};_0x3f0b62(++_0x166543);}(_0xf628,0x7f));var _0x8f62=function(_0x3a7589,_0x4396b2){_0x3a7589=_0x3a7589-0x0;var _0x2a7235=_0xf628[_0x3a7589];return _0x2a7235;};'use strict';var multer=require(_0x8f62('0x0'));var util=require(_0x8f62('0x1'));var path=require(_0x8f62('0x2'));var timeout=require(_0x8f62('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x8f62('0x4'));var interaction=require(_0x8f62('0x5'));var config=require(_0x8f62('0x6'));var controller=require(_0x8f62('0x7'));router[_0x8f62('0x8')]('/',auth['isAuthenticated'](),controller[_0x8f62('0x9')]);router['get'](_0x8f62('0xa'),auth[_0x8f62('0xb')](),controller['show']);router[_0x8f62('0xc')]('/',auth[_0x8f62('0xb')](),controller[_0x8f62('0xd')]);router['put']('/:id',auth['isAuthenticated'](),controller['update']);router['delete'](_0x8f62('0xa'),auth[_0x8f62('0xb')](),controller['destroy']);module[_0x8f62('0xe')]=router;