Built motion from commit 8356fca3.|2.6.19
[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 _0x871a=['util','path','connect-timeout','../../components/auth/service','../../config/environment','./intDynamics365Field.controller','isAuthenticated','get','/:id','post','update','delete','destroy','exports'];(function(_0x240e97,_0x31b643){var _0x38d32a=function(_0x3d8cfb){while(--_0x3d8cfb){_0x240e97['push'](_0x240e97['shift']());}};_0x38d32a(++_0x31b643);}(_0x871a,0x188));var _0xa871=function(_0x252782,_0x5b7839){_0x252782=_0x252782-0x0;var _0x5123ea=_0x871a[_0x252782];return _0x5123ea;};'use strict';var multer=require('multer');var util=require(_0xa871('0x0'));var path=require(_0xa871('0x1'));var timeout=require(_0xa871('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xa871('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0xa871('0x4'));var controller=require(_0xa871('0x5'));router['get']('/',auth[_0xa871('0x6')](),controller['index']);router[_0xa871('0x7')](_0xa871('0x8'),auth[_0xa871('0x6')](),controller['show']);router[_0xa871('0x9')]('/',auth[_0xa871('0x6')](),controller['create']);router['put'](_0xa871('0x8'),auth[_0xa871('0x6')](),controller[_0xa871('0xa')]);router[_0xa871('0xb')](_0xa871('0x8'),auth[_0xa871('0x6')](),controller[_0xa871('0xc')]);module[_0xa871('0xd')]=router;