1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x3aad=['/:id','update','destroy','exports','multer','util','path','connect-timeout','../../components/auth/service','../../config/environment','isAuthenticated','index','get','show','post','create'];(function(_0x34b9b5,_0x210762){var _0x3aa0f3=function(_0x13be0c){while(--_0x13be0c){_0x34b9b5['push'](_0x34b9b5['shift']());}};_0x3aa0f3(++_0x210762);}(_0x3aad,0x1a4));var _0xd3aa=function(_0x17d9fa,_0x2b2617){_0x17d9fa=_0x17d9fa-0x0;var _0x2dc8d6=_0x3aad[_0x17d9fa];return _0x2dc8d6;};'use strict';var multer=require(_0xd3aa('0x0'));var util=require(_0xd3aa('0x1'));var path=require(_0xd3aa('0x2'));var timeout=require(_0xd3aa('0x3'));var express=require('express');var router=express['Router']();var auth=require(_0xd3aa('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xd3aa('0x5'));var controller=require('./cloudProvider.controller');router['get']('/',auth[_0xd3aa('0x6')](),controller[_0xd3aa('0x7')]);router[_0xd3aa('0x8')]('/:id',auth[_0xd3aa('0x6')](),controller[_0xd3aa('0x9')]);router[_0xd3aa('0xa')]('/',auth['isAuthenticated'](),controller[_0xd3aa('0xb')]);router['put'](_0xd3aa('0xc'),auth[_0xd3aa('0x6')](),controller[_0xd3aa('0xd')]);router['delete'](_0xd3aa('0xc'),auth[_0xd3aa('0x6')](),controller[_0xd3aa('0xe')]);module[_0xd3aa('0xf')]=router;