Built motion from commit 14588770.|2.5.38
[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 _0x6726=['delete','destroy','exports','util','path','express','Router','../../components/auth/service','../../config/environment','./analyticMetric.controller','get','isAuthenticated','/:id','show','post','create','put','update'];(function(_0x307086,_0x3bfe4e){var _0x699043=function(_0x1a7677){while(--_0x1a7677){_0x307086['push'](_0x307086['shift']());}};_0x699043(++_0x3bfe4e);}(_0x6726,0xdb));var _0x6672=function(_0x4e6eb2,_0x16a451){_0x4e6eb2=_0x4e6eb2-0x0;var _0x4e0c1c=_0x6726[_0x4e6eb2];return _0x4e0c1c;};'use strict';var multer=require('multer');var util=require(_0x6672('0x0'));var path=require(_0x6672('0x1'));var timeout=require('connect-timeout');var express=require(_0x6672('0x2'));var router=express[_0x6672('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x6672('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x6672('0x5'));var controller=require(_0x6672('0x6'));router[_0x6672('0x7')]('/',auth[_0x6672('0x8')](),controller['index']);router[_0x6672('0x7')](_0x6672('0x9'),auth[_0x6672('0x8')](),controller[_0x6672('0xa')]);router[_0x6672('0xb')]('/',auth[_0x6672('0x8')](),controller[_0x6672('0xc')]);router[_0x6672('0xd')](_0x6672('0x9'),auth['isAuthenticated'](),controller[_0x6672('0xe')]);router[_0x6672('0xf')]('/:id',auth[_0x6672('0x8')](),controller[_0x6672('0x10')]);module[_0x6672('0x11')]=router;