43f325215808569080bf99a41db2ef0484c78d91
[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 _0x1aa6=['connect-timeout','Router','fs-extra','../../components/auth/service','../../config/environment','get','index','put','/:id','isAuthenticated','downloadLogFile','exports','multer','util','path'];(function(_0x58efa6,_0x2c00bd){var _0x5d643c=function(_0x1d1ef2){while(--_0x1d1ef2){_0x58efa6['push'](_0x58efa6['shift']());}};_0x5d643c(++_0x2c00bd);}(_0x1aa6,0xb1));var _0x61aa=function(_0x31b5a5,_0x44376a){_0x31b5a5=_0x31b5a5-0x0;var _0x364cc9=_0x1aa6[_0x31b5a5];return _0x364cc9;};'use strict';var multer=require(_0x61aa('0x0'));var util=require(_0x61aa('0x1'));var path=require(_0x61aa('0x2'));var timeout=require(_0x61aa('0x3'));var express=require('express');var router=express[_0x61aa('0x4')]();var fs_extra=require(_0x61aa('0x5'));var auth=require(_0x61aa('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x61aa('0x7'));var controller=require('./license.controller');router[_0x61aa('0x8')]('/',controller[_0x61aa('0x9')]);router[_0x61aa('0xa')](_0x61aa('0xb'),auth[_0x61aa('0xc')](),controller['update']);router[_0x61aa('0x8')]('/download_log_file',auth[_0x61aa('0xc')](),controller[_0x61aa('0xd')]);module[_0x61aa('0xe')]=router;