f5682b38edb6aa09cc0dff564930e4c0aa9e0911
[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 _0xaf80=['util','path','connect-timeout','../../components/interaction/service','../../config/environment','./intDynamics365Field.controller','get','isAuthenticated','index','post','create','/:id','update','destroy','exports','multer'];(function(_0x496106,_0x48efc5){var _0x43ee98=function(_0xcc15f5){while(--_0xcc15f5){_0x496106['push'](_0x496106['shift']());}};_0x43ee98(++_0x48efc5);}(_0xaf80,0x1ef));var _0x0af8=function(_0x83976d,_0x1e01ab){_0x83976d=_0x83976d-0x0;var _0x2d03a9=_0xaf80[_0x83976d];return _0x2d03a9;};'use strict';var multer=require(_0x0af8('0x0'));var util=require(_0x0af8('0x1'));var path=require(_0x0af8('0x2'));var timeout=require(_0x0af8('0x3'));var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x0af8('0x4'));var config=require(_0x0af8('0x5'));var controller=require(_0x0af8('0x6'));router[_0x0af8('0x7')]('/',auth[_0x0af8('0x8')](),controller[_0x0af8('0x9')]);router['get']('/:id',auth[_0x0af8('0x8')](),controller['show']);router[_0x0af8('0xa')]('/',auth[_0x0af8('0x8')](),controller[_0x0af8('0xb')]);router['put'](_0x0af8('0xc'),auth[_0x0af8('0x8')](),controller[_0x0af8('0xd')]);router['delete']('/:id',auth[_0x0af8('0x8')](),controller[_0x0af8('0xe')]);module[_0x0af8('0xf')]=router;