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 _0x8afa=['../../components/auth/service','../../components/interaction/service','../../config/environment','./intDynamics365Account.controller','get','index','/:id','isAuthenticated','getConfigurations','/:id/fields','getFields','post','create','/:id/configurations','addConfiguration','put','update','delete','destroy','exports','multer','util','express','Router','fs-extra'];(function(_0x4cd6e7,_0x69e96c){var _0x4816f0=function(_0x22360d){while(--_0x22360d){_0x4cd6e7['push'](_0x4cd6e7['shift']());}};_0x4816f0(++_0x69e96c);}(_0x8afa,0x1a4));var _0xa8af=function(_0x3c1d7c,_0xd83135){_0x3c1d7c=_0x3c1d7c-0x0;var _0xe12e07=_0x8afa[_0x3c1d7c];return _0xe12e07;};'use strict';var multer=require(_0xa8af('0x0'));var util=require(_0xa8af('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xa8af('0x2'));var router=express[_0xa8af('0x3')]();var fs_extra=require(_0xa8af('0x4'));var auth=require(_0xa8af('0x5'));var interaction=require(_0xa8af('0x6'));var config=require(_0xa8af('0x7'));var controller=require(_0xa8af('0x8'));router[_0xa8af('0x9')]('/',auth['isAuthenticated'](),controller[_0xa8af('0xa')]);router[_0xa8af('0x9')](_0xa8af('0xb'),auth[_0xa8af('0xc')](),controller['show']);router[_0xa8af('0x9')]('/:id/configurations',auth[_0xa8af('0xc')](),controller[_0xa8af('0xd')]);router[_0xa8af('0x9')](_0xa8af('0xe'),auth['isAuthenticated'](),controller[_0xa8af('0xf')]);router[_0xa8af('0x10')]('/',auth[_0xa8af('0xc')](),controller[_0xa8af('0x11')]);router[_0xa8af('0x10')](_0xa8af('0x12'),auth[_0xa8af('0xc')](),controller[_0xa8af('0x13')]);router[_0xa8af('0x14')]('/:id',auth[_0xa8af('0xc')](),controller[_0xa8af('0x15')]);router[_0xa8af('0x16')](_0xa8af('0xb'),auth[_0xa8af('0xc')](),controller[_0xa8af('0x17')]);module[_0xa8af('0x18')]=router;