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 _0x6a83=['util','path','connect-timeout','express','./voiceContext.controller','get','index','/:id','isAuthenticated','post','create','put','update','delete','exports','multer'];(function(_0x54861c,_0x8756fc){var _0x4786d6=function(_0x2c151b){while(--_0x2c151b){_0x54861c['push'](_0x54861c['shift']());}};_0x4786d6(++_0x8756fc);}(_0x6a83,0x12f));var _0x36a8=function(_0x16caf3,_0x226cc8){_0x16caf3=_0x16caf3-0x0;var _0x4a0482=_0x6a83[_0x16caf3];return _0x4a0482;};'use strict';var multer=require(_0x36a8('0x0'));var util=require(_0x36a8('0x1'));var path=require(_0x36a8('0x2'));var timeout=require(_0x36a8('0x3'));var express=require(_0x36a8('0x4'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x36a8('0x5'));router[_0x36a8('0x6')]('/',auth['isAuthenticated'](),controller[_0x36a8('0x7')]);router[_0x36a8('0x6')](_0x36a8('0x8'),auth[_0x36a8('0x9')](),controller['show']);router[_0x36a8('0xa')]('/',auth[_0x36a8('0x9')](),controller[_0x36a8('0xb')]);router[_0x36a8('0xc')](_0x36a8('0x8'),auth[_0x36a8('0x9')](),controller[_0x36a8('0xd')]);router[_0x36a8('0xe')](_0x36a8('0x8'),auth['isAuthenticated'](),controller['destroy']);module[_0x36a8('0xf')]=router;