Built motion from commit 85328c08.|2.5.50
[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 _0x8fde=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','./license.controller','get','index','put','/:id','isAuthenticated','update','exports','multer','util','path','express'];(function(_0x4ce960,_0x4258e9){var _0x43a9d1=function(_0xc221e3){while(--_0xc221e3){_0x4ce960['push'](_0x4ce960['shift']());}};_0x43a9d1(++_0x4258e9);}(_0x8fde,0x1ac));var _0xe8fd=function(_0x1694f5,_0x49b7c3){_0x1694f5=_0x1694f5-0x0;var _0x5b4321=_0x8fde[_0x1694f5];return _0x5b4321;};'use strict';var multer=require(_0xe8fd('0x0'));var util=require(_0xe8fd('0x1'));var path=require(_0xe8fd('0x2'));var timeout=require('connect-timeout');var express=require(_0xe8fd('0x3'));var router=express[_0xe8fd('0x4')]();var fs_extra=require(_0xe8fd('0x5'));var auth=require(_0xe8fd('0x6'));var interaction=require(_0xe8fd('0x7'));var config=require('../../config/environment');var controller=require(_0xe8fd('0x8'));router[_0xe8fd('0x9')]('/',controller[_0xe8fd('0xa')]);router[_0xe8fd('0xb')](_0xe8fd('0xc'),auth[_0xe8fd('0xd')](),controller[_0xe8fd('0xe')]);router['get']('/download_log_file',auth[_0xe8fd('0xd')](),controller['downloadLogFile']);module[_0xe8fd('0xf')]=router;