Built motion from commit 52c8a02d.|2.6.29
[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 _0xa8cd=['destroy','exports','multer','util','path','connect-timeout','express','fs-extra','../../components/interaction/service','../../config/environment','./intDynamics365Account.controller','get','isAuthenticated','/:id','show','/:id/configurations','getConfigurations','getFields','post','create','put','update'];(function(_0x27b652,_0xb10614){var _0x33c966=function(_0x3dc32d){while(--_0x3dc32d){_0x27b652['push'](_0x27b652['shift']());}};_0x33c966(++_0xb10614);}(_0xa8cd,0x70));var _0xda8c=function(_0xdefbc3,_0x1ea49a){_0xdefbc3=_0xdefbc3-0x0;var _0x367798=_0xa8cd[_0xdefbc3];return _0x367798;};'use strict';var multer=require(_0xda8c('0x0'));var util=require(_0xda8c('0x1'));var path=require(_0xda8c('0x2'));var timeout=require(_0xda8c('0x3'));var express=require(_0xda8c('0x4'));var router=express['Router']();var fs_extra=require(_0xda8c('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xda8c('0x6'));var config=require(_0xda8c('0x7'));var controller=require(_0xda8c('0x8'));router[_0xda8c('0x9')]('/',auth[_0xda8c('0xa')](),controller['index']);router[_0xda8c('0x9')](_0xda8c('0xb'),auth['isAuthenticated'](),controller[_0xda8c('0xc')]);router[_0xda8c('0x9')](_0xda8c('0xd'),auth[_0xda8c('0xa')](),controller[_0xda8c('0xe')]);router['get']('/:id/fields',auth[_0xda8c('0xa')](),controller[_0xda8c('0xf')]);router[_0xda8c('0x10')]('/',auth[_0xda8c('0xa')](),controller[_0xda8c('0x11')]);router[_0xda8c('0x10')]('/:id/configurations',auth[_0xda8c('0xa')](),controller['addConfiguration']);router[_0xda8c('0x12')](_0xda8c('0xb'),auth[_0xda8c('0xa')](),controller[_0xda8c('0x13')]);router['delete'](_0xda8c('0xb'),auth[_0xda8c('0xa')](),controller[_0xda8c('0x14')]);module[_0xda8c('0x15')]=router;