2a659d578a63716df09df0ac34395e7d01faf242
[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 _0x78f0=['put','update','delete','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./intSugarcrmAccount.controller','get','isAuthenticated','index','/:id','/:id/configurations','getConfigurations','/:id/fields','getFields','create','addConfiguration'];(function(_0x5751e6,_0x125e5e){var _0x4199e4=function(_0x559843){while(--_0x559843){_0x5751e6['push'](_0x5751e6['shift']());}};_0x4199e4(++_0x125e5e);}(_0x78f0,0x15d));var _0x078f=function(_0x565005,_0x1acbd1){_0x565005=_0x565005-0x0;var _0xf0ebb1=_0x78f0[_0x565005];return _0xf0ebb1;};'use strict';var multer=require(_0x078f('0x0'));var util=require(_0x078f('0x1'));var path=require(_0x078f('0x2'));var timeout=require(_0x078f('0x3'));var express=require(_0x078f('0x4'));var router=express[_0x078f('0x5')]();var auth=require(_0x078f('0x6'));var interaction=require(_0x078f('0x7'));var config=require('../../config/environment');var controller=require(_0x078f('0x8'));router[_0x078f('0x9')]('/',auth[_0x078f('0xa')](),controller[_0x078f('0xb')]);router['get'](_0x078f('0xc'),auth[_0x078f('0xa')](),controller['show']);router[_0x078f('0x9')](_0x078f('0xd'),auth[_0x078f('0xa')](),controller[_0x078f('0xe')]);router[_0x078f('0x9')](_0x078f('0xf'),auth[_0x078f('0xa')](),controller[_0x078f('0x10')]);router['post']('/',auth[_0x078f('0xa')](),controller[_0x078f('0x11')]);router['post'](_0x078f('0xd'),auth[_0x078f('0xa')](),controller[_0x078f('0x12')]);router[_0x078f('0x13')]('/:id',auth['isAuthenticated'](),controller[_0x078f('0x14')]);router[_0x078f('0x15')](_0x078f('0xc'),auth[_0x078f('0xa')](),controller['destroy']);module[_0x078f('0x16')]=router;