f99b74fef59f1ce9dbb98f41c6aa042767949020
[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 _0x5ea3=['restart','/migrations','migrations','express','Router','../../components/auth/service','./version.controller','get','index','/fetch','isAuthenticated','fetch','/reset','canUpdate','/pull','/restart'];(function(_0xee14b0,_0x2ef0b6){var _0x428ca0=function(_0x4026df){while(--_0x4026df){_0xee14b0['push'](_0xee14b0['shift']());}};_0x428ca0(++_0x2ef0b6);}(_0x5ea3,0x1b3));var _0x35ea=function(_0x1e6bcd,_0x57cb29){_0x1e6bcd=_0x1e6bcd-0x0;var _0x296f60=_0x5ea3[_0x1e6bcd];return _0x296f60;};'use strict';var express=require(_0x35ea('0x0'));var router=express[_0x35ea('0x1')]();var auth=require(_0x35ea('0x2'));var controller=require(_0x35ea('0x3'));router[_0x35ea('0x4')]('/',controller[_0x35ea('0x5')]);router['get'](_0x35ea('0x6'),auth[_0x35ea('0x7')](),auth['canUpdate'](),controller[_0x35ea('0x8')]);router[_0x35ea('0x4')](_0x35ea('0x9'),auth['isAuthenticated'](),auth[_0x35ea('0xa')](),controller['reset']);router[_0x35ea('0x4')](_0x35ea('0xb'),auth['isAuthenticated'](),auth['canUpdate'](),controller['pull']);router[_0x35ea('0x4')](_0x35ea('0xc'),auth['isAuthenticated'](),controller[_0x35ea('0xd')]);router['get'](_0x35ea('0xe'),controller[_0x35ea('0xf')]);module['exports']=router;