a36daf6c413b1be1d9512bceeee2137c9d3f8350
[motion2.git] / server / api / jscriptyProject / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xcfa1=['delete','destroy','exports','multer','util','path','connect-timeout','express','../../components/auth/service','../../config/environment','./jscriptyProject.controller','get','isAuthenticated','index','/:id','show','/:id/sessions','getSessions','/:id/answers','30s','post','/:id/clone','clone','put','update'];(function(_0x2dafbe,_0x5d04de){var _0x58a45a=function(_0x50ac96){while(--_0x50ac96){_0x2dafbe['push'](_0x2dafbe['shift']());}};_0x58a45a(++_0x5d04de);}(_0xcfa1,0x99));var _0x1cfa=function(_0x397e5f,_0x454c8f){_0x397e5f=_0x397e5f-0x0;var _0x5302b8=_0xcfa1[_0x397e5f];return _0x5302b8;};'use strict';var multer=require(_0x1cfa('0x0'));var util=require(_0x1cfa('0x1'));var path=require(_0x1cfa('0x2'));var timeout=require(_0x1cfa('0x3'));var express=require(_0x1cfa('0x4'));var router=express['Router']();var auth=require(_0x1cfa('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x1cfa('0x6'));var controller=require(_0x1cfa('0x7'));router[_0x1cfa('0x8')]('/',auth[_0x1cfa('0x9')](),controller[_0x1cfa('0xa')]);router[_0x1cfa('0x8')](_0x1cfa('0xb'),auth[_0x1cfa('0x9')](),controller[_0x1cfa('0xc')]);router[_0x1cfa('0x8')](_0x1cfa('0xd'),auth[_0x1cfa('0x9')](),controller[_0x1cfa('0xe')]);router[_0x1cfa('0x8')](_0x1cfa('0xf'),auth['isAuthenticated'](),controller['getAnswers']);router[_0x1cfa('0x8')]('/:id/summary',auth['isAuthenticated'](),timeout(_0x1cfa('0x10')),controller['getSummary']);router[_0x1cfa('0x11')]('/',auth['isAuthenticated'](),controller['create']);router[_0x1cfa('0x11')](_0x1cfa('0x12'),auth['isAuthenticated'](),controller[_0x1cfa('0x13')]);router[_0x1cfa('0x14')]('/:id',auth[_0x1cfa('0x9')](),controller[_0x1cfa('0x15')]);router[_0x1cfa('0x16')](_0x1cfa('0xb'),auth[_0x1cfa('0x9')](),controller[_0x1cfa('0x17')]);module[_0x1cfa('0x18')]=router;