a13c1112f7c1f19f7185cd9110386ff56cf8fc30
[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 _0x00b7=['get','/fetch','isAuthenticated','canUpdate','fetch','/reset','reset','pull','/restart','restart','/migrations','migrations','exports','express','Router','../../components/auth/service'];(function(_0x23165a,_0x19d021){var _0x40c6c4=function(_0x57e397){while(--_0x57e397){_0x23165a['push'](_0x23165a['shift']());}};_0x40c6c4(++_0x19d021);}(_0x00b7,0x8d));var _0x700b=function(_0x4db581,_0x4e492f){_0x4db581=_0x4db581-0x0;var _0xa7f427=_0x00b7[_0x4db581];return _0xa7f427;};'use strict';var express=require(_0x700b('0x0'));var router=express[_0x700b('0x1')]();var auth=require(_0x700b('0x2'));var controller=require('./version.controller');router[_0x700b('0x3')]('/',controller['index']);router[_0x700b('0x3')](_0x700b('0x4'),auth[_0x700b('0x5')](),auth[_0x700b('0x6')](),controller[_0x700b('0x7')]);router['get'](_0x700b('0x8'),auth[_0x700b('0x5')](),auth[_0x700b('0x6')](),controller[_0x700b('0x9')]);router[_0x700b('0x3')]('/pull',auth['isAuthenticated'](),auth['canUpdate'](),controller[_0x700b('0xa')]);router['get'](_0x700b('0xb'),auth[_0x700b('0x5')](),controller[_0x700b('0xc')]);router[_0x700b('0x3')](_0x700b('0xd'),controller[_0x700b('0xe')]);module[_0x700b('0xf')]=router;