8f207e6ae296bd057994ea67849a410690e5352c
[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 _0x74e2=['fs-extra','../../config/environment','/:id','isAuthenticated','show','post','create','put','update','delete','destroy','multer','connect-timeout','express','Router'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x74e2,0x65));var _0x274e=function(_0x120bb9,_0x50cf04){_0x120bb9=_0x120bb9-0x0;var _0x5c37ef=_0x74e2[_0x120bb9];return _0x5c37ef;};'use strict';var multer=require(_0x274e('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x274e('0x1'));var express=require(_0x274e('0x2'));var router=express[_0x274e('0x3')]();var fs_extra=require(_0x274e('0x4'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x274e('0x5'));var controller=require('./intZendeskField.controller');router['get']('/',auth['isAuthenticated'](),controller['index']);router['get'](_0x274e('0x6'),auth[_0x274e('0x7')](),controller[_0x274e('0x8')]);router[_0x274e('0x9')]('/',auth[_0x274e('0x7')](),controller[_0x274e('0xa')]);router[_0x274e('0xb')]('/:id',auth[_0x274e('0x7')](),controller[_0x274e('0xc')]);router[_0x274e('0xd')](_0x274e('0x6'),auth[_0x274e('0x7')](),controller[_0x274e('0xe')]);module['exports']=router;