7b40ef1058a22c7311885d3f7a9b935b93e737ae
[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 _0x4c94=['get','isAuthenticated','index','show','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','/:id/fields','post','put','/:id','update','delete','destroy','exports','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./intFreshsalesConfiguration.controller'];(function(_0x1daaa9,_0x220393){var _0x1dd221=function(_0x492c61){while(--_0x492c61){_0x1daaa9['push'](_0x1daaa9['shift']());}};_0x1dd221(++_0x220393);}(_0x4c94,0xf6));var _0x44c9=function(_0x3c8e9a,_0x384306){_0x3c8e9a=_0x3c8e9a-0x0;var _0x2d4c57=_0x4c94[_0x3c8e9a];return _0x2d4c57;};'use strict';var multer=require('multer');var util=require(_0x44c9('0x0'));var path=require('path');var timeout=require(_0x44c9('0x1'));var express=require(_0x44c9('0x2'));var router=express[_0x44c9('0x3')]();var auth=require(_0x44c9('0x4'));var interaction=require(_0x44c9('0x5'));var config=require('../../config/environment');var controller=require(_0x44c9('0x6'));router[_0x44c9('0x7')]('/',auth[_0x44c9('0x8')](),controller[_0x44c9('0x9')]);router['get']('/:id',auth[_0x44c9('0x8')](),controller[_0x44c9('0xa')]);router[_0x44c9('0x7')](_0x44c9('0xb'),auth[_0x44c9('0x8')](),controller[_0x44c9('0xc')]);router[_0x44c9('0x7')](_0x44c9('0xd'),auth[_0x44c9('0x8')](),controller[_0x44c9('0xe')]);router[_0x44c9('0x7')](_0x44c9('0xf'),auth[_0x44c9('0x8')](),controller['getFields']);router[_0x44c9('0x10')]('/',auth[_0x44c9('0x8')](),controller['create']);router[_0x44c9('0x11')](_0x44c9('0x12'),auth['isAuthenticated'](),controller[_0x44c9('0x13')]);router[_0x44c9('0x14')](_0x44c9('0x12'),auth[_0x44c9('0x8')](),controller[_0x44c9('0x15')]);module[_0x44c9('0x16')]=router;