a964613ce4f23eb84577730002746e228d646d5e
[motion2.git] / server / api / intDynamics365Field / 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 _0xc073=['../../components/auth/service','../../components/interaction/service','./intDynamics365Field.controller','get','isAuthenticated','/:id','post','create','update','delete','exports','path','connect-timeout','express','Router','fs-extra'];(function(_0x3e3b4c,_0x1f181f){var _0x3b2a14=function(_0x54037c){while(--_0x54037c){_0x3e3b4c['push'](_0x3e3b4c['shift']());}};_0x3b2a14(++_0x1f181f);}(_0xc073,0x16b));var _0x3c07=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xc073[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x3c07('0x0'));var timeout=require(_0x3c07('0x1'));var express=require(_0x3c07('0x2'));var router=express[_0x3c07('0x3')]();var fs_extra=require(_0x3c07('0x4'));var auth=require(_0x3c07('0x5'));var interaction=require(_0x3c07('0x6'));var config=require('../../config/environment');var controller=require(_0x3c07('0x7'));router[_0x3c07('0x8')]('/',auth[_0x3c07('0x9')](),controller['index']);router['get'](_0x3c07('0xa'),auth[_0x3c07('0x9')](),controller['show']);router[_0x3c07('0xb')]('/',auth['isAuthenticated'](),controller[_0x3c07('0xc')]);router['put'](_0x3c07('0xa'),auth[_0x3c07('0x9')](),controller[_0x3c07('0xd')]);router[_0x3c07('0xe')](_0x3c07('0xa'),auth[_0x3c07('0x9')](),controller['destroy']);module[_0x3c07('0xf')]=router;