83cb298d05682f95e52a460d7360e22928d3be50
[motion2.git] / server / api / analyticMetric / 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 _0xf350=['get','show','isAuthenticated','put','/:id','update','delete','destroy','exports','multer','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','index'];(function(_0x5c9f12,_0x25ea43){var _0x151265=function(_0x179afe){while(--_0x179afe){_0x5c9f12['push'](_0x5c9f12['shift']());}};_0x151265(++_0x25ea43);}(_0xf350,0x105));var _0x0f35=function(_0x122ef9,_0x451d2a){_0x122ef9=_0x122ef9-0x0;var _0x42fba0=_0xf350[_0x122ef9];return _0x42fba0;};'use strict';var multer=require(_0x0f35('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x0f35('0x1'));var express=require(_0x0f35('0x2'));var router=express[_0x0f35('0x3')]();var fs_extra=require(_0x0f35('0x4'));var auth=require(_0x0f35('0x5'));var interaction=require(_0x0f35('0x6'));var config=require(_0x0f35('0x7'));var controller=require('./analyticMetric.controller');router['get']('/',auth['isAuthenticated'](),controller[_0x0f35('0x8')]);router[_0x0f35('0x9')]('/:id',auth['isAuthenticated'](),controller[_0x0f35('0xa')]);router['post']('/',auth[_0x0f35('0xb')](),controller['create']);router[_0x0f35('0xc')](_0x0f35('0xd'),auth[_0x0f35('0xb')](),controller[_0x0f35('0xe')]);router[_0x0f35('0xf')](_0x0f35('0xd'),auth[_0x0f35('0xb')](),controller[_0x0f35('0x10')]);module[_0x0f35('0x11')]=router;