995fe4ac07e7a8ba4feb6ff6949c84f9c1ed20cc
[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 _0xa48d=['../../components/auth/service','../../config/environment','./intFreshsalesConfiguration.controller','get','/:id','show','/:id/subjects','getSubjects','/:id/descriptions','isAuthenticated','create','update','delete','destroy','exports','connect-timeout','fs-extra'];(function(_0x4264cc,_0x4e0e1c){var _0x4799e5=function(_0x294795){while(--_0x294795){_0x4264cc['push'](_0x4264cc['shift']());}};_0x4799e5(++_0x4e0e1c);}(_0xa48d,0xb9));var _0xda48=function(_0x2ecf8a,_0x582803){_0x2ecf8a=_0x2ecf8a-0x0;var _0x13f417=_0xa48d[_0x2ecf8a];return _0x13f417;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0xda48('0x0'));var express=require('express');var router=express['Router']();var fs_extra=require(_0xda48('0x1'));var auth=require(_0xda48('0x2'));var interaction=require('../../components/interaction/service');var config=require(_0xda48('0x3'));var controller=require(_0xda48('0x4'));router[_0xda48('0x5')]('/',auth['isAuthenticated'](),controller['index']);router[_0xda48('0x5')](_0xda48('0x6'),auth['isAuthenticated'](),controller[_0xda48('0x7')]);router[_0xda48('0x5')](_0xda48('0x8'),auth['isAuthenticated'](),controller[_0xda48('0x9')]);router['get'](_0xda48('0xa'),auth[_0xda48('0xb')](),controller['getDescriptions']);router['get']('/:id/fields',auth[_0xda48('0xb')](),controller['getFields']);router['post']('/',auth[_0xda48('0xb')](),controller[_0xda48('0xc')]);router['put']('/:id',auth[_0xda48('0xb')](),controller[_0xda48('0xd')]);router[_0xda48('0xe')](_0xda48('0x6'),auth[_0xda48('0xb')](),controller[_0xda48('0xf')]);module[_0xda48('0x10')]=router;