Built motion from commit (unavailable).|2.4.21
[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 _0x7764=['restart','/migrations','migrations','exports','express','Router','../../components/auth/service','./version.controller','get','index','/fetch','isAuthenticated','canUpdate','/reset','reset','/restart'];(function(_0x10de99,_0xdd42d){var _0x8550e5=function(_0x3c1aae){while(--_0x3c1aae){_0x10de99['push'](_0x10de99['shift']());}};_0x8550e5(++_0xdd42d);}(_0x7764,0xa4));var _0x4776=function(_0x175a55,_0x4082fd){_0x175a55=_0x175a55-0x0;var _0x167adf=_0x7764[_0x175a55];return _0x167adf;};'use strict';var express=require(_0x4776('0x0'));var router=express[_0x4776('0x1')]();var auth=require(_0x4776('0x2'));var controller=require(_0x4776('0x3'));router[_0x4776('0x4')]('/',controller[_0x4776('0x5')]);router[_0x4776('0x4')](_0x4776('0x6'),auth[_0x4776('0x7')](),auth[_0x4776('0x8')](),controller['fetch']);router['get'](_0x4776('0x9'),auth[_0x4776('0x7')](),auth['canUpdate'](),controller[_0x4776('0xa')]);router[_0x4776('0x4')]('/pull',auth['isAuthenticated'](),auth[_0x4776('0x8')](),controller['pull']);router[_0x4776('0x4')](_0x4776('0xb'),auth[_0x4776('0x7')](),controller[_0x4776('0xc')]);router[_0x4776('0x4')](_0x4776('0xd'),controller[_0x4776('0xe')]);module[_0x4776('0xf')]=router;