Built motion from commit (unavailable).|2.5.21
[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 _0xf408=['../../components/auth/service','./version.controller','get','index','fetch','isAuthenticated','pull','/restart','restart','/migrations','migrations','exports','Router'];(function(_0x2ec86d,_0x361903){var _0x1d0967=function(_0x29d80f){while(--_0x29d80f){_0x2ec86d['push'](_0x2ec86d['shift']());}};_0x1d0967(++_0x361903);}(_0xf408,0x9b));var _0x8f40=function(_0x342b40,_0x3bc1dd){_0x342b40=_0x342b40-0x0;var _0x370170=_0xf408[_0x342b40];return _0x370170;};'use strict';var express=require('express');var router=express[_0x8f40('0x0')]();var auth=require(_0x8f40('0x1'));var controller=require(_0x8f40('0x2'));router[_0x8f40('0x3')]('/',controller[_0x8f40('0x4')]);router['get']('/fetch',auth['isAuthenticated'](),auth['canUpdate'](),controller[_0x8f40('0x5')]);router['get']('/reset',auth['isAuthenticated'](),auth['canUpdate'](),controller['reset']);router[_0x8f40('0x3')]('/pull',auth[_0x8f40('0x6')](),auth['canUpdate'](),controller[_0x8f40('0x7')]);router['get'](_0x8f40('0x8'),auth[_0x8f40('0x6')](),controller[_0x8f40('0x9')]);router[_0x8f40('0x3')](_0x8f40('0xa'),controller[_0x8f40('0xb')]);module[_0x8f40('0xc')]=router;