5030cf76ad2a04190ccafe7bfa5be6ce6ebca261
[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 _0x8d3e=['index','/fetch','canUpdate','fetch','isAuthenticated','/pull','pull','/restart','restart','exports','express','Router','../../components/auth/service','get'];(function(_0x465028,_0x4570ac){var _0xb783d4=function(_0x5458c5){while(--_0x5458c5){_0x465028['push'](_0x465028['shift']());}};_0xb783d4(++_0x4570ac);}(_0x8d3e,0x1d8));var _0xe8d3=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x8d3e[_0x3dd15e];return _0x231fd0;};'use strict';var express=require(_0xe8d3('0x0'));var router=express[_0xe8d3('0x1')]();var auth=require(_0xe8d3('0x2'));var controller=require('./version.controller');router[_0xe8d3('0x3')]('/',controller[_0xe8d3('0x4')]);router[_0xe8d3('0x3')](_0xe8d3('0x5'),auth['isAuthenticated'](),auth[_0xe8d3('0x6')](),controller[_0xe8d3('0x7')]);router[_0xe8d3('0x3')]('/reset',auth[_0xe8d3('0x8')](),auth[_0xe8d3('0x6')](),controller['reset']);router[_0xe8d3('0x3')](_0xe8d3('0x9'),auth[_0xe8d3('0x8')](),auth[_0xe8d3('0x6')](),controller[_0xe8d3('0xa')]);router[_0xe8d3('0x3')](_0xe8d3('0xb'),auth[_0xe8d3('0x8')](),controller[_0xe8d3('0xc')]);router[_0xe8d3('0x3')]('/migrations',controller['migrations']);module[_0xe8d3('0xd')]=router;