Built motion from commit (unavailable).|2.5.30
[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 _0xfe60=['addConfiguration','put','update','destroy','exports','multer','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','/:id/configurations','getConfigurations','getFields','create','post'];(function(_0x179d65,_0x46dd3b){var _0x16135f=function(_0x4c7674){while(--_0x4c7674){_0x179d65['push'](_0x179d65['shift']());}};_0x16135f(++_0x46dd3b);}(_0xfe60,0x14f));var _0x0fe6=function(_0x498219,_0x28eb06){_0x498219=_0x498219-0x0;var _0x1e04c6=_0xfe60[_0x498219];return _0x1e04c6;};'use strict';var multer=require(_0x0fe6('0x0'));var util=require('util');var path=require(_0x0fe6('0x1'));var timeout=require('connect-timeout');var express=require(_0x0fe6('0x2'));var router=express[_0x0fe6('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x0fe6('0x4'));var interaction=require(_0x0fe6('0x5'));var config=require(_0x0fe6('0x6'));var controller=require('./intFreshdeskAccount.controller');router[_0x0fe6('0x7')]('/',auth[_0x0fe6('0x8')](),controller[_0x0fe6('0x9')]);router['get'](_0x0fe6('0xa'),auth[_0x0fe6('0x8')](),controller[_0x0fe6('0xb')]);router[_0x0fe6('0x7')](_0x0fe6('0xc'),auth[_0x0fe6('0x8')](),controller[_0x0fe6('0xd')]);router[_0x0fe6('0x7')]('/:id/fields',auth[_0x0fe6('0x8')](),controller[_0x0fe6('0xe')]);router['post']('/',auth[_0x0fe6('0x8')](),controller[_0x0fe6('0xf')]);router[_0x0fe6('0x10')]('/:id/configurations',auth[_0x0fe6('0x8')](),controller[_0x0fe6('0x11')]);router[_0x0fe6('0x12')](_0x0fe6('0xa'),auth[_0x0fe6('0x8')](),controller[_0x0fe6('0x13')]);router['delete'](_0x0fe6('0xa'),auth['isAuthenticated'](),controller[_0x0fe6('0x14')]);module[_0x0fe6('0x15')]=router;