aef868870cb4191a3d316018eb32f5553d9d6701
[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 _0x9492=['migrations','exports','Router','../../components/auth/service','./version.controller','get','index','/fetch','isAuthenticated','canUpdate','reset','/pull','pull','restart','/migrations'];(function(_0x13e741,_0x5d3c24){var _0x3f8bb3=function(_0x4440a0){while(--_0x4440a0){_0x13e741['push'](_0x13e741['shift']());}};_0x3f8bb3(++_0x5d3c24);}(_0x9492,0x12e));var _0x2949=function(_0x28953a,_0x262ebe){_0x28953a=_0x28953a-0x0;var _0x19e2c6=_0x9492[_0x28953a];return _0x19e2c6;};'use strict';var express=require('express');var router=express[_0x2949('0x0')]();var auth=require(_0x2949('0x1'));var controller=require(_0x2949('0x2'));router[_0x2949('0x3')]('/',controller[_0x2949('0x4')]);router[_0x2949('0x3')](_0x2949('0x5'),auth[_0x2949('0x6')](),auth[_0x2949('0x7')](),controller['fetch']);router[_0x2949('0x3')]('/reset',auth['isAuthenticated'](),auth[_0x2949('0x7')](),controller[_0x2949('0x8')]);router[_0x2949('0x3')](_0x2949('0x9'),auth[_0x2949('0x6')](),auth[_0x2949('0x7')](),controller[_0x2949('0xa')]);router['get']('/restart',auth[_0x2949('0x6')](),controller[_0x2949('0xb')]);router[_0x2949('0x3')](_0x2949('0xc'),controller[_0x2949('0xd')]);module[_0x2949('0xe')]=router;