Built motion from commit 753c950e.|2.5.42
[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 _0xbf63=['post','create','put','destroy','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/interaction/service','./intDynamics365Field.controller','get','index','/:id','isAuthenticated','show'];(function(_0x3791a5,_0x3e9d44){var _0x495f05=function(_0x2a2e0c){while(--_0x2a2e0c){_0x3791a5['push'](_0x3791a5['shift']());}};_0x495f05(++_0x3e9d44);}(_0xbf63,0x15b));var _0x3bf6=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xbf63[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0x3bf6('0x0'));var util=require(_0x3bf6('0x1'));var path=require('path');var timeout=require(_0x3bf6('0x2'));var express=require(_0x3bf6('0x3'));var router=express[_0x3bf6('0x4')]();var fs_extra=require(_0x3bf6('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x3bf6('0x6'));var config=require('../../config/environment');var controller=require(_0x3bf6('0x7'));router[_0x3bf6('0x8')]('/',auth['isAuthenticated'](),controller[_0x3bf6('0x9')]);router[_0x3bf6('0x8')](_0x3bf6('0xa'),auth[_0x3bf6('0xb')](),controller[_0x3bf6('0xc')]);router[_0x3bf6('0xd')]('/',auth[_0x3bf6('0xb')](),controller[_0x3bf6('0xe')]);router[_0x3bf6('0xf')]('/:id',auth['isAuthenticated'](),controller['update']);router['delete'](_0x3bf6('0xa'),auth[_0x3bf6('0xb')](),controller[_0x3bf6('0x10')]);module[_0x3bf6('0x11')]=router;