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(_0x3566c2,_0x5d3081){var _0x28621a=function(_0x1fd5b5){while(--_0x1fd5b5){_0x3566c2['push'](_0x3566c2['shift']());}};_0x28621a(++_0x5d3081);}(_0x57ca,0x108));var _0xa57c=function(_0x505241,_0x4550d9){_0x505241=_0x505241-0x0;var _0x297585=_0x57ca[_0x505241];return _0x297585;};'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;