e840d155ab0dc7e6e8617f7c1d92ef1819be9153
[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 _0x1b66=['../../components/auth/service','../../config/environment','./intSugarcrmAccount.controller','get','isAuthenticated','/:id/configurations','getConfigurations','/:id/fields','getFields','post','create','put','/:id','update','delete','destroy','express'];(function(_0x4bff96,_0x3a7ac0){var _0x1ffd8c=function(_0x6cc2ef){while(--_0x6cc2ef){_0x4bff96['push'](_0x4bff96['shift']());}};_0x1ffd8c(++_0x3a7ac0);}(_0x1b66,0xba));var _0x61b6=function(_0x11ed90,_0x11432a){_0x11ed90=_0x11ed90-0x0;var _0x23e98a=_0x1b66[_0x11ed90];return _0x23e98a;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0x61b6('0x0'));var router=express['Router']();var auth=require(_0x61b6('0x1'));var interaction=require('../../components/interaction/service');var config=require(_0x61b6('0x2'));var controller=require(_0x61b6('0x3'));router[_0x61b6('0x4')]('/',auth[_0x61b6('0x5')](),controller['index']);router[_0x61b6('0x4')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0x61b6('0x4')](_0x61b6('0x6'),auth['isAuthenticated'](),controller[_0x61b6('0x7')]);router[_0x61b6('0x4')](_0x61b6('0x8'),auth[_0x61b6('0x5')](),controller[_0x61b6('0x9')]);router[_0x61b6('0xa')]('/',auth[_0x61b6('0x5')](),controller[_0x61b6('0xb')]);router[_0x61b6('0xa')](_0x61b6('0x6'),auth[_0x61b6('0x5')](),controller['addConfiguration']);router[_0x61b6('0xc')](_0x61b6('0xd'),auth[_0x61b6('0x5')](),controller[_0x61b6('0xe')]);router[_0x61b6('0xf')](_0x61b6('0xd'),auth[_0x61b6('0x5')](),controller[_0x61b6('0x10')]);module['exports']=router;