Built motion from commit 936e8062.|2.5.33
[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 _0xa19a=['exports','../../components/auth/service','./version.controller','get','index','isAuthenticated','canUpdate','fetch','/reset','reset','/pull','restart','migrations'];(function(_0x131d97,_0x48354f){var _0xe77636=function(_0x35a360){while(--_0x35a360){_0x131d97['push'](_0x131d97['shift']());}};_0xe77636(++_0x48354f);}(_0xa19a,0xaa));var _0xaa19=function(_0x13db32,_0x58abf9){_0x13db32=_0x13db32-0x0;var _0x1434d9=_0xa19a[_0x13db32];return _0x1434d9;};'use strict';var express=require('express');var router=express['Router']();var auth=require(_0xaa19('0x0'));var controller=require(_0xaa19('0x1'));router[_0xaa19('0x2')]('/',controller[_0xaa19('0x3')]);router['get']('/fetch',auth[_0xaa19('0x4')](),auth[_0xaa19('0x5')](),controller[_0xaa19('0x6')]);router[_0xaa19('0x2')](_0xaa19('0x7'),auth['isAuthenticated'](),auth[_0xaa19('0x5')](),controller[_0xaa19('0x8')]);router[_0xaa19('0x2')](_0xaa19('0x9'),auth['isAuthenticated'](),auth[_0xaa19('0x5')](),controller['pull']);router[_0xaa19('0x2')]('/restart',auth[_0xaa19('0x4')](),controller[_0xaa19('0xa')]);router[_0xaa19('0x2')]('/migrations',controller[_0xaa19('0xb')]);module[_0xaa19('0xc')]=router;