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 _0x794a=['show','post','getPreview','/timezone','getTimezone','/previewrecall','getPreviewRecall','update','delete','util','path','connect-timeout','express','fs-extra','../../components/interaction/service','../../config/environment','./cmHopper.controller','get','isAuthenticated','/describe','describe','/opencontacts','getOpenContacts','/timezones','getTimezones','/:id'];(function(_0x458c48,_0x17fdb1){var _0x31f9ac=function(_0x2a6b5){while(--_0x2a6b5){_0x458c48['push'](_0x458c48['shift']());}};_0x31f9ac(++_0x17fdb1);}(_0x794a,0x8b));var _0xa794=function(_0x55d605,_0x31cdd2){_0x55d605=_0x55d605-0x0;var _0x168ab7=_0x794a[_0x55d605];return _0x168ab7;};'use strict';var multer=require('multer');var util=require(_0xa794('0x0'));var path=require(_0xa794('0x1'));var timeout=require(_0xa794('0x2'));var express=require(_0xa794('0x3'));var router=express['Router']();var fs_extra=require(_0xa794('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xa794('0x5'));var config=require(_0xa794('0x6'));var controller=require(_0xa794('0x7'));router[_0xa794('0x8')]('/',auth[_0xa794('0x9')](),controller['index']);router[_0xa794('0x8')](_0xa794('0xa'),auth['isAuthenticated'](),controller[_0xa794('0xb')]);router[_0xa794('0x8')](_0xa794('0xc'),auth[_0xa794('0x9')](),controller[_0xa794('0xd')]);router[_0xa794('0x8')](_0xa794('0xe'),auth[_0xa794('0x9')](),controller[_0xa794('0xf')]);router['get'](_0xa794('0x10'),auth[_0xa794('0x9')](),controller[_0xa794('0x11')]);router[_0xa794('0x12')]('/',auth[_0xa794('0x9')](),controller['create']);router[_0xa794('0x12')]('/preview',auth[_0xa794('0x9')](),controller[_0xa794('0x13')]);router['post'](_0xa794('0x14'),auth[_0xa794('0x9')](),controller[_0xa794('0x15')]);router['post'](_0xa794('0x16'),auth[_0xa794('0x9')](),controller[_0xa794('0x17')]);router['put'](_0xa794('0x10'),auth[_0xa794('0x9')](),controller[_0xa794('0x18')]);router[_0xa794('0x19')](_0xa794('0x10'),auth[_0xa794('0x9')](),controller['destroy']);module['exports']=router;