Built motion from commit 14588770.|2.5.38
[motion2.git] / server / api / intFreshsalesConfiguration / 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 _0xff8e=['update','delete','exports','multer','util','path','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intFreshsalesConfiguration.controller','get','isAuthenticated','index','/:id','show','getSubjects','/:id/descriptions','/:id/fields','getFields','create'];(function(_0xa267fd,_0x58b90e){var _0xfd7ec1=function(_0x1b5d3e){while(--_0x1b5d3e){_0xa267fd['push'](_0xa267fd['shift']());}};_0xfd7ec1(++_0x58b90e);}(_0xff8e,0xc0));var _0xeff8=function(_0x4ff7a8,_0x430b72){_0x4ff7a8=_0x4ff7a8-0x0;var _0x444b3d=_0xff8e[_0x4ff7a8];return _0x444b3d;};'use strict';var multer=require(_0xeff8('0x0'));var util=require(_0xeff8('0x1'));var path=require(_0xeff8('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xeff8('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xeff8('0x4'));var interaction=require(_0xeff8('0x5'));var config=require(_0xeff8('0x6'));var controller=require(_0xeff8('0x7'));router[_0xeff8('0x8')]('/',auth[_0xeff8('0x9')](),controller[_0xeff8('0xa')]);router[_0xeff8('0x8')](_0xeff8('0xb'),auth[_0xeff8('0x9')](),controller[_0xeff8('0xc')]);router[_0xeff8('0x8')]('/:id/subjects',auth['isAuthenticated'](),controller[_0xeff8('0xd')]);router[_0xeff8('0x8')](_0xeff8('0xe'),auth[_0xeff8('0x9')](),controller['getDescriptions']);router['get'](_0xeff8('0xf'),auth[_0xeff8('0x9')](),controller[_0xeff8('0x10')]);router['post']('/',auth[_0xeff8('0x9')](),controller[_0xeff8('0x11')]);router['put']('/:id',auth[_0xeff8('0x9')](),controller[_0xeff8('0x12')]);router[_0xeff8('0x13')](_0xeff8('0xb'),auth[_0xeff8('0x9')](),controller['destroy']);module[_0xeff8('0x14')]=router;