Built motion from commit d5e4af8c.|2.6.23
[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 _0x4b83=['isAuthenticated','/:id/configurations','getConfigurations','post','put','delete','multer','util','path','Router','fs-extra','../../components/auth/service','../../components/interaction/service','index','get','/:id'];(function(_0x48aade,_0x70232){var _0x2ae465=function(_0x523c4d){while(--_0x523c4d){_0x48aade['push'](_0x48aade['shift']());}};_0x2ae465(++_0x70232);}(_0x4b83,0x76));var _0x34b8=function(_0x5aeea8,_0x1a5245){_0x5aeea8=_0x5aeea8-0x0;var _0x23c4ba=_0x4b83[_0x5aeea8];return _0x23c4ba;};'use strict';var multer=require(_0x34b8('0x0'));var util=require(_0x34b8('0x1'));var path=require(_0x34b8('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x34b8('0x3')]();var fs_extra=require(_0x34b8('0x4'));var auth=require(_0x34b8('0x5'));var interaction=require(_0x34b8('0x6'));var config=require('../../config/environment');var controller=require('./intDynamics365Account.controller');router['get']('/',auth['isAuthenticated'](),controller[_0x34b8('0x7')]);router[_0x34b8('0x8')](_0x34b8('0x9'),auth[_0x34b8('0xa')](),controller['show']);router[_0x34b8('0x8')](_0x34b8('0xb'),auth[_0x34b8('0xa')](),controller[_0x34b8('0xc')]);router['get']('/:id/fields',auth[_0x34b8('0xa')](),controller['getFields']);router['post']('/',auth[_0x34b8('0xa')](),controller['create']);router[_0x34b8('0xd')](_0x34b8('0xb'),auth[_0x34b8('0xa')](),controller['addConfiguration']);router[_0x34b8('0xe')](_0x34b8('0x9'),auth[_0x34b8('0xa')](),controller['update']);router[_0x34b8('0xf')](_0x34b8('0x9'),auth[_0x34b8('0xa')](),controller['destroy']);module['exports']=router;