Built motion from commit e6806ed6.|2.6.0
[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 _0xe220=['./license.controller','get','put','isAuthenticated','update','multer','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x1a72f3,_0x217011){var _0x57ef47=function(_0x20123d){while(--_0x20123d){_0x1a72f3['push'](_0x1a72f3['shift']());}};_0x57ef47(++_0x217011);}(_0xe220,0x87));var _0x0e22=function(_0x2f57c3,_0xe8f50f){_0x2f57c3=_0x2f57c3-0x0;var _0x34413f=_0xe220[_0x2f57c3];return _0x34413f;};'use strict';var multer=require(_0x0e22('0x0'));var util=require(_0x0e22('0x1'));var path=require('path');var timeout=require(_0x0e22('0x2'));var express=require(_0x0e22('0x3'));var router=express[_0x0e22('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x0e22('0x5'));var interaction=require(_0x0e22('0x6'));var config=require(_0x0e22('0x7'));var controller=require(_0x0e22('0x8'));router[_0x0e22('0x9')]('/',controller['index']);router[_0x0e22('0xa')]('/:id',auth[_0x0e22('0xb')](),controller[_0x0e22('0xc')]);router['get']('/download_log_file',auth['isAuthenticated'](),controller['downloadLogFile']);module['exports']=router;