Built motion from commit (unavailable).|2.5.10
[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 _0xc3da=['Router','../../components/auth/service','./intFreshdeskAccount.controller','get','isAuthenticated','index','/:id','show','/:id/configurations','/:id/fields','getFields','post','create','put','update','delete','destroy','multer','util','express'];(function(_0x294f3d,_0x1b0f82){var _0x2c8f6c=function(_0x2303e6){while(--_0x2303e6){_0x294f3d['push'](_0x294f3d['shift']());}};_0x2c8f6c(++_0x1b0f82);}(_0xc3da,0x129));var _0xac3d=function(_0x2d8efc,_0x58e635){_0x2d8efc=_0x2d8efc-0x0;var _0x4a7f2d=_0xc3da[_0x2d8efc];return _0x4a7f2d;};'use strict';var multer=require(_0xac3d('0x0'));var util=require(_0xac3d('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xac3d('0x2'));var router=express[_0xac3d('0x3')]();var auth=require(_0xac3d('0x4'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xac3d('0x5'));router[_0xac3d('0x6')]('/',auth[_0xac3d('0x7')](),controller[_0xac3d('0x8')]);router[_0xac3d('0x6')](_0xac3d('0x9'),auth['isAuthenticated'](),controller[_0xac3d('0xa')]);router[_0xac3d('0x6')](_0xac3d('0xb'),auth[_0xac3d('0x7')](),controller['getConfigurations']);router[_0xac3d('0x6')](_0xac3d('0xc'),auth['isAuthenticated'](),controller[_0xac3d('0xd')]);router[_0xac3d('0xe')]('/',auth[_0xac3d('0x7')](),controller[_0xac3d('0xf')]);router['post']('/:id/configurations',auth[_0xac3d('0x7')](),controller['addConfiguration']);router[_0xac3d('0x10')](_0xac3d('0x9'),auth[_0xac3d('0x7')](),controller[_0xac3d('0x11')]);router[_0xac3d('0x12')](_0xac3d('0x9'),auth[_0xac3d('0x7')](),controller[_0xac3d('0x13')]);module['exports']=router;