a3feede33e07cd2ff81b2f54678d1aff4928f2e0
[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 _0xae5f=['show','/:id/fields','getFields','create','post','/:id/configurations','addConfiguration','put','update','delete','destroy','exports','multer','util','path','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intSugarcrmAccount.controller','get','isAuthenticated','index','/:id'];(function(_0x37049c,_0x121da2){var _0x35acb9=function(_0x38ac2d){while(--_0x38ac2d){_0x37049c['push'](_0x37049c['shift']());}};_0x35acb9(++_0x121da2);}(_0xae5f,0x12c));var _0xfae5=function(_0x1e0bb9,_0x3dd4c8){_0x1e0bb9=_0x1e0bb9-0x0;var _0x50eb3c=_0xae5f[_0x1e0bb9];return _0x50eb3c;};'use strict';var multer=require(_0xfae5('0x0'));var util=require(_0xfae5('0x1'));var path=require(_0xfae5('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xfae5('0x3')]();var auth=require(_0xfae5('0x4'));var interaction=require(_0xfae5('0x5'));var config=require(_0xfae5('0x6'));var controller=require(_0xfae5('0x7'));router[_0xfae5('0x8')]('/',auth[_0xfae5('0x9')](),controller[_0xfae5('0xa')]);router[_0xfae5('0x8')](_0xfae5('0xb'),auth[_0xfae5('0x9')](),controller[_0xfae5('0xc')]);router[_0xfae5('0x8')]('/:id/configurations',auth[_0xfae5('0x9')](),controller['getConfigurations']);router[_0xfae5('0x8')](_0xfae5('0xd'),auth[_0xfae5('0x9')](),controller[_0xfae5('0xe')]);router['post']('/',auth[_0xfae5('0x9')](),controller[_0xfae5('0xf')]);router[_0xfae5('0x10')](_0xfae5('0x11'),auth['isAuthenticated'](),controller[_0xfae5('0x12')]);router[_0xfae5('0x13')](_0xfae5('0xb'),auth[_0xfae5('0x9')](),controller[_0xfae5('0x14')]);router[_0xfae5('0x15')]('/:id',auth['isAuthenticated'](),controller[_0xfae5('0x16')]);module[_0xfae5('0x17')]=router;