Built motion from commit (unavailable).|2.5.7
[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 _0xf881=['restart','/migrations','express','Router','get','/fetch','isAuthenticated','fetch','/reset','canUpdate','/restart'];(function(_0x57b54c,_0x54ce0d){var _0x59cc19=function(_0xa33bc6){while(--_0xa33bc6){_0x57b54c['push'](_0x57b54c['shift']());}};_0x59cc19(++_0x54ce0d);}(_0xf881,0x10a));var _0x1f88=function(_0x4fcdc7,_0xf18181){_0x4fcdc7=_0x4fcdc7-0x0;var _0x5001a6=_0xf881[_0x4fcdc7];return _0x5001a6;};'use strict';var express=require(_0x1f88('0x0'));var router=express[_0x1f88('0x1')]();var auth=require('../../components/auth/service');var controller=require('./version.controller');router[_0x1f88('0x2')]('/',controller['index']);router[_0x1f88('0x2')](_0x1f88('0x3'),auth[_0x1f88('0x4')](),auth['canUpdate'](),controller[_0x1f88('0x5')]);router['get'](_0x1f88('0x6'),auth[_0x1f88('0x4')](),auth[_0x1f88('0x7')](),controller['reset']);router[_0x1f88('0x2')]('/pull',auth[_0x1f88('0x4')](),auth[_0x1f88('0x7')](),controller['pull']);router[_0x1f88('0x2')](_0x1f88('0x8'),auth[_0x1f88('0x4')](),controller[_0x1f88('0x9')]);router[_0x1f88('0x2')](_0x1f88('0xa'),controller['migrations']);module['exports']=router;