Built motion from commit 00bf23f6.|2.6.16
[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 _0x2ffb=['show','post','put','/:id','update','destroy','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated'];(function(_0x432a5d,_0x5f564e){var _0x1e938d=function(_0x3b1770){while(--_0x3b1770){_0x432a5d['push'](_0x432a5d['shift']());}};_0x1e938d(++_0x5f564e);}(_0x2ffb,0x1da));var _0xb2ff=function(_0x2d3df2,_0x2f9498){_0x2d3df2=_0x2d3df2-0x0;var _0x347bda=_0x2ffb[_0x2d3df2];return _0x347bda;};'use strict';var multer=require(_0xb2ff('0x0'));var util=require(_0xb2ff('0x1'));var path=require(_0xb2ff('0x2'));var timeout=require(_0xb2ff('0x3'));var express=require(_0xb2ff('0x4'));var router=express[_0xb2ff('0x5')]();var fs_extra=require(_0xb2ff('0x6'));var auth=require(_0xb2ff('0x7'));var interaction=require(_0xb2ff('0x8'));var config=require(_0xb2ff('0x9'));var controller=require('./intDynamics365Field.controller');router[_0xb2ff('0xa')]('/',auth[_0xb2ff('0xb')](),controller['index']);router[_0xb2ff('0xa')]('/:id',auth['isAuthenticated'](),controller[_0xb2ff('0xc')]);router[_0xb2ff('0xd')]('/',auth[_0xb2ff('0xb')](),controller['create']);router[_0xb2ff('0xe')](_0xb2ff('0xf'),auth[_0xb2ff('0xb')](),controller[_0xb2ff('0x10')]);router['delete'](_0xb2ff('0xf'),auth[_0xb2ff('0xb')](),controller[_0xb2ff('0x11')]);module['exports']=router;