af879cf2e99c0479187d4e115886f908e8253525
[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 _0x49eb=['/restart','/migrations','migrations','exports','Router','./version.controller','get','index','canUpdate','fetch','/reset','isAuthenticated','/pull'];(function(_0x3c78e7,_0x19a615){var _0x46c763=function(_0x5484a1){while(--_0x5484a1){_0x3c78e7['push'](_0x3c78e7['shift']());}};_0x46c763(++_0x19a615);}(_0x49eb,0x1cb));var _0xb49e=function(_0x32b129,_0x6071df){_0x32b129=_0x32b129-0x0;var _0x2dc8ff=_0x49eb[_0x32b129];return _0x2dc8ff;};'use strict';var express=require('express');var router=express[_0xb49e('0x0')]();var auth=require('../../components/auth/service');var controller=require(_0xb49e('0x1'));router[_0xb49e('0x2')]('/',controller[_0xb49e('0x3')]);router[_0xb49e('0x2')]('/fetch',auth['isAuthenticated'](),auth[_0xb49e('0x4')](),controller[_0xb49e('0x5')]);router[_0xb49e('0x2')](_0xb49e('0x6'),auth[_0xb49e('0x7')](),auth['canUpdate'](),controller['reset']);router[_0xb49e('0x2')](_0xb49e('0x8'),auth[_0xb49e('0x7')](),auth[_0xb49e('0x4')](),controller['pull']);router[_0xb49e('0x2')](_0xb49e('0x9'),auth['isAuthenticated'](),controller['restart']);router[_0xb49e('0x2')](_0xb49e('0xa'),controller[_0xb49e('0xb')]);module[_0xb49e('0xc')]=router;