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 _0xc52b=['../../config/environment','get','isAuthenticated','index','/:id','show','/:id/configurations','getConfigurations','/:id/fields','getFields','create','addConfiguration','update','delete','destroy','exports','multer','util','path','Router','../../components/auth/service','../../components/interaction/service'];(function(_0x1034ee,_0x12998c){var _0x2922af=function(_0x13715a){while(--_0x13715a){_0x1034ee['push'](_0x1034ee['shift']());}};_0x2922af(++_0x12998c);}(_0xc52b,0x1c8));var _0xbc52=function(_0x348475,_0x12a278){_0x348475=_0x348475-0x0;var _0x35c266=_0xc52b[_0x348475];return _0x35c266;};'use strict';var multer=require(_0xbc52('0x0'));var util=require(_0xbc52('0x1'));var path=require(_0xbc52('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xbc52('0x3')]();var auth=require(_0xbc52('0x4'));var interaction=require(_0xbc52('0x5'));var config=require(_0xbc52('0x6'));var controller=require('./intDynamics365Account.controller');router[_0xbc52('0x7')]('/',auth[_0xbc52('0x8')](),controller[_0xbc52('0x9')]);router[_0xbc52('0x7')](_0xbc52('0xa'),auth['isAuthenticated'](),controller[_0xbc52('0xb')]);router[_0xbc52('0x7')](_0xbc52('0xc'),auth[_0xbc52('0x8')](),controller[_0xbc52('0xd')]);router[_0xbc52('0x7')](_0xbc52('0xe'),auth[_0xbc52('0x8')](),controller[_0xbc52('0xf')]);router['post']('/',auth[_0xbc52('0x8')](),controller[_0xbc52('0x10')]);router['post']('/:id/configurations',auth[_0xbc52('0x8')](),controller[_0xbc52('0x11')]);router['put'](_0xbc52('0xa'),auth[_0xbc52('0x8')](),controller[_0xbc52('0x12')]);router[_0xbc52('0x13')](_0xbc52('0xa'),auth[_0xbc52('0x8')](),controller[_0xbc52('0x14')]);module[_0xbc52('0x15')]=router;