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 _0x8357=['multer','util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','get','/describe','getOpenContacts','/:id','show','post','create','/preview','put','update','delete','destroy','exports'];(function(_0x3d91dd,_0x33b1e2){var _0x3cd59a=function(_0x51d1d4){while(--_0x51d1d4){_0x3d91dd['push'](_0x3d91dd['shift']());}};_0x3cd59a(++_0x33b1e2);}(_0x8357,0x1e4));var _0x7835=function(_0x3fa6b9,_0xda4953){_0x3fa6b9=_0x3fa6b9-0x0;var _0x532cf3=_0x8357[_0x3fa6b9];return _0x532cf3;};'use strict';var multer=require(_0x7835('0x0'));var util=require(_0x7835('0x1'));var path=require(_0x7835('0x2'));var timeout=require('connect-timeout');var express=require(_0x7835('0x3'));var router=express[_0x7835('0x4')]();var auth=require(_0x7835('0x5'));var interaction=require(_0x7835('0x6'));var config=require(_0x7835('0x7'));var controller=require('./cmHopper.controller');router['get']('/',auth[_0x7835('0x8')](),controller['index']);router[_0x7835('0x9')](_0x7835('0xa'),auth['isAuthenticated'](),controller['describe']);router[_0x7835('0x9')]('/opencontacts',auth[_0x7835('0x8')](),controller[_0x7835('0xb')]);router[_0x7835('0x9')](_0x7835('0xc'),auth['isAuthenticated'](),controller[_0x7835('0xd')]);router[_0x7835('0xe')]('/',auth[_0x7835('0x8')](),controller[_0x7835('0xf')]);router[_0x7835('0xe')](_0x7835('0x10'),auth[_0x7835('0x8')](),controller['getPreview']);router[_0x7835('0x11')](_0x7835('0xc'),auth[_0x7835('0x8')](),controller[_0x7835('0x12')]);router[_0x7835('0x13')](_0x7835('0xc'),auth[_0x7835('0x8')](),controller[_0x7835('0x14')]);module[_0x7835('0x15')]=router;