Built motion from commit 85328c08.|2.5.50
[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 _0x40bd=['fs-extra','../../components/interaction/service','./jscriptyProject.controller','get','isAuthenticated','/:id','show','/:id/sessions','getSessions','/:id/answers','getAnswers','/:id/summary','30s','getSummary','post','create','clone','put','delete','destroy','exports','multer','connect-timeout','express','Router'];(function(_0x437546,_0x334f47){var _0x36b04f=function(_0x1d580a){while(--_0x1d580a){_0x437546['push'](_0x437546['shift']());}};_0x36b04f(++_0x334f47);}(_0x40bd,0x1be));var _0xd40b=function(_0x1a95ff,_0x1efcb9){_0x1a95ff=_0x1a95ff-0x0;var _0x2bbddd=_0x40bd[_0x1a95ff];return _0x2bbddd;};'use strict';var multer=require(_0xd40b('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xd40b('0x1'));var express=require(_0xd40b('0x2'));var router=express[_0xd40b('0x3')]();var fs_extra=require(_0xd40b('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xd40b('0x5'));var config=require('../../config/environment');var controller=require(_0xd40b('0x6'));router[_0xd40b('0x7')]('/',auth[_0xd40b('0x8')](),controller['index']);router[_0xd40b('0x7')](_0xd40b('0x9'),auth['isAuthenticated'](),controller[_0xd40b('0xa')]);router[_0xd40b('0x7')](_0xd40b('0xb'),auth['isAuthenticated'](),controller[_0xd40b('0xc')]);router['get'](_0xd40b('0xd'),auth['isAuthenticated'](),controller[_0xd40b('0xe')]);router[_0xd40b('0x7')](_0xd40b('0xf'),auth[_0xd40b('0x8')](),timeout(_0xd40b('0x10')),controller[_0xd40b('0x11')]);router[_0xd40b('0x12')]('/',auth[_0xd40b('0x8')](),controller[_0xd40b('0x13')]);router['post']('/:id/clone',auth['isAuthenticated'](),controller[_0xd40b('0x14')]);router[_0xd40b('0x15')](_0xd40b('0x9'),auth[_0xd40b('0x8')](),controller['update']);router[_0xd40b('0x16')](_0xd40b('0x9'),auth[_0xd40b('0x8')](),controller[_0xd40b('0x17')]);module[_0xd40b('0x18')]=router;