7b09f23b490d803db1659f8189d5ca7469a159a7
[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 _0x780f=['multer','util','path','connect-timeout','express','../../components/interaction/service','../../config/environment','./intDynamics365Field.controller','get','index','/:id','isAuthenticated','show','post','create','update','delete','destroy'];(function(_0x4717d6,_0x55995b){var _0x3e8979=function(_0x15f08f){while(--_0x15f08f){_0x4717d6['push'](_0x4717d6['shift']());}};_0x3e8979(++_0x55995b);}(_0x780f,0x6c));var _0xf780=function(_0x4fe19c,_0x45d0fe){_0x4fe19c=_0x4fe19c-0x0;var _0x952ac7=_0x780f[_0x4fe19c];return _0x952ac7;};'use strict';var multer=require(_0xf780('0x0'));var util=require(_0xf780('0x1'));var path=require(_0xf780('0x2'));var timeout=require(_0xf780('0x3'));var express=require(_0xf780('0x4'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0xf780('0x5'));var config=require(_0xf780('0x6'));var controller=require(_0xf780('0x7'));router[_0xf780('0x8')]('/',auth['isAuthenticated'](),controller[_0xf780('0x9')]);router['get'](_0xf780('0xa'),auth[_0xf780('0xb')](),controller[_0xf780('0xc')]);router[_0xf780('0xd')]('/',auth[_0xf780('0xb')](),controller[_0xf780('0xe')]);router['put'](_0xf780('0xa'),auth[_0xf780('0xb')](),controller[_0xf780('0xf')]);router[_0xf780('0x10')](_0xf780('0xa'),auth[_0xf780('0xb')](),controller[_0xf780('0x11')]);module['exports']=router;