Built motion from commit 3c2ce842.|2.6.31
[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 _0xaf99=['/:id/fields','getFields','post','create','addConfiguration','update','delete','destroy','util','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','get','isAuthenticated','index','/:id','show','/:id/configurations','getConfigurations'];(function(_0x971efc,_0x30c558){var _0x26ba63=function(_0x191515){while(--_0x191515){_0x971efc['push'](_0x971efc['shift']());}};_0x26ba63(++_0x30c558);}(_0xaf99,0x110));var _0x9af9=function(_0x572611,_0x3e4509){_0x572611=_0x572611-0x0;var _0x1d7a4f=_0xaf99[_0x572611];return _0x1d7a4f;};'use strict';var multer=require('multer');var util=require(_0x9af9('0x0'));var path=require(_0x9af9('0x1'));var timeout=require(_0x9af9('0x2'));var express=require(_0x9af9('0x3'));var router=express[_0x9af9('0x4')]();var fs_extra=require(_0x9af9('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x9af9('0x6'));var config=require('../../config/environment');var controller=require('./intDynamics365Account.controller');router[_0x9af9('0x7')]('/',auth[_0x9af9('0x8')](),controller[_0x9af9('0x9')]);router[_0x9af9('0x7')](_0x9af9('0xa'),auth[_0x9af9('0x8')](),controller[_0x9af9('0xb')]);router['get'](_0x9af9('0xc'),auth[_0x9af9('0x8')](),controller[_0x9af9('0xd')]);router[_0x9af9('0x7')](_0x9af9('0xe'),auth[_0x9af9('0x8')](),controller[_0x9af9('0xf')]);router[_0x9af9('0x10')]('/',auth['isAuthenticated'](),controller[_0x9af9('0x11')]);router['post'](_0x9af9('0xc'),auth[_0x9af9('0x8')](),controller[_0x9af9('0x12')]);router['put'](_0x9af9('0xa'),auth[_0x9af9('0x8')](),controller[_0x9af9('0x13')]);router[_0x9af9('0x14')]('/:id',auth[_0x9af9('0x8')](),controller[_0x9af9('0x15')]);module['exports']=router;