Built motion from commit 092f8824.|2.5.49
[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 _0x3913=['/:id/descriptions','getDescriptions','/:id/fields','getFields','post','put','update','delete','destroy','exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./intFreshsalesConfiguration.controller','get','isAuthenticated','/:id','/:id/subjects'];(function(_0x67a9ad,_0x5662c6){var _0x447d66=function(_0x48cbea){while(--_0x48cbea){_0x67a9ad['push'](_0x67a9ad['shift']());}};_0x447d66(++_0x5662c6);}(_0x3913,0x1a8));var _0x3391=function(_0x341a17,_0x14dc9e){_0x341a17=_0x341a17-0x0;var _0x4b9d46=_0x3913[_0x341a17];return _0x4b9d46;};'use strict';var multer=require(_0x3391('0x0'));var util=require('util');var path=require(_0x3391('0x1'));var timeout=require(_0x3391('0x2'));var express=require(_0x3391('0x3'));var router=express[_0x3391('0x4')]();var fs_extra=require(_0x3391('0x5'));var auth=require(_0x3391('0x6'));var interaction=require(_0x3391('0x7'));var config=require('../../config/environment');var controller=require(_0x3391('0x8'));router[_0x3391('0x9')]('/',auth[_0x3391('0xa')](),controller['index']);router[_0x3391('0x9')](_0x3391('0xb'),auth[_0x3391('0xa')](),controller['show']);router[_0x3391('0x9')](_0x3391('0xc'),auth[_0x3391('0xa')](),controller['getSubjects']);router[_0x3391('0x9')](_0x3391('0xd'),auth[_0x3391('0xa')](),controller[_0x3391('0xe')]);router['get'](_0x3391('0xf'),auth[_0x3391('0xa')](),controller[_0x3391('0x10')]);router[_0x3391('0x11')]('/',auth[_0x3391('0xa')](),controller['create']);router[_0x3391('0x12')](_0x3391('0xb'),auth['isAuthenticated'](),controller[_0x3391('0x13')]);router[_0x3391('0x14')](_0x3391('0xb'),auth[_0x3391('0xa')](),controller[_0x3391('0x15')]);module[_0x3391('0x16')]=router;