Built motion from commit bab6f49e.|2.6.17
[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 _0x052f=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','get','index','put','/:id','update','/download_log_file','isAuthenticated','exports','path','express'];(function(_0x1d1779,_0x284147){var _0x2377e9=function(_0x299f6f){while(--_0x299f6f){_0x1d1779['push'](_0x1d1779['shift']());}};_0x2377e9(++_0x284147);}(_0x052f,0x124));var _0xf052=function(_0x34f194,_0x2728d4){_0x34f194=_0x34f194-0x0;var _0x460b5d=_0x052f[_0x34f194];return _0x460b5d;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xf052('0x0'));var timeout=require('connect-timeout');var express=require(_0xf052('0x1'));var router=express[_0xf052('0x2')]();var fs_extra=require(_0xf052('0x3'));var auth=require(_0xf052('0x4'));var interaction=require(_0xf052('0x5'));var config=require('../../config/environment');var controller=require('./license.controller');router[_0xf052('0x6')]('/',controller[_0xf052('0x7')]);router[_0xf052('0x8')](_0xf052('0x9'),auth['isAuthenticated'](),controller[_0xf052('0xa')]);router['get'](_0xf052('0xb'),auth[_0xf052('0xc')](),controller['downloadLogFile']);module[_0xf052('0xd')]=router;