1d160b127e1069c519b955e8d24a04d14a7fe2cb
[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 _0x2bed=['create','put','exports','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intDynamics365Field.controller','get','index','/:id','isAuthenticated','show','post'];(function(_0x20eed6,_0x2efa9d){var _0x1dc085=function(_0x30b5d2){while(--_0x30b5d2){_0x20eed6['push'](_0x20eed6['shift']());}};_0x1dc085(++_0x2efa9d);}(_0x2bed,0x75));var _0xd2be=function(_0x35e4d3,_0x231ab8){_0x35e4d3=_0x35e4d3-0x0;var _0x42e509=_0x2bed[_0x35e4d3];return _0x42e509;};'use strict';var multer=require(_0xd2be('0x0'));var util=require(_0xd2be('0x1'));var path=require(_0xd2be('0x2'));var timeout=require('connect-timeout');var express=require(_0xd2be('0x3'));var router=express[_0xd2be('0x4')]();var fs_extra=require(_0xd2be('0x5'));var auth=require(_0xd2be('0x6'));var interaction=require(_0xd2be('0x7'));var config=require(_0xd2be('0x8'));var controller=require(_0xd2be('0x9'));router[_0xd2be('0xa')]('/',auth['isAuthenticated'](),controller[_0xd2be('0xb')]);router[_0xd2be('0xa')](_0xd2be('0xc'),auth[_0xd2be('0xd')](),controller[_0xd2be('0xe')]);router[_0xd2be('0xf')]('/',auth[_0xd2be('0xd')](),controller[_0xd2be('0x10')]);router[_0xd2be('0x11')](_0xd2be('0xc'),auth[_0xd2be('0xd')](),controller['update']);router['delete']('/:id',auth[_0xd2be('0xd')](),controller['destroy']);module[_0xd2be('0x12')]=router;