1b38e8c56a633577e697c0c3af9fb6d8913c6848
[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 _0x8b94=['create','addConfiguration','put','update','delete','destroy','exports','multer','util','connect-timeout','express','../../components/auth/service','../../components/interaction/service','./intFreshdeskAccount.controller','get','isAuthenticated','index','/:id','show','/:id/configurations','getConfigurations','getFields','post'];(function(_0x17f146,_0x3f1bd3){var _0x412983=function(_0x10b42e){while(--_0x10b42e){_0x17f146['push'](_0x17f146['shift']());}};_0x412983(++_0x3f1bd3);}(_0x8b94,0x160));var _0x48b9=function(_0x47abde,_0x1adbbe){_0x47abde=_0x47abde-0x0;var _0x33254a=_0x8b94[_0x47abde];return _0x33254a;};'use strict';var multer=require(_0x48b9('0x0'));var util=require(_0x48b9('0x1'));var path=require('path');var timeout=require(_0x48b9('0x2'));var express=require(_0x48b9('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x48b9('0x4'));var interaction=require(_0x48b9('0x5'));var config=require('../../config/environment');var controller=require(_0x48b9('0x6'));router[_0x48b9('0x7')]('/',auth[_0x48b9('0x8')](),controller[_0x48b9('0x9')]);router['get'](_0x48b9('0xa'),auth[_0x48b9('0x8')](),controller[_0x48b9('0xb')]);router[_0x48b9('0x7')](_0x48b9('0xc'),auth['isAuthenticated'](),controller[_0x48b9('0xd')]);router['get']('/:id/fields',auth[_0x48b9('0x8')](),controller[_0x48b9('0xe')]);router[_0x48b9('0xf')]('/',auth[_0x48b9('0x8')](),controller[_0x48b9('0x10')]);router[_0x48b9('0xf')]('/:id/configurations',auth[_0x48b9('0x8')](),controller[_0x48b9('0x11')]);router[_0x48b9('0x12')](_0x48b9('0xa'),auth['isAuthenticated'](),controller[_0x48b9('0x13')]);router[_0x48b9('0x14')]('/:id',auth[_0x48b9('0x8')](),controller[_0x48b9('0x15')]);module[_0x48b9('0x16')]=router;