8c9f16fdc7fb391e8c9214673cfb84e938bb0a0f
[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 _0xc411=['/:id','delete','destroy','exports','multer','util','../../components/auth/service','get','isAuthenticated','index','show','post','create','put'];(function(_0x2c91e9,_0x2fb965){var _0x13f0ff=function(_0xb39edf){while(--_0xb39edf){_0x2c91e9['push'](_0x2c91e9['shift']());}};_0x13f0ff(++_0x2fb965);}(_0xc411,0x82));var _0x1c41=function(_0x41c381,_0x1176bd){_0x41c381=_0x41c381-0x0;var _0x427981=_0xc411[_0x41c381];return _0x427981;};'use strict';var multer=require(_0x1c41('0x0'));var util=require(_0x1c41('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var auth=require(_0x1c41('0x2'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./cloudProvider.controller');router[_0x1c41('0x3')]('/',auth[_0x1c41('0x4')](),controller[_0x1c41('0x5')]);router['get']('/:id',auth[_0x1c41('0x4')](),controller[_0x1c41('0x6')]);router[_0x1c41('0x7')]('/',auth[_0x1c41('0x4')](),controller[_0x1c41('0x8')]);router[_0x1c41('0x9')](_0x1c41('0xa'),auth[_0x1c41('0x4')](),controller['update']);router[_0x1c41('0xb')](_0x1c41('0xa'),auth[_0x1c41('0x4')](),controller[_0x1c41('0xc')]);module[_0x1c41('0xd')]=router;