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