Built motion from commit 3e059bc2.|2.5.32
[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 _0xfbc5=['destroy','exports','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','index','/:id','show','post','put','update','delete'];(function(_0x59ee6f,_0x450239){var _0x4c0979=function(_0x565e92){while(--_0x565e92){_0x59ee6f['push'](_0x59ee6f['shift']());}};_0x4c0979(++_0x450239);}(_0xfbc5,0x1ab));var _0x5fbc=function(_0x314a03,_0x3d67bc){_0x314a03=_0x314a03-0x0;var _0x30eea7=_0xfbc5[_0x314a03];return _0x30eea7;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x5fbc('0x0'));var timeout=require(_0x5fbc('0x1'));var express=require(_0x5fbc('0x2'));var router=express[_0x5fbc('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x5fbc('0x4'));var interaction=require(_0x5fbc('0x5'));var config=require(_0x5fbc('0x6'));var controller=require('./cloudProvider.controller');router['get']('/',auth[_0x5fbc('0x7')](),controller[_0x5fbc('0x8')]);router['get'](_0x5fbc('0x9'),auth['isAuthenticated'](),controller[_0x5fbc('0xa')]);router[_0x5fbc('0xb')]('/',auth[_0x5fbc('0x7')](),controller['create']);router[_0x5fbc('0xc')]('/:id',auth['isAuthenticated'](),controller[_0x5fbc('0xd')]);router[_0x5fbc('0xe')](_0x5fbc('0x9'),auth[_0x5fbc('0x7')](),controller[_0x5fbc('0xf')]);module[_0x5fbc('0x10')]=router;