Built motion from commit (unavailable).|2.5.30
[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 _0xc9b8=['destroy','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','/:id','show','create','post','/:id/create_many','addFields','put','update','delete','/destroy_many','bulkDestroy'];(function(_0x4b055c,_0x4b870b){var _0x4b62bb=function(_0x4884c2){while(--_0x4884c2){_0x4b055c['push'](_0x4b055c['shift']());}};_0x4b62bb(++_0x4b870b);}(_0xc9b8,0x199));var _0x8c9b=function(_0x583345,_0x42d756){_0x583345=_0x583345-0x0;var _0x1b2505=_0xc9b8[_0x583345];return _0x1b2505;};'use strict';var multer=require(_0x8c9b('0x0'));var util=require(_0x8c9b('0x1'));var path=require(_0x8c9b('0x2'));var timeout=require(_0x8c9b('0x3'));var express=require(_0x8c9b('0x4'));var router=express[_0x8c9b('0x5')]();var fs_extra=require(_0x8c9b('0x6'));var auth=require(_0x8c9b('0x7'));var interaction=require(_0x8c9b('0x8'));var config=require(_0x8c9b('0x9'));var controller=require('./analyticFieldReport.controller');router[_0x8c9b('0xa')]('/',auth[_0x8c9b('0xb')](),controller['index']);router[_0x8c9b('0xa')](_0x8c9b('0xc'),auth[_0x8c9b('0xb')](),controller[_0x8c9b('0xd')]);router['post']('/',auth['isAuthenticated'](),controller[_0x8c9b('0xe')]);router['post']('/create_many',auth['isAuthenticated'](),controller['bulkCreate']);router[_0x8c9b('0xf')](_0x8c9b('0x10'),auth[_0x8c9b('0xb')](),controller[_0x8c9b('0x11')]);router[_0x8c9b('0x12')](_0x8c9b('0xc'),auth[_0x8c9b('0xb')](),controller[_0x8c9b('0x13')]);router[_0x8c9b('0x14')](_0x8c9b('0x15'),auth[_0x8c9b('0xb')](),controller[_0x8c9b('0x16')]);router[_0x8c9b('0x14')]('/:id',auth[_0x8c9b('0xb')](),controller[_0x8c9b('0x17')]);module['exports']=router;