a31879021f8994ff1176b63859a33c9e865c509f
[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 _0xedb9=['get','isAuthenticated','show','post','create','put','/:id','delete','exports','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intServicenowField.controller'];(function(_0x3b4a61,_0x125b47){var _0x2fac06=function(_0x1c99d4){while(--_0x1c99d4){_0x3b4a61['push'](_0x3b4a61['shift']());}};_0x2fac06(++_0x125b47);}(_0xedb9,0xb3));var _0x9edb=function(_0x314aff,_0xe6e8a2){_0x314aff=_0x314aff-0x0;var _0xf835e3=_0xedb9[_0x314aff];return _0xf835e3;};'use strict';var multer=require('multer');var util=require(_0x9edb('0x0'));var path=require('path');var timeout=require(_0x9edb('0x1'));var express=require(_0x9edb('0x2'));var router=express[_0x9edb('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x9edb('0x4'));var interaction=require(_0x9edb('0x5'));var config=require(_0x9edb('0x6'));var controller=require(_0x9edb('0x7'));router[_0x9edb('0x8')]('/',auth[_0x9edb('0x9')](),controller['index']);router[_0x9edb('0x8')]('/:id',auth[_0x9edb('0x9')](),controller[_0x9edb('0xa')]);router[_0x9edb('0xb')]('/',auth[_0x9edb('0x9')](),controller[_0x9edb('0xc')]);router[_0x9edb('0xd')](_0x9edb('0xe'),auth['isAuthenticated'](),controller['update']);router[_0x9edb('0xf')]('/:id',auth[_0x9edb('0x9')](),controller['destroy']);module[_0x9edb('0x10')]=router;