Built motion from commit d1eab355.|2.6.28
[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 _0x1130=['pull','/migrations','migrations','exports','express','Router','../../components/auth/service','./version.controller','get','/fetch','canUpdate','/reset','reset','/pull','isAuthenticated'];(function(_0x528404,_0x27a5ba){var _0xe59e6b=function(_0x12e4f8){while(--_0x12e4f8){_0x528404['push'](_0x528404['shift']());}};_0xe59e6b(++_0x27a5ba);}(_0x1130,0x9a));var _0x0113=function(_0x484e36,_0x4482d8){_0x484e36=_0x484e36-0x0;var _0xafc85d=_0x1130[_0x484e36];return _0xafc85d;};'use strict';var express=require(_0x0113('0x0'));var router=express[_0x0113('0x1')]();var auth=require(_0x0113('0x2'));var controller=require(_0x0113('0x3'));router[_0x0113('0x4')]('/',controller['index']);router[_0x0113('0x4')](_0x0113('0x5'),auth['isAuthenticated'](),auth[_0x0113('0x6')](),controller['fetch']);router[_0x0113('0x4')](_0x0113('0x7'),auth['isAuthenticated'](),auth['canUpdate'](),controller[_0x0113('0x8')]);router[_0x0113('0x4')](_0x0113('0x9'),auth[_0x0113('0xa')](),auth['canUpdate'](),controller[_0x0113('0xb')]);router[_0x0113('0x4')]('/restart',auth['isAuthenticated'](),controller['restart']);router[_0x0113('0x4')](_0x0113('0xc'),controller[_0x0113('0xd')]);module[_0x0113('0xe')]=router;