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 _0xe1c6=['exports','multer','util','path','express','Router','fs-extra','../../components/interaction/service','./intDynamics365Field.controller','isAuthenticated','get','/:id','show','create','delete','destroy'];(function(_0x3ab51d,_0x2fa01d){var _0x29a04e=function(_0x7807b0){while(--_0x7807b0){_0x3ab51d['push'](_0x3ab51d['shift']());}};_0x29a04e(++_0x2fa01d);}(_0xe1c6,0x111));var _0x6e1c=function(_0x226761,_0x47ec47){_0x226761=_0x226761-0x0;var _0x2a2641=_0xe1c6[_0x226761];return _0x2a2641;};'use strict';var multer=require(_0x6e1c('0x0'));var util=require(_0x6e1c('0x1'));var path=require(_0x6e1c('0x2'));var timeout=require('connect-timeout');var express=require(_0x6e1c('0x3'));var router=express[_0x6e1c('0x4')]();var fs_extra=require(_0x6e1c('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x6e1c('0x6'));var config=require('../../config/environment');var controller=require(_0x6e1c('0x7'));router['get']('/',auth[_0x6e1c('0x8')](),controller['index']);router[_0x6e1c('0x9')](_0x6e1c('0xa'),auth['isAuthenticated'](),controller[_0x6e1c('0xb')]);router['post']('/',auth[_0x6e1c('0x8')](),controller[_0x6e1c('0xc')]);router['put'](_0x6e1c('0xa'),auth['isAuthenticated'](),controller['update']);router[_0x6e1c('0xd')](_0x6e1c('0xa'),auth[_0x6e1c('0x8')](),controller[_0x6e1c('0xe')]);module[_0x6e1c('0xf')]=router;