b48c146ee7962d5ac4c1d68d664010ae6319708c
[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 _0xed6f=['post','addConfiguration','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','index','get','/:id','show','/:id/configurations','getConfigurations','/:id/fields','getFields'];(function(_0x3d679a,_0xb52bbd){var _0xf9b7a7=function(_0x44e355){while(--_0x44e355){_0x3d679a['push'](_0x3d679a['shift']());}};_0xf9b7a7(++_0xb52bbd);}(_0xed6f,0x1a3));var _0xfed6=function(_0x23aebd,_0x3c00c9){_0x23aebd=_0x23aebd-0x0;var _0x848c5f=_0xed6f[_0x23aebd];return _0x848c5f;};'use strict';var multer=require(_0xfed6('0x0'));var util=require(_0xfed6('0x1'));var path=require(_0xfed6('0x2'));var timeout=require(_0xfed6('0x3'));var express=require(_0xfed6('0x4'));var router=express[_0xfed6('0x5')]();var auth=require(_0xfed6('0x6'));var interaction=require(_0xfed6('0x7'));var config=require(_0xfed6('0x8'));var controller=require('./intDynamics365Account.controller');router['get']('/',auth[_0xfed6('0x9')](),controller[_0xfed6('0xa')]);router[_0xfed6('0xb')](_0xfed6('0xc'),auth[_0xfed6('0x9')](),controller[_0xfed6('0xd')]);router[_0xfed6('0xb')](_0xfed6('0xe'),auth[_0xfed6('0x9')](),controller[_0xfed6('0xf')]);router['get'](_0xfed6('0x10'),auth[_0xfed6('0x9')](),controller[_0xfed6('0x11')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0xfed6('0x12')](_0xfed6('0xe'),auth[_0xfed6('0x9')](),controller[_0xfed6('0x13')]);router['put']('/:id',auth['isAuthenticated'](),controller['update']);router[_0xfed6('0x14')](_0xfed6('0xc'),auth[_0xfed6('0x9')](),controller[_0xfed6('0x15')]);module[_0xfed6('0x16')]=router;