a41a898a9cc5d899169a862b28e5975bd34043b6
[motion2.git] / server / api / analyticFieldReport / 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 _0x12cb=['update','delete','bulkDestroy','/:id','destroy','util','path','Router','fs-extra','../../components/auth/service','./analyticFieldReport.controller','get','post','isAuthenticated','/create_many','bulkCreate','put'];(function(_0x287588,_0x1f832b){var _0x3c65bd=function(_0x311661){while(--_0x311661){_0x287588['push'](_0x287588['shift']());}};_0x3c65bd(++_0x1f832b);}(_0x12cb,0x104));var _0xb12c=function(_0x2bc4b0,_0x3f1820){_0x2bc4b0=_0x2bc4b0-0x0;var _0x16d439=_0x12cb[_0x2bc4b0];return _0x16d439;};'use strict';var multer=require('multer');var util=require(_0xb12c('0x0'));var path=require(_0xb12c('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xb12c('0x2')]();var fs_extra=require(_0xb12c('0x3'));var auth=require(_0xb12c('0x4'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xb12c('0x5'));router[_0xb12c('0x6')]('/',auth['isAuthenticated'](),controller['index']);router[_0xb12c('0x6')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0xb12c('0x7')]('/',auth[_0xb12c('0x8')](),controller['create']);router[_0xb12c('0x7')](_0xb12c('0x9'),auth[_0xb12c('0x8')](),controller[_0xb12c('0xa')]);router[_0xb12c('0x7')]('/:id/create_many',auth[_0xb12c('0x8')](),controller['addFields']);router[_0xb12c('0xb')]('/:id',auth[_0xb12c('0x8')](),controller[_0xb12c('0xc')]);router[_0xb12c('0xd')]('/destroy_many',auth[_0xb12c('0x8')](),controller[_0xb12c('0xe')]);router[_0xb12c('0xd')](_0xb12c('0xf'),auth[_0xb12c('0x8')](),controller[_0xb12c('0x10')]);module['exports']=router;