d2aa0bac6bd311537b2a22d70fb70370ad074c88
[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 _0xce6b=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','./intSugarcrmAccount.controller','get','isAuthenticated','index','/:id','/:id/configurations','getConfigurations','/:id/fields','getFields','post','create','addConfiguration','put','update','delete','destroy','exports','path','express'];(function(_0xa2b098,_0x461a08){var _0x29502e=function(_0x43291a){while(--_0x43291a){_0xa2b098['push'](_0xa2b098['shift']());}};_0x29502e(++_0x461a08);}(_0xce6b,0x140));var _0xbce6=function(_0xe7c08c,_0x25298f){_0xe7c08c=_0xe7c08c-0x0;var _0x15db48=_0xce6b[_0xe7c08c];return _0x15db48;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xbce6('0x0'));var timeout=require('connect-timeout');var express=require(_0xbce6('0x1'));var router=express[_0xbce6('0x2')]();var fs_extra=require(_0xbce6('0x3'));var auth=require(_0xbce6('0x4'));var interaction=require(_0xbce6('0x5'));var config=require('../../config/environment');var controller=require(_0xbce6('0x6'));router[_0xbce6('0x7')]('/',auth[_0xbce6('0x8')](),controller[_0xbce6('0x9')]);router[_0xbce6('0x7')](_0xbce6('0xa'),auth[_0xbce6('0x8')](),controller['show']);router[_0xbce6('0x7')](_0xbce6('0xb'),auth[_0xbce6('0x8')](),controller[_0xbce6('0xc')]);router[_0xbce6('0x7')](_0xbce6('0xd'),auth[_0xbce6('0x8')](),controller[_0xbce6('0xe')]);router[_0xbce6('0xf')]('/',auth['isAuthenticated'](),controller[_0xbce6('0x10')]);router[_0xbce6('0xf')](_0xbce6('0xb'),auth['isAuthenticated'](),controller[_0xbce6('0x11')]);router[_0xbce6('0x12')](_0xbce6('0xa'),auth[_0xbce6('0x8')](),controller[_0xbce6('0x13')]);router[_0xbce6('0x14')](_0xbce6('0xa'),auth[_0xbce6('0x8')](),controller[_0xbce6('0x15')]);module[_0xbce6('0x16')]=router;