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