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 _0x0fc2=['get','isAuthenticated','index','/describe','describe','/opencontacts','/:id','post','create','/preview','getPreview','put','delete','exports','multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmHopper.controller'];(function(_0x56c1ea,_0x1de8b4){var _0x195032=function(_0x749d84){while(--_0x749d84){_0x56c1ea['push'](_0x56c1ea['shift']());}};_0x195032(++_0x1de8b4);}(_0x0fc2,0x6e));var _0x20fc=function(_0x16a505,_0x1e5b23){_0x16a505=_0x16a505-0x0;var _0x1a8726=_0x0fc2[_0x16a505];return _0x1a8726;};'use strict';var multer=require(_0x20fc('0x0'));var util=require(_0x20fc('0x1'));var path=require(_0x20fc('0x2'));var timeout=require(_0x20fc('0x3'));var express=require('express');var router=express[_0x20fc('0x4')]();var fs_extra=require(_0x20fc('0x5'));var auth=require(_0x20fc('0x6'));var interaction=require(_0x20fc('0x7'));var config=require(_0x20fc('0x8'));var controller=require(_0x20fc('0x9'));router[_0x20fc('0xa')]('/',auth[_0x20fc('0xb')](),controller[_0x20fc('0xc')]);router[_0x20fc('0xa')](_0x20fc('0xd'),auth[_0x20fc('0xb')](),controller[_0x20fc('0xe')]);router[_0x20fc('0xa')](_0x20fc('0xf'),auth[_0x20fc('0xb')](),controller['getOpenContacts']);router[_0x20fc('0xa')](_0x20fc('0x10'),auth[_0x20fc('0xb')](),controller['show']);router[_0x20fc('0x11')]('/',auth[_0x20fc('0xb')](),controller[_0x20fc('0x12')]);router[_0x20fc('0x11')](_0x20fc('0x13'),auth[_0x20fc('0xb')](),controller[_0x20fc('0x14')]);router[_0x20fc('0x15')]('/:id',auth[_0x20fc('0xb')](),controller['update']);router[_0x20fc('0x16')]('/:id',auth[_0x20fc('0xb')](),controller['destroy']);module[_0x20fc('0x17')]=router;