Built motion from commit 753c950e.|2.5.42
[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 _0x6b54=['isAuthenticated','getConfigurations','/:id/fields','create','post','/:id/configurations','put','update','delete','destroy','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','get','/:id','show'];(function(_0x5cd7de,_0x2a5628){var _0x285943=function(_0x4ecede){while(--_0x4ecede){_0x5cd7de['push'](_0x5cd7de['shift']());}};_0x285943(++_0x2a5628);}(_0x6b54,0x128));var _0x46b5=function(_0x4d36e7,_0x3fe21c){_0x4d36e7=_0x4d36e7-0x0;var _0x58c4c0=_0x6b54[_0x4d36e7];return _0x58c4c0;};'use strict';var multer=require(_0x46b5('0x0'));var util=require(_0x46b5('0x1'));var path=require(_0x46b5('0x2'));var timeout=require(_0x46b5('0x3'));var express=require(_0x46b5('0x4'));var router=express[_0x46b5('0x5')]();var fs_extra=require(_0x46b5('0x6'));var auth=require(_0x46b5('0x7'));var interaction=require('../../components/interaction/service');var config=require(_0x46b5('0x8'));var controller=require('./intDynamics365Account.controller');router[_0x46b5('0x9')]('/',auth['isAuthenticated'](),controller['index']);router[_0x46b5('0x9')](_0x46b5('0xa'),auth['isAuthenticated'](),controller[_0x46b5('0xb')]);router[_0x46b5('0x9')]('/:id/configurations',auth[_0x46b5('0xc')](),controller[_0x46b5('0xd')]);router[_0x46b5('0x9')](_0x46b5('0xe'),auth['isAuthenticated'](),controller['getFields']);router['post']('/',auth[_0x46b5('0xc')](),controller[_0x46b5('0xf')]);router[_0x46b5('0x10')](_0x46b5('0x11'),auth['isAuthenticated'](),controller['addConfiguration']);router[_0x46b5('0x12')](_0x46b5('0xa'),auth[_0x46b5('0xc')](),controller[_0x46b5('0x13')]);router[_0x46b5('0x14')]('/:id',auth[_0x46b5('0xc')](),controller[_0x46b5('0x15')]);module['exports']=router;