f2256cb1c2f87129ea721063d10b79425f802e39
[motion2.git] / server / api / integrationReport / 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 _0x720c=['multer','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./integrationReport.controller','get','isAuthenticated','index','describe','/:id','put','update','delete','destroy'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0x720c,0x154));var _0xc720=function(_0x47707e,_0x58c7dc){_0x47707e=_0x47707e-0x0;var _0x37b727=_0x720c[_0x47707e];return _0x37b727;};'use strict';var multer=require(_0xc720('0x0'));var util=require('util');var path=require(_0xc720('0x1'));var timeout=require(_0xc720('0x2'));var express=require(_0xc720('0x3'));var router=express[_0xc720('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0xc720('0x5'));var config=require(_0xc720('0x6'));var controller=require(_0xc720('0x7'));router[_0xc720('0x8')]('/',auth[_0xc720('0x9')](),controller[_0xc720('0xa')]);router[_0xc720('0x8')]('/describe',auth[_0xc720('0x9')](),controller[_0xc720('0xb')]);router[_0xc720('0x8')](_0xc720('0xc'),auth[_0xc720('0x9')](),controller['show']);router['post']('/',auth[_0xc720('0x9')](),controller['create']);router[_0xc720('0xd')](_0xc720('0xc'),auth['isAuthenticated'](),controller[_0xc720('0xe')]);router[_0xc720('0xf')](_0xc720('0xc'),auth[_0xc720('0x9')](),controller[_0xc720('0x10')]);module['exports']=router;