Built motion from commit (unavailable).|2.4.17
[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 _0x2ed9=['delete','exports','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intDynamics365Account.controller','index','get','/:id','isAuthenticated','show','/:id/configurations','getFields','create','addConfiguration','update'];(function(_0x1992f1,_0x5c61f0){var _0x413dfe=function(_0x2136e5){while(--_0x2136e5){_0x1992f1['push'](_0x1992f1['shift']());}};_0x413dfe(++_0x5c61f0);}(_0x2ed9,0x156));var _0x92ed=function(_0x39cf43,_0x3a5b9c){_0x39cf43=_0x39cf43-0x0;var _0x5d6580=_0x2ed9[_0x39cf43];return _0x5d6580;};'use strict';var multer=require('multer');var util=require(_0x92ed('0x0'));var path=require('path');var timeout=require(_0x92ed('0x1'));var express=require(_0x92ed('0x2'));var router=express[_0x92ed('0x3')]();var auth=require(_0x92ed('0x4'));var interaction=require(_0x92ed('0x5'));var config=require(_0x92ed('0x6'));var controller=require(_0x92ed('0x7'));router['get']('/',auth['isAuthenticated'](),controller[_0x92ed('0x8')]);router[_0x92ed('0x9')](_0x92ed('0xa'),auth[_0x92ed('0xb')](),controller[_0x92ed('0xc')]);router[_0x92ed('0x9')](_0x92ed('0xd'),auth[_0x92ed('0xb')](),controller['getConfigurations']);router[_0x92ed('0x9')]('/:id/fields',auth[_0x92ed('0xb')](),controller[_0x92ed('0xe')]);router['post']('/',auth[_0x92ed('0xb')](),controller[_0x92ed('0xf')]);router['post']('/:id/configurations',auth['isAuthenticated'](),controller[_0x92ed('0x10')]);router['put']('/:id',auth['isAuthenticated'](),controller[_0x92ed('0x11')]);router[_0x92ed('0x12')](_0x92ed('0xa'),auth[_0x92ed('0xb')](),controller['destroy']);module[_0x92ed('0x13')]=router;