Built motion from commit (unavailable).|2.5.21
[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 _0x6475=['Router','../../components/auth/service','get','index','isAuthenticated','canUpdate','fetch','/reset','/pull','/restart','restart','/migrations','migrations','express'];(function(_0xf48f4a,_0x141b39){var _0x11642e=function(_0x52eb2e){while(--_0x52eb2e){_0xf48f4a['push'](_0xf48f4a['shift']());}};_0x11642e(++_0x141b39);}(_0x6475,0x133));var _0x5647=function(_0xb2454d,_0x291753){_0xb2454d=_0xb2454d-0x0;var _0x5464fb=_0x6475[_0xb2454d];return _0x5464fb;};'use strict';var express=require(_0x5647('0x0'));var router=express[_0x5647('0x1')]();var auth=require(_0x5647('0x2'));var controller=require('./version.controller');router[_0x5647('0x3')]('/',controller[_0x5647('0x4')]);router[_0x5647('0x3')]('/fetch',auth[_0x5647('0x5')](),auth[_0x5647('0x6')](),controller[_0x5647('0x7')]);router['get'](_0x5647('0x8'),auth[_0x5647('0x5')](),auth['canUpdate'](),controller['reset']);router['get'](_0x5647('0x9'),auth[_0x5647('0x5')](),auth[_0x5647('0x6')](),controller['pull']);router['get'](_0x5647('0xa'),auth[_0x5647('0x5')](),controller[_0x5647('0xb')]);router[_0x5647('0x3')](_0x5647('0xc'),controller[_0x5647('0xd')]);module['exports']=router;