be3f6d8957592de19a00eeed59069cf643c795b4
[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 _0xcd42=['util','connect-timeout','Router','../../components/interaction/service','./cloudProvider.controller','get','isAuthenticated','index','show','post','put','/:id','update','delete','destroy','exports','multer'];(function(_0x4c5927,_0x59920e){var _0x1a6e81=function(_0x4b8fc2){while(--_0x4b8fc2){_0x4c5927['push'](_0x4c5927['shift']());}};_0x1a6e81(++_0x59920e);}(_0xcd42,0x76));var _0x2cd4=function(_0x3517b0,_0xa5ee5b){_0x3517b0=_0x3517b0-0x0;var _0x178547=_0xcd42[_0x3517b0];return _0x178547;};'use strict';var multer=require(_0x2cd4('0x0'));var util=require(_0x2cd4('0x1'));var path=require('path');var timeout=require(_0x2cd4('0x2'));var express=require('express');var router=express[_0x2cd4('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0x2cd4('0x4'));var config=require('../../config/environment');var controller=require(_0x2cd4('0x5'));router[_0x2cd4('0x6')]('/',auth[_0x2cd4('0x7')](),controller[_0x2cd4('0x8')]);router[_0x2cd4('0x6')]('/:id',auth[_0x2cd4('0x7')](),controller[_0x2cd4('0x9')]);router[_0x2cd4('0xa')]('/',auth['isAuthenticated'](),controller['create']);router[_0x2cd4('0xb')](_0x2cd4('0xc'),auth[_0x2cd4('0x7')](),controller[_0x2cd4('0xd')]);router[_0x2cd4('0xe')](_0x2cd4('0xc'),auth[_0x2cd4('0x7')](),controller[_0x2cd4('0xf')]);module[_0x2cd4('0x10')]=router;