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 _0x17c7=['../../config/environment','./voiceContext.controller','get','isAuthenticated','index','/:id','put','update','destroy','exports','multer','util','connect-timeout','express','fs-extra','../../components/auth/service'];(function(_0x42988f,_0x585023){var _0x4ace8b=function(_0x157dba){while(--_0x157dba){_0x42988f['push'](_0x42988f['shift']());}};_0x4ace8b(++_0x585023);}(_0x17c7,0x13a));var _0x717c=function(_0x4817f1,_0x535533){_0x4817f1=_0x4817f1-0x0;var _0x4816dc=_0x17c7[_0x4817f1];return _0x4816dc;};'use strict';var multer=require(_0x717c('0x0'));var util=require(_0x717c('0x1'));var path=require('path');var timeout=require(_0x717c('0x2'));var express=require(_0x717c('0x3'));var router=express['Router']();var fs_extra=require(_0x717c('0x4'));var auth=require(_0x717c('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x717c('0x6'));var controller=require(_0x717c('0x7'));router[_0x717c('0x8')]('/',auth[_0x717c('0x9')](),controller[_0x717c('0xa')]);router['get'](_0x717c('0xb'),auth[_0x717c('0x9')](),controller['show']);router['post']('/',auth[_0x717c('0x9')](),controller['create']);router[_0x717c('0xc')](_0x717c('0xb'),auth['isAuthenticated'](),controller[_0x717c('0xd')]);router['delete'](_0x717c('0xb'),auth[_0x717c('0x9')](),controller[_0x717c('0xe')]);module[_0x717c('0xf')]=router;