Built motion from commit 85328c08.|2.5.50
[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 _0xcc78=['../../config/environment','./intFreshdeskAccount.controller','isAuthenticated','index','get','getConfigurations','/:id/fields','getFields','post','create','/:id/configurations','put','update','destroy','exports','util','path','connect-timeout','express','Router','fs-extra'];(function(_0x1450c7,_0x464adb){var _0x216e6c=function(_0x4f4eec){while(--_0x4f4eec){_0x1450c7['push'](_0x1450c7['shift']());}};_0x216e6c(++_0x464adb);}(_0xcc78,0xf6));var _0x8cc7=function(_0x11066a,_0x347efe){_0x11066a=_0x11066a-0x0;var _0x58d875=_0xcc78[_0x11066a];return _0x58d875;};'use strict';var multer=require('multer');var util=require(_0x8cc7('0x0'));var path=require(_0x8cc7('0x1'));var timeout=require(_0x8cc7('0x2'));var express=require(_0x8cc7('0x3'));var router=express[_0x8cc7('0x4')]();var fs_extra=require(_0x8cc7('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x8cc7('0x6'));var controller=require(_0x8cc7('0x7'));router['get']('/',auth[_0x8cc7('0x8')](),controller[_0x8cc7('0x9')]);router['get']('/:id',auth[_0x8cc7('0x8')](),controller['show']);router[_0x8cc7('0xa')]('/:id/configurations',auth[_0x8cc7('0x8')](),controller[_0x8cc7('0xb')]);router[_0x8cc7('0xa')](_0x8cc7('0xc'),auth[_0x8cc7('0x8')](),controller[_0x8cc7('0xd')]);router[_0x8cc7('0xe')]('/',auth[_0x8cc7('0x8')](),controller[_0x8cc7('0xf')]);router[_0x8cc7('0xe')](_0x8cc7('0x10'),auth[_0x8cc7('0x8')](),controller['addConfiguration']);router[_0x8cc7('0x11')]('/:id',auth['isAuthenticated'](),controller[_0x8cc7('0x12')]);router['delete']('/:id',auth[_0x8cc7('0x8')](),controller[_0x8cc7('0x13')]);module[_0x8cc7('0x14')]=router;