Built motion from commit (unavailable).|2.5.4
[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 _0xc533=['/:id/configurations','getConfigurations','/:id/fields','getFields','post','create','addConfiguration','put','/:id','update','destroy','multer','util','connect-timeout','Router','../../components/interaction/service','../../config/environment','./intSugarcrmAccount.controller','get','isAuthenticated'];(function(_0x26707f,_0x2bcfd5){var _0x3a19df=function(_0x2124cd){while(--_0x2124cd){_0x26707f['push'](_0x26707f['shift']());}};_0x3a19df(++_0x2bcfd5);}(_0xc533,0x1d7));var _0x3c53=function(_0x339129,_0x86dcc6){_0x339129=_0x339129-0x0;var _0x1570df=_0xc533[_0x339129];return _0x1570df;};'use strict';var multer=require(_0x3c53('0x0'));var util=require(_0x3c53('0x1'));var path=require('path');var timeout=require(_0x3c53('0x2'));var express=require('express');var router=express[_0x3c53('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0x3c53('0x4'));var config=require(_0x3c53('0x5'));var controller=require(_0x3c53('0x6'));router[_0x3c53('0x7')]('/',auth[_0x3c53('0x8')](),controller['index']);router[_0x3c53('0x7')]('/:id',auth[_0x3c53('0x8')](),controller['show']);router[_0x3c53('0x7')](_0x3c53('0x9'),auth[_0x3c53('0x8')](),controller[_0x3c53('0xa')]);router['get'](_0x3c53('0xb'),auth['isAuthenticated'](),controller[_0x3c53('0xc')]);router[_0x3c53('0xd')]('/',auth[_0x3c53('0x8')](),controller[_0x3c53('0xe')]);router[_0x3c53('0xd')](_0x3c53('0x9'),auth[_0x3c53('0x8')](),controller[_0x3c53('0xf')]);router[_0x3c53('0x10')](_0x3c53('0x11'),auth['isAuthenticated'](),controller[_0x3c53('0x12')]);router['delete'](_0x3c53('0x11'),auth[_0x3c53('0x8')](),controller[_0x3c53('0x13')]);module['exports']=router;