Built motion from commit (unavailable).|2.5.23
[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 _0x1a74=['express','Router','../../components/auth/service','./version.controller','get','/fetch','canUpdate','fetch','/reset','isAuthenticated','reset','pull','/restart','migrations'];(function(_0x3f4dd9,_0xe0b819){var _0x31c54a=function(_0x25e6c6){while(--_0x25e6c6){_0x3f4dd9['push'](_0x3f4dd9['shift']());}};_0x31c54a(++_0xe0b819);}(_0x1a74,0x118));var _0x41a7=function(_0x5f2117,_0x2dfa70){_0x5f2117=_0x5f2117-0x0;var _0x34caf4=_0x1a74[_0x5f2117];return _0x34caf4;};'use strict';var express=require(_0x41a7('0x0'));var router=express[_0x41a7('0x1')]();var auth=require(_0x41a7('0x2'));var controller=require(_0x41a7('0x3'));router[_0x41a7('0x4')]('/',controller['index']);router['get'](_0x41a7('0x5'),auth['isAuthenticated'](),auth[_0x41a7('0x6')](),controller[_0x41a7('0x7')]);router[_0x41a7('0x4')](_0x41a7('0x8'),auth[_0x41a7('0x9')](),auth[_0x41a7('0x6')](),controller[_0x41a7('0xa')]);router[_0x41a7('0x4')]('/pull',auth['isAuthenticated'](),auth[_0x41a7('0x6')](),controller[_0x41a7('0xb')]);router[_0x41a7('0x4')](_0x41a7('0xc'),auth[_0x41a7('0x9')](),controller['restart']);router[_0x41a7('0x4')]('/migrations',controller[_0x41a7('0xd')]);module['exports']=router;