bdd4137be55f5330ebfd3d005d7be762513f97d5
[motion2.git] / server / api / intZendeskField / 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 _0x132b=['Router','fs-extra','../../components/auth/service','../../config/environment','get','index','/:id','post','isAuthenticated','create','delete','exports','multer','util','path','connect-timeout'];(function(_0x1621dd,_0x172229){var _0x3b0046=function(_0x53ab32){while(--_0x53ab32){_0x1621dd['push'](_0x1621dd['shift']());}};_0x3b0046(++_0x172229);}(_0x132b,0x7c));var _0xb132=function(_0x1ffd44,_0x5a2059){_0x1ffd44=_0x1ffd44-0x0;var _0x5133da=_0x132b[_0x1ffd44];return _0x5133da;};'use strict';var multer=require(_0xb132('0x0'));var util=require(_0xb132('0x1'));var path=require(_0xb132('0x2'));var timeout=require(_0xb132('0x3'));var express=require('express');var router=express[_0xb132('0x4')]();var fs_extra=require(_0xb132('0x5'));var auth=require(_0xb132('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xb132('0x7'));var controller=require('./intZendeskField.controller');router[_0xb132('0x8')]('/',auth['isAuthenticated'](),controller[_0xb132('0x9')]);router[_0xb132('0x8')](_0xb132('0xa'),auth['isAuthenticated'](),controller['show']);router[_0xb132('0xb')]('/',auth[_0xb132('0xc')](),controller[_0xb132('0xd')]);router['put'](_0xb132('0xa'),auth[_0xb132('0xc')](),controller['update']);router[_0xb132('0xe')](_0xb132('0xa'),auth['isAuthenticated'](),controller['destroy']);module[_0xb132('0xf')]=router;