a39f051c670005fe70c1555212baa84277df882b
[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 _0xfc21=['create','put','update','destroy','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','./intDynamics365Field.controller','get','isAuthenticated','index','/:id'];(function(_0x308f04,_0x1ba009){var _0x3bde41=function(_0x506455){while(--_0x506455){_0x308f04['push'](_0x308f04['shift']());}};_0x3bde41(++_0x1ba009);}(_0xfc21,0x84));var _0x1fc2=function(_0x501510,_0x61caa9){_0x501510=_0x501510-0x0;var _0x1e6ee5=_0xfc21[_0x501510];return _0x1e6ee5;};'use strict';var multer=require(_0x1fc2('0x0'));var util=require('util');var path=require(_0x1fc2('0x1'));var timeout=require(_0x1fc2('0x2'));var express=require(_0x1fc2('0x3'));var router=express[_0x1fc2('0x4')]();var fs_extra=require(_0x1fc2('0x5'));var auth=require(_0x1fc2('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x1fc2('0x7'));router[_0x1fc2('0x8')]('/',auth[_0x1fc2('0x9')](),controller[_0x1fc2('0xa')]);router[_0x1fc2('0x8')](_0x1fc2('0xb'),auth[_0x1fc2('0x9')](),controller['show']);router['post']('/',auth['isAuthenticated'](),controller[_0x1fc2('0xc')]);router[_0x1fc2('0xd')](_0x1fc2('0xb'),auth['isAuthenticated'](),controller[_0x1fc2('0xe')]);router['delete'](_0x1fc2('0xb'),auth[_0x1fc2('0x9')](),controller[_0x1fc2('0xf')]);module['exports']=router;