e78b49e7171102c808cca7e274ed4a800368a938
[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 _0x979e=['show','post','create','put','delete','exports','multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','/:id','isAuthenticated'];(function(_0xa464c9,_0x7c86d8){var _0x3d73c4=function(_0x5c2056){while(--_0x5c2056){_0xa464c9['push'](_0xa464c9['shift']());}};_0x3d73c4(++_0x7c86d8);}(_0x979e,0x195));var _0xe979=function(_0x5203fd,_0x3448ce){_0x5203fd=_0x5203fd-0x0;var _0x37c56c=_0x979e[_0x5203fd];return _0x37c56c;};'use strict';var multer=require(_0xe979('0x0'));var util=require(_0xe979('0x1'));var path=require(_0xe979('0x2'));var timeout=require(_0xe979('0x3'));var express=require('express');var router=express[_0xe979('0x4')]();var fs_extra=require(_0xe979('0x5'));var auth=require(_0xe979('0x6'));var interaction=require(_0xe979('0x7'));var config=require(_0xe979('0x8'));var controller=require('./analyticMetric.controller');router[_0xe979('0x9')]('/',auth['isAuthenticated'](),controller[_0xe979('0xa')]);router[_0xe979('0x9')](_0xe979('0xb'),auth[_0xe979('0xc')](),controller[_0xe979('0xd')]);router[_0xe979('0xe')]('/',auth[_0xe979('0xc')](),controller[_0xe979('0xf')]);router[_0xe979('0x10')](_0xe979('0xb'),auth[_0xe979('0xc')](),controller['update']);router[_0xe979('0x11')](_0xe979('0xb'),auth[_0xe979('0xc')](),controller['destroy']);module[_0xe979('0x12')]=router;