954f2a26251243c53d89385a7f9f237e5ffb3781
[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 _0x2a56=['update','isAuthenticated','exports','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./license.controller','get','put','/:id'];(function(_0x36c2df,_0x1db46d){var _0x24e7dd=function(_0x1958f5){while(--_0x1958f5){_0x36c2df['push'](_0x36c2df['shift']());}};_0x24e7dd(++_0x1db46d);}(_0x2a56,0x10d));var _0x62a5=function(_0x4c68d7,_0x1310c5){_0x4c68d7=_0x4c68d7-0x0;var _0x59c293=_0x2a56[_0x4c68d7];return _0x59c293;};'use strict';var multer=require('multer');var util=require(_0x62a5('0x0'));var path=require('path');var timeout=require(_0x62a5('0x1'));var express=require(_0x62a5('0x2'));var router=express[_0x62a5('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x62a5('0x4'));var interaction=require(_0x62a5('0x5'));var config=require(_0x62a5('0x6'));var controller=require(_0x62a5('0x7'));router[_0x62a5('0x8')]('/',controller['index']);router[_0x62a5('0x9')](_0x62a5('0xa'),auth['isAuthenticated'](),controller[_0x62a5('0xb')]);router[_0x62a5('0x8')]('/download_log_file',auth[_0x62a5('0xc')](),controller['downloadLogFile']);module[_0x62a5('0xd')]=router;