48e282b698e9bfa65573215f032233dc74395562
[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 _0x96af=['exports','util','express','Router','fs-extra','../../components/auth/service','./intDynamics365Field.controller','isAuthenticated','index','get','show','post','create','put','/:id','delete','destroy'];(function(_0x5ab225,_0x421905){var _0x22eb59=function(_0x122516){while(--_0x122516){_0x5ab225['push'](_0x5ab225['shift']());}};_0x22eb59(++_0x421905);}(_0x96af,0x166));var _0xf96a=function(_0x2f87cd,_0xcaf299){_0x2f87cd=_0x2f87cd-0x0;var _0x5d7eda=_0x96af[_0x2f87cd];return _0x5d7eda;};'use strict';var multer=require('multer');var util=require(_0xf96a('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xf96a('0x1'));var router=express[_0xf96a('0x2')]();var fs_extra=require(_0xf96a('0x3'));var auth=require(_0xf96a('0x4'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xf96a('0x5'));router['get']('/',auth[_0xf96a('0x6')](),controller[_0xf96a('0x7')]);router[_0xf96a('0x8')]('/:id',auth[_0xf96a('0x6')](),controller[_0xf96a('0x9')]);router[_0xf96a('0xa')]('/',auth['isAuthenticated'](),controller[_0xf96a('0xb')]);router[_0xf96a('0xc')](_0xf96a('0xd'),auth[_0xf96a('0x6')](),controller['update']);router[_0xf96a('0xe')](_0xf96a('0xd'),auth['isAuthenticated'](),controller[_0xf96a('0xf')]);module[_0xf96a('0x10')]=router;