Built motion from commit db94841.|2.5.3
[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 _0xf453=['index','isAuthenticated','show','post','put','/:id','delete','destroy','exports','multer','util','path','Router','../../components/auth/service','../../components/interaction/service'];(function(_0x5c015e,_0x4aa5f1){var _0x5ae308=function(_0x5dd098){while(--_0x5dd098){_0x5c015e['push'](_0x5c015e['shift']());}};_0x5ae308(++_0x4aa5f1);}(_0xf453,0x81));var _0x3f45=function(_0x1f44f8,_0x2c9d20){_0x1f44f8=_0x1f44f8-0x0;var _0x185618=_0xf453[_0x1f44f8];return _0x185618;};'use strict';var multer=require(_0x3f45('0x0'));var util=require(_0x3f45('0x1'));var path=require(_0x3f45('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x3f45('0x3')]();var auth=require(_0x3f45('0x4'));var interaction=require(_0x3f45('0x5'));var config=require('../../config/environment');var controller=require('./cloudProvider.controller');router['get']('/',auth['isAuthenticated'](),controller[_0x3f45('0x6')]);router['get']('/:id',auth[_0x3f45('0x7')](),controller[_0x3f45('0x8')]);router[_0x3f45('0x9')]('/',auth[_0x3f45('0x7')](),controller['create']);router[_0x3f45('0xa')](_0x3f45('0xb'),auth[_0x3f45('0x7')](),controller['update']);router[_0x3f45('0xc')]('/:id',auth[_0x3f45('0x7')](),controller[_0x3f45('0xd')]);module[_0x3f45('0xe')]=router;