Built motion from commit 753c950e.|2.5.42
[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 _0xf23b=['delete','destroy','exports','multer','util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','./analyticMetric.controller','get','isAuthenticated','index','show','create','put','/:id'];(function(_0x642d68,_0x44e622){var _0x1616fd=function(_0x2d9eae){while(--_0x2d9eae){_0x642d68['push'](_0x642d68['shift']());}};_0x1616fd(++_0x44e622);}(_0xf23b,0x133));var _0xbf23=function(_0x99b912,_0x1faa3e){_0x99b912=_0x99b912-0x0;var _0x1139fe=_0xf23b[_0x99b912];return _0x1139fe;};'use strict';var multer=require(_0xbf23('0x0'));var util=require(_0xbf23('0x1'));var path=require(_0xbf23('0x2'));var timeout=require(_0xbf23('0x3'));var express=require(_0xbf23('0x4'));var router=express['Router']();var fs_extra=require(_0xbf23('0x5'));var auth=require(_0xbf23('0x6'));var interaction=require(_0xbf23('0x7'));var config=require('../../config/environment');var controller=require(_0xbf23('0x8'));router[_0xbf23('0x9')]('/',auth[_0xbf23('0xa')](),controller[_0xbf23('0xb')]);router[_0xbf23('0x9')]('/:id',auth['isAuthenticated'](),controller[_0xbf23('0xc')]);router['post']('/',auth[_0xbf23('0xa')](),controller[_0xbf23('0xd')]);router[_0xbf23('0xe')](_0xbf23('0xf'),auth[_0xbf23('0xa')](),controller['update']);router[_0xbf23('0x10')](_0xbf23('0xf'),auth[_0xbf23('0xa')](),controller[_0xbf23('0x11')]);module[_0xbf23('0x12')]=router;