6773cb114678790c33d0ebed5217dccc92c3f87b
[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 _0xd0ba=['migrations','exports','Router','../../components/auth/service','./version.controller','get','index','/fetch','isAuthenticated','canUpdate','/reset','reset','restart','/migrations'];(function(_0x4e4f0e,_0x1c3892){var _0x1a7219=function(_0x3821ad){while(--_0x3821ad){_0x4e4f0e['push'](_0x4e4f0e['shift']());}};_0x1a7219(++_0x1c3892);}(_0xd0ba,0x17c));var _0xad0b=function(_0x58dc25,_0x49b9d5){_0x58dc25=_0x58dc25-0x0;var _0x21b0a7=_0xd0ba[_0x58dc25];return _0x21b0a7;};'use strict';var express=require('express');var router=express[_0xad0b('0x0')]();var auth=require(_0xad0b('0x1'));var controller=require(_0xad0b('0x2'));router[_0xad0b('0x3')]('/',controller[_0xad0b('0x4')]);router[_0xad0b('0x3')](_0xad0b('0x5'),auth[_0xad0b('0x6')](),auth[_0xad0b('0x7')](),controller['fetch']);router[_0xad0b('0x3')](_0xad0b('0x8'),auth[_0xad0b('0x6')](),auth['canUpdate'](),controller[_0xad0b('0x9')]);router[_0xad0b('0x3')]('/pull',auth['isAuthenticated'](),auth['canUpdate'](),controller['pull']);router[_0xad0b('0x3')]('/restart',auth[_0xad0b('0x6')](),controller[_0xad0b('0xa')]);router['get'](_0xad0b('0xb'),controller[_0xad0b('0xc')]);module[_0xad0b('0xd')]=router;