Built motion from commit 9d1906d1.|2.5.40
[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 _0x45b5=['multer','path','connect-timeout','express','fs-extra','../../components/interaction/service','get','isAuthenticated','/:id','show','/:id/fields','getFields','/:id/subjects','getSubjects','post','create','put','update','delete','destroy','exports'];(function(_0x397e5f,_0x454c8f){var _0x5302b8=function(_0x1a29ef){while(--_0x1a29ef){_0x397e5f['push'](_0x397e5f['shift']());}};_0x5302b8(++_0x454c8f);}(_0x45b5,0xbd));var _0x545b=function(_0x2a21a7,_0x3684a7){_0x2a21a7=_0x2a21a7-0x0;var _0x4cb846=_0x45b5[_0x2a21a7];return _0x4cb846;};'use strict';var multer=require(_0x545b('0x0'));var util=require('util');var path=require(_0x545b('0x1'));var timeout=require(_0x545b('0x2'));var express=require(_0x545b('0x3'));var router=express['Router']();var fs_extra=require(_0x545b('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x545b('0x5'));var config=require('../../config/environment');var controller=require('./intSugarcrmConfiguration.controller');router[_0x545b('0x6')]('/',auth[_0x545b('0x7')](),controller['index']);router['get'](_0x545b('0x8'),auth[_0x545b('0x7')](),controller[_0x545b('0x9')]);router[_0x545b('0x6')](_0x545b('0xa'),auth[_0x545b('0x7')](),controller[_0x545b('0xb')]);router[_0x545b('0x6')](_0x545b('0xc'),auth[_0x545b('0x7')](),controller[_0x545b('0xd')]);router['get']('/:id/descriptions',auth[_0x545b('0x7')](),controller['getDescriptions']);router[_0x545b('0xe')]('/',auth[_0x545b('0x7')](),controller[_0x545b('0xf')]);router[_0x545b('0x10')](_0x545b('0x8'),auth[_0x545b('0x7')](),controller[_0x545b('0x11')]);router[_0x545b('0x12')](_0x545b('0x8'),auth[_0x545b('0x7')](),controller[_0x545b('0x13')]);module[_0x545b('0x14')]=router;