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 _0x3af1=['exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','./jscriptyProject.controller','get','isAuthenticated','index','/:id/sessions','/:id/answers','getAnswers','/:id/summary','30s','getSummary','post','/:id/clone','put','/:id','update','delete','destroy'];(function(_0x443f79,_0x33e446){var _0x3847e4=function(_0x42fa01){while(--_0x42fa01){_0x443f79['push'](_0x443f79['shift']());}};_0x3847e4(++_0x33e446);}(_0x3af1,0x1bb));var _0x13af=function(_0x391bb9,_0x11cf23){_0x391bb9=_0x391bb9-0x0;var _0x46f0a9=_0x3af1[_0x391bb9];return _0x46f0a9;};'use strict';var multer=require(_0x13af('0x0'));var util=require('util');var path=require(_0x13af('0x1'));var timeout=require(_0x13af('0x2'));var express=require(_0x13af('0x3'));var router=express[_0x13af('0x4')]();var fs_extra=require(_0x13af('0x5'));var auth=require(_0x13af('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x13af('0x7'));var controller=require(_0x13af('0x8'));router[_0x13af('0x9')]('/',auth[_0x13af('0xa')](),controller[_0x13af('0xb')]);router['get']('/:id',auth[_0x13af('0xa')](),controller['show']);router[_0x13af('0x9')](_0x13af('0xc'),auth[_0x13af('0xa')](),controller['getSessions']);router['get'](_0x13af('0xd'),auth[_0x13af('0xa')](),controller[_0x13af('0xe')]);router[_0x13af('0x9')](_0x13af('0xf'),auth[_0x13af('0xa')](),timeout(_0x13af('0x10')),controller[_0x13af('0x11')]);router[_0x13af('0x12')]('/',auth['isAuthenticated'](),controller['create']);router['post'](_0x13af('0x13'),auth['isAuthenticated'](),controller['clone']);router[_0x13af('0x14')](_0x13af('0x15'),auth[_0x13af('0xa')](),controller[_0x13af('0x16')]);router[_0x13af('0x17')](_0x13af('0x15'),auth[_0x13af('0xa')](),controller[_0x13af('0x18')]);module[_0x13af('0x19')]=router;