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