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 _0xf2cd=['delete','exports','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','create','put','/:id','update'];(function(_0x10f981,_0x24824c){var _0x299ee8=function(_0x7d91ec){while(--_0x7d91ec){_0x10f981['push'](_0x10f981['shift']());}};_0x299ee8(++_0x24824c);}(_0xf2cd,0x102));var _0xdf2c=function(_0x470bfb,_0x389787){_0x470bfb=_0x470bfb-0x0;var _0x2f5d97=_0xf2cd[_0x470bfb];return _0x2f5d97;};'use strict';var multer=require('multer');var util=require(_0xdf2c('0x0'));var path=require(_0xdf2c('0x1'));var timeout=require(_0xdf2c('0x2'));var express=require('express');var router=express[_0xdf2c('0x3')]();var auth=require(_0xdf2c('0x4'));var interaction=require(_0xdf2c('0x5'));var config=require(_0xdf2c('0x6'));var controller=require('./voiceContext.controller');router[_0xdf2c('0x7')]('/',auth[_0xdf2c('0x8')](),controller[_0xdf2c('0x9')]);router[_0xdf2c('0x7')]('/:id',auth[_0xdf2c('0x8')](),controller['show']);router['post']('/',auth['isAuthenticated'](),controller[_0xdf2c('0xa')]);router[_0xdf2c('0xb')](_0xdf2c('0xc'),auth[_0xdf2c('0x8')](),controller[_0xdf2c('0xd')]);router[_0xdf2c('0xe')](_0xdf2c('0xc'),auth[_0xdf2c('0x8')](),controller['destroy']);module[_0xdf2c('0xf')]=router;