Built motion from commit d9028345.|2.5.43
[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 _0xb3f8=['express','./version.controller','get','/fetch','isAuthenticated','canUpdate','/reset','reset','/pull','/restart','/migrations','migrations','exports'];(function(_0x55fc61,_0x5b1ca6){var _0x3d862f=function(_0x5c1710){while(--_0x5c1710){_0x55fc61['push'](_0x55fc61['shift']());}};_0x3d862f(++_0x5b1ca6);}(_0xb3f8,0x16c));var _0x8b3f=function(_0x3c04ef,_0x9d110c){_0x3c04ef=_0x3c04ef-0x0;var _0x6a3a69=_0xb3f8[_0x3c04ef];return _0x6a3a69;};'use strict';var express=require(_0x8b3f('0x0'));var router=express['Router']();var auth=require('../../components/auth/service');var controller=require(_0x8b3f('0x1'));router[_0x8b3f('0x2')]('/',controller['index']);router[_0x8b3f('0x2')](_0x8b3f('0x3'),auth[_0x8b3f('0x4')](),auth[_0x8b3f('0x5')](),controller['fetch']);router[_0x8b3f('0x2')](_0x8b3f('0x6'),auth[_0x8b3f('0x4')](),auth['canUpdate'](),controller[_0x8b3f('0x7')]);router['get'](_0x8b3f('0x8'),auth[_0x8b3f('0x4')](),auth[_0x8b3f('0x5')](),controller['pull']);router[_0x8b3f('0x2')](_0x8b3f('0x9'),auth[_0x8b3f('0x4')](),controller['restart']);router[_0x8b3f('0x2')](_0x8b3f('0xa'),controller[_0x8b3f('0xb')]);module[_0x8b3f('0xc')]=router;