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 _0x2247=['path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./voiceContext.controller','get','index','/:id','isAuthenticated','show','post','create','put','update','delete','destroy','exports','multer','util'];(function(_0x585133,_0x2412a1){var _0x18254a=function(_0x4c8aaf){while(--_0x4c8aaf){_0x585133['push'](_0x585133['shift']());}};_0x18254a(++_0x2412a1);}(_0x2247,0xe5));var _0x7224=function(_0x32f7d7,_0x54231b){_0x32f7d7=_0x32f7d7-0x0;var _0x133d09=_0x2247[_0x32f7d7];return _0x133d09;};'use strict';var multer=require(_0x7224('0x0'));var util=require(_0x7224('0x1'));var path=require(_0x7224('0x2'));var timeout=require(_0x7224('0x3'));var express=require(_0x7224('0x4'));var router=express[_0x7224('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x7224('0x6'));var interaction=require(_0x7224('0x7'));var config=require('../../config/environment');var controller=require(_0x7224('0x8'));router[_0x7224('0x9')]('/',auth['isAuthenticated'](),controller[_0x7224('0xa')]);router[_0x7224('0x9')](_0x7224('0xb'),auth[_0x7224('0xc')](),controller[_0x7224('0xd')]);router[_0x7224('0xe')]('/',auth[_0x7224('0xc')](),controller[_0x7224('0xf')]);router[_0x7224('0x10')]('/:id',auth[_0x7224('0xc')](),controller[_0x7224('0x11')]);router[_0x7224('0x12')](_0x7224('0xb'),auth[_0x7224('0xc')](),controller[_0x7224('0x13')]);module[_0x7224('0x14')]=router;