Built motion from commit e02f907f.|2.6.14
[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 _0x9cea=['fs-extra','../../components/interaction/service','./license.controller','put','/:id','isAuthenticated','update','downloadLogFile','exports','multer','util','path','express','Router'];(function(_0x3450b2,_0xbe7157){var _0x13382c=function(_0x48e511){while(--_0x48e511){_0x3450b2['push'](_0x3450b2['shift']());}};_0x13382c(++_0xbe7157);}(_0x9cea,0xe9));var _0xa9ce=function(_0x24f31b,_0x44b8f3){_0x24f31b=_0x24f31b-0x0;var _0x488401=_0x9cea[_0x24f31b];return _0x488401;};'use strict';var multer=require(_0xa9ce('0x0'));var util=require(_0xa9ce('0x1'));var path=require(_0xa9ce('0x2'));var timeout=require('connect-timeout');var express=require(_0xa9ce('0x3'));var router=express[_0xa9ce('0x4')]();var fs_extra=require(_0xa9ce('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xa9ce('0x6'));var config=require('../../config/environment');var controller=require(_0xa9ce('0x7'));router['get']('/',controller['index']);router[_0xa9ce('0x8')](_0xa9ce('0x9'),auth[_0xa9ce('0xa')](),controller[_0xa9ce('0xb')]);router['get']('/download_log_file',auth[_0xa9ce('0xa')](),controller[_0xa9ce('0xc')]);module[_0xa9ce('0xd')]=router;