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