Built motion from commit d5e4af8c.|2.6.23
[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 _0xd85c=['update','/download_log_file','isAuthenticated','downloadLogFile','exports','multer','util','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./license.controller','get','index'];(function(_0xb219b6,_0x112fae){var _0x2aefe4=function(_0x4b820a){while(--_0x4b820a){_0xb219b6['push'](_0xb219b6['shift']());}};_0x2aefe4(++_0x112fae);}(_0xd85c,0x155));var _0xcd85=function(_0x1770dc,_0x4aa2cf){_0x1770dc=_0x1770dc-0x0;var _0x166cba=_0xd85c[_0x1770dc];return _0x166cba;};'use strict';var multer=require(_0xcd85('0x0'));var util=require(_0xcd85('0x1'));var path=require(_0xcd85('0x2'));var timeout=require(_0xcd85('0x3'));var express=require(_0xcd85('0x4'));var router=express[_0xcd85('0x5')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xcd85('0x6'));var config=require(_0xcd85('0x7'));var controller=require(_0xcd85('0x8'));router[_0xcd85('0x9')]('/',controller[_0xcd85('0xa')]);router['put']('/:id',auth['isAuthenticated'](),controller[_0xcd85('0xb')]);router[_0xcd85('0x9')](_0xcd85('0xc'),auth[_0xcd85('0xd')](),controller[_0xcd85('0xe')]);module[_0xcd85('0xf')]=router;