8c0f4990e2478cebb5258afea8209ca783401cf6
[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 _0x9f12=['connect-timeout','Router','fs-extra','../../components/interaction/service','../../config/environment','./intFreshdeskAccount.controller','get','index','/:id','isAuthenticated','show','/:id/configurations','getConfigurations','getFields','create','post','addConfiguration','update','delete','destroy','exports','multer','util','path'];(function(_0x27c14d,_0x7ba5d1){var _0x1ca396=function(_0x2088e5){while(--_0x2088e5){_0x27c14d['push'](_0x27c14d['shift']());}};_0x1ca396(++_0x7ba5d1);}(_0x9f12,0x8d));var _0x29f1=function(_0x3e779c,_0x546ea2){_0x3e779c=_0x3e779c-0x0;var _0x22ab11=_0x9f12[_0x3e779c];return _0x22ab11;};'use strict';var multer=require(_0x29f1('0x0'));var util=require(_0x29f1('0x1'));var path=require(_0x29f1('0x2'));var timeout=require(_0x29f1('0x3'));var express=require('express');var router=express[_0x29f1('0x4')]();var fs_extra=require(_0x29f1('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x29f1('0x6'));var config=require(_0x29f1('0x7'));var controller=require(_0x29f1('0x8'));router[_0x29f1('0x9')]('/',auth['isAuthenticated'](),controller[_0x29f1('0xa')]);router['get'](_0x29f1('0xb'),auth[_0x29f1('0xc')](),controller[_0x29f1('0xd')]);router[_0x29f1('0x9')](_0x29f1('0xe'),auth[_0x29f1('0xc')](),controller[_0x29f1('0xf')]);router[_0x29f1('0x9')]('/:id/fields',auth[_0x29f1('0xc')](),controller[_0x29f1('0x10')]);router['post']('/',auth[_0x29f1('0xc')](),controller[_0x29f1('0x11')]);router[_0x29f1('0x12')](_0x29f1('0xe'),auth[_0x29f1('0xc')](),controller[_0x29f1('0x13')]);router['put'](_0x29f1('0xb'),auth[_0x29f1('0xc')](),controller[_0x29f1('0x14')]);router[_0x29f1('0x15')](_0x29f1('0xb'),auth[_0x29f1('0xc')](),controller[_0x29f1('0x16')]);module[_0x29f1('0x17')]=router;