73d2ddeca2698318d77686056b157e410d7af593
[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 _0x2d27=['/migrations','exports','express','../../components/auth/service','get','/fetch','isAuthenticated','canUpdate','fetch','/reset','reset','/pull','/restart'];(function(_0x3c85b4,_0x42a8b9){var _0x25ddc2=function(_0x184a6e){while(--_0x184a6e){_0x3c85b4['push'](_0x3c85b4['shift']());}};_0x25ddc2(++_0x42a8b9);}(_0x2d27,0x113));var _0x72d2=function(_0x2845e9,_0x2be5bd){_0x2845e9=_0x2845e9-0x0;var _0x1f62d8=_0x2d27[_0x2845e9];return _0x1f62d8;};'use strict';var express=require(_0x72d2('0x0'));var router=express['Router']();var auth=require(_0x72d2('0x1'));var controller=require('./version.controller');router[_0x72d2('0x2')]('/',controller['index']);router[_0x72d2('0x2')](_0x72d2('0x3'),auth[_0x72d2('0x4')](),auth[_0x72d2('0x5')](),controller[_0x72d2('0x6')]);router['get'](_0x72d2('0x7'),auth[_0x72d2('0x4')](),auth['canUpdate'](),controller[_0x72d2('0x8')]);router[_0x72d2('0x2')](_0x72d2('0x9'),auth[_0x72d2('0x4')](),auth[_0x72d2('0x5')](),controller['pull']);router['get'](_0x72d2('0xa'),auth[_0x72d2('0x4')](),controller['restart']);router[_0x72d2('0x2')](_0x72d2('0xb'),controller['migrations']);module[_0x72d2('0xc')]=router;