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 _0x5a32=['post','create','put','update','/:id','destroy','exports','multer','util','express','Router','../../components/interaction/service','../../config/environment','./voiceContext.controller','get','isAuthenticated','index','show'];(function(_0x4d1485,_0x2ffcd8){var _0x2c83d3=function(_0x9abb8f){while(--_0x9abb8f){_0x4d1485['push'](_0x4d1485['shift']());}};_0x2c83d3(++_0x2ffcd8);}(_0x5a32,0x97));var _0x25a3=function(_0x927670,_0x4c5e1a){_0x927670=_0x927670-0x0;var _0x1d137e=_0x5a32[_0x927670];return _0x1d137e;};'use strict';var multer=require(_0x25a3('0x0'));var util=require(_0x25a3('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x25a3('0x2'));var router=express[_0x25a3('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0x25a3('0x4'));var config=require(_0x25a3('0x5'));var controller=require(_0x25a3('0x6'));router[_0x25a3('0x7')]('/',auth[_0x25a3('0x8')](),controller[_0x25a3('0x9')]);router['get']('/:id',auth[_0x25a3('0x8')](),controller[_0x25a3('0xa')]);router[_0x25a3('0xb')]('/',auth[_0x25a3('0x8')](),controller[_0x25a3('0xc')]);router[_0x25a3('0xd')]('/:id',auth['isAuthenticated'](),controller[_0x25a3('0xe')]);router['delete'](_0x25a3('0xf'),auth[_0x25a3('0x8')](),controller[_0x25a3('0x10')]);module[_0x25a3('0x11')]=router;