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