Built motion from commit 97153652.|2.6.26
[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 _0x2485=['get','isAuthenticated','/:id','post','create','put','update','delete','exports','multer','connect-timeout','../../components/auth/service','../../components/interaction/service','../../config/environment','./intFreshdeskField.controller'];(function(_0x32ab63,_0x4d6d70){var _0x18af42=function(_0x25397a){while(--_0x25397a){_0x32ab63['push'](_0x32ab63['shift']());}};_0x18af42(++_0x4d6d70);}(_0x2485,0x108));var _0x5248=function(_0x5be8db,_0x1f198f){_0x5be8db=_0x5be8db-0x0;var _0x2e8b8b=_0x2485[_0x5be8db];return _0x2e8b8b;};'use strict';var multer=require(_0x5248('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x5248('0x1'));var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x5248('0x2'));var interaction=require(_0x5248('0x3'));var config=require(_0x5248('0x4'));var controller=require(_0x5248('0x5'));router[_0x5248('0x6')]('/',auth[_0x5248('0x7')](),controller['index']);router['get'](_0x5248('0x8'),auth[_0x5248('0x7')](),controller['show']);router[_0x5248('0x9')]('/',auth[_0x5248('0x7')](),controller[_0x5248('0xa')]);router[_0x5248('0xb')](_0x5248('0x8'),auth[_0x5248('0x7')](),controller[_0x5248('0xc')]);router[_0x5248('0xd')](_0x5248('0x8'),auth['isAuthenticated'](),controller['destroy']);module[_0x5248('0xe')]=router;