Built motion from commit 936e8062.|2.5.33
[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 _0xdd29=['path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','/:id','show','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','/:id/fields','getFields','post','update','delete','destroy','multer','util'];(function(_0x59ee6f,_0x450239){var _0x4c0979=function(_0x565e92){while(--_0x565e92){_0x59ee6f['push'](_0x59ee6f['shift']());}};_0x4c0979(++_0x450239);}(_0xdd29,0x185));var _0x9dd2=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xdd29[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0x9dd2('0x0'));var util=require(_0x9dd2('0x1'));var path=require(_0x9dd2('0x2'));var timeout=require(_0x9dd2('0x3'));var express=require(_0x9dd2('0x4'));var router=express['Router']();var fs_extra=require(_0x9dd2('0x5'));var auth=require(_0x9dd2('0x6'));var interaction=require(_0x9dd2('0x7'));var config=require('../../config/environment');var controller=require('./intFreshsalesConfiguration.controller');router[_0x9dd2('0x8')]('/',auth[_0x9dd2('0x9')](),controller[_0x9dd2('0xa')]);router[_0x9dd2('0x8')](_0x9dd2('0xb'),auth[_0x9dd2('0x9')](),controller[_0x9dd2('0xc')]);router[_0x9dd2('0x8')](_0x9dd2('0xd'),auth['isAuthenticated'](),controller[_0x9dd2('0xe')]);router[_0x9dd2('0x8')](_0x9dd2('0xf'),auth['isAuthenticated'](),controller[_0x9dd2('0x10')]);router[_0x9dd2('0x8')](_0x9dd2('0x11'),auth[_0x9dd2('0x9')](),controller[_0x9dd2('0x12')]);router[_0x9dd2('0x13')]('/',auth[_0x9dd2('0x9')](),controller['create']);router['put']('/:id',auth[_0x9dd2('0x9')](),controller[_0x9dd2('0x14')]);router[_0x9dd2('0x15')](_0x9dd2('0xb'),auth['isAuthenticated'](),controller[_0x9dd2('0x16')]);module['exports']=router;