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 _0xb89e=['get','isAuthenticated','index','/:id','post','create','put','update','delete','exports','multer','util','path','express','fs-extra','../../components/interaction/service','../../config/environment'];(function(_0x4d7f3f,_0x4d2803){var _0x5d67cc=function(_0x2c37f4){while(--_0x2c37f4){_0x4d7f3f['push'](_0x4d7f3f['shift']());}};_0x5d67cc(++_0x4d2803);}(_0xb89e,0xf8));var _0xeb89=function(_0x7d4dc8,_0x14d70e){_0x7d4dc8=_0x7d4dc8-0x0;var _0x20b216=_0xb89e[_0x7d4dc8];return _0x20b216;};'use strict';var multer=require(_0xeb89('0x0'));var util=require(_0xeb89('0x1'));var path=require(_0xeb89('0x2'));var timeout=require('connect-timeout');var express=require(_0xeb89('0x3'));var router=express['Router']();var fs_extra=require(_0xeb89('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xeb89('0x5'));var config=require(_0xeb89('0x6'));var controller=require('./intDynamics365Field.controller');router[_0xeb89('0x7')]('/',auth[_0xeb89('0x8')](),controller[_0xeb89('0x9')]);router[_0xeb89('0x7')](_0xeb89('0xa'),auth[_0xeb89('0x8')](),controller['show']);router[_0xeb89('0xb')]('/',auth['isAuthenticated'](),controller[_0xeb89('0xc')]);router[_0xeb89('0xd')]('/:id',auth['isAuthenticated'](),controller[_0xeb89('0xe')]);router[_0xeb89('0xf')](_0xeb89('0xa'),auth['isAuthenticated'](),controller['destroy']);module[_0xeb89('0x10')]=router;