f59c66a6e01ed4a548aa9c8d2f6858296587a633
[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 _0xdfcc=['../../config/environment','index','get','isAuthenticated','show','/:id/configurations','getConfigurations','/:id/fields','getFields','post','create','addConfiguration','/:id','delete','exports','multer','util','path','express','Router','../../components/auth/service'];(function(_0x2a90d1,_0x3e8b39){var _0x3a0a7c=function(_0x3a61a6){while(--_0x3a61a6){_0x2a90d1['push'](_0x2a90d1['shift']());}};_0x3a0a7c(++_0x3e8b39);}(_0xdfcc,0x8d));var _0xcdfc=function(_0x11e05d,_0x3a4491){_0x11e05d=_0x11e05d-0x0;var _0x335588=_0xdfcc[_0x11e05d];return _0x335588;};'use strict';var multer=require(_0xcdfc('0x0'));var util=require(_0xcdfc('0x1'));var path=require(_0xcdfc('0x2'));var timeout=require('connect-timeout');var express=require(_0xcdfc('0x3'));var router=express[_0xcdfc('0x4')]();var auth=require(_0xcdfc('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xcdfc('0x6'));var controller=require('./intSugarcrmAccount.controller');router['get']('/',auth['isAuthenticated'](),controller[_0xcdfc('0x7')]);router[_0xcdfc('0x8')]('/:id',auth[_0xcdfc('0x9')](),controller[_0xcdfc('0xa')]);router[_0xcdfc('0x8')](_0xcdfc('0xb'),auth['isAuthenticated'](),controller[_0xcdfc('0xc')]);router['get'](_0xcdfc('0xd'),auth[_0xcdfc('0x9')](),controller[_0xcdfc('0xe')]);router[_0xcdfc('0xf')]('/',auth[_0xcdfc('0x9')](),controller[_0xcdfc('0x10')]);router['post']('/:id/configurations',auth[_0xcdfc('0x9')](),controller[_0xcdfc('0x11')]);router['put'](_0xcdfc('0x12'),auth[_0xcdfc('0x9')](),controller['update']);router[_0xcdfc('0x13')](_0xcdfc('0x12'),auth[_0xcdfc('0x9')](),controller['destroy']);module[_0xcdfc('0x14')]=router;