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 _0xae1c=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./analyticMetric.controller','get','isAuthenticated','index','/:id','create','put','update','delete','destroy','express'];(function(_0x46e766,_0x5233b3){var _0x55a310=function(_0x1da728){while(--_0x1da728){_0x46e766['push'](_0x46e766['shift']());}};_0x55a310(++_0x5233b3);}(_0xae1c,0xff));var _0xcae1=function(_0x550251,_0x257273){_0x550251=_0x550251-0x0;var _0x5ae084=_0xae1c[_0x550251];return _0x5ae084;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0xcae1('0x0'));var router=express[_0xcae1('0x1')]();var fs_extra=require(_0xcae1('0x2'));var auth=require(_0xcae1('0x3'));var interaction=require(_0xcae1('0x4'));var config=require(_0xcae1('0x5'));var controller=require(_0xcae1('0x6'));router[_0xcae1('0x7')]('/',auth[_0xcae1('0x8')](),controller[_0xcae1('0x9')]);router[_0xcae1('0x7')](_0xcae1('0xa'),auth[_0xcae1('0x8')](),controller['show']);router['post']('/',auth[_0xcae1('0x8')](),controller[_0xcae1('0xb')]);router[_0xcae1('0xc')]('/:id',auth[_0xcae1('0x8')](),controller[_0xcae1('0xd')]);router[_0xcae1('0xe')]('/:id',auth[_0xcae1('0x8')](),controller[_0xcae1('0xf')]);module['exports']=router;