Built motion from commit 0900f080.|2.5.45
[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 _0xc1da=['/:id/configurations','addConfiguration','put','/:id','update','destroy','exports','multer','util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','show','get','getConfigurations','/:id/fields','getFields','post','create'];(function(_0x18a52c,_0x4a0f28){var _0xa2a5fe=function(_0x63b429){while(--_0x63b429){_0x18a52c['push'](_0x18a52c['shift']());}};_0xa2a5fe(++_0x4a0f28);}(_0xc1da,0x13f));var _0xac1d=function(_0x3d6048,_0x2107b7){_0x3d6048=_0x3d6048-0x0;var _0x17fa52=_0xc1da[_0x3d6048];return _0x17fa52;};'use strict';var multer=require(_0xac1d('0x0'));var util=require(_0xac1d('0x1'));var path=require(_0xac1d('0x2'));var timeout=require(_0xac1d('0x3'));var express=require(_0xac1d('0x4'));var router=express['Router']();var fs_extra=require(_0xac1d('0x5'));var auth=require(_0xac1d('0x6'));var interaction=require(_0xac1d('0x7'));var config=require(_0xac1d('0x8'));var controller=require('./intDynamics365Account.controller');router['get']('/',auth[_0xac1d('0x9')](),controller['index']);router['get']('/:id',auth['isAuthenticated'](),controller[_0xac1d('0xa')]);router[_0xac1d('0xb')]('/:id/configurations',auth[_0xac1d('0x9')](),controller[_0xac1d('0xc')]);router['get'](_0xac1d('0xd'),auth[_0xac1d('0x9')](),controller[_0xac1d('0xe')]);router[_0xac1d('0xf')]('/',auth[_0xac1d('0x9')](),controller[_0xac1d('0x10')]);router[_0xac1d('0xf')](_0xac1d('0x11'),auth[_0xac1d('0x9')](),controller[_0xac1d('0x12')]);router[_0xac1d('0x13')](_0xac1d('0x14'),auth[_0xac1d('0x9')](),controller[_0xac1d('0x15')]);router['delete']('/:id',auth[_0xac1d('0x9')](),controller[_0xac1d('0x16')]);module[_0xac1d('0x17')]=router;