62fa477ff6bbae4a9e54f724a78fef4e00e82bc6
[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 _0x51a5=['isAuthenticated','index','/:id','show','/:id/fields','post','create','addConfiguration','put','update','destroy','exports','multer','util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get'];(function(_0x5b2e3d,_0x2d7f7b){var _0x35a13c=function(_0x831acc){while(--_0x831acc){_0x5b2e3d['push'](_0x5b2e3d['shift']());}};_0x35a13c(++_0x2d7f7b);}(_0x51a5,0xe8));var _0x551a=function(_0x2f3ced,_0x5acfde){_0x2f3ced=_0x2f3ced-0x0;var _0xe8d24=_0x51a5[_0x2f3ced];return _0xe8d24;};'use strict';var multer=require(_0x551a('0x0'));var util=require(_0x551a('0x1'));var path=require(_0x551a('0x2'));var timeout=require(_0x551a('0x3'));var express=require(_0x551a('0x4'));var router=express['Router']();var fs_extra=require(_0x551a('0x5'));var auth=require(_0x551a('0x6'));var interaction=require(_0x551a('0x7'));var config=require(_0x551a('0x8'));var controller=require('./intDynamics365Account.controller');router[_0x551a('0x9')]('/',auth[_0x551a('0xa')](),controller[_0x551a('0xb')]);router['get'](_0x551a('0xc'),auth[_0x551a('0xa')](),controller[_0x551a('0xd')]);router[_0x551a('0x9')]('/:id/configurations',auth[_0x551a('0xa')](),controller['getConfigurations']);router['get'](_0x551a('0xe'),auth[_0x551a('0xa')](),controller['getFields']);router[_0x551a('0xf')]('/',auth['isAuthenticated'](),controller[_0x551a('0x10')]);router[_0x551a('0xf')]('/:id/configurations',auth['isAuthenticated'](),controller[_0x551a('0x11')]);router[_0x551a('0x12')]('/:id',auth[_0x551a('0xa')](),controller[_0x551a('0x13')]);router['delete'](_0x551a('0xc'),auth[_0x551a('0xa')](),controller[_0x551a('0x14')]);module[_0x551a('0x15')]=router;