Built motion from commit (unavailable).|2.0.83
[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 _0x71da=['../../components/auth/service','get','canUpdate','fetch','isAuthenticated','reset','/pull','/restart','/migrations','migrations','exports','express','Router'];(function(_0x2a8b9a,_0x5928a6){var _0x5d0f20=function(_0x5bd9f5){while(--_0x5bd9f5){_0x2a8b9a['push'](_0x2a8b9a['shift']());}};_0x5d0f20(++_0x5928a6);}(_0x71da,0x150));var _0xa71d=function(_0x199c03,_0x3254aa){_0x199c03=_0x199c03-0x0;var _0x11a7d4=_0x71da[_0x199c03];return _0x11a7d4;};'use strict';var express=require(_0xa71d('0x0'));var router=express[_0xa71d('0x1')]();var auth=require(_0xa71d('0x2'));var controller=require('./version.controller');router[_0xa71d('0x3')]('/',controller['index']);router[_0xa71d('0x3')]('/fetch',auth['isAuthenticated'](),auth[_0xa71d('0x4')](),controller[_0xa71d('0x5')]);router[_0xa71d('0x3')]('/reset',auth[_0xa71d('0x6')](),auth[_0xa71d('0x4')](),controller[_0xa71d('0x7')]);router[_0xa71d('0x3')](_0xa71d('0x8'),auth['isAuthenticated'](),auth[_0xa71d('0x4')](),controller['pull']);router[_0xa71d('0x3')](_0xa71d('0x9'),auth[_0xa71d('0x6')](),controller['restart']);router['get'](_0xa71d('0xa'),controller[_0xa71d('0xb')]);module[_0xa71d('0xc')]=router;