Built motion from commit efa66e19.|2.6.22
[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 _0x0fa0=['update','destroy','exports','multer','util','express','../../components/auth/service','../../components/interaction/service','get','show','post','isAuthenticated','create','/:id'];(function(_0x2b4411,_0x2625ed){var _0x8e41ef=function(_0x2aa8c1){while(--_0x2aa8c1){_0x2b4411['push'](_0x2b4411['shift']());}};_0x8e41ef(++_0x2625ed);}(_0x0fa0,0x1d1));var _0x00fa=function(_0x3457c0,_0xb2f8ba){_0x3457c0=_0x3457c0-0x0;var _0x3de9b9=_0x0fa0[_0x3457c0];return _0x3de9b9;};'use strict';var multer=require(_0x00fa('0x0'));var util=require(_0x00fa('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x00fa('0x2'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x00fa('0x3'));var interaction=require(_0x00fa('0x4'));var config=require('../../config/environment');var controller=require('./intDynamics365Field.controller');router[_0x00fa('0x5')]('/',auth['isAuthenticated'](),controller['index']);router[_0x00fa('0x5')]('/:id',auth['isAuthenticated'](),controller[_0x00fa('0x6')]);router[_0x00fa('0x7')]('/',auth[_0x00fa('0x8')](),controller[_0x00fa('0x9')]);router['put'](_0x00fa('0xa'),auth['isAuthenticated'](),controller[_0x00fa('0xb')]);router['delete'](_0x00fa('0xa'),auth[_0x00fa('0x8')](),controller[_0x00fa('0xc')]);module[_0x00fa('0xd')]=router;