Built motion from commit 0900f080.|2.5.45
[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 _0xbd9b=['multer','util','path','connect-timeout','express','Router','../../config/environment','index','/:id','isAuthenticated','show','get','/:id/sessions','getSessions','/:id/answers','/:id/summary','30s','create','post','/:id/clone','update','delete','destroy','exports'];(function(_0x550d12,_0x5384bd){var _0x12103d=function(_0x2a9834){while(--_0x2a9834){_0x550d12['push'](_0x550d12['shift']());}};_0x12103d(++_0x5384bd);}(_0xbd9b,0x180));var _0xbbd9=function(_0x4cdfd4,_0x3dec7c){_0x4cdfd4=_0x4cdfd4-0x0;var _0x49845a=_0xbd9b[_0x4cdfd4];return _0x49845a;};'use strict';var multer=require(_0xbbd9('0x0'));var util=require(_0xbbd9('0x1'));var path=require(_0xbbd9('0x2'));var timeout=require(_0xbbd9('0x3'));var express=require(_0xbbd9('0x4'));var router=express[_0xbbd9('0x5')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xbbd9('0x6'));var controller=require('./jscriptyProject.controller');router['get']('/',auth['isAuthenticated'](),controller[_0xbbd9('0x7')]);router['get'](_0xbbd9('0x8'),auth[_0xbbd9('0x9')](),controller[_0xbbd9('0xa')]);router[_0xbbd9('0xb')](_0xbbd9('0xc'),auth['isAuthenticated'](),controller[_0xbbd9('0xd')]);router[_0xbbd9('0xb')](_0xbbd9('0xe'),auth['isAuthenticated'](),controller['getAnswers']);router[_0xbbd9('0xb')](_0xbbd9('0xf'),auth[_0xbbd9('0x9')](),timeout(_0xbbd9('0x10')),controller['getSummary']);router['post']('/',auth[_0xbbd9('0x9')](),controller[_0xbbd9('0x11')]);router[_0xbbd9('0x12')](_0xbbd9('0x13'),auth['isAuthenticated'](),controller['clone']);router['put']('/:id',auth[_0xbbd9('0x9')](),controller[_0xbbd9('0x14')]);router[_0xbbd9('0x15')]('/:id',auth[_0xbbd9('0x9')](),controller[_0xbbd9('0x16')]);module[_0xbbd9('0x17')]=router;