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