Built motion from commit 85328c08.|2.5.50
[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 _0x423b=['isAuthenticated','index','get','/:id','show','post','create','put','update','delete','destroy','util','connect-timeout','Router','../../config/environment','./analyticMetric.controller'];(function(_0x41d432,_0x20e878){var _0x1650f9=function(_0x27f177){while(--_0x27f177){_0x41d432['push'](_0x41d432['shift']());}};_0x1650f9(++_0x20e878);}(_0x423b,0x12b));var _0xb423=function(_0x44bcb0,_0x235aa9){_0x44bcb0=_0x44bcb0-0x0;var _0xfaf881=_0x423b[_0x44bcb0];return _0xfaf881;};'use strict';var multer=require('multer');var util=require(_0xb423('0x0'));var path=require('path');var timeout=require(_0xb423('0x1'));var express=require('express');var router=express[_0xb423('0x2')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xb423('0x3'));var controller=require(_0xb423('0x4'));router['get']('/',auth[_0xb423('0x5')](),controller[_0xb423('0x6')]);router[_0xb423('0x7')](_0xb423('0x8'),auth['isAuthenticated'](),controller[_0xb423('0x9')]);router[_0xb423('0xa')]('/',auth[_0xb423('0x5')](),controller[_0xb423('0xb')]);router[_0xb423('0xc')]('/:id',auth['isAuthenticated'](),controller[_0xb423('0xd')]);router[_0xb423('0xe')](_0xb423('0x8'),auth[_0xb423('0x5')](),controller[_0xb423('0xf')]);module['exports']=router;