Built motion from commit b5413ace.|2.6.9
[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 _0xf1c2=['delete','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./jscriptyProject.controller','get','isAuthenticated','index','/:id','getSessions','/:id/answers','getAnswers','/:id/summary','30s','getSummary','post','create','/:id/clone','clone','put','update'];(function(_0x1f84c4,_0x13dbd2){var _0x4636fc=function(_0x4af08c){while(--_0x4af08c){_0x1f84c4['push'](_0x1f84c4['shift']());}};_0x4636fc(++_0x13dbd2);}(_0xf1c2,0x99));var _0x2f1c=function(_0xe15270,_0x227d06){_0xe15270=_0xe15270-0x0;var _0x1e813b=_0xf1c2[_0xe15270];return _0x1e813b;};'use strict';var multer=require(_0x2f1c('0x0'));var util=require(_0x2f1c('0x1'));var path=require(_0x2f1c('0x2'));var timeout=require(_0x2f1c('0x3'));var express=require(_0x2f1c('0x4'));var router=express[_0x2f1c('0x5')]();var fs_extra=require(_0x2f1c('0x6'));var auth=require(_0x2f1c('0x7'));var interaction=require(_0x2f1c('0x8'));var config=require(_0x2f1c('0x9'));var controller=require(_0x2f1c('0xa'));router[_0x2f1c('0xb')]('/',auth[_0x2f1c('0xc')](),controller[_0x2f1c('0xd')]);router[_0x2f1c('0xb')](_0x2f1c('0xe'),auth['isAuthenticated'](),controller['show']);router['get']('/:id/sessions',auth[_0x2f1c('0xc')](),controller[_0x2f1c('0xf')]);router[_0x2f1c('0xb')](_0x2f1c('0x10'),auth[_0x2f1c('0xc')](),controller[_0x2f1c('0x11')]);router['get'](_0x2f1c('0x12'),auth[_0x2f1c('0xc')](),timeout(_0x2f1c('0x13')),controller[_0x2f1c('0x14')]);router[_0x2f1c('0x15')]('/',auth[_0x2f1c('0xc')](),controller[_0x2f1c('0x16')]);router[_0x2f1c('0x15')](_0x2f1c('0x17'),auth[_0x2f1c('0xc')](),controller[_0x2f1c('0x18')]);router[_0x2f1c('0x19')](_0x2f1c('0xe'),auth[_0x2f1c('0xc')](),controller[_0x2f1c('0x1a')]);router[_0x2f1c('0x1b')](_0x2f1c('0xe'),auth[_0x2f1c('0xc')](),controller[_0x2f1c('0x1c')]);module[_0x2f1c('0x1d')]=router;