Built motion from commit 25580385.|2.6.2
[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 _0x9ff0=['/fetch','isAuthenticated','canUpdate','fetch','/reset','reset','/restart','migrations','exports','express','Router','../../components/auth/service','get','index'];(function(_0x4b7b62,_0x4920a9){var _0x2280df=function(_0x21e1f8){while(--_0x21e1f8){_0x4b7b62['push'](_0x4b7b62['shift']());}};_0x2280df(++_0x4920a9);}(_0x9ff0,0xcd));var _0x09ff=function(_0x20e337,_0x4a02db){_0x20e337=_0x20e337-0x0;var _0x3b04b0=_0x9ff0[_0x20e337];return _0x3b04b0;};'use strict';var express=require(_0x09ff('0x0'));var router=express[_0x09ff('0x1')]();var auth=require(_0x09ff('0x2'));var controller=require('./version.controller');router[_0x09ff('0x3')]('/',controller[_0x09ff('0x4')]);router['get'](_0x09ff('0x5'),auth[_0x09ff('0x6')](),auth[_0x09ff('0x7')](),controller[_0x09ff('0x8')]);router[_0x09ff('0x3')](_0x09ff('0x9'),auth['isAuthenticated'](),auth[_0x09ff('0x7')](),controller[_0x09ff('0xa')]);router[_0x09ff('0x3')]('/pull',auth[_0x09ff('0x6')](),auth['canUpdate'](),controller['pull']);router[_0x09ff('0x3')](_0x09ff('0xb'),auth[_0x09ff('0x6')](),controller['restart']);router[_0x09ff('0x3')]('/migrations',controller[_0x09ff('0xc')]);module[_0x09ff('0xd')]=router;