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