da1d3d9cd4fef74693d0ddf1bb9ace60eaa7a089
[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 _0x5ac6=['../../config/environment','./license.controller','get','index','/:id','isAuthenticated','update','/download_log_file','util','path','connect-timeout','../../components/auth/service'];(function(_0x4d3cef,_0x5b2267){var _0x2377ae=function(_0x4abd25){while(--_0x4abd25){_0x4d3cef['push'](_0x4d3cef['shift']());}};_0x2377ae(++_0x5b2267);}(_0x5ac6,0x194));var _0x65ac=function(_0x39f9a4,_0x8ac964){_0x39f9a4=_0x39f9a4-0x0;var _0x3c83c2=_0x5ac6[_0x39f9a4];return _0x3c83c2;};'use strict';var multer=require('multer');var util=require(_0x65ac('0x0'));var path=require(_0x65ac('0x1'));var timeout=require(_0x65ac('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x65ac('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0x65ac('0x4'));var controller=require(_0x65ac('0x5'));router[_0x65ac('0x6')]('/',controller[_0x65ac('0x7')]);router['put'](_0x65ac('0x8'),auth[_0x65ac('0x9')](),controller[_0x65ac('0xa')]);router[_0x65ac('0x6')](_0x65ac('0xb'),auth[_0x65ac('0x9')](),controller['downloadLogFile']);module['exports']=router;