ce7fbd6d4a13233153696a86d8222c7b67937dd7
[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 _0xdeda=['util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intDynamics365Field.controller','isAuthenticated','index','get','/:id','post','create','put','update','delete','multer'];(function(_0x10222d,_0x3a0c2a){var _0x3dd89d=function(_0x1768fc){while(--_0x1768fc){_0x10222d['push'](_0x10222d['shift']());}};_0x3dd89d(++_0x3a0c2a);}(_0xdeda,0x77));var _0xaded=function(_0x5f0d96,_0x350939){_0x5f0d96=_0x5f0d96-0x0;var _0x2771b0=_0xdeda[_0x5f0d96];return _0x2771b0;};'use strict';var multer=require(_0xaded('0x0'));var util=require(_0xaded('0x1'));var path=require(_0xaded('0x2'));var timeout=require(_0xaded('0x3'));var express=require(_0xaded('0x4'));var router=express[_0xaded('0x5')]();var fs_extra=require(_0xaded('0x6'));var auth=require(_0xaded('0x7'));var interaction=require(_0xaded('0x8'));var config=require(_0xaded('0x9'));var controller=require(_0xaded('0xa'));router['get']('/',auth[_0xaded('0xb')](),controller[_0xaded('0xc')]);router[_0xaded('0xd')](_0xaded('0xe'),auth[_0xaded('0xb')](),controller['show']);router[_0xaded('0xf')]('/',auth[_0xaded('0xb')](),controller[_0xaded('0x10')]);router[_0xaded('0x11')](_0xaded('0xe'),auth['isAuthenticated'](),controller[_0xaded('0x12')]);router[_0xaded('0x13')](_0xaded('0xe'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;