c21ab95afa107cad773a94288b629e760fe751c0
[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 _0x1609=['canUpdate','fetch','get','/reset','reset','/pull','pull','/restart','restart','/migrations','express','Router','../../components/auth/service','./version.controller','/fetch'];(function(_0x19a11f,_0x6d8be7){var _0x51485f=function(_0x1394a1){while(--_0x1394a1){_0x19a11f['push'](_0x19a11f['shift']());}};_0x51485f(++_0x6d8be7);}(_0x1609,0x190));var _0x9160=function(_0x433a86,_0x175b5c){_0x433a86=_0x433a86-0x0;var _0x23000c=_0x1609[_0x433a86];return _0x23000c;};'use strict';var express=require(_0x9160('0x0'));var router=express[_0x9160('0x1')]();var auth=require(_0x9160('0x2'));var controller=require(_0x9160('0x3'));router['get']('/',controller['index']);router['get'](_0x9160('0x4'),auth['isAuthenticated'](),auth[_0x9160('0x5')](),controller[_0x9160('0x6')]);router[_0x9160('0x7')](_0x9160('0x8'),auth['isAuthenticated'](),auth[_0x9160('0x5')](),controller[_0x9160('0x9')]);router[_0x9160('0x7')](_0x9160('0xa'),auth['isAuthenticated'](),auth[_0x9160('0x5')](),controller[_0x9160('0xb')]);router[_0x9160('0x7')](_0x9160('0xc'),auth['isAuthenticated'](),controller[_0x9160('0xd')]);router['get'](_0x9160('0xe'),controller['migrations']);module['exports']=router;