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