3534fea824f2ab88a1190f6b649fa786badd1c1e
[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 _0xccc4=['canUpdate','fetch','/reset','reset','/pull','isAuthenticated','pull','restart','Router','./version.controller','get','/fetch'];(function(_0x28eb2f,_0x3f246a){var _0x57686b=function(_0x76db97){while(--_0x76db97){_0x28eb2f['push'](_0x28eb2f['shift']());}};_0x57686b(++_0x3f246a);}(_0xccc4,0xbc));var _0x4ccc=function(_0x1ac595,_0x5d2081){_0x1ac595=_0x1ac595-0x0;var _0x455fff=_0xccc4[_0x1ac595];return _0x455fff;};'use strict';var express=require('express');var router=express[_0x4ccc('0x0')]();var auth=require('../../components/auth/service');var controller=require(_0x4ccc('0x1'));router[_0x4ccc('0x2')]('/',controller['index']);router[_0x4ccc('0x2')](_0x4ccc('0x3'),auth['isAuthenticated'](),auth[_0x4ccc('0x4')](),controller[_0x4ccc('0x5')]);router['get'](_0x4ccc('0x6'),auth['isAuthenticated'](),auth[_0x4ccc('0x4')](),controller[_0x4ccc('0x7')]);router[_0x4ccc('0x2')](_0x4ccc('0x8'),auth[_0x4ccc('0x9')](),auth[_0x4ccc('0x4')](),controller[_0x4ccc('0xa')]);router[_0x4ccc('0x2')]('/restart',auth[_0x4ccc('0x9')](),controller[_0x4ccc('0xb')]);router[_0x4ccc('0x2')]('/migrations',controller['migrations']);module['exports']=router;