6b9933fe0918ac465856cccf87d6b53cbf317131
[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 _0x0fe7=['delete','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','./jscriptyProject.controller','get','isAuthenticated','index','/:id','show','/:id/sessions','getSessions','getAnswers','/:id/summary','30s','getSummary','create','post','/:id/clone','clone','put'];(function(_0x5e5b72,_0x486a42){var _0x2247d1=function(_0x505fb5){while(--_0x505fb5){_0x5e5b72['push'](_0x5e5b72['shift']());}};_0x2247d1(++_0x486a42);}(_0x0fe7,0x153));var _0x70fe=function(_0x486f4a,_0x478dc7){_0x486f4a=_0x486f4a-0x0;var _0x135d99=_0x0fe7[_0x486f4a];return _0x135d99;};'use strict';var multer=require(_0x70fe('0x0'));var util=require(_0x70fe('0x1'));var path=require(_0x70fe('0x2'));var timeout=require(_0x70fe('0x3'));var express=require(_0x70fe('0x4'));var router=express[_0x70fe('0x5')]();var fs_extra=require(_0x70fe('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0x70fe('0x7'));var config=require('../../config/environment');var controller=require(_0x70fe('0x8'));router[_0x70fe('0x9')]('/',auth[_0x70fe('0xa')](),controller[_0x70fe('0xb')]);router[_0x70fe('0x9')](_0x70fe('0xc'),auth[_0x70fe('0xa')](),controller[_0x70fe('0xd')]);router[_0x70fe('0x9')](_0x70fe('0xe'),auth['isAuthenticated'](),controller[_0x70fe('0xf')]);router['get']('/:id/answers',auth['isAuthenticated'](),controller[_0x70fe('0x10')]);router[_0x70fe('0x9')](_0x70fe('0x11'),auth[_0x70fe('0xa')](),timeout(_0x70fe('0x12')),controller[_0x70fe('0x13')]);router['post']('/',auth[_0x70fe('0xa')](),controller[_0x70fe('0x14')]);router[_0x70fe('0x15')](_0x70fe('0x16'),auth[_0x70fe('0xa')](),controller[_0x70fe('0x17')]);router[_0x70fe('0x18')]('/:id',auth[_0x70fe('0xa')](),controller['update']);router[_0x70fe('0x19')](_0x70fe('0xc'),auth[_0x70fe('0xa')](),controller[_0x70fe('0x1a')]);module[_0x70fe('0x1b')]=router;