Built motion from commit (unavailable).|2.5.26
[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 _0xac19=['connect-timeout','express','fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated','show','post','create','put','/:id','update','delete','destroy','exports','util','path'];(function(_0x4be6f4,_0x385b23){var _0x3e9098=function(_0x17ff9a){while(--_0x17ff9a){_0x4be6f4['push'](_0x4be6f4['shift']());}};_0x3e9098(++_0x385b23);}(_0xac19,0x130));var _0x9ac1=function(_0x1aa5eb,_0x4efec4){_0x1aa5eb=_0x1aa5eb-0x0;var _0x45f0fa=_0xac19[_0x1aa5eb];return _0x45f0fa;};'use strict';var multer=require('multer');var util=require(_0x9ac1('0x0'));var path=require(_0x9ac1('0x1'));var timeout=require(_0x9ac1('0x2'));var express=require(_0x9ac1('0x3'));var router=express['Router']();var fs_extra=require(_0x9ac1('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x9ac1('0x5'));var config=require(_0x9ac1('0x6'));var controller=require('./cloudProvider.controller');router[_0x9ac1('0x7')]('/',auth[_0x9ac1('0x8')](),controller['index']);router['get']('/:id',auth[_0x9ac1('0x8')](),controller[_0x9ac1('0x9')]);router[_0x9ac1('0xa')]('/',auth[_0x9ac1('0x8')](),controller[_0x9ac1('0xb')]);router[_0x9ac1('0xc')](_0x9ac1('0xd'),auth[_0x9ac1('0x8')](),controller[_0x9ac1('0xe')]);router[_0x9ac1('0xf')](_0x9ac1('0xd'),auth[_0x9ac1('0x8')](),controller[_0x9ac1('0x10')]);module[_0x9ac1('0x11')]=router;