f0f72a9bca559307c8ecf959080450cf0a4143f5
[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 _0xa93e=['connect-timeout','Router','../../components/auth/service','./analyticMetric.controller','get','isAuthenticated','index','/:id','show','put','update','delete','destroy','exports','path'];(function(_0x117958,_0x112f1a){var _0x12b4a0=function(_0x1cc096){while(--_0x1cc096){_0x117958['push'](_0x117958['shift']());}};_0x12b4a0(++_0x112f1a);}(_0xa93e,0x1df));var _0xea93=function(_0xfb7038,_0x35f2ea){_0xfb7038=_0xfb7038-0x0;var _0x289745=_0xa93e[_0xfb7038];return _0x289745;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xea93('0x0'));var timeout=require(_0xea93('0x1'));var express=require('express');var router=express[_0xea93('0x2')]();var fs_extra=require('fs-extra');var auth=require(_0xea93('0x3'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xea93('0x4'));router[_0xea93('0x5')]('/',auth[_0xea93('0x6')](),controller[_0xea93('0x7')]);router[_0xea93('0x5')](_0xea93('0x8'),auth['isAuthenticated'](),controller[_0xea93('0x9')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0xea93('0xa')](_0xea93('0x8'),auth['isAuthenticated'](),controller[_0xea93('0xb')]);router[_0xea93('0xc')]('/:id',auth[_0xea93('0x6')](),controller[_0xea93('0xd')]);module[_0xea93('0xe')]=router;