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 _0x36f8=['fs-extra','../../components/auth/service','./jscriptyProject.controller','get','index','/:id','show','/:id/sessions','isAuthenticated','getSessions','/:id/answers','getAnswers','/:id/summary','30s','getSummary','create','update','delete','destroy','multer','path','express'];(function(_0x2689bf,_0x4879cd){var _0x2778fb=function(_0x408dc1){while(--_0x408dc1){_0x2689bf['push'](_0x2689bf['shift']());}};_0x2778fb(++_0x4879cd);}(_0x36f8,0x1b5));var _0x836f=function(_0x481006,_0x5a81ee){_0x481006=_0x481006-0x0;var _0x186535=_0x36f8[_0x481006];return _0x186535;};'use strict';var multer=require(_0x836f('0x0'));var util=require('util');var path=require(_0x836f('0x1'));var timeout=require('connect-timeout');var express=require(_0x836f('0x2'));var router=express['Router']();var fs_extra=require(_0x836f('0x3'));var auth=require(_0x836f('0x4'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x836f('0x5'));router[_0x836f('0x6')]('/',auth['isAuthenticated'](),controller[_0x836f('0x7')]);router[_0x836f('0x6')](_0x836f('0x8'),auth['isAuthenticated'](),controller[_0x836f('0x9')]);router[_0x836f('0x6')](_0x836f('0xa'),auth[_0x836f('0xb')](),controller[_0x836f('0xc')]);router[_0x836f('0x6')](_0x836f('0xd'),auth[_0x836f('0xb')](),controller[_0x836f('0xe')]);router['get'](_0x836f('0xf'),auth[_0x836f('0xb')](),timeout(_0x836f('0x10')),controller[_0x836f('0x11')]);router['post']('/',auth[_0x836f('0xb')](),controller[_0x836f('0x12')]);router['post']('/:id/clone',auth['isAuthenticated'](),controller['clone']);router['put'](_0x836f('0x8'),auth[_0x836f('0xb')](),controller[_0x836f('0x13')]);router[_0x836f('0x14')](_0x836f('0x8'),auth[_0x836f('0xb')](),controller[_0x836f('0x15')]);module['exports']=router;