Built motion from commit 00bf23f6.|2.6.16
[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 _0xa317=['index','isAuthenticated','canUpdate','fetch','/reset','reset','pull','/restart','restart','/migrations','migrations','exports','express','Router','../../components/auth/service','./version.controller','get'];(function(_0xae334e,_0x27a6c6){var _0x205ab4=function(_0x46a243){while(--_0x46a243){_0xae334e['push'](_0xae334e['shift']());}};_0x205ab4(++_0x27a6c6);}(_0xa317,0x14f));var _0x7a31=function(_0x905a94,_0x5694bd){_0x905a94=_0x905a94-0x0;var _0x33c5d5=_0xa317[_0x905a94];return _0x33c5d5;};'use strict';var express=require(_0x7a31('0x0'));var router=express[_0x7a31('0x1')]();var auth=require(_0x7a31('0x2'));var controller=require(_0x7a31('0x3'));router[_0x7a31('0x4')]('/',controller[_0x7a31('0x5')]);router[_0x7a31('0x4')]('/fetch',auth[_0x7a31('0x6')](),auth[_0x7a31('0x7')](),controller[_0x7a31('0x8')]);router['get'](_0x7a31('0x9'),auth[_0x7a31('0x6')](),auth[_0x7a31('0x7')](),controller[_0x7a31('0xa')]);router[_0x7a31('0x4')]('/pull',auth[_0x7a31('0x6')](),auth[_0x7a31('0x7')](),controller[_0x7a31('0xb')]);router[_0x7a31('0x4')](_0x7a31('0xc'),auth['isAuthenticated'](),controller[_0x7a31('0xd')]);router[_0x7a31('0x4')](_0x7a31('0xe'),controller[_0x7a31('0xf')]);module[_0x7a31('0x10')]=router;