674a9463b8fc85e20a26d241a535d78dcf976a63
[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 _0xfe7a=['../../config/environment','./intFreshdeskAccount.controller','/:id','isAuthenticated','show','get','/:id/configurations','getConfigurations','/:id/fields','getFields','create','addConfiguration','put','update','destroy','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service'];(function(_0x40ac5e,_0x2de228){var _0x2839d6=function(_0x123d47){while(--_0x123d47){_0x40ac5e['push'](_0x40ac5e['shift']());}};_0x2839d6(++_0x2de228);}(_0xfe7a,0x17f));var _0xafe7=function(_0x1eda08,_0x38d31a){_0x1eda08=_0x1eda08-0x0;var _0x100b9e=_0xfe7a[_0x1eda08];return _0x100b9e;};'use strict';var multer=require(_0xafe7('0x0'));var util=require(_0xafe7('0x1'));var path=require(_0xafe7('0x2'));var timeout=require(_0xafe7('0x3'));var express=require(_0xafe7('0x4'));var router=express[_0xafe7('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0xafe7('0x6'));var interaction=require(_0xafe7('0x7'));var config=require(_0xafe7('0x8'));var controller=require(_0xafe7('0x9'));router['get']('/',auth['isAuthenticated'](),controller['index']);router['get'](_0xafe7('0xa'),auth[_0xafe7('0xb')](),controller[_0xafe7('0xc')]);router[_0xafe7('0xd')](_0xafe7('0xe'),auth[_0xafe7('0xb')](),controller[_0xafe7('0xf')]);router[_0xafe7('0xd')](_0xafe7('0x10'),auth[_0xafe7('0xb')](),controller[_0xafe7('0x11')]);router['post']('/',auth[_0xafe7('0xb')](),controller[_0xafe7('0x12')]);router['post'](_0xafe7('0xe'),auth[_0xafe7('0xb')](),controller[_0xafe7('0x13')]);router[_0xafe7('0x14')](_0xafe7('0xa'),auth[_0xafe7('0xb')](),controller[_0xafe7('0x15')]);router['delete'](_0xafe7('0xa'),auth['isAuthenticated'](),controller[_0xafe7('0x16')]);module['exports']=router;