Built motion from commit 616d3211.|2.6.4
[motion2.git] / server / api / intServicenowField / 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 _0x23e2=['fs-extra','../../components/auth/service','../../components/interaction/service','./intServicenowField.controller','get','isAuthenticated','index','/:id','post','create','destroy','exports','multer','connect-timeout','express'];(function(_0x38fcec,_0xbfed2d){var _0x4a3f9c=function(_0x30c36d){while(--_0x30c36d){_0x38fcec['push'](_0x38fcec['shift']());}};_0x4a3f9c(++_0xbfed2d);}(_0x23e2,0xa2));var _0x223e=function(_0x5377a1,_0x22e1e4){_0x5377a1=_0x5377a1-0x0;var _0x45ff6f=_0x23e2[_0x5377a1];return _0x45ff6f;};'use strict';var multer=require(_0x223e('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x223e('0x1'));var express=require(_0x223e('0x2'));var router=express['Router']();var fs_extra=require(_0x223e('0x3'));var auth=require(_0x223e('0x4'));var interaction=require(_0x223e('0x5'));var config=require('../../config/environment');var controller=require(_0x223e('0x6'));router[_0x223e('0x7')]('/',auth[_0x223e('0x8')](),controller[_0x223e('0x9')]);router[_0x223e('0x7')](_0x223e('0xa'),auth['isAuthenticated'](),controller['show']);router[_0x223e('0xb')]('/',auth[_0x223e('0x8')](),controller[_0x223e('0xc')]);router['put'](_0x223e('0xa'),auth[_0x223e('0x8')](),controller['update']);router['delete'](_0x223e('0xa'),auth[_0x223e('0x8')](),controller[_0x223e('0xd')]);module[_0x223e('0xe')]=router;