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 _0x5423=['multer','path','connect-timeout','Router','../../components/auth/service','../../config/environment','get','isAuthenticated','/:id','show','post','create','update','delete','destroy','exports'];(function(_0x77e841,_0x202766){var _0x56f56c=function(_0x483885){while(--_0x483885){_0x77e841['push'](_0x77e841['shift']());}};_0x56f56c(++_0x202766);}(_0x5423,0xb0));var _0x3542=function(_0x2b245e,_0x206d88){_0x2b245e=_0x2b245e-0x0;var _0x47d28a=_0x5423[_0x2b245e];return _0x47d28a;};'use strict';var multer=require(_0x3542('0x0'));var util=require('util');var path=require(_0x3542('0x1'));var timeout=require(_0x3542('0x2'));var express=require('express');var router=express[_0x3542('0x3')]();var auth=require(_0x3542('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x3542('0x5'));var controller=require('./voiceContext.controller');router[_0x3542('0x6')]('/',auth[_0x3542('0x7')](),controller['index']);router['get'](_0x3542('0x8'),auth[_0x3542('0x7')](),controller[_0x3542('0x9')]);router[_0x3542('0xa')]('/',auth[_0x3542('0x7')](),controller[_0x3542('0xb')]);router['put']('/:id',auth[_0x3542('0x7')](),controller[_0x3542('0xc')]);router[_0x3542('0xd')](_0x3542('0x8'),auth['isAuthenticated'](),controller[_0x3542('0xe')]);module[_0x3542('0xf')]=router;