9555edd4e038434ae26c7bdd8020c8c77fbef79d
[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 _0x9e4f=['destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./intDynamics365Field.controller','isAuthenticated','index','get','post','create','put','update','delete','/:id'];(function(_0x1c6085,_0x53f5d9){var _0x2e9016=function(_0x241cd0){while(--_0x241cd0){_0x1c6085['push'](_0x1c6085['shift']());}};_0x2e9016(++_0x53f5d9);}(_0x9e4f,0x167));var _0xf9e4=function(_0x26d3b4,_0x349aac){_0x26d3b4=_0x26d3b4-0x0;var _0x462b9c=_0x9e4f[_0x26d3b4];return _0x462b9c;};'use strict';var multer=require(_0xf9e4('0x0'));var util=require(_0xf9e4('0x1'));var path=require(_0xf9e4('0x2'));var timeout=require(_0xf9e4('0x3'));var express=require(_0xf9e4('0x4'));var router=express[_0xf9e4('0x5')]();var fs_extra=require(_0xf9e4('0x6'));var auth=require(_0xf9e4('0x7'));var interaction=require(_0xf9e4('0x8'));var config=require('../../config/environment');var controller=require(_0xf9e4('0x9'));router['get']('/',auth[_0xf9e4('0xa')](),controller[_0xf9e4('0xb')]);router[_0xf9e4('0xc')]('/:id',auth[_0xf9e4('0xa')](),controller['show']);router[_0xf9e4('0xd')]('/',auth['isAuthenticated'](),controller[_0xf9e4('0xe')]);router[_0xf9e4('0xf')]('/:id',auth['isAuthenticated'](),controller[_0xf9e4('0x10')]);router[_0xf9e4('0x11')](_0xf9e4('0x12'),auth[_0xf9e4('0xa')](),controller[_0xf9e4('0x13')]);module[_0xf9e4('0x14')]=router;