faab1cbe1d67875f9cc3a42c5418dd807b64aab4
[motion2.git] / server / api / intSugarcrmConfiguration / 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 _0x77be=['isAuthenticated','/:id','show','/:id/subjects','getSubjects','getDescriptions','put','update','delete','destroy','exports','multer','util','path','connect-timeout','Router','../../components/auth/service','../../config/environment','./intSugarcrmConfiguration.controller','get'];(function(_0xd9293c,_0x74eb8b){var _0xee40da=function(_0xedb592){while(--_0xedb592){_0xd9293c['push'](_0xd9293c['shift']());}};_0xee40da(++_0x74eb8b);}(_0x77be,0xe7));var _0xe77b=function(_0x565d71,_0x4522f2){_0x565d71=_0x565d71-0x0;var _0x10c8a0=_0x77be[_0x565d71];return _0x10c8a0;};'use strict';var multer=require(_0xe77b('0x0'));var util=require(_0xe77b('0x1'));var path=require(_0xe77b('0x2'));var timeout=require(_0xe77b('0x3'));var express=require('express');var router=express[_0xe77b('0x4')]();var auth=require(_0xe77b('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xe77b('0x6'));var controller=require(_0xe77b('0x7'));router[_0xe77b('0x8')]('/',auth[_0xe77b('0x9')](),controller['index']);router[_0xe77b('0x8')](_0xe77b('0xa'),auth[_0xe77b('0x9')](),controller[_0xe77b('0xb')]);router['get']('/:id/fields',auth[_0xe77b('0x9')](),controller['getFields']);router[_0xe77b('0x8')](_0xe77b('0xc'),auth[_0xe77b('0x9')](),controller[_0xe77b('0xd')]);router[_0xe77b('0x8')]('/:id/descriptions',auth[_0xe77b('0x9')](),controller[_0xe77b('0xe')]);router['post']('/',auth[_0xe77b('0x9')](),controller['create']);router[_0xe77b('0xf')]('/:id',auth[_0xe77b('0x9')](),controller[_0xe77b('0x10')]);router[_0xe77b('0x11')](_0xe77b('0xa'),auth[_0xe77b('0x9')](),controller[_0xe77b('0x12')]);module[_0xe77b('0x13')]=router;