Built motion from commit 994c64e1.|2.6.1
[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 _0x6ff1=['fs-extra','../../components/interaction/service','../../config/environment','./intServicenowField.controller','index','get','isAuthenticated','show','post','/:id','update','delete','destroy','exports','multer','util','path','connect-timeout','Router'];(function(_0x242d43,_0x31e07b){var _0x4b5370=function(_0x278c60){while(--_0x278c60){_0x242d43['push'](_0x242d43['shift']());}};_0x4b5370(++_0x31e07b);}(_0x6ff1,0xcc));var _0x16ff=function(_0x4f38a5,_0x51d4e3){_0x4f38a5=_0x4f38a5-0x0;var _0x24ed72=_0x6ff1[_0x4f38a5];return _0x24ed72;};'use strict';var multer=require(_0x16ff('0x0'));var util=require(_0x16ff('0x1'));var path=require(_0x16ff('0x2'));var timeout=require(_0x16ff('0x3'));var express=require('express');var router=express[_0x16ff('0x4')]();var fs_extra=require(_0x16ff('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x16ff('0x6'));var config=require(_0x16ff('0x7'));var controller=require(_0x16ff('0x8'));router['get']('/',auth['isAuthenticated'](),controller[_0x16ff('0x9')]);router[_0x16ff('0xa')]('/:id',auth[_0x16ff('0xb')](),controller[_0x16ff('0xc')]);router[_0x16ff('0xd')]('/',auth[_0x16ff('0xb')](),controller['create']);router['put'](_0x16ff('0xe'),auth[_0x16ff('0xb')](),controller[_0x16ff('0xf')]);router[_0x16ff('0x10')](_0x16ff('0xe'),auth[_0x16ff('0xb')](),controller[_0x16ff('0x11')]);module[_0x16ff('0x12')]=router;