Built motion from commit 753c950e.|2.5.42
[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 _0x5b04=['path','connect-timeout','express','Router','../../components/interaction/service','./license.controller','get','put','/:id','update','downloadLogFile','exports','multer','util'];(function(_0x2aae31,_0x1014a2){var _0x379006=function(_0x5345ae){while(--_0x5345ae){_0x2aae31['push'](_0x2aae31['shift']());}};_0x379006(++_0x1014a2);}(_0x5b04,0xfa));var _0x45b0=function(_0x3273c4,_0x487f85){_0x3273c4=_0x3273c4-0x0;var _0x1f7d73=_0x5b04[_0x3273c4];return _0x1f7d73;};'use strict';var multer=require(_0x45b0('0x0'));var util=require(_0x45b0('0x1'));var path=require(_0x45b0('0x2'));var timeout=require(_0x45b0('0x3'));var express=require(_0x45b0('0x4'));var router=express[_0x45b0('0x5')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x45b0('0x6'));var config=require('../../config/environment');var controller=require(_0x45b0('0x7'));router[_0x45b0('0x8')]('/',controller['index']);router[_0x45b0('0x9')](_0x45b0('0xa'),auth['isAuthenticated'](),controller[_0x45b0('0xb')]);router[_0x45b0('0x8')]('/download_log_file',auth['isAuthenticated'](),controller[_0x45b0('0xc')]);module[_0x45b0('0xd')]=router;