Built motion from commit f7863d46.|2.5.41
[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 _0x7b27=['../../components/interaction/service','./analyticMetric.controller','get','isAuthenticated','/:id','show','create','put','update','delete','destroy','exports','multer','path','connect-timeout','express','Router','../../components/auth/service'];(function(_0x4cf98e,_0xba4b79){var _0x1623ac=function(_0x459bc0){while(--_0x459bc0){_0x4cf98e['push'](_0x4cf98e['shift']());}};_0x1623ac(++_0xba4b79);}(_0x7b27,0x186));var _0x77b2=function(_0x24dfae,_0x621be0){_0x24dfae=_0x24dfae-0x0;var _0x3a94d5=_0x7b27[_0x24dfae];return _0x3a94d5;};'use strict';var multer=require(_0x77b2('0x0'));var util=require('util');var path=require(_0x77b2('0x1'));var timeout=require(_0x77b2('0x2'));var express=require(_0x77b2('0x3'));var router=express[_0x77b2('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x77b2('0x5'));var interaction=require(_0x77b2('0x6'));var config=require('../../config/environment');var controller=require(_0x77b2('0x7'));router[_0x77b2('0x8')]('/',auth[_0x77b2('0x9')](),controller['index']);router[_0x77b2('0x8')](_0x77b2('0xa'),auth[_0x77b2('0x9')](),controller[_0x77b2('0xb')]);router['post']('/',auth[_0x77b2('0x9')](),controller[_0x77b2('0xc')]);router[_0x77b2('0xd')](_0x77b2('0xa'),auth[_0x77b2('0x9')](),controller[_0x77b2('0xe')]);router[_0x77b2('0xf')](_0x77b2('0xa'),auth['isAuthenticated'](),controller[_0x77b2('0x10')]);module[_0x77b2('0x11')]=router;