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