Built motion from commit 87cd5f02.|2.5.48
[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 _0x82b5=['migrations','exports','../../components/auth/service','./version.controller','get','/fetch','canUpdate','fetch','/reset','isAuthenticated','reset','/pull','pull','/restart','restart','/migrations'];(function(_0x66fff4,_0x4dda5c){var _0x24a80d=function(_0x4402b5){while(--_0x4402b5){_0x66fff4['push'](_0x66fff4['shift']());}};_0x24a80d(++_0x4dda5c);}(_0x82b5,0x152));var _0x582b=function(_0x1e92b3,_0x41f802){_0x1e92b3=_0x1e92b3-0x0;var _0x38c3af=_0x82b5[_0x1e92b3];return _0x38c3af;};'use strict';var express=require('express');var router=express['Router']();var auth=require(_0x582b('0x0'));var controller=require(_0x582b('0x1'));router[_0x582b('0x2')]('/',controller['index']);router['get'](_0x582b('0x3'),auth['isAuthenticated'](),auth[_0x582b('0x4')](),controller[_0x582b('0x5')]);router[_0x582b('0x2')](_0x582b('0x6'),auth[_0x582b('0x7')](),auth['canUpdate'](),controller[_0x582b('0x8')]);router[_0x582b('0x2')](_0x582b('0x9'),auth[_0x582b('0x7')](),auth['canUpdate'](),controller[_0x582b('0xa')]);router[_0x582b('0x2')](_0x582b('0xb'),auth[_0x582b('0x7')](),controller[_0x582b('0xc')]);router[_0x582b('0x2')](_0x582b('0xd'),controller[_0x582b('0xe')]);module[_0x582b('0xf')]=router;