c28f2471a90de0992cfe7eabc311e00331f2d07a
[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 _0x943c=['post','create','put','update','delete','destroy','exports','multer','util','path','connect-timeout','fs-extra','../../components/auth/service','../../components/interaction/service','./analyticMetric.controller','get','isAuthenticated','index','/:id'];(function(_0x490413,_0xb5dd06){var _0x4dba2e=function(_0x3dbc21){while(--_0x3dbc21){_0x490413['push'](_0x490413['shift']());}};_0x4dba2e(++_0xb5dd06);}(_0x943c,0xd8));var _0xc943=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x943c[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0xc943('0x0'));var util=require(_0xc943('0x1'));var path=require(_0xc943('0x2'));var timeout=require(_0xc943('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require(_0xc943('0x4'));var auth=require(_0xc943('0x5'));var interaction=require(_0xc943('0x6'));var config=require('../../config/environment');var controller=require(_0xc943('0x7'));router[_0xc943('0x8')]('/',auth[_0xc943('0x9')](),controller[_0xc943('0xa')]);router[_0xc943('0x8')](_0xc943('0xb'),auth[_0xc943('0x9')](),controller['show']);router[_0xc943('0xc')]('/',auth[_0xc943('0x9')](),controller[_0xc943('0xd')]);router[_0xc943('0xe')]('/:id',auth['isAuthenticated'](),controller[_0xc943('0xf')]);router[_0xc943('0x10')]('/:id',auth['isAuthenticated'](),controller[_0xc943('0x11')]);module[_0xc943('0x12')]=router;