9f27608833641208d546f8567e45b4685a99a36d
[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 _0x3564=['../../components/auth/service','../../components/interaction/service','./license.controller','get','put','isAuthenticated','update','/download_log_file','downloadLogFile','multer','util','path','express','Router'];(function(_0x38f820,_0x1e8b88){var _0x46ead9=function(_0x5718ec){while(--_0x5718ec){_0x38f820['push'](_0x38f820['shift']());}};_0x46ead9(++_0x1e8b88);}(_0x3564,0x1d7));var _0x4356=function(_0x203d27,_0x50ab46){_0x203d27=_0x203d27-0x0;var _0x1f93e2=_0x3564[_0x203d27];return _0x1f93e2;};'use strict';var multer=require(_0x4356('0x0'));var util=require(_0x4356('0x1'));var path=require(_0x4356('0x2'));var timeout=require('connect-timeout');var express=require(_0x4356('0x3'));var router=express[_0x4356('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x4356('0x5'));var interaction=require(_0x4356('0x6'));var config=require('../../config/environment');var controller=require(_0x4356('0x7'));router[_0x4356('0x8')]('/',controller['index']);router[_0x4356('0x9')]('/:id',auth[_0x4356('0xa')](),controller[_0x4356('0xb')]);router[_0x4356('0x8')](_0x4356('0xc'),auth['isAuthenticated'](),controller[_0x4356('0xd')]);module['exports']=router;