ea91aeaacad10918b720f5c6b38ff55dd920c150
[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 _0xc6f7=['isAuthenticated','index','/:id','post','put','update','destroy','util','path','connect-timeout','express','fs-extra','../../components/interaction/service','./intFreshdeskField.controller','get'];(function(_0x3a21c0,_0x348451){var _0x411e84=function(_0xdd7b02){while(--_0xdd7b02){_0x3a21c0['push'](_0x3a21c0['shift']());}};_0x411e84(++_0x348451);}(_0xc6f7,0x70));var _0x7c6f=function(_0xf8be97,_0x14c860){_0xf8be97=_0xf8be97-0x0;var _0x1bbed1=_0xc6f7[_0xf8be97];return _0x1bbed1;};'use strict';var multer=require('multer');var util=require(_0x7c6f('0x0'));var path=require(_0x7c6f('0x1'));var timeout=require(_0x7c6f('0x2'));var express=require(_0x7c6f('0x3'));var router=express['Router']();var fs_extra=require(_0x7c6f('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x7c6f('0x5'));var config=require('../../config/environment');var controller=require(_0x7c6f('0x6'));router[_0x7c6f('0x7')]('/',auth[_0x7c6f('0x8')](),controller[_0x7c6f('0x9')]);router[_0x7c6f('0x7')](_0x7c6f('0xa'),auth[_0x7c6f('0x8')](),controller['show']);router[_0x7c6f('0xb')]('/',auth[_0x7c6f('0x8')](),controller['create']);router[_0x7c6f('0xc')](_0x7c6f('0xa'),auth[_0x7c6f('0x8')](),controller[_0x7c6f('0xd')]);router['delete'](_0x7c6f('0xa'),auth['isAuthenticated'](),controller[_0x7c6f('0xe')]);module['exports']=router;