Built motion from commit 3c2ce842.|2.6.31
[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 _0x132c=['/fetch','isAuthenticated','canUpdate','fetch','/reset','reset','/pull','/migrations','migrations','exports','express','../../components/auth/service','get','index'];(function(_0x43d701,_0x4bb2e9){var _0x2ec4c6=function(_0x4d9765){while(--_0x4d9765){_0x43d701['push'](_0x43d701['shift']());}};_0x2ec4c6(++_0x4bb2e9);}(_0x132c,0x1ae));var _0xc132=function(_0x35404c,_0x277be0){_0x35404c=_0x35404c-0x0;var _0x171b27=_0x132c[_0x35404c];return _0x171b27;};'use strict';var express=require(_0xc132('0x0'));var router=express['Router']();var auth=require(_0xc132('0x1'));var controller=require('./version.controller');router[_0xc132('0x2')]('/',controller[_0xc132('0x3')]);router[_0xc132('0x2')](_0xc132('0x4'),auth[_0xc132('0x5')](),auth[_0xc132('0x6')](),controller[_0xc132('0x7')]);router[_0xc132('0x2')](_0xc132('0x8'),auth[_0xc132('0x5')](),auth[_0xc132('0x6')](),controller[_0xc132('0x9')]);router[_0xc132('0x2')](_0xc132('0xa'),auth[_0xc132('0x5')](),auth['canUpdate'](),controller['pull']);router['get']('/restart',auth[_0xc132('0x5')](),controller['restart']);router['get'](_0xc132('0xb'),controller[_0xc132('0xc')]);module[_0xc132('0xd')]=router;