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