6c92796d379bbde18b9a2f256cec79e20516fa2c
[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 _0xf92a=['get','index','put','/:id','isAuthenticated','update','downloadLogFile','exports','util','path','express','Router','../../components/auth/service','../../components/interaction/service'];(function(_0x332e07,_0x4fe609){var _0x22a65d=function(_0x531718){while(--_0x531718){_0x332e07['push'](_0x332e07['shift']());}};_0x22a65d(++_0x4fe609);}(_0xf92a,0xcc));var _0xaf92=function(_0x238848,_0xfdb2b7){_0x238848=_0x238848-0x0;var _0x1ca0ab=_0xf92a[_0x238848];return _0x1ca0ab;};'use strict';var multer=require('multer');var util=require(_0xaf92('0x0'));var path=require(_0xaf92('0x1'));var timeout=require('connect-timeout');var express=require(_0xaf92('0x2'));var router=express[_0xaf92('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xaf92('0x4'));var interaction=require(_0xaf92('0x5'));var config=require('../../config/environment');var controller=require('./license.controller');router[_0xaf92('0x6')]('/',controller[_0xaf92('0x7')]);router[_0xaf92('0x8')](_0xaf92('0x9'),auth[_0xaf92('0xa')](),controller[_0xaf92('0xb')]);router['get']('/download_log_file',auth[_0xaf92('0xa')](),controller[_0xaf92('0xc')]);module[_0xaf92('0xd')]=router;