7214f19a6788ddcfb9471bf89eb0a1ea37b5a026
[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 _0xadb1=['index','/:id','isAuthenticated','multer','util','path','connect-timeout','express','../../components/interaction/service','../../config/environment','./license.controller'];(function(_0x453e2b,_0x4f1258){var _0x50f306=function(_0x397f14){while(--_0x397f14){_0x453e2b['push'](_0x453e2b['shift']());}};_0x50f306(++_0x4f1258);}(_0xadb1,0x179));var _0x1adb=function(_0x140bb4,_0x174850){_0x140bb4=_0x140bb4-0x0;var _0x284efe=_0xadb1[_0x140bb4];return _0x284efe;};'use strict';var multer=require(_0x1adb('0x0'));var util=require(_0x1adb('0x1'));var path=require(_0x1adb('0x2'));var timeout=require(_0x1adb('0x3'));var express=require(_0x1adb('0x4'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x1adb('0x5'));var config=require(_0x1adb('0x6'));var controller=require(_0x1adb('0x7'));router['get']('/',controller[_0x1adb('0x8')]);router['put'](_0x1adb('0x9'),auth[_0x1adb('0xa')](),controller['update']);module['exports']=router;