1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x769b=['migrations','exports','express','Router','../../components/auth/service','./version.controller','index','/fetch','canUpdate','get','/reset','isAuthenticated','reset','/pull','pull','restart','/migrations'];(function(_0xd4a5,_0x12a607){var _0x4c99f6=function(_0x58c621){while(--_0x58c621){_0xd4a5['push'](_0xd4a5['shift']());}};_0x4c99f6(++_0x12a607);}(_0x769b,0x123));var _0xb769=function(_0x2dc92c,_0x352975){_0x2dc92c=_0x2dc92c-0x0;var _0x4fc94c=_0x769b[_0x2dc92c];return _0x4fc94c;};'use strict';var express=require(_0xb769('0x0'));var router=express[_0xb769('0x1')]();var auth=require(_0xb769('0x2'));var controller=require(_0xb769('0x3'));router['get']('/',controller[_0xb769('0x4')]);router['get'](_0xb769('0x5'),auth['isAuthenticated'](),auth[_0xb769('0x6')](),controller['fetch']);router[_0xb769('0x7')](_0xb769('0x8'),auth[_0xb769('0x9')](),auth[_0xb769('0x6')](),controller[_0xb769('0xa')]);router[_0xb769('0x7')](_0xb769('0xb'),auth['isAuthenticated'](),auth['canUpdate'](),controller[_0xb769('0xc')]);router[_0xb769('0x7')]('/restart',auth[_0xb769('0x9')](),controller[_0xb769('0xd')]);router[_0xb769('0x7')](_0xb769('0xe'),controller[_0xb769('0xf')]);module[_0xb769('0x10')]=router;