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 _0x57ca=['index','/:id','show','/:id/fields','getFields','create','/:id/configurations','addConfiguration','put','update','destroy','exports','util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated'];(function(_0x4b72b8,_0xcf6841){var _0x2c4a6b=function(_0x4361cd){while(--_0x4361cd){_0x4b72b8['push'](_0x4b72b8['shift']());}};_0x2c4a6b(++_0xcf6841);}(_0x57ca,0x108));var _0xa57c=function(_0x56e030,_0x485153){_0x56e030=_0x56e030-0x0;var _0x26b769=_0x57ca[_0x56e030];return _0x26b769;};'use strict';var multer=require('multer');var util=require(_0xa57c('0x0'));var path=require(_0xa57c('0x1'));var timeout=require('connect-timeout');var express=require(_0xa57c('0x2'));var router=express[_0xa57c('0x3')]();var auth=require(_0xa57c('0x4'));var interaction=require(_0xa57c('0x5'));var config=require(_0xa57c('0x6'));var controller=require('./intDynamics365Account.controller');router[_0xa57c('0x7')]('/',auth[_0xa57c('0x8')](),controller[_0xa57c('0x9')]);router[_0xa57c('0x7')](_0xa57c('0xa'),auth[_0xa57c('0x8')](),controller[_0xa57c('0xb')]);router[_0xa57c('0x7')]('/:id/configurations',auth[_0xa57c('0x8')](),controller['getConfigurations']);router[_0xa57c('0x7')](_0xa57c('0xc'),auth['isAuthenticated'](),controller[_0xa57c('0xd')]);router['post']('/',auth[_0xa57c('0x8')](),controller[_0xa57c('0xe')]);router['post'](_0xa57c('0xf'),auth['isAuthenticated'](),controller[_0xa57c('0x10')]);router[_0xa57c('0x11')](_0xa57c('0xa'),auth[_0xa57c('0x8')](),controller[_0xa57c('0x12')]);router['delete'](_0xa57c('0xa'),auth['isAuthenticated'](),controller[_0xa57c('0x13')]);module[_0xa57c('0x14')]=router;