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 _0x5bc5=['index','/:id','show','post','create','update','destroy','exports','util','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','get','isAuthenticated'];(function(_0x32730f,_0x505df6){var _0x50d2e5=function(_0x4c07cf){while(--_0x4c07cf){_0x32730f['push'](_0x32730f['shift']());}};_0x50d2e5(++_0x505df6);}(_0x5bc5,0x107));var _0x55bc=function(_0xabfec4,_0x35076e){_0xabfec4=_0xabfec4-0x0;var _0x7bafa2=_0x5bc5[_0xabfec4];return _0x7bafa2;};'use strict';var multer=require('multer');var util=require(_0x55bc('0x0'));var path=require(_0x55bc('0x1'));var timeout=require(_0x55bc('0x2'));var express=require(_0x55bc('0x3'));var router=express[_0x55bc('0x4')]();var auth=require(_0x55bc('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x55bc('0x6'));var controller=require('./voiceContext.controller');router[_0x55bc('0x7')]('/',auth[_0x55bc('0x8')](),controller[_0x55bc('0x9')]);router[_0x55bc('0x7')](_0x55bc('0xa'),auth[_0x55bc('0x8')](),controller[_0x55bc('0xb')]);router[_0x55bc('0xc')]('/',auth[_0x55bc('0x8')](),controller[_0x55bc('0xd')]);router['put']('/:id',auth[_0x55bc('0x8')](),controller[_0x55bc('0xe')]);router['delete']('/:id',auth[_0x55bc('0x8')](),controller[_0x55bc('0xf')]);module[_0x55bc('0x10')]=router;