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