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 _0x6cb2=['../../components/auth/service','../../config/environment','get','isAuthenticated','/:id','create','update','delete','destroy','exports','multer','path','Router'];(function(_0x20d53b,_0x250dc){var _0x21dcac=function(_0x9416c1){while(--_0x9416c1){_0x20d53b['push'](_0x20d53b['shift']());}};_0x21dcac(++_0x250dc);}(_0x6cb2,0xc0));var _0x26cb=function(_0xa148b7,_0x2f3eb2){_0xa148b7=_0xa148b7-0x0;var _0x51efd3=_0x6cb2[_0xa148b7];return _0x51efd3;};'use strict';var multer=require(_0x26cb('0x0'));var util=require('util');var path=require(_0x26cb('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x26cb('0x2')]();var auth=require(_0x26cb('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0x26cb('0x4'));var controller=require('./voiceContext.controller');router[_0x26cb('0x5')]('/',auth[_0x26cb('0x6')](),controller['index']);router['get'](_0x26cb('0x7'),auth['isAuthenticated'](),controller['show']);router['post']('/',auth[_0x26cb('0x6')](),controller[_0x26cb('0x8')]);router['put']('/:id',auth[_0x26cb('0x6')](),controller[_0x26cb('0x9')]);router[_0x26cb('0xa')](_0x26cb('0x7'),auth[_0x26cb('0x6')](),controller[_0x26cb('0xb')]);module[_0x26cb('0xc')]=router;