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 _0xf263=['util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','index','/:id','isAuthenticated','show','post','create','put','delete','exports','multer'];(function(_0x53019f,_0x13b1f){var _0x246d32=function(_0x5c79fe){while(--_0x5c79fe){_0x53019f['push'](_0x53019f['shift']());}};_0x246d32(++_0x13b1f);}(_0xf263,0x1df));var _0x3f26=function(_0x333714,_0x3370ac){_0x333714=_0x333714-0x0;var _0x4c211e=_0xf263[_0x333714];return _0x4c211e;};'use strict';var multer=require(_0x3f26('0x0'));var util=require(_0x3f26('0x1'));var path=require(_0x3f26('0x2'));var timeout=require(_0x3f26('0x3'));var express=require('express');var router=express[_0x3f26('0x4')]();var auth=require(_0x3f26('0x5'));var interaction=require(_0x3f26('0x6'));var config=require('../../config/environment');var controller=require('./voiceContext.controller');router['get']('/',auth['isAuthenticated'](),controller[_0x3f26('0x7')]);router['get'](_0x3f26('0x8'),auth[_0x3f26('0x9')](),controller[_0x3f26('0xa')]);router[_0x3f26('0xb')]('/',auth[_0x3f26('0x9')](),controller[_0x3f26('0xc')]);router[_0x3f26('0xd')](_0x3f26('0x8'),auth['isAuthenticated'](),controller['update']);router[_0x3f26('0xe')]('/:id',auth['isAuthenticated'](),controller['destroy']);module[_0x3f26('0xf')]=router;