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 _0xfcb9=['isAuthenticated','index','/:id','show','post','create','update','delete','exports','multer','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get'];(function(_0x5ca34a,_0x28d5af){var _0x3ecd89=function(_0xeaa1b1){while(--_0xeaa1b1){_0x5ca34a['push'](_0x5ca34a['shift']());}};_0x3ecd89(++_0x28d5af);}(_0xfcb9,0xe1));var _0x9fcb=function(_0x7de823,_0x32fc8c){_0x7de823=_0x7de823-0x0;var _0x42d64a=_0xfcb9[_0x7de823];return _0x42d64a;};'use strict';var multer=require(_0x9fcb('0x0'));var util=require(_0x9fcb('0x1'));var path=require('path');var timeout=require(_0x9fcb('0x2'));var express=require(_0x9fcb('0x3'));var router=express[_0x9fcb('0x4')]();var auth=require(_0x9fcb('0x5'));var interaction=require(_0x9fcb('0x6'));var config=require(_0x9fcb('0x7'));var controller=require('./voiceContext.controller');router[_0x9fcb('0x8')]('/',auth[_0x9fcb('0x9')](),controller[_0x9fcb('0xa')]);router[_0x9fcb('0x8')](_0x9fcb('0xb'),auth[_0x9fcb('0x9')](),controller[_0x9fcb('0xc')]);router[_0x9fcb('0xd')]('/',auth['isAuthenticated'](),controller[_0x9fcb('0xe')]);router['put']('/:id',auth[_0x9fcb('0x9')](),controller[_0x9fcb('0xf')]);router[_0x9fcb('0x10')](_0x9fcb('0xb'),auth[_0x9fcb('0x9')](),controller['destroy']);module[_0x9fcb('0x11')]=router;