Built motion from commit 1fa89557.|2.6.10
[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 _0x0be3=['./analyticMetric.controller','index','get','isAuthenticated','show','post','create','put','/:id','exports','path','connect-timeout','express','fs-extra','../../components/interaction/service','../../config/environment'];(function(_0x221c8f,_0x48b295){var _0x3764a3=function(_0x4edcdc){while(--_0x4edcdc){_0x221c8f['push'](_0x221c8f['shift']());}};_0x3764a3(++_0x48b295);}(_0x0be3,0x9a));var _0x30be=function(_0x2bc23a,_0x53a74d){_0x2bc23a=_0x2bc23a-0x0;var _0x29ff02=_0x0be3[_0x2bc23a];return _0x29ff02;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x30be('0x0'));var timeout=require(_0x30be('0x1'));var express=require(_0x30be('0x2'));var router=express['Router']();var fs_extra=require(_0x30be('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0x30be('0x4'));var config=require(_0x30be('0x5'));var controller=require(_0x30be('0x6'));router['get']('/',auth['isAuthenticated'](),controller[_0x30be('0x7')]);router[_0x30be('0x8')]('/:id',auth[_0x30be('0x9')](),controller[_0x30be('0xa')]);router[_0x30be('0xb')]('/',auth['isAuthenticated'](),controller[_0x30be('0xc')]);router[_0x30be('0xd')](_0x30be('0xe'),auth[_0x30be('0x9')](),controller['update']);router['delete']('/:id',auth[_0x30be('0x9')](),controller['destroy']);module[_0x30be('0xf')]=router;