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