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