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