Built motion from commit 85328c08.|2.5.50
[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 _0x9c4f=['/:id','show','post','isAuthenticated','create','update','delete','destroy','multer','util','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./intFreshdeskField.controller'];(function(_0x54691e,_0x28b041){var _0x5520b2=function(_0x501a05){while(--_0x501a05){_0x54691e['push'](_0x54691e['shift']());}};_0x5520b2(++_0x28b041);}(_0x9c4f,0x168));var _0xf9c4=function(_0x1e2057,_0x5076ec){_0x1e2057=_0x1e2057-0x0;var _0x2ec031=_0x9c4f[_0x1e2057];return _0x2ec031;};'use strict';var multer=require(_0xf9c4('0x0'));var util=require(_0xf9c4('0x1'));var path=require('path');var timeout=require(_0xf9c4('0x2'));var express=require(_0xf9c4('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xf9c4('0x4'));var interaction=require(_0xf9c4('0x5'));var config=require(_0xf9c4('0x6'));var controller=require(_0xf9c4('0x7'));router['get']('/',auth['isAuthenticated'](),controller['index']);router['get'](_0xf9c4('0x8'),auth['isAuthenticated'](),controller[_0xf9c4('0x9')]);router[_0xf9c4('0xa')]('/',auth[_0xf9c4('0xb')](),controller[_0xf9c4('0xc')]);router['put'](_0xf9c4('0x8'),auth['isAuthenticated'](),controller[_0xf9c4('0xd')]);router[_0xf9c4('0xe')](_0xf9c4('0x8'),auth[_0xf9c4('0xb')](),controller[_0xf9c4('0xf')]);module['exports']=router;