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