Built motion from commit e6806ed6.|2.6.0
[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 _0x4ce6=['../../components/auth/service','../../config/environment','isAuthenticated','index','/:id','show','post','create','put','update','destroy','exports','multer','path','connect-timeout','express','Router','fs-extra'];(function(_0x4d30c0,_0x3a0ae7){var _0x5b0c2e=function(_0x3d752b){while(--_0x3d752b){_0x4d30c0['push'](_0x4d30c0['shift']());}};_0x5b0c2e(++_0x3a0ae7);}(_0x4ce6,0x108));var _0x64ce=function(_0x30a31e,_0x31f766){_0x30a31e=_0x30a31e-0x0;var _0x170879=_0x4ce6[_0x30a31e];return _0x170879;};'use strict';var multer=require(_0x64ce('0x0'));var util=require('util');var path=require(_0x64ce('0x1'));var timeout=require(_0x64ce('0x2'));var express=require(_0x64ce('0x3'));var router=express[_0x64ce('0x4')]();var fs_extra=require(_0x64ce('0x5'));var auth=require(_0x64ce('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x64ce('0x7'));var controller=require('./analyticMetric.controller');router['get']('/',auth[_0x64ce('0x8')](),controller[_0x64ce('0x9')]);router['get'](_0x64ce('0xa'),auth[_0x64ce('0x8')](),controller[_0x64ce('0xb')]);router[_0x64ce('0xc')]('/',auth[_0x64ce('0x8')](),controller[_0x64ce('0xd')]);router[_0x64ce('0xe')](_0x64ce('0xa'),auth[_0x64ce('0x8')](),controller[_0x64ce('0xf')]);router['delete'](_0x64ce('0xa'),auth[_0x64ce('0x8')](),controller[_0x64ce('0x10')]);module[_0x64ce('0x11')]=router;