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