Built motion from commit (unavailable).|2.5.2
[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 _0x4d5d=['exports','express','Router','../../components/auth/service','./version.controller','get','/fetch','fetch','/reset','isAuthenticated','canUpdate','/pull','pull','restart','/migrations','migrations'];(function(_0x1dc0f3,_0x57271f){var _0x5aa0c1=function(_0x55f1a4){while(--_0x55f1a4){_0x1dc0f3['push'](_0x1dc0f3['shift']());}};_0x5aa0c1(++_0x57271f);}(_0x4d5d,0x111));var _0xd4d5=function(_0x470d13,_0x3f22fa){_0x470d13=_0x470d13-0x0;var _0x18cc32=_0x4d5d[_0x470d13];return _0x18cc32;};'use strict';var express=require(_0xd4d5('0x0'));var router=express[_0xd4d5('0x1')]();var auth=require(_0xd4d5('0x2'));var controller=require(_0xd4d5('0x3'));router[_0xd4d5('0x4')]('/',controller['index']);router[_0xd4d5('0x4')](_0xd4d5('0x5'),auth['isAuthenticated'](),auth['canUpdate'](),controller[_0xd4d5('0x6')]);router[_0xd4d5('0x4')](_0xd4d5('0x7'),auth[_0xd4d5('0x8')](),auth[_0xd4d5('0x9')](),controller['reset']);router['get'](_0xd4d5('0xa'),auth[_0xd4d5('0x8')](),auth['canUpdate'](),controller[_0xd4d5('0xb')]);router[_0xd4d5('0x4')]('/restart',auth['isAuthenticated'](),controller[_0xd4d5('0xc')]);router['get'](_0xd4d5('0xd'),controller[_0xd4d5('0xe')]);module[_0xd4d5('0xf')]=router;