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