ba1a6f8844a4ae2eba814fae4a929085ad0f9bb2
[motion2.git] / server / api / intFreshdeskAccount / 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 _0x1c2b=['update','delete','exports','multer','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./intFreshdeskAccount.controller','get','isAuthenticated','/:id','/:id/configurations','getConfigurations','/:id/fields','getFields','post','create','addConfiguration','put'];(function(_0x21a9d9,_0x4d5ac8){var _0x46adce=function(_0xfdd336){while(--_0xfdd336){_0x21a9d9['push'](_0x21a9d9['shift']());}};_0x46adce(++_0x4d5ac8);}(_0x1c2b,0x168));var _0xb1c2=function(_0xb837f5,_0x3f80a9){_0xb837f5=_0xb837f5-0x0;var _0x357368=_0x1c2b[_0xb837f5];return _0x357368;};'use strict';var multer=require(_0xb1c2('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0xb1c2('0x1'));var router=express[_0xb1c2('0x2')]();var fs_extra=require(_0xb1c2('0x3'));var auth=require(_0xb1c2('0x4'));var interaction=require(_0xb1c2('0x5'));var config=require('../../config/environment');var controller=require(_0xb1c2('0x6'));router[_0xb1c2('0x7')]('/',auth[_0xb1c2('0x8')](),controller['index']);router[_0xb1c2('0x7')](_0xb1c2('0x9'),auth[_0xb1c2('0x8')](),controller['show']);router['get'](_0xb1c2('0xa'),auth[_0xb1c2('0x8')](),controller[_0xb1c2('0xb')]);router['get'](_0xb1c2('0xc'),auth['isAuthenticated'](),controller[_0xb1c2('0xd')]);router[_0xb1c2('0xe')]('/',auth[_0xb1c2('0x8')](),controller[_0xb1c2('0xf')]);router['post'](_0xb1c2('0xa'),auth['isAuthenticated'](),controller[_0xb1c2('0x10')]);router[_0xb1c2('0x11')]('/:id',auth[_0xb1c2('0x8')](),controller[_0xb1c2('0x12')]);router[_0xb1c2('0x13')](_0xb1c2('0x9'),auth[_0xb1c2('0x8')](),controller['destroy']);module[_0xb1c2('0x14')]=router;