70d83c714ed2ea6d444d7812340a2619c48a0aee
[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 _0x04df=['pull','/restart','restart','/migrations','migrations','exports','express','./version.controller','get','index','/fetch','isAuthenticated','canUpdate','/reset'];(function(_0x5df59f,_0xf11a72){var _0x190e3b=function(_0x2b983e){while(--_0x2b983e){_0x5df59f['push'](_0x5df59f['shift']());}};_0x190e3b(++_0xf11a72);}(_0x04df,0x148));var _0xf04d=function(_0x5ddb1c,_0x5ea4df){_0x5ddb1c=_0x5ddb1c-0x0;var _0x354adc=_0x04df[_0x5ddb1c];return _0x354adc;};'use strict';var express=require(_0xf04d('0x0'));var router=express['Router']();var auth=require('../../components/auth/service');var controller=require(_0xf04d('0x1'));router[_0xf04d('0x2')]('/',controller[_0xf04d('0x3')]);router['get'](_0xf04d('0x4'),auth[_0xf04d('0x5')](),auth[_0xf04d('0x6')](),controller['fetch']);router[_0xf04d('0x2')](_0xf04d('0x7'),auth[_0xf04d('0x5')](),auth['canUpdate'](),controller['reset']);router['get']('/pull',auth['isAuthenticated'](),auth[_0xf04d('0x6')](),controller[_0xf04d('0x8')]);router[_0xf04d('0x2')](_0xf04d('0x9'),auth[_0xf04d('0x5')](),controller[_0xf04d('0xa')]);router[_0xf04d('0x2')](_0xf04d('0xb'),controller[_0xf04d('0xc')]);module[_0xf04d('0xd')]=router;