67a7cfab62181bda27b943c9f2f6aa06c530ad27
[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 _0xd4b6=['util','connect-timeout','express','fs-extra','./intDynamics365Field.controller','get','isAuthenticated','/:id','show','create','put','update','delete','destroy','exports','multer'];(function(_0x5c3a9b,_0xbe0821){var _0x4ed8aa=function(_0x2d0622){while(--_0x2d0622){_0x5c3a9b['push'](_0x5c3a9b['shift']());}};_0x4ed8aa(++_0xbe0821);}(_0xd4b6,0x13f));var _0x6d4b=function(_0x52fc63,_0x5a2f5e){_0x52fc63=_0x52fc63-0x0;var _0x5183aa=_0xd4b6[_0x52fc63];return _0x5183aa;};'use strict';var multer=require(_0x6d4b('0x0'));var util=require(_0x6d4b('0x1'));var path=require('path');var timeout=require(_0x6d4b('0x2'));var express=require(_0x6d4b('0x3'));var router=express['Router']();var fs_extra=require(_0x6d4b('0x4'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x6d4b('0x5'));router[_0x6d4b('0x6')]('/',auth[_0x6d4b('0x7')](),controller['index']);router[_0x6d4b('0x6')](_0x6d4b('0x8'),auth[_0x6d4b('0x7')](),controller[_0x6d4b('0x9')]);router['post']('/',auth[_0x6d4b('0x7')](),controller[_0x6d4b('0xa')]);router[_0x6d4b('0xb')](_0x6d4b('0x8'),auth['isAuthenticated'](),controller[_0x6d4b('0xc')]);router[_0x6d4b('0xd')](_0x6d4b('0x8'),auth[_0x6d4b('0x7')](),controller[_0x6d4b('0xe')]);module[_0x6d4b('0xf')]=router;