9739093dfb1705a6aea1013807adaf69377758e7
[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 _0x4214=['downloadLogFile','exports','multer','util','connect-timeout','Router','fs-extra','./license.controller','get','index','put','/:id','isAuthenticated','update'];(function(_0x13bf29,_0x5ab553){var _0x497b3a=function(_0x49f9eb){while(--_0x49f9eb){_0x13bf29['push'](_0x13bf29['shift']());}};_0x497b3a(++_0x5ab553);}(_0x4214,0x72));var _0x4421=function(_0x5b5947,_0x11623c){_0x5b5947=_0x5b5947-0x0;var _0x7623e0=_0x4214[_0x5b5947];return _0x7623e0;};'use strict';var multer=require(_0x4421('0x0'));var util=require(_0x4421('0x1'));var path=require('path');var timeout=require(_0x4421('0x2'));var express=require('express');var router=express[_0x4421('0x3')]();var fs_extra=require(_0x4421('0x4'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x4421('0x5'));router[_0x4421('0x6')]('/',controller[_0x4421('0x7')]);router[_0x4421('0x8')](_0x4421('0x9'),auth[_0x4421('0xa')](),controller[_0x4421('0xb')]);router[_0x4421('0x6')]('/download_log_file',auth['isAuthenticated'](),controller[_0x4421('0xc')]);module[_0x4421('0xd')]=router;