Built motion from commit 9d7072cc.|2.5.39
[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 _0x5f71=['index','/:id','show','post','create','put','delete','destroy','exports','multer','path','express','../../components/interaction/service','../../config/environment','get','isAuthenticated'];(function(_0x212283,_0x517230){var _0x391557=function(_0xc22fda){while(--_0xc22fda){_0x212283['push'](_0x212283['shift']());}};_0x391557(++_0x517230);}(_0x5f71,0xc9));var _0x15f7=function(_0x495fca,_0x53d7fc){_0x495fca=_0x495fca-0x0;var _0x13d43b=_0x5f71[_0x495fca];return _0x13d43b;};'use strict';var multer=require(_0x15f7('0x0'));var util=require('util');var path=require(_0x15f7('0x1'));var timeout=require('connect-timeout');var express=require(_0x15f7('0x2'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x15f7('0x3'));var config=require(_0x15f7('0x4'));var controller=require('./analyticMetric.controller');router[_0x15f7('0x5')]('/',auth[_0x15f7('0x6')](),controller[_0x15f7('0x7')]);router[_0x15f7('0x5')](_0x15f7('0x8'),auth[_0x15f7('0x6')](),controller[_0x15f7('0x9')]);router[_0x15f7('0xa')]('/',auth[_0x15f7('0x6')](),controller[_0x15f7('0xb')]);router[_0x15f7('0xc')](_0x15f7('0x8'),auth['isAuthenticated'](),controller['update']);router[_0x15f7('0xd')](_0x15f7('0x8'),auth['isAuthenticated'](),controller[_0x15f7('0xe')]);module[_0x15f7('0xf')]=router;