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