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