Built motion from commit (unavailable).|2.5.27
[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 _0xabe1=['multer','util','path','connect-timeout','express','Router','../../config/environment','./cloudProvider.controller','get','isAuthenticated','index','/:id','post','put','update','delete','destroy','exports'];(function(_0x5ddb1c,_0x5ea4df){var _0x354adc=function(_0x2dfb1f){while(--_0x2dfb1f){_0x5ddb1c['push'](_0x5ddb1c['shift']());}};_0x354adc(++_0x5ea4df);}(_0xabe1,0x1c2));var _0x1abe=function(_0x3a081d,_0x340f67){_0x3a081d=_0x3a081d-0x0;var _0x279225=_0xabe1[_0x3a081d];return _0x279225;};'use strict';var multer=require(_0x1abe('0x0'));var util=require(_0x1abe('0x1'));var path=require(_0x1abe('0x2'));var timeout=require(_0x1abe('0x3'));var express=require(_0x1abe('0x4'));var router=express[_0x1abe('0x5')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x1abe('0x6'));var controller=require(_0x1abe('0x7'));router[_0x1abe('0x8')]('/',auth[_0x1abe('0x9')](),controller[_0x1abe('0xa')]);router[_0x1abe('0x8')](_0x1abe('0xb'),auth[_0x1abe('0x9')](),controller['show']);router[_0x1abe('0xc')]('/',auth[_0x1abe('0x9')](),controller['create']);router[_0x1abe('0xd')](_0x1abe('0xb'),auth[_0x1abe('0x9')](),controller[_0x1abe('0xe')]);router[_0x1abe('0xf')]('/:id',auth[_0x1abe('0x9')](),controller[_0x1abe('0x10')]);module[_0x1abe('0x11')]=router;