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