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 _0x6a90=['isAuthenticated','/describe','/opencontacts','getOpenContacts','getTimezones','show','/:id/previewrecall','getPreviewRecall','post','create','/preview','getPreview','/timezone','put','/:id','update','delete','exports','Router','./cmHopper.controller','get'];(function(_0x49d931,_0x121258){var _0x491a2a=function(_0x338d50){while(--_0x338d50){_0x49d931['push'](_0x49d931['shift']());}};_0x491a2a(++_0x121258);}(_0x6a90,0x123));var _0x06a9=function(_0x378a3e,_0x4e19b0){_0x378a3e=_0x378a3e-0x0;var _0x4f0d52=_0x6a90[_0x378a3e];return _0x4f0d52;};'use strict';var express=require('express');var router=express[_0x06a9('0x0')]();var auth=require('../../components/auth/service');var controller=require(_0x06a9('0x1'));router[_0x06a9('0x2')]('/',auth[_0x06a9('0x3')](),controller['index']);router['get'](_0x06a9('0x4'),auth[_0x06a9('0x3')](),controller['describe']);router[_0x06a9('0x2')](_0x06a9('0x5'),auth[_0x06a9('0x3')](),controller[_0x06a9('0x6')]);router[_0x06a9('0x2')]('/timezones',auth[_0x06a9('0x3')](),controller[_0x06a9('0x7')]);router[_0x06a9('0x2')]('/:id',auth[_0x06a9('0x3')](),controller[_0x06a9('0x8')]);router['get'](_0x06a9('0x9'),auth[_0x06a9('0x3')](),controller[_0x06a9('0xa')]);router[_0x06a9('0xb')]('/',auth['isAuthenticated'](),controller[_0x06a9('0xc')]);router[_0x06a9('0xb')](_0x06a9('0xd'),auth[_0x06a9('0x3')](),controller[_0x06a9('0xe')]);router[_0x06a9('0xb')](_0x06a9('0xf'),auth[_0x06a9('0x3')](),controller['getTimezone']);router[_0x06a9('0x10')](_0x06a9('0x11'),auth['isAuthenticated'](),controller[_0x06a9('0x12')]);router[_0x06a9('0x13')](_0x06a9('0x11'),auth[_0x06a9('0x3')](),controller['destroy']);module[_0x06a9('0x14')]=router;