1aba790c7e7827a8bf35efd02cb4be5def7a0f99
[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 _0x9a87=['../../components/auth/service','../../components/interaction/service','../../config/environment','./license.controller','get','index','isAuthenticated','exports','multer','util','connect-timeout','Router','fs-extra'];(function(_0x25c9ba,_0x3b9b57){var _0x315234=function(_0x3745e1){while(--_0x3745e1){_0x25c9ba['push'](_0x25c9ba['shift']());}};_0x315234(++_0x3b9b57);}(_0x9a87,0x15a));var _0x79a8=function(_0x4c3593,_0x4ea381){_0x4c3593=_0x4c3593-0x0;var _0x1172d1=_0x9a87[_0x4c3593];return _0x1172d1;};'use strict';var multer=require(_0x79a8('0x0'));var util=require(_0x79a8('0x1'));var path=require('path');var timeout=require(_0x79a8('0x2'));var express=require('express');var router=express[_0x79a8('0x3')]();var fs_extra=require(_0x79a8('0x4'));var auth=require(_0x79a8('0x5'));var interaction=require(_0x79a8('0x6'));var config=require(_0x79a8('0x7'));var controller=require(_0x79a8('0x8'));router[_0x79a8('0x9')]('/',controller[_0x79a8('0xa')]);router['put']('/:id',auth[_0x79a8('0xb')](),controller['update']);router[_0x79a8('0x9')]('/download_log_file',auth['isAuthenticated'](),controller['downloadLogFile']);module[_0x79a8('0xc')]=router;