Built motion from commit b5996064.|2.6.21
[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 _0x20f4=['30s','getSummary','create','post','/:id/clone','clone','put','update','/:id','destroy','exports','multer','util','connect-timeout','fs-extra','../../components/auth/service','./jscriptyProject.controller','get','isAuthenticated','index','show','/:id/sessions','getSessions','getAnswers'];(function(_0x2faddb,_0xc18b78){var _0x273c05=function(_0x1a3785){while(--_0x1a3785){_0x2faddb['push'](_0x2faddb['shift']());}};_0x273c05(++_0xc18b78);}(_0x20f4,0x9b));var _0x420f=function(_0x855e25,_0x5cc86d){_0x855e25=_0x855e25-0x0;var _0x4c2b86=_0x20f4[_0x855e25];return _0x4c2b86;};'use strict';var multer=require(_0x420f('0x0'));var util=require(_0x420f('0x1'));var path=require('path');var timeout=require(_0x420f('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x420f('0x3'));var auth=require(_0x420f('0x4'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x420f('0x5'));router[_0x420f('0x6')]('/',auth[_0x420f('0x7')](),controller[_0x420f('0x8')]);router[_0x420f('0x6')]('/:id',auth[_0x420f('0x7')](),controller[_0x420f('0x9')]);router[_0x420f('0x6')](_0x420f('0xa'),auth['isAuthenticated'](),controller[_0x420f('0xb')]);router[_0x420f('0x6')]('/:id/answers',auth[_0x420f('0x7')](),controller[_0x420f('0xc')]);router[_0x420f('0x6')]('/:id/summary',auth[_0x420f('0x7')](),timeout(_0x420f('0xd')),controller[_0x420f('0xe')]);router['post']('/',auth['isAuthenticated'](),controller[_0x420f('0xf')]);router[_0x420f('0x10')](_0x420f('0x11'),auth['isAuthenticated'](),controller[_0x420f('0x12')]);router[_0x420f('0x13')]('/:id',auth[_0x420f('0x7')](),controller[_0x420f('0x14')]);router['delete'](_0x420f('0x15'),auth['isAuthenticated'](),controller[_0x420f('0x16')]);module[_0x420f('0x17')]=router;