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