45add0ab0049811927dd0690f2120276cb333c1d
[motion2.git] / server / api / version / 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 _0x88c3=['reset','/pull','pull','/restart','restart','migrations','express','../../components/auth/service','index','get','/fetch','canUpdate','/reset','isAuthenticated'];(function(_0x2652a9,_0x32c640){var _0x19e349=function(_0xcdc514){while(--_0xcdc514){_0x2652a9['push'](_0x2652a9['shift']());}};_0x19e349(++_0x32c640);}(_0x88c3,0xd8));var _0x388c=function(_0x288b47,_0x24f78d){_0x288b47=_0x288b47-0x0;var _0x257ecc=_0x88c3[_0x288b47];return _0x257ecc;};'use strict';var express=require(_0x388c('0x0'));var router=express['Router']();var auth=require(_0x388c('0x1'));var controller=require('./version.controller');router['get']('/',controller[_0x388c('0x2')]);router[_0x388c('0x3')](_0x388c('0x4'),auth['isAuthenticated'](),auth[_0x388c('0x5')](),controller['fetch']);router[_0x388c('0x3')](_0x388c('0x6'),auth[_0x388c('0x7')](),auth[_0x388c('0x5')](),controller[_0x388c('0x8')]);router[_0x388c('0x3')](_0x388c('0x9'),auth[_0x388c('0x7')](),auth[_0x388c('0x5')](),controller[_0x388c('0xa')]);router['get'](_0x388c('0xb'),auth['isAuthenticated'](),controller[_0x388c('0xc')]);router[_0x388c('0x3')]('/migrations',controller[_0x388c('0xd')]);module['exports']=router;