d59556d6f8d4e2546cbe4d6c3a06dc3df5bfab5f
[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 _0x3b6c=['isAuthenticated','index','/:id','show','post','update','delete','multer','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intZendeskField.controller','get'];(function(_0x407543,_0x56f93b){var _0x413318=function(_0x204cfc){while(--_0x204cfc){_0x407543['push'](_0x407543['shift']());}};_0x413318(++_0x56f93b);}(_0x3b6c,0x14a));var _0xc3b6=function(_0x45ebf2,_0x5deff1){_0x45ebf2=_0x45ebf2-0x0;var _0x944e5f=_0x3b6c[_0x45ebf2];return _0x944e5f;};'use strict';var multer=require(_0xc3b6('0x0'));var util=require('util');var path=require(_0xc3b6('0x1'));var timeout=require(_0xc3b6('0x2'));var express=require('express');var router=express[_0xc3b6('0x3')]();var fs_extra=require(_0xc3b6('0x4'));var auth=require(_0xc3b6('0x5'));var interaction=require(_0xc3b6('0x6'));var config=require(_0xc3b6('0x7'));var controller=require(_0xc3b6('0x8'));router[_0xc3b6('0x9')]('/',auth[_0xc3b6('0xa')](),controller[_0xc3b6('0xb')]);router[_0xc3b6('0x9')](_0xc3b6('0xc'),auth['isAuthenticated'](),controller[_0xc3b6('0xd')]);router[_0xc3b6('0xe')]('/',auth[_0xc3b6('0xa')](),controller['create']);router['put']('/:id',auth[_0xc3b6('0xa')](),controller[_0xc3b6('0xf')]);router[_0xc3b6('0x10')]('/:id',auth[_0xc3b6('0xa')](),controller['destroy']);module['exports']=router;