fc3d5e382983a8bde17c056c3664dd5ccf96596e
[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 _0x1a45=['../../config/environment','./cloudProvider.controller','get','isAuthenticated','index','/:id','post','put','update','delete','exports','multer','util','path','connect-timeout','express','Router','../../components/interaction/service'];(function(_0x19b3f9,_0xade753){var _0x18c3f6=function(_0x21439f){while(--_0x21439f){_0x19b3f9['push'](_0x19b3f9['shift']());}};_0x18c3f6(++_0xade753);}(_0x1a45,0x89));var _0x51a4=function(_0x12c456,_0x1f4f92){_0x12c456=_0x12c456-0x0;var _0x24e1f3=_0x1a45[_0x12c456];return _0x24e1f3;};'use strict';var multer=require(_0x51a4('0x0'));var util=require(_0x51a4('0x1'));var path=require(_0x51a4('0x2'));var timeout=require(_0x51a4('0x3'));var express=require(_0x51a4('0x4'));var router=express[_0x51a4('0x5')]();var auth=require('../../components/auth/service');var interaction=require(_0x51a4('0x6'));var config=require(_0x51a4('0x7'));var controller=require(_0x51a4('0x8'));router[_0x51a4('0x9')]('/',auth[_0x51a4('0xa')](),controller[_0x51a4('0xb')]);router[_0x51a4('0x9')](_0x51a4('0xc'),auth[_0x51a4('0xa')](),controller['show']);router[_0x51a4('0xd')]('/',auth[_0x51a4('0xa')](),controller['create']);router[_0x51a4('0xe')](_0x51a4('0xc'),auth[_0x51a4('0xa')](),controller[_0x51a4('0xf')]);router[_0x51a4('0x10')](_0x51a4('0xc'),auth['isAuthenticated'](),controller['destroy']);module[_0x51a4('0x11')]=router;