Built motion from commit 43538d75.|2.5.35
[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 _0xf3bb=['index','isAuthenticated','canUpdate','fetch','reset','/pull','/restart','migrations','exports','express','Router','../../components/auth/service','./version.controller','get'];(function(_0x14110b,_0x3ce4f6){var _0x33d8db=function(_0x55c02f){while(--_0x55c02f){_0x14110b['push'](_0x14110b['shift']());}};_0x33d8db(++_0x3ce4f6);}(_0xf3bb,0xbf));var _0xbf3b=function(_0x43c486,_0x201215){_0x43c486=_0x43c486-0x0;var _0x549ca7=_0xf3bb[_0x43c486];return _0x549ca7;};'use strict';var express=require(_0xbf3b('0x0'));var router=express[_0xbf3b('0x1')]();var auth=require(_0xbf3b('0x2'));var controller=require(_0xbf3b('0x3'));router[_0xbf3b('0x4')]('/',controller[_0xbf3b('0x5')]);router['get']('/fetch',auth[_0xbf3b('0x6')](),auth[_0xbf3b('0x7')](),controller[_0xbf3b('0x8')]);router[_0xbf3b('0x4')]('/reset',auth[_0xbf3b('0x6')](),auth[_0xbf3b('0x7')](),controller[_0xbf3b('0x9')]);router[_0xbf3b('0x4')](_0xbf3b('0xa'),auth[_0xbf3b('0x6')](),auth[_0xbf3b('0x7')](),controller['pull']);router[_0xbf3b('0x4')](_0xbf3b('0xb'),auth['isAuthenticated'](),controller['restart']);router['get']('/migrations',controller[_0xbf3b('0xc')]);module[_0xbf3b('0xd')]=router;