Built motion from commit fe909640.|2.6.8
[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 _0x7dc4=['./license.controller','/:id','isAuthenticated','downloadLogFile','exports','util','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x417d74,_0xcf3af0){var _0x44e3e3=function(_0x936453){while(--_0x936453){_0x417d74['push'](_0x417d74['shift']());}};_0x44e3e3(++_0xcf3af0);}(_0x7dc4,0x1a9));var _0x47dc=function(_0x36048f,_0x371fd1){_0x36048f=_0x36048f-0x0;var _0x1d2a5d=_0x7dc4[_0x36048f];return _0x1d2a5d;};'use strict';var multer=require('multer');var util=require(_0x47dc('0x0'));var path=require('path');var timeout=require(_0x47dc('0x1'));var express=require('express');var router=express[_0x47dc('0x2')]();var fs_extra=require(_0x47dc('0x3'));var auth=require(_0x47dc('0x4'));var interaction=require(_0x47dc('0x5'));var config=require(_0x47dc('0x6'));var controller=require(_0x47dc('0x7'));router['get']('/',controller['index']);router['put'](_0x47dc('0x8'),auth[_0x47dc('0x9')](),controller['update']);router['get']('/download_log_file',auth[_0x47dc('0x9')](),controller[_0x47dc('0xa')]);module[_0x47dc('0xb')]=router;