bfe6257cd68778a31c46eedf8b19108aed7a7963
[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 _0x5c3a=['getFields','post','create','/:id/configurations','addConfiguration','/:id','update','delete','destroy','exports','path','connect-timeout','express','fs-extra','../../components/auth/service','../../config/environment','./intDynamics365Account.controller','get','isAuthenticated','index','show','/:id/fields'];(function(_0x287ddf,_0x1808c6){var _0x26a6ac=function(_0x3f3462){while(--_0x3f3462){_0x287ddf['push'](_0x287ddf['shift']());}};_0x26a6ac(++_0x1808c6);}(_0x5c3a,0x1ac));var _0xa5c3=function(_0x46ac43,_0x356e9d){_0x46ac43=_0x46ac43-0x0;var _0x1543b1=_0x5c3a[_0x46ac43];return _0x1543b1;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xa5c3('0x0'));var timeout=require(_0xa5c3('0x1'));var express=require(_0xa5c3('0x2'));var router=express['Router']();var fs_extra=require(_0xa5c3('0x3'));var auth=require(_0xa5c3('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xa5c3('0x5'));var controller=require(_0xa5c3('0x6'));router[_0xa5c3('0x7')]('/',auth[_0xa5c3('0x8')](),controller[_0xa5c3('0x9')]);router[_0xa5c3('0x7')]('/:id',auth[_0xa5c3('0x8')](),controller[_0xa5c3('0xa')]);router[_0xa5c3('0x7')]('/:id/configurations',auth[_0xa5c3('0x8')](),controller['getConfigurations']);router[_0xa5c3('0x7')](_0xa5c3('0xb'),auth[_0xa5c3('0x8')](),controller[_0xa5c3('0xc')]);router[_0xa5c3('0xd')]('/',auth['isAuthenticated'](),controller[_0xa5c3('0xe')]);router[_0xa5c3('0xd')](_0xa5c3('0xf'),auth['isAuthenticated'](),controller[_0xa5c3('0x10')]);router['put'](_0xa5c3('0x11'),auth[_0xa5c3('0x8')](),controller[_0xa5c3('0x12')]);router[_0xa5c3('0x13')](_0xa5c3('0x11'),auth[_0xa5c3('0x8')](),controller[_0xa5c3('0x14')]);module[_0xa5c3('0x15')]=router;