Built motion from commit 9d7072cc.|2.5.39
[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 _0xa901=['isAuthenticated','/:id/configurations','getConfigurations','/:id/fields','getFields','post','create','put','delete','/:id','destroy','util','path','connect-timeout','express','Router','./intFreshdeskAccount.controller','get','index'];(function(_0x3bf83f,_0x181cac){var _0x22c4a9=function(_0xb3ff0d){while(--_0xb3ff0d){_0x3bf83f['push'](_0x3bf83f['shift']());}};_0x22c4a9(++_0x181cac);}(_0xa901,0x14e));var _0x1a90=function(_0x106117,_0x120d2a){_0x106117=_0x106117-0x0;var _0x3bc161=_0xa901[_0x106117];return _0x3bc161;};'use strict';var multer=require('multer');var util=require(_0x1a90('0x0'));var path=require(_0x1a90('0x1'));var timeout=require(_0x1a90('0x2'));var express=require(_0x1a90('0x3'));var router=express[_0x1a90('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x1a90('0x5'));router[_0x1a90('0x6')]('/',auth['isAuthenticated'](),controller[_0x1a90('0x7')]);router[_0x1a90('0x6')]('/:id',auth[_0x1a90('0x8')](),controller['show']);router[_0x1a90('0x6')](_0x1a90('0x9'),auth['isAuthenticated'](),controller[_0x1a90('0xa')]);router[_0x1a90('0x6')](_0x1a90('0xb'),auth[_0x1a90('0x8')](),controller[_0x1a90('0xc')]);router[_0x1a90('0xd')]('/',auth[_0x1a90('0x8')](),controller[_0x1a90('0xe')]);router[_0x1a90('0xd')](_0x1a90('0x9'),auth['isAuthenticated'](),controller['addConfiguration']);router[_0x1a90('0xf')]('/:id',auth[_0x1a90('0x8')](),controller['update']);router[_0x1a90('0x10')](_0x1a90('0x11'),auth[_0x1a90('0x8')](),controller[_0x1a90('0x12')]);module['exports']=router;