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