2911a85543dc723f4105176346d39d919e61ba34
[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 _0x024c=['multer','util','express','Router','../../components/auth/service','../../components/interaction/service','./intDynamics365Field.controller','isAuthenticated','/:id','show','post','create','put','update','destroy','exports'];(function(_0xa01d8e,_0x27ebba){var _0x882858=function(_0x5834b4){while(--_0x5834b4){_0xa01d8e['push'](_0xa01d8e['shift']());}};_0x882858(++_0x27ebba);}(_0x024c,0x1c0));var _0xc024=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x024c[_0x14add3];return _0x4a174f;};'use strict';var multer=require(_0xc024('0x0'));var util=require(_0xc024('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xc024('0x2'));var router=express[_0xc024('0x3')]();var auth=require(_0xc024('0x4'));var interaction=require(_0xc024('0x5'));var config=require('../../config/environment');var controller=require(_0xc024('0x6'));router['get']('/',auth[_0xc024('0x7')](),controller['index']);router['get'](_0xc024('0x8'),auth[_0xc024('0x7')](),controller[_0xc024('0x9')]);router[_0xc024('0xa')]('/',auth['isAuthenticated'](),controller[_0xc024('0xb')]);router[_0xc024('0xc')](_0xc024('0x8'),auth[_0xc024('0x7')](),controller[_0xc024('0xd')]);router['delete'](_0xc024('0x8'),auth[_0xc024('0x7')](),controller[_0xc024('0xe')]);module[_0xc024('0xf')]=router;