1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x7a08=['exports','multer','util','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./analyticMetric.controller','get','isAuthenticated','index','show','post','create','update','delete','/:id'];(function(_0x36eaaa,_0x326732){var _0x461349=function(_0x4e4180){while(--_0x4e4180){_0x36eaaa['push'](_0x36eaaa['shift']());}};_0x461349(++_0x326732);}(_0x7a08,0x11e));var _0x87a0=function(_0x128bef,_0xc7a0af){_0x128bef=_0x128bef-0x0;var _0x1ba862=_0x7a08[_0x128bef];return _0x1ba862;};'use strict';var multer=require(_0x87a0('0x0'));var util=require(_0x87a0('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x87a0('0x2'));var router=express[_0x87a0('0x3')]();var fs_extra=require(_0x87a0('0x4'));var auth=require(_0x87a0('0x5'));var interaction=require(_0x87a0('0x6'));var config=require(_0x87a0('0x7'));var controller=require(_0x87a0('0x8'));router[_0x87a0('0x9')]('/',auth[_0x87a0('0xa')](),controller[_0x87a0('0xb')]);router[_0x87a0('0x9')]('/:id',auth[_0x87a0('0xa')](),controller[_0x87a0('0xc')]);router[_0x87a0('0xd')]('/',auth[_0x87a0('0xa')](),controller[_0x87a0('0xe')]);router['put']('/:id',auth[_0x87a0('0xa')](),controller[_0x87a0('0xf')]);router[_0x87a0('0x10')](_0x87a0('0x11'),auth[_0x87a0('0xa')](),controller['destroy']);module[_0x87a0('0x12')]=router;