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