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