Built motion from commit (unavailable).|2.5.24
[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 _0xb219=['show','put','/:id','update','delete','exports','util','connect-timeout','Router','../../components/auth/service','../../config/environment','./cloudProvider.controller','get','isAuthenticated'];(function(_0x26fb0c,_0x3d9c21){var _0x3723de=function(_0x572fe7){while(--_0x572fe7){_0x26fb0c['push'](_0x26fb0c['shift']());}};_0x3723de(++_0x3d9c21);}(_0xb219,0x110));var _0x9b21=function(_0x395d5e,_0x168f89){_0x395d5e=_0x395d5e-0x0;var _0x115b5c=_0xb219[_0x395d5e];return _0x115b5c;};'use strict';var multer=require('multer');var util=require(_0x9b21('0x0'));var path=require('path');var timeout=require(_0x9b21('0x1'));var express=require('express');var router=express[_0x9b21('0x2')]();var auth=require(_0x9b21('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0x9b21('0x4'));var controller=require(_0x9b21('0x5'));router[_0x9b21('0x6')]('/',auth[_0x9b21('0x7')](),controller['index']);router[_0x9b21('0x6')]('/:id',auth[_0x9b21('0x7')](),controller[_0x9b21('0x8')]);router['post']('/',auth[_0x9b21('0x7')](),controller['create']);router[_0x9b21('0x9')](_0x9b21('0xa'),auth[_0x9b21('0x7')](),controller[_0x9b21('0xb')]);router[_0x9b21('0xc')](_0x9b21('0xa'),auth[_0x9b21('0x7')](),controller['destroy']);module[_0x9b21('0xd')]=router;