016d091c1d9ea257866a7ef37458fbd94ee2a909
[motion2.git] / server / api / intDynamics365Account / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x5f66=['../../components/auth/service','../../components/interaction/service','./intDynamics365Account.controller','isAuthenticated','index','show','get','/:id/configurations','getConfigurations','getFields','post','addConfiguration','/:id','update','delete','destroy','exports','util','connect-timeout','express','Router'];(function(_0x3511d3,_0x4107ae){var _0x5d6321=function(_0x1a23da){while(--_0x1a23da){_0x3511d3['push'](_0x3511d3['shift']());}};_0x5d6321(++_0x4107ae);}(_0x5f66,0x1a0));var _0x65f6=function(_0x580576,_0x2f107d){_0x580576=_0x580576-0x0;var _0x3f55a0=_0x5f66[_0x580576];return _0x3f55a0;};'use strict';var multer=require('multer');var util=require(_0x65f6('0x0'));var path=require('path');var timeout=require(_0x65f6('0x1'));var express=require(_0x65f6('0x2'));var router=express[_0x65f6('0x3')]();var auth=require(_0x65f6('0x4'));var interaction=require(_0x65f6('0x5'));var config=require('../../config/environment');var controller=require(_0x65f6('0x6'));router['get']('/',auth[_0x65f6('0x7')](),controller[_0x65f6('0x8')]);router['get']('/:id',auth[_0x65f6('0x7')](),controller[_0x65f6('0x9')]);router[_0x65f6('0xa')](_0x65f6('0xb'),auth[_0x65f6('0x7')](),controller[_0x65f6('0xc')]);router['get']('/:id/fields',auth[_0x65f6('0x7')](),controller[_0x65f6('0xd')]);router[_0x65f6('0xe')]('/',auth[_0x65f6('0x7')](),controller['create']);router[_0x65f6('0xe')]('/:id/configurations',auth['isAuthenticated'](),controller[_0x65f6('0xf')]);router['put'](_0x65f6('0x10'),auth['isAuthenticated'](),controller[_0x65f6('0x11')]);router[_0x65f6('0x12')](_0x65f6('0x10'),auth[_0x65f6('0x7')](),controller[_0x65f6('0x13')]);module[_0x65f6('0x14')]=router;