8a55ebe78d2be1141c46cc65ecbf4146572ef763
[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 _0x254a=['show','put','/:id','delete','destroy','exports','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated','index'];(function(_0x53a8e7,_0x115e35){var _0x526cc4=function(_0x29e349){while(--_0x29e349){_0x53a8e7['push'](_0x53a8e7['shift']());}};_0x526cc4(++_0x115e35);}(_0x254a,0x138));var _0xa254=function(_0x31c6b6,_0xdd33b7){_0x31c6b6=_0x31c6b6-0x0;var _0x32b27b=_0x254a[_0x31c6b6];return _0x32b27b;};'use strict';var multer=require(_0xa254('0x0'));var util=require(_0xa254('0x1'));var path=require(_0xa254('0x2'));var timeout=require('connect-timeout');var express=require(_0xa254('0x3'));var router=express[_0xa254('0x4')]();var fs_extra=require(_0xa254('0x5'));var auth=require(_0xa254('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xa254('0x7'));var controller=require('./analyticMetric.controller');router[_0xa254('0x8')]('/',auth[_0xa254('0x9')](),controller[_0xa254('0xa')]);router['get']('/:id',auth[_0xa254('0x9')](),controller[_0xa254('0xb')]);router['post']('/',auth[_0xa254('0x9')](),controller['create']);router[_0xa254('0xc')](_0xa254('0xd'),auth['isAuthenticated'](),controller['update']);router[_0xa254('0xe')](_0xa254('0xd'),auth[_0xa254('0x9')](),controller[_0xa254('0xf')]);module[_0xa254('0x10')]=router;