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