Built motion from commit 53172ac8.|2.6.30
[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 _0x9263=['../../components/auth/service','./version.controller','get','isAuthenticated','fetch','/reset','canUpdate','reset','restart','/migrations','migrations','exports','express','Router'];(function(_0x4c19eb,_0x7d7644){var _0x29553a=function(_0x418608){while(--_0x418608){_0x4c19eb['push'](_0x4c19eb['shift']());}};_0x29553a(++_0x7d7644);}(_0x9263,0x194));var _0x3926=function(_0x9df060,_0x253d33){_0x9df060=_0x9df060-0x0;var _0x338dfe=_0x9263[_0x9df060];return _0x338dfe;};'use strict';var express=require(_0x3926('0x0'));var router=express[_0x3926('0x1')]();var auth=require(_0x3926('0x2'));var controller=require(_0x3926('0x3'));router[_0x3926('0x4')]('/',controller['index']);router[_0x3926('0x4')]('/fetch',auth[_0x3926('0x5')](),auth['canUpdate'](),controller[_0x3926('0x6')]);router[_0x3926('0x4')](_0x3926('0x7'),auth[_0x3926('0x5')](),auth[_0x3926('0x8')](),controller[_0x3926('0x9')]);router['get']('/pull',auth[_0x3926('0x5')](),auth[_0x3926('0x8')](),controller['pull']);router[_0x3926('0x4')]('/restart',auth[_0x3926('0x5')](),controller[_0x3926('0xa')]);router[_0x3926('0x4')](_0x3926('0xb'),controller[_0x3926('0xc')]);module[_0x3926('0xd')]=router;