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