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 _0x908e=['../../components/interaction/service','./jscriptyProject.controller','index','get','/:id','isAuthenticated','show','/:id/answers','/:id/summary','30s','getSummary','post','create','put','update','delete','destroy','exports','multer','util','express','Router','../../components/auth/service'];(function(_0x154ae4,_0x112230){var _0x1c30d0=function(_0x110a97){while(--_0x110a97){_0x154ae4['push'](_0x154ae4['shift']());}};_0x1c30d0(++_0x112230);}(_0x908e,0x182));var _0xe908=function(_0x41868e,_0x30f9a6){_0x41868e=_0x41868e-0x0;var _0x27b68e=_0x908e[_0x41868e];return _0x27b68e;};'use strict';var multer=require(_0xe908('0x0'));var util=require(_0xe908('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xe908('0x2'));var router=express[_0xe908('0x3')]();var auth=require(_0xe908('0x4'));var interaction=require(_0xe908('0x5'));var config=require('../../config/environment');var controller=require(_0xe908('0x6'));router['get']('/',auth['isAuthenticated'](),controller[_0xe908('0x7')]);router[_0xe908('0x8')](_0xe908('0x9'),auth[_0xe908('0xa')](),controller[_0xe908('0xb')]);router[_0xe908('0x8')]('/:id/sessions',auth[_0xe908('0xa')](),controller['getSessions']);router[_0xe908('0x8')](_0xe908('0xc'),auth['isAuthenticated'](),controller['getAnswers']);router[_0xe908('0x8')](_0xe908('0xd'),auth[_0xe908('0xa')](),timeout(_0xe908('0xe')),controller[_0xe908('0xf')]);router[_0xe908('0x10')]('/',auth[_0xe908('0xa')](),controller[_0xe908('0x11')]);router['post']('/:id/clone',auth[_0xe908('0xa')](),controller['clone']);router[_0xe908('0x12')](_0xe908('0x9'),auth[_0xe908('0xa')](),controller[_0xe908('0x13')]);router[_0xe908('0x14')]('/:id',auth[_0xe908('0xa')](),controller[_0xe908('0x15')]);module[_0xe908('0x16')]=router;