b6d0ec9d6b285ab0c70d92a1bd31bd23068eeffb
[motion2.git] / server / api / license / 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 _0xfa0e=['put','isAuthenticated','update','downloadLogFile','exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index'];(function(_0x2d5fa7,_0x316452){var _0x389982=function(_0x490731){while(--_0x490731){_0x2d5fa7['push'](_0x2d5fa7['shift']());}};_0x389982(++_0x316452);}(_0xfa0e,0x1a5));var _0xefa0=function(_0x59ee6f,_0x450239){_0x59ee6f=_0x59ee6f-0x0;var _0x4c0979=_0xfa0e[_0x59ee6f];return _0x4c0979;};'use strict';var multer=require(_0xefa0('0x0'));var util=require('util');var path=require(_0xefa0('0x1'));var timeout=require(_0xefa0('0x2'));var express=require(_0xefa0('0x3'));var router=express[_0xefa0('0x4')]();var fs_extra=require(_0xefa0('0x5'));var auth=require(_0xefa0('0x6'));var interaction=require(_0xefa0('0x7'));var config=require(_0xefa0('0x8'));var controller=require('./license.controller');router[_0xefa0('0x9')]('/',controller[_0xefa0('0xa')]);router[_0xefa0('0xb')]('/:id',auth[_0xefa0('0xc')](),controller[_0xefa0('0xd')]);router[_0xefa0('0x9')]('/download_log_file',auth['isAuthenticated'](),controller[_0xefa0('0xe')]);module[_0xefa0('0xf')]=router;