36ada7e3197354b016f7a070c3f85dc3f33490ed
[motion2.git] / server / api / intSugarcrmAccount / 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 _0x3c81=['connect-timeout','express','./intSugarcrmAccount.controller','get','isAuthenticated','index','/:id','getConfigurations','/:id/fields','getFields','post','create','/:id/configurations','addConfiguration','put','update','delete','destroy','multer','util'];(function(_0x3b3cc6,_0x1a6e24){var _0x1161e4=function(_0x19cc52){while(--_0x19cc52){_0x3b3cc6['push'](_0x3b3cc6['shift']());}};_0x1161e4(++_0x1a6e24);}(_0x3c81,0x102));var _0x13c8=function(_0x43399f,_0xb87fab){_0x43399f=_0x43399f-0x0;var _0x2e4872=_0x3c81[_0x43399f];return _0x2e4872;};'use strict';var multer=require(_0x13c8('0x0'));var util=require(_0x13c8('0x1'));var path=require('path');var timeout=require(_0x13c8('0x2'));var express=require(_0x13c8('0x3'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x13c8('0x4'));router[_0x13c8('0x5')]('/',auth[_0x13c8('0x6')](),controller[_0x13c8('0x7')]);router[_0x13c8('0x5')](_0x13c8('0x8'),auth[_0x13c8('0x6')](),controller['show']);router[_0x13c8('0x5')]('/:id/configurations',auth[_0x13c8('0x6')](),controller[_0x13c8('0x9')]);router[_0x13c8('0x5')](_0x13c8('0xa'),auth[_0x13c8('0x6')](),controller[_0x13c8('0xb')]);router[_0x13c8('0xc')]('/',auth[_0x13c8('0x6')](),controller[_0x13c8('0xd')]);router[_0x13c8('0xc')](_0x13c8('0xe'),auth[_0x13c8('0x6')](),controller[_0x13c8('0xf')]);router[_0x13c8('0x10')]('/:id',auth[_0x13c8('0x6')](),controller[_0x13c8('0x11')]);router[_0x13c8('0x12')](_0x13c8('0x8'),auth['isAuthenticated'](),controller[_0x13c8('0x13')]);module['exports']=router;