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 _0x701e=['path','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','/:id','show','/:id/fields','getFields','post','/:id/configurations','addConfiguration','destroy','exports','multer','util'];(function(_0x16503a,_0x2f3aa9){var _0x1cba32=function(_0x308596){while(--_0x308596){_0x16503a['push'](_0x16503a['shift']());}};_0x1cba32(++_0x2f3aa9);}(_0x701e,0x141));var _0xe701=function(_0x40f0f0,_0x2c57e4){_0x40f0f0=_0x40f0f0-0x0;var _0x171990=_0x701e[_0x40f0f0];return _0x171990;};'use strict';var multer=require(_0xe701('0x0'));var util=require(_0xe701('0x1'));var path=require(_0xe701('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xe701('0x3')]();var fs_extra=require(_0xe701('0x4'));var auth=require(_0xe701('0x5'));var interaction=require(_0xe701('0x6'));var config=require(_0xe701('0x7'));var controller=require('./intDynamics365Account.controller');router[_0xe701('0x8')]('/',auth[_0xe701('0x9')](),controller['index']);router[_0xe701('0x8')](_0xe701('0xa'),auth[_0xe701('0x9')](),controller[_0xe701('0xb')]);router[_0xe701('0x8')]('/:id/configurations',auth[_0xe701('0x9')](),controller['getConfigurations']);router[_0xe701('0x8')](_0xe701('0xc'),auth[_0xe701('0x9')](),controller[_0xe701('0xd')]);router[_0xe701('0xe')]('/',auth[_0xe701('0x9')](),controller['create']);router[_0xe701('0xe')](_0xe701('0xf'),auth[_0xe701('0x9')](),controller[_0xe701('0x10')]);router['put']('/:id',auth[_0xe701('0x9')](),controller['update']);router['delete']('/:id',auth[_0xe701('0x9')](),controller[_0xe701('0x11')]);module[_0xe701('0x12')]=router;