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 _0x8a94=['isAuthenticated','index','get','/describe','describe','/opencontacts','getOpenContacts','/timezones','show','getPreviewRecall','create','post','/preview','/timezone','getTimezone','update','delete','/:id','destroy','exports','express','Router','../../components/auth/service','./cmHopper.controller'];(function(_0x592112,_0x58fc04){var _0x4e21cf=function(_0x428d0f){while(--_0x428d0f){_0x592112['push'](_0x592112['shift']());}};_0x4e21cf(++_0x58fc04);}(_0x8a94,0x1ac));var _0x48a9=function(_0x36c352,_0x49e591){_0x36c352=_0x36c352-0x0;var _0xa1d924=_0x8a94[_0x36c352];return _0xa1d924;};'use strict';var express=require(_0x48a9('0x0'));var router=express[_0x48a9('0x1')]();var auth=require(_0x48a9('0x2'));var controller=require(_0x48a9('0x3'));router['get']('/',auth[_0x48a9('0x4')](),controller[_0x48a9('0x5')]);router[_0x48a9('0x6')](_0x48a9('0x7'),auth['isAuthenticated'](),controller[_0x48a9('0x8')]);router[_0x48a9('0x6')](_0x48a9('0x9'),auth['isAuthenticated'](),controller[_0x48a9('0xa')]);router[_0x48a9('0x6')](_0x48a9('0xb'),auth['isAuthenticated'](),controller['getTimezones']);router['get']('/:id',auth['isAuthenticated'](),controller[_0x48a9('0xc')]);router[_0x48a9('0x6')]('/:id/previewrecall',auth['isAuthenticated'](),controller[_0x48a9('0xd')]);router['post']('/',auth['isAuthenticated'](),controller[_0x48a9('0xe')]);router[_0x48a9('0xf')](_0x48a9('0x10'),auth['isAuthenticated'](),controller['getPreview']);router['post'](_0x48a9('0x11'),auth[_0x48a9('0x4')](),controller[_0x48a9('0x12')]);router['put']('/:id',auth[_0x48a9('0x4')](),controller[_0x48a9('0x13')]);router[_0x48a9('0x14')](_0x48a9('0x15'),auth[_0x48a9('0x4')](),controller[_0x48a9('0x16')]);module[_0x48a9('0x17')]=router;