09ec29c65fc032cfa3395d10eee984c333c241bb
[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 _0xf4d9=['fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intFreshdeskAccount.controller','get','isAuthenticated','index','/:id','/:id/configurations','getConfigurations','getFields','create','post','addConfiguration','update','delete','destroy','exports','util','path','connect-timeout','express'];(function(_0x113a6c,_0x10df30){var _0x1ac632=function(_0xbd4fb9){while(--_0xbd4fb9){_0x113a6c['push'](_0x113a6c['shift']());}};_0x1ac632(++_0x10df30);}(_0xf4d9,0x1b1));var _0x9f4d=function(_0x1669cc,_0x227ed6){_0x1669cc=_0x1669cc-0x0;var _0x3ce80c=_0xf4d9[_0x1669cc];return _0x3ce80c;};'use strict';var multer=require('multer');var util=require(_0x9f4d('0x0'));var path=require(_0x9f4d('0x1'));var timeout=require(_0x9f4d('0x2'));var express=require(_0x9f4d('0x3'));var router=express['Router']();var fs_extra=require(_0x9f4d('0x4'));var auth=require(_0x9f4d('0x5'));var interaction=require(_0x9f4d('0x6'));var config=require(_0x9f4d('0x7'));var controller=require(_0x9f4d('0x8'));router[_0x9f4d('0x9')]('/',auth[_0x9f4d('0xa')](),controller[_0x9f4d('0xb')]);router[_0x9f4d('0x9')](_0x9f4d('0xc'),auth[_0x9f4d('0xa')](),controller['show']);router[_0x9f4d('0x9')](_0x9f4d('0xd'),auth[_0x9f4d('0xa')](),controller[_0x9f4d('0xe')]);router[_0x9f4d('0x9')]('/:id/fields',auth[_0x9f4d('0xa')](),controller[_0x9f4d('0xf')]);router['post']('/',auth[_0x9f4d('0xa')](),controller[_0x9f4d('0x10')]);router[_0x9f4d('0x11')](_0x9f4d('0xd'),auth[_0x9f4d('0xa')](),controller[_0x9f4d('0x12')]);router['put'](_0x9f4d('0xc'),auth[_0x9f4d('0xa')](),controller[_0x9f4d('0x13')]);router[_0x9f4d('0x14')](_0x9f4d('0xc'),auth[_0x9f4d('0xa')](),controller[_0x9f4d('0x15')]);module[_0x9f4d('0x16')]=router;