Built motion from commit 7158bc59.|2.5.42
[motion2.git] / server / api / intFreshdeskField / 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 _0xc68c=['path','connect-timeout','Router','fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','post','create','update','delete','destroy','util'];(function(_0x21dda1,_0xa7ec61){var _0x478ee5=function(_0x3a862b){while(--_0x3a862b){_0x21dda1['push'](_0x21dda1['shift']());}};_0x478ee5(++_0xa7ec61);}(_0xc68c,0x1a8));var _0xcc68=function(_0x3d79eb,_0x579f87){_0x3d79eb=_0x3d79eb-0x0;var _0x37b77a=_0xc68c[_0x3d79eb];return _0x37b77a;};'use strict';var multer=require('multer');var util=require(_0xcc68('0x0'));var path=require(_0xcc68('0x1'));var timeout=require(_0xcc68('0x2'));var express=require('express');var router=express[_0xcc68('0x3')]();var fs_extra=require(_0xcc68('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xcc68('0x5'));var config=require(_0xcc68('0x6'));var controller=require('./intFreshdeskField.controller');router[_0xcc68('0x7')]('/',auth[_0xcc68('0x8')](),controller[_0xcc68('0x9')]);router[_0xcc68('0x7')](_0xcc68('0xa'),auth[_0xcc68('0x8')](),controller[_0xcc68('0xb')]);router[_0xcc68('0xc')]('/',auth['isAuthenticated'](),controller[_0xcc68('0xd')]);router['put'](_0xcc68('0xa'),auth[_0xcc68('0x8')](),controller[_0xcc68('0xe')]);router[_0xcc68('0xf')](_0xcc68('0xa'),auth[_0xcc68('0x8')](),controller[_0xcc68('0x10')]);module['exports']=router;