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 _0xa468=['destroy','express','Router','../../components/auth/service','isAuthenticated','index','get','/describe','describe','/opencontacts','getOpenContacts','/timezones','getTimezones','/:id','getPreviewRecall','post','/timezone','getTimezone','put'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0xa468,0x1dc));var _0x8a46=function(_0x3ab51d,_0x2fa01d){_0x3ab51d=_0x3ab51d-0x0;var _0x29a04e=_0xa468[_0x3ab51d];return _0x29a04e;};'use strict';var express=require(_0x8a46('0x0'));var router=express[_0x8a46('0x1')]();var auth=require(_0x8a46('0x2'));var controller=require('./cmHopper.controller');router['get']('/',auth[_0x8a46('0x3')](),controller[_0x8a46('0x4')]);router[_0x8a46('0x5')](_0x8a46('0x6'),auth[_0x8a46('0x3')](),controller[_0x8a46('0x7')]);router[_0x8a46('0x5')](_0x8a46('0x8'),auth[_0x8a46('0x3')](),controller[_0x8a46('0x9')]);router[_0x8a46('0x5')](_0x8a46('0xa'),auth[_0x8a46('0x3')](),controller[_0x8a46('0xb')]);router['get'](_0x8a46('0xc'),auth[_0x8a46('0x3')](),controller['show']);router[_0x8a46('0x5')]('/:id/previewrecall',auth[_0x8a46('0x3')](),controller[_0x8a46('0xd')]);router[_0x8a46('0xe')]('/',auth['isAuthenticated'](),controller['create']);router[_0x8a46('0xe')]('/preview',auth[_0x8a46('0x3')](),controller['getPreview']);router[_0x8a46('0xe')](_0x8a46('0xf'),auth[_0x8a46('0x3')](),controller[_0x8a46('0x10')]);router[_0x8a46('0x11')](_0x8a46('0xc'),auth[_0x8a46('0x3')](),controller['update']);router['delete']('/:id',auth[_0x8a46('0x3')](),controller[_0x8a46('0x12')]);module['exports']=router;