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 _0xf7c4=['Router','../../components/interaction/service','index','get','isAuthenticated','show','create','put','/:id','delete','destroy','exports','util','path','express'];(function(_0x5dfe6d,_0x4c51fe){var _0x172673=function(_0x1b56b3){while(--_0x1b56b3){_0x5dfe6d['push'](_0x5dfe6d['shift']());}};_0x172673(++_0x4c51fe);}(_0xf7c4,0x10b));var _0x4f7c=function(_0x3b380d,_0x4bf247){_0x3b380d=_0x3b380d-0x0;var _0x54502b=_0xf7c4[_0x3b380d];return _0x54502b;};'use strict';var multer=require('multer');var util=require(_0x4f7c('0x0'));var path=require(_0x4f7c('0x1'));var timeout=require('connect-timeout');var express=require(_0x4f7c('0x2'));var router=express[_0x4f7c('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x4f7c('0x4'));var config=require('../../config/environment');var controller=require('./voiceContext.controller');router['get']('/',auth['isAuthenticated'](),controller[_0x4f7c('0x5')]);router[_0x4f7c('0x6')]('/:id',auth[_0x4f7c('0x7')](),controller[_0x4f7c('0x8')]);router['post']('/',auth[_0x4f7c('0x7')](),controller[_0x4f7c('0x9')]);router[_0x4f7c('0xa')](_0x4f7c('0xb'),auth[_0x4f7c('0x7')](),controller['update']);router[_0x4f7c('0xc')](_0x4f7c('0xb'),auth[_0x4f7c('0x7')](),controller[_0x4f7c('0xd')]);module[_0x4f7c('0xe')]=router;