d507a001bb0b8d46003d7b6006f37cb2d6e98152
[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 _0xe230=['exports','multer','util','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','show','/:id/sessions','/:id/summary','30s','getSummary','create','/:id/clone','clone','/:id','update','delete','destroy'];(function(_0x5388ce,_0x45bd4b){var _0x315d10=function(_0x363a43){while(--_0x363a43){_0x5388ce['push'](_0x5388ce['shift']());}};_0x315d10(++_0x45bd4b);}(_0xe230,0x85));var _0x0e23=function(_0x5cfba4,_0x117c11){_0x5cfba4=_0x5cfba4-0x0;var _0x33d017=_0xe230[_0x5cfba4];return _0x33d017;};'use strict';var multer=require(_0x0e23('0x0'));var util=require(_0x0e23('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x0e23('0x2'));var router=express[_0x0e23('0x3')]();var auth=require(_0x0e23('0x4'));var interaction=require(_0x0e23('0x5'));var config=require(_0x0e23('0x6'));var controller=require('./jscriptyProject.controller');router[_0x0e23('0x7')]('/',auth['isAuthenticated'](),controller['index']);router[_0x0e23('0x7')]('/:id',auth[_0x0e23('0x8')](),controller[_0x0e23('0x9')]);router[_0x0e23('0x7')](_0x0e23('0xa'),auth[_0x0e23('0x8')](),controller['getSessions']);router[_0x0e23('0x7')]('/:id/answers',auth[_0x0e23('0x8')](),controller['getAnswers']);router[_0x0e23('0x7')](_0x0e23('0xb'),auth[_0x0e23('0x8')](),timeout(_0x0e23('0xc')),controller[_0x0e23('0xd')]);router['post']('/',auth[_0x0e23('0x8')](),controller[_0x0e23('0xe')]);router['post'](_0x0e23('0xf'),auth['isAuthenticated'](),controller[_0x0e23('0x10')]);router['put'](_0x0e23('0x11'),auth[_0x0e23('0x8')](),controller[_0x0e23('0x12')]);router[_0x0e23('0x13')](_0x0e23('0x11'),auth[_0x0e23('0x8')](),controller[_0x0e23('0x14')]);module[_0x0e23('0x15')]=router;