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 _0xa762=['put','update','destroy','util','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','isAuthenticated','index','/:id','show','post','create'];(function(_0x33201b,_0x396ef0){var _0x35d66a=function(_0x4d5e3d){while(--_0x4d5e3d){_0x33201b['push'](_0x33201b['shift']());}};_0x35d66a(++_0x396ef0);}(_0xa762,0x1e3));var _0x2a76=function(_0x1b63c3,_0x4d329e){_0x1b63c3=_0x1b63c3-0x0;var _0x4e0ed5=_0xa762[_0x1b63c3];return _0x4e0ed5;};'use strict';var multer=require('multer');var util=require(_0x2a76('0x0'));var path=require(_0x2a76('0x1'));var timeout=require(_0x2a76('0x2'));var express=require(_0x2a76('0x3'));var router=express[_0x2a76('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x2a76('0x5'));var config=require(_0x2a76('0x6'));var controller=require('./voiceContext.controller');router['get']('/',auth[_0x2a76('0x7')](),controller[_0x2a76('0x8')]);router['get'](_0x2a76('0x9'),auth['isAuthenticated'](),controller[_0x2a76('0xa')]);router[_0x2a76('0xb')]('/',auth[_0x2a76('0x7')](),controller[_0x2a76('0xc')]);router[_0x2a76('0xd')](_0x2a76('0x9'),auth['isAuthenticated'](),controller[_0x2a76('0xe')]);router['delete'](_0x2a76('0x9'),auth['isAuthenticated'](),controller[_0x2a76('0xf')]);module['exports']=router;