71cec9b576c6186ef0bf947c334c2b9b77e370d7
[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 _0xfc9c=['get','isAuthenticated','index','show','post','put','/:id','update','delete','destroy','multer','util','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x23e7c1,_0x35110c){var _0x1add43=function(_0x238918){while(--_0x238918){_0x23e7c1['push'](_0x23e7c1['shift']());}};_0x1add43(++_0x35110c);}(_0xfc9c,0xb4));var _0xcfc9=function(_0x43558e,_0x1a93f5){_0x43558e=_0x43558e-0x0;var _0xd45595=_0xfc9c[_0x43558e];return _0xd45595;};'use strict';var multer=require(_0xcfc9('0x0'));var util=require(_0xcfc9('0x1'));var path=require('path');var timeout=require(_0xcfc9('0x2'));var express=require('express');var router=express[_0xcfc9('0x3')]();var auth=require(_0xcfc9('0x4'));var interaction=require(_0xcfc9('0x5'));var config=require(_0xcfc9('0x6'));var controller=require('./intZendeskField.controller');router[_0xcfc9('0x7')]('/',auth[_0xcfc9('0x8')](),controller[_0xcfc9('0x9')]);router[_0xcfc9('0x7')]('/:id',auth['isAuthenticated'](),controller[_0xcfc9('0xa')]);router[_0xcfc9('0xb')]('/',auth[_0xcfc9('0x8')](),controller['create']);router[_0xcfc9('0xc')](_0xcfc9('0xd'),auth[_0xcfc9('0x8')](),controller[_0xcfc9('0xe')]);router[_0xcfc9('0xf')](_0xcfc9('0xd'),auth['isAuthenticated'](),controller[_0xcfc9('0x10')]);module['exports']=router;