Built motion from commit 25580385.|2.6.2
[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 _0x1e7f=['show','post','update','delete','destroy','util','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./intDynamics365Field.controller','get','isAuthenticated','index','/:id'];(function(_0x5bfff7,_0x3e50b2){var _0xd52359=function(_0x1e1ced){while(--_0x1e1ced){_0x5bfff7['push'](_0x5bfff7['shift']());}};_0xd52359(++_0x3e50b2);}(_0x1e7f,0xdd));var _0xf1e7=function(_0x5c3b49,_0x31fd2b){_0x5c3b49=_0x5c3b49-0x0;var _0x1bb6b7=_0x1e7f[_0x5c3b49];return _0x1bb6b7;};'use strict';var multer=require('multer');var util=require(_0xf1e7('0x0'));var path=require(_0xf1e7('0x1'));var timeout=require(_0xf1e7('0x2'));var express=require(_0xf1e7('0x3'));var router=express[_0xf1e7('0x4')]();var fs_extra=require(_0xf1e7('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xf1e7('0x6'));var config=require(_0xf1e7('0x7'));var controller=require(_0xf1e7('0x8'));router[_0xf1e7('0x9')]('/',auth[_0xf1e7('0xa')](),controller[_0xf1e7('0xb')]);router[_0xf1e7('0x9')](_0xf1e7('0xc'),auth[_0xf1e7('0xa')](),controller[_0xf1e7('0xd')]);router[_0xf1e7('0xe')]('/',auth[_0xf1e7('0xa')](),controller['create']);router['put']('/:id',auth['isAuthenticated'](),controller[_0xf1e7('0xf')]);router[_0xf1e7('0x10')](_0xf1e7('0xc'),auth[_0xf1e7('0xa')](),controller[_0xf1e7('0x11')]);module['exports']=router;