Built motion from commit 9d0783e6.|2.6.13
[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 _0x9f27=['post','create','put','/:id','update','delete','destroy','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id/sessions','getSessions','/:id/answers','/:id/summary','30s'];(function(_0x567488,_0x14a925){var _0x3e9524=function(_0x42ee51){while(--_0x42ee51){_0x567488['push'](_0x567488['shift']());}};_0x3e9524(++_0x14a925);}(_0x9f27,0xe3));var _0x79f2=function(_0x45da96,_0x7b8876){_0x45da96=_0x45da96-0x0;var _0x192a94=_0x9f27[_0x45da96];return _0x192a94;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x79f2('0x0'));var timeout=require(_0x79f2('0x1'));var express=require(_0x79f2('0x2'));var router=express[_0x79f2('0x3')]();var fs_extra=require(_0x79f2('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x79f2('0x5'));var config=require(_0x79f2('0x6'));var controller=require('./jscriptyProject.controller');router[_0x79f2('0x7')]('/',auth[_0x79f2('0x8')](),controller[_0x79f2('0x9')]);router[_0x79f2('0x7')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0x79f2('0x7')](_0x79f2('0xa'),auth[_0x79f2('0x8')](),controller[_0x79f2('0xb')]);router[_0x79f2('0x7')](_0x79f2('0xc'),auth[_0x79f2('0x8')](),controller['getAnswers']);router[_0x79f2('0x7')](_0x79f2('0xd'),auth[_0x79f2('0x8')](),timeout(_0x79f2('0xe')),controller['getSummary']);router[_0x79f2('0xf')]('/',auth[_0x79f2('0x8')](),controller[_0x79f2('0x10')]);router[_0x79f2('0xf')]('/:id/clone',auth[_0x79f2('0x8')](),controller['clone']);router[_0x79f2('0x11')](_0x79f2('0x12'),auth['isAuthenticated'](),controller[_0x79f2('0x13')]);router[_0x79f2('0x14')](_0x79f2('0x12'),auth[_0x79f2('0x8')](),controller[_0x79f2('0x15')]);module['exports']=router;