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