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 _0x5f89=['delete','destroy','exports','util','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceContext.controller','get','/:id','isAuthenticated','show','post','create','update'];(function(_0x1e7b16,_0x4607a1){var _0x37fadc=function(_0x1fc9ce){while(--_0x1fc9ce){_0x1e7b16['push'](_0x1e7b16['shift']());}};_0x37fadc(++_0x4607a1);}(_0x5f89,0x93));var _0x95f8=function(_0x2b6125,_0x54c196){_0x2b6125=_0x2b6125-0x0;var _0xda91be=_0x5f89[_0x2b6125];return _0xda91be;};'use strict';var multer=require('multer');var util=require(_0x95f8('0x0'));var path=require('path');var timeout=require(_0x95f8('0x1'));var express=require('express');var router=express[_0x95f8('0x2')]();var fs_extra=require(_0x95f8('0x3'));var auth=require(_0x95f8('0x4'));var interaction=require(_0x95f8('0x5'));var config=require(_0x95f8('0x6'));var controller=require(_0x95f8('0x7'));router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0x95f8('0x8')](_0x95f8('0x9'),auth[_0x95f8('0xa')](),controller[_0x95f8('0xb')]);router[_0x95f8('0xc')]('/',auth['isAuthenticated'](),controller[_0x95f8('0xd')]);router['put'](_0x95f8('0x9'),auth[_0x95f8('0xa')](),controller[_0x95f8('0xe')]);router[_0x95f8('0xf')](_0x95f8('0x9'),auth[_0x95f8('0xa')](),controller[_0x95f8('0x10')]);module[_0x95f8('0x11')]=router;