Built motion from commit 753c950e.|2.5.42
[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 _0x11f7=['util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','isAuthenticated','show','getSessions','getAnswers','30s','post','create','clone','put','/:id','delete','destroy','multer'];(function(_0x6131cd,_0x4c26a1){var _0x47e916=function(_0x1f2bce){while(--_0x1f2bce){_0x6131cd['push'](_0x6131cd['shift']());}};_0x47e916(++_0x4c26a1);}(_0x11f7,0x1af));var _0x711f=function(_0xc86993,_0xa7cfb9){_0xc86993=_0xc86993-0x0;var _0x540bc6=_0x11f7[_0xc86993];return _0x540bc6;};'use strict';var multer=require(_0x711f('0x0'));var util=require(_0x711f('0x1'));var path=require(_0x711f('0x2'));var timeout=require(_0x711f('0x3'));var express=require(_0x711f('0x4'));var router=express[_0x711f('0x5')]();var fs_extra=require(_0x711f('0x6'));var auth=require(_0x711f('0x7'));var interaction=require(_0x711f('0x8'));var config=require(_0x711f('0x9'));var controller=require('./jscriptyProject.controller');router[_0x711f('0xa')]('/',auth['isAuthenticated'](),controller[_0x711f('0xb')]);router[_0x711f('0xa')]('/:id',auth[_0x711f('0xc')](),controller[_0x711f('0xd')]);router[_0x711f('0xa')]('/:id/sessions',auth[_0x711f('0xc')](),controller[_0x711f('0xe')]);router[_0x711f('0xa')]('/:id/answers',auth[_0x711f('0xc')](),controller[_0x711f('0xf')]);router['get']('/:id/summary',auth[_0x711f('0xc')](),timeout(_0x711f('0x10')),controller['getSummary']);router[_0x711f('0x11')]('/',auth[_0x711f('0xc')](),controller[_0x711f('0x12')]);router['post']('/:id/clone',auth[_0x711f('0xc')](),controller[_0x711f('0x13')]);router[_0x711f('0x14')](_0x711f('0x15'),auth[_0x711f('0xc')](),controller['update']);router[_0x711f('0x16')](_0x711f('0x15'),auth['isAuthenticated'](),controller[_0x711f('0x17')]);module['exports']=router;