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 _0xa93e=['../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceContext.controller','get','isAuthenticated','index','post','create','put','/:id','update','delete','destroy','exports','multer','util','Router'];(function(_0x509035,_0x599fd6){var _0x4ca601=function(_0x3f2f98){while(--_0x3f2f98){_0x509035['push'](_0x509035['shift']());}};_0x4ca601(++_0x599fd6);}(_0xa93e,0x1e3));var _0xea93=function(_0x7ae4b4,_0xcf53ce){_0x7ae4b4=_0x7ae4b4-0x0;var _0x15a034=_0xa93e[_0x7ae4b4];return _0x15a034;};'use strict';var multer=require(_0xea93('0x0'));var util=require(_0xea93('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0xea93('0x2')]();var fs_extra=require('fs-extra');var auth=require(_0xea93('0x3'));var interaction=require(_0xea93('0x4'));var config=require(_0xea93('0x5'));var controller=require(_0xea93('0x6'));router[_0xea93('0x7')]('/',auth[_0xea93('0x8')](),controller[_0xea93('0x9')]);router[_0xea93('0x7')]('/:id',auth[_0xea93('0x8')](),controller['show']);router[_0xea93('0xa')]('/',auth['isAuthenticated'](),controller[_0xea93('0xb')]);router[_0xea93('0xc')](_0xea93('0xd'),auth[_0xea93('0x8')](),controller[_0xea93('0xe')]);router[_0xea93('0xf')](_0xea93('0xd'),auth[_0xea93('0x8')](),controller[_0xea93('0x10')]);module[_0xea93('0x11')]=router;