Built motion from commit 639a1a7f.|2.6.19
[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 _0x444e=['isAuthenticated','index','/:id','show','create','put','update','delete','multer','path','express','fs-extra','../../components/interaction/service','../../config/environment','./analyticMetric.controller','get'];(function(_0x163f58,_0x1c8ae4){var _0x472ed9=function(_0xca7deb){while(--_0xca7deb){_0x163f58['push'](_0x163f58['shift']());}};_0x472ed9(++_0x1c8ae4);}(_0x444e,0xe8));var _0xe444=function(_0x1a0383,_0x44ba85){_0x1a0383=_0x1a0383-0x0;var _0x22583f=_0x444e[_0x1a0383];return _0x22583f;};'use strict';var multer=require(_0xe444('0x0'));var util=require('util');var path=require(_0xe444('0x1'));var timeout=require('connect-timeout');var express=require(_0xe444('0x2'));var router=express['Router']();var fs_extra=require(_0xe444('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0xe444('0x4'));var config=require(_0xe444('0x5'));var controller=require(_0xe444('0x6'));router[_0xe444('0x7')]('/',auth[_0xe444('0x8')](),controller[_0xe444('0x9')]);router['get'](_0xe444('0xa'),auth['isAuthenticated'](),controller[_0xe444('0xb')]);router['post']('/',auth[_0xe444('0x8')](),controller[_0xe444('0xc')]);router[_0xe444('0xd')]('/:id',auth['isAuthenticated'](),controller[_0xe444('0xe')]);router[_0xe444('0xf')]('/:id',auth[_0xe444('0x8')](),controller['destroy']);module['exports']=router;