3a2d22b98466034f0f2be9a6f8d15cf750387f77
[motion2.git] / server / api / intDynamics365Account / 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 _0x10f5=['Router','fs-extra','../../components/interaction/service','../../config/environment','./intDynamics365Account.controller','get','isAuthenticated','index','show','/:id/configurations','getConfigurations','getFields','post','addConfiguration','put','/:id','update','delete','destroy','exports','multer','util','path','connect-timeout'];(function(_0x246e63,_0x18c050){var _0x93bdc1=function(_0x456dfd){while(--_0x456dfd){_0x246e63['push'](_0x246e63['shift']());}};_0x93bdc1(++_0x18c050);}(_0x10f5,0x1ac));var _0x510f=function(_0xc4e092,_0x5a666c){_0xc4e092=_0xc4e092-0x0;var _0x1143c6=_0x10f5[_0xc4e092];return _0x1143c6;};'use strict';var multer=require(_0x510f('0x0'));var util=require(_0x510f('0x1'));var path=require(_0x510f('0x2'));var timeout=require(_0x510f('0x3'));var express=require('express');var router=express[_0x510f('0x4')]();var fs_extra=require(_0x510f('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x510f('0x6'));var config=require(_0x510f('0x7'));var controller=require(_0x510f('0x8'));router[_0x510f('0x9')]('/',auth[_0x510f('0xa')](),controller[_0x510f('0xb')]);router['get']('/:id',auth[_0x510f('0xa')](),controller[_0x510f('0xc')]);router['get'](_0x510f('0xd'),auth[_0x510f('0xa')](),controller[_0x510f('0xe')]);router['get']('/:id/fields',auth[_0x510f('0xa')](),controller[_0x510f('0xf')]);router[_0x510f('0x10')]('/',auth['isAuthenticated'](),controller['create']);router['post'](_0x510f('0xd'),auth[_0x510f('0xa')](),controller[_0x510f('0x11')]);router[_0x510f('0x12')](_0x510f('0x13'),auth[_0x510f('0xa')](),controller[_0x510f('0x14')]);router[_0x510f('0x15')](_0x510f('0x13'),auth[_0x510f('0xa')](),controller[_0x510f('0x16')]);module[_0x510f('0x17')]=router;