f203cc008817afbf2ba2ae94856ea2916b17f9ae
[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 _0x96df=['migrations','exports','Router','../../components/auth/service','./version.controller','get','isAuthenticated','canUpdate','fetch','/reset','reset','/pull','pull','/restart','/migrations'];(function(_0x215393,_0x4c406d){var _0x595198=function(_0x5d641f){while(--_0x5d641f){_0x215393['push'](_0x215393['shift']());}};_0x595198(++_0x4c406d);}(_0x96df,0x13d));var _0xf96d=function(_0x350744,_0x7d9b13){_0x350744=_0x350744-0x0;var _0x14ad39=_0x96df[_0x350744];return _0x14ad39;};'use strict';var express=require('express');var router=express[_0xf96d('0x0')]();var auth=require(_0xf96d('0x1'));var controller=require(_0xf96d('0x2'));router[_0xf96d('0x3')]('/',controller['index']);router[_0xf96d('0x3')]('/fetch',auth[_0xf96d('0x4')](),auth[_0xf96d('0x5')](),controller[_0xf96d('0x6')]);router[_0xf96d('0x3')](_0xf96d('0x7'),auth[_0xf96d('0x4')](),auth[_0xf96d('0x5')](),controller[_0xf96d('0x8')]);router['get'](_0xf96d('0x9'),auth[_0xf96d('0x4')](),auth['canUpdate'](),controller[_0xf96d('0xa')]);router[_0xf96d('0x3')](_0xf96d('0xb'),auth[_0xf96d('0x4')](),controller['restart']);router['get'](_0xf96d('0xc'),controller[_0xf96d('0xd')]);module[_0xf96d('0xe')]=router;