f829cdb6bd362902ce1453708c81fc0960ebe5bb
[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 _0x2b37=['multer','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./intFreshdeskAccount.controller','get','isAuthenticated','index','/:id','show','/:id/fields','getFields','post','create','/:id/configurations','addConfiguration','put','update','delete','destroy','exports'];(function(_0x353b4d,_0x55c457){var _0x4aa34a=function(_0x241632){while(--_0x241632){_0x353b4d['push'](_0x353b4d['shift']());}};_0x4aa34a(++_0x55c457);}(_0x2b37,0xfa));var _0x72b3=function(_0x1b2732,_0xaa3ad8){_0x1b2732=_0x1b2732-0x0;var _0x5bcc4f=_0x2b37[_0x1b2732];return _0x5bcc4f;};'use strict';var multer=require(_0x72b3('0x0'));var util=require('util');var path=require(_0x72b3('0x1'));var timeout=require(_0x72b3('0x2'));var express=require(_0x72b3('0x3'));var router=express[_0x72b3('0x4')]();var fs_extra=require(_0x72b3('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x72b3('0x6'));var config=require(_0x72b3('0x7'));var controller=require(_0x72b3('0x8'));router[_0x72b3('0x9')]('/',auth[_0x72b3('0xa')](),controller[_0x72b3('0xb')]);router['get'](_0x72b3('0xc'),auth[_0x72b3('0xa')](),controller[_0x72b3('0xd')]);router[_0x72b3('0x9')]('/:id/configurations',auth[_0x72b3('0xa')](),controller['getConfigurations']);router[_0x72b3('0x9')](_0x72b3('0xe'),auth[_0x72b3('0xa')](),controller[_0x72b3('0xf')]);router[_0x72b3('0x10')]('/',auth['isAuthenticated'](),controller[_0x72b3('0x11')]);router[_0x72b3('0x10')](_0x72b3('0x12'),auth[_0x72b3('0xa')](),controller[_0x72b3('0x13')]);router[_0x72b3('0x14')](_0x72b3('0xc'),auth[_0x72b3('0xa')](),controller[_0x72b3('0x15')]);router[_0x72b3('0x16')](_0x72b3('0xc'),auth[_0x72b3('0xa')](),controller[_0x72b3('0x17')]);module[_0x72b3('0x18')]=router;