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 _0xf894=['delete','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmHopper.controller','get','isAuthenticated','index','/describe','describe','getOpenContacts','/:id','show','post','/preview','put','update'];(function(_0x4c5182,_0x395ebe){var _0x456fa8=function(_0x246ba0){while(--_0x246ba0){_0x4c5182['push'](_0x4c5182['shift']());}};_0x456fa8(++_0x395ebe);}(_0xf894,0xfd));var _0x4f89=function(_0x34b2d2,_0xc90126){_0x34b2d2=_0x34b2d2-0x0;var _0x2f56b4=_0xf894[_0x34b2d2];return _0x2f56b4;};'use strict';var multer=require(_0x4f89('0x0'));var util=require(_0x4f89('0x1'));var path=require(_0x4f89('0x2'));var timeout=require(_0x4f89('0x3'));var express=require(_0x4f89('0x4'));var router=express[_0x4f89('0x5')]();var auth=require(_0x4f89('0x6'));var interaction=require(_0x4f89('0x7'));var config=require(_0x4f89('0x8'));var controller=require(_0x4f89('0x9'));router[_0x4f89('0xa')]('/',auth[_0x4f89('0xb')](),controller[_0x4f89('0xc')]);router[_0x4f89('0xa')](_0x4f89('0xd'),auth[_0x4f89('0xb')](),controller[_0x4f89('0xe')]);router[_0x4f89('0xa')]('/opencontacts',auth[_0x4f89('0xb')](),controller[_0x4f89('0xf')]);router[_0x4f89('0xa')](_0x4f89('0x10'),auth[_0x4f89('0xb')](),controller[_0x4f89('0x11')]);router[_0x4f89('0x12')]('/',auth['isAuthenticated'](),controller['create']);router['post'](_0x4f89('0x13'),auth[_0x4f89('0xb')](),controller['getPreview']);router[_0x4f89('0x14')](_0x4f89('0x10'),auth[_0x4f89('0xb')](),controller[_0x4f89('0x15')]);router[_0x4f89('0x16')](_0x4f89('0x10'),auth[_0x4f89('0xb')](),controller[_0x4f89('0x17')]);module[_0x4f89('0x18')]=router;