Built motion from commit 9d1906d1.|2.5.40
[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 _0x3fc9=['util','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./intDynamics365Account.controller','get','isAuthenticated','show','/:id/configurations','getConfigurations','/:id/fields','getFields','post','addConfiguration','/:id','update','delete','destroy'];(function(_0x3a634e,_0x273db2){var _0x2ecddb=function(_0x3a9d2d){while(--_0x3a9d2d){_0x3a634e['push'](_0x3a634e['shift']());}};_0x2ecddb(++_0x273db2);}(_0x3fc9,0x1cc));var _0x93fc=function(_0x1bb161,_0x25b93c){_0x1bb161=_0x1bb161-0x0;var _0x2d4246=_0x3fc9[_0x1bb161];return _0x2d4246;};'use strict';var multer=require('multer');var util=require(_0x93fc('0x0'));var path=require('path');var timeout=require(_0x93fc('0x1'));var express=require(_0x93fc('0x2'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x93fc('0x3'));var interaction=require(_0x93fc('0x4'));var config=require(_0x93fc('0x5'));var controller=require(_0x93fc('0x6'));router[_0x93fc('0x7')]('/',auth[_0x93fc('0x8')](),controller['index']);router[_0x93fc('0x7')]('/:id',auth['isAuthenticated'](),controller[_0x93fc('0x9')]);router[_0x93fc('0x7')](_0x93fc('0xa'),auth[_0x93fc('0x8')](),controller[_0x93fc('0xb')]);router[_0x93fc('0x7')](_0x93fc('0xc'),auth[_0x93fc('0x8')](),controller[_0x93fc('0xd')]);router['post']('/',auth[_0x93fc('0x8')](),controller['create']);router[_0x93fc('0xe')](_0x93fc('0xa'),auth[_0x93fc('0x8')](),controller[_0x93fc('0xf')]);router['put'](_0x93fc('0x10'),auth['isAuthenticated'](),controller[_0x93fc('0x11')]);router[_0x93fc('0x12')](_0x93fc('0x10'),auth[_0x93fc('0x8')](),controller[_0x93fc('0x13')]);module['exports']=router;