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 _0xe443=['connect-timeout','Router','../../components/auth/service','../../config/environment','./voiceContext.controller','get','isAuthenticated','/:id','post','create','put','update','destroy','multer','util','path'];(function(_0xf84acb,_0x4d5d64){var _0x110fee=function(_0x282888){while(--_0x282888){_0xf84acb['push'](_0xf84acb['shift']());}};_0x110fee(++_0x4d5d64);}(_0xe443,0x19d));var _0x3e44=function(_0x2a3432,_0x4ccc95){_0x2a3432=_0x2a3432-0x0;var _0x32f68f=_0xe443[_0x2a3432];return _0x32f68f;};'use strict';var multer=require(_0x3e44('0x0'));var util=require(_0x3e44('0x1'));var path=require(_0x3e44('0x2'));var timeout=require(_0x3e44('0x3'));var express=require('express');var router=express[_0x3e44('0x4')]();var auth=require(_0x3e44('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x3e44('0x6'));var controller=require(_0x3e44('0x7'));router[_0x3e44('0x8')]('/',auth[_0x3e44('0x9')](),controller['index']);router[_0x3e44('0x8')](_0x3e44('0xa'),auth[_0x3e44('0x9')](),controller['show']);router[_0x3e44('0xb')]('/',auth[_0x3e44('0x9')](),controller[_0x3e44('0xc')]);router[_0x3e44('0xd')](_0x3e44('0xa'),auth['isAuthenticated'](),controller[_0x3e44('0xe')]);router['delete'](_0x3e44('0xa'),auth[_0x3e44('0x9')](),controller[_0x3e44('0xf')]);module['exports']=router;