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 _0xebac=['create','put','update','delete','destroy','exports','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','isAuthenticated','/:id','show','post'];(function(_0x48bce6,_0x39cd70){var _0x522537=function(_0x574f99){while(--_0x574f99){_0x48bce6['push'](_0x48bce6['shift']());}};_0x522537(++_0x39cd70);}(_0xebac,0xd6));var _0xceba=function(_0x514969,_0x568fb0){_0x514969=_0x514969-0x0;var _0x326d9f=_0xebac[_0x514969];return _0x326d9f;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xceba('0x0'));var timeout=require(_0xceba('0x1'));var express=require(_0xceba('0x2'));var router=express[_0xceba('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0xceba('0x4'));var config=require(_0xceba('0x5'));var controller=require('./voiceContext.controller');router['get']('/',auth[_0xceba('0x6')](),controller['index']);router['get'](_0xceba('0x7'),auth[_0xceba('0x6')](),controller[_0xceba('0x8')]);router[_0xceba('0x9')]('/',auth['isAuthenticated'](),controller[_0xceba('0xa')]);router[_0xceba('0xb')](_0xceba('0x7'),auth[_0xceba('0x6')](),controller[_0xceba('0xc')]);router[_0xceba('0xd')]('/:id',auth[_0xceba('0x6')](),controller[_0xceba('0xe')]);module[_0xceba('0xf')]=router;