0f4af1bfe97e6fad57024060097c4296bd1830f9
[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 _0x2ccb=['../../components/auth/service','../../components/interaction/service','../../config/environment','./intDynamics365Field.controller','get','isAuthenticated','index','show','post','create','put','/:id','delete','destroy','exports','multer','connect-timeout','express','Router'];(function(_0x541f17,_0x8adfd1){var _0x4765f6=function(_0x5ac588){while(--_0x5ac588){_0x541f17['push'](_0x541f17['shift']());}};_0x4765f6(++_0x8adfd1);}(_0x2ccb,0x1c4));var _0xb2cc=function(_0x2641f9,_0x26715f){_0x2641f9=_0x2641f9-0x0;var _0x585741=_0x2ccb[_0x2641f9];return _0x585741;};'use strict';var multer=require(_0xb2cc('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xb2cc('0x1'));var express=require(_0xb2cc('0x2'));var router=express[_0xb2cc('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xb2cc('0x4'));var interaction=require(_0xb2cc('0x5'));var config=require(_0xb2cc('0x6'));var controller=require(_0xb2cc('0x7'));router[_0xb2cc('0x8')]('/',auth[_0xb2cc('0x9')](),controller[_0xb2cc('0xa')]);router['get']('/:id',auth['isAuthenticated'](),controller[_0xb2cc('0xb')]);router[_0xb2cc('0xc')]('/',auth['isAuthenticated'](),controller[_0xb2cc('0xd')]);router[_0xb2cc('0xe')](_0xb2cc('0xf'),auth[_0xb2cc('0x9')](),controller['update']);router[_0xb2cc('0x10')](_0xb2cc('0xf'),auth[_0xb2cc('0x9')](),controller[_0xb2cc('0x11')]);module[_0xb2cc('0x12')]=router;