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 _0x4a2f=['express','Router','../../components/interaction/service','../../config/environment','./voiceContext.controller','get','isAuthenticated','index','show','post','create','/:id','update','destroy','exports','multer','util','path','connect-timeout'];(function(_0x3e0dc4,_0x13971b){var _0x586111=function(_0x123c53){while(--_0x123c53){_0x3e0dc4['push'](_0x3e0dc4['shift']());}};_0x586111(++_0x13971b);}(_0x4a2f,0x12c));var _0xf4a2=function(_0x2641f9,_0x26715f){_0x2641f9=_0x2641f9-0x0;var _0x585741=_0x4a2f[_0x2641f9];return _0x585741;};'use strict';var multer=require(_0xf4a2('0x0'));var util=require(_0xf4a2('0x1'));var path=require(_0xf4a2('0x2'));var timeout=require(_0xf4a2('0x3'));var express=require(_0xf4a2('0x4'));var router=express[_0xf4a2('0x5')]();var auth=require('../../components/auth/service');var interaction=require(_0xf4a2('0x6'));var config=require(_0xf4a2('0x7'));var controller=require(_0xf4a2('0x8'));router[_0xf4a2('0x9')]('/',auth[_0xf4a2('0xa')](),controller[_0xf4a2('0xb')]);router[_0xf4a2('0x9')]('/:id',auth[_0xf4a2('0xa')](),controller[_0xf4a2('0xc')]);router[_0xf4a2('0xd')]('/',auth[_0xf4a2('0xa')](),controller[_0xf4a2('0xe')]);router['put'](_0xf4a2('0xf'),auth['isAuthenticated'](),controller[_0xf4a2('0x10')]);router['delete']('/:id',auth[_0xf4a2('0xa')](),controller[_0xf4a2('0x11')]);module[_0xf4a2('0x12')]=router;