99f705f0b2eb61f57f5d9ba3b05376960bbc8454
[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 _0xeb27=['fs-extra','../../components/interaction/service','../../config/environment','get','index','put','/:id','isAuthenticated','/download_log_file','downloadLogFile','exports','util','path','connect-timeout','Router'];(function(_0x19f1e9,_0x12ed27){var _0x4403f8=function(_0x38f382){while(--_0x38f382){_0x19f1e9['push'](_0x19f1e9['shift']());}};_0x4403f8(++_0x12ed27);}(_0xeb27,0x74));var _0x7eb2=function(_0x3083b0,_0x501951){_0x3083b0=_0x3083b0-0x0;var _0x24cc3d=_0xeb27[_0x3083b0];return _0x24cc3d;};'use strict';var multer=require('multer');var util=require(_0x7eb2('0x0'));var path=require(_0x7eb2('0x1'));var timeout=require(_0x7eb2('0x2'));var express=require('express');var router=express[_0x7eb2('0x3')]();var fs_extra=require(_0x7eb2('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x7eb2('0x5'));var config=require(_0x7eb2('0x6'));var controller=require('./license.controller');router[_0x7eb2('0x7')]('/',controller[_0x7eb2('0x8')]);router[_0x7eb2('0x9')](_0x7eb2('0xa'),auth[_0x7eb2('0xb')](),controller['update']);router[_0x7eb2('0x7')](_0x7eb2('0xc'),auth['isAuthenticated'](),controller[_0x7eb2('0xd')]);module[_0x7eb2('0xe')]=router;