Built motion from commit 1fa89557.|2.6.10
[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 _0x03e4=['update','delete','/:id','destroy','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','show','post','create','put'];(function(_0xc15a99,_0x47af96){var _0x9d4e28=function(_0x5b24e3){while(--_0x5b24e3){_0xc15a99['push'](_0xc15a99['shift']());}};_0x9d4e28(++_0x47af96);}(_0x03e4,0xa5));var _0x403e=function(_0x5b13c3,_0x378e0a){_0x5b13c3=_0x5b13c3-0x0;var _0x3d6780=_0x03e4[_0x5b13c3];return _0x3d6780;};'use strict';var multer=require(_0x403e('0x0'));var util=require(_0x403e('0x1'));var path=require('path');var timeout=require(_0x403e('0x2'));var express=require(_0x403e('0x3'));var router=express[_0x403e('0x4')]();var fs_extra=require(_0x403e('0x5'));var auth=require(_0x403e('0x6'));var interaction=require(_0x403e('0x7'));var config=require('../../config/environment');var controller=require('./intFreshdeskField.controller');router[_0x403e('0x8')]('/',auth[_0x403e('0x9')](),controller[_0x403e('0xa')]);router['get']('/:id',auth['isAuthenticated'](),controller[_0x403e('0xb')]);router[_0x403e('0xc')]('/',auth[_0x403e('0x9')](),controller[_0x403e('0xd')]);router[_0x403e('0xe')]('/:id',auth[_0x403e('0x9')](),controller[_0x403e('0xf')]);router[_0x403e('0x10')](_0x403e('0x11'),auth[_0x403e('0x9')](),controller[_0x403e('0x12')]);module[_0x403e('0x13')]=router;