Built motion from commit da617fac.|2.6.6
[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 _0x3ad1=['show','post','create','update','delete','destroy','exports','multer','util','connect-timeout','Router','fs-extra','../../components/interaction/service','../../config/environment','./intServicenowField.controller','get','isAuthenticated','index','/:id'];(function(_0x1a2e77,_0x2e376e){var _0x52507a=function(_0x415388){while(--_0x415388){_0x1a2e77['push'](_0x1a2e77['shift']());}};_0x52507a(++_0x2e376e);}(_0x3ad1,0x196));var _0x13ad=function(_0x315026,_0x49d03d){_0x315026=_0x315026-0x0;var _0x8b2837=_0x3ad1[_0x315026];return _0x8b2837;};'use strict';var multer=require(_0x13ad('0x0'));var util=require(_0x13ad('0x1'));var path=require('path');var timeout=require(_0x13ad('0x2'));var express=require('express');var router=express[_0x13ad('0x3')]();var fs_extra=require(_0x13ad('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x13ad('0x5'));var config=require(_0x13ad('0x6'));var controller=require(_0x13ad('0x7'));router[_0x13ad('0x8')]('/',auth[_0x13ad('0x9')](),controller[_0x13ad('0xa')]);router['get'](_0x13ad('0xb'),auth[_0x13ad('0x9')](),controller[_0x13ad('0xc')]);router[_0x13ad('0xd')]('/',auth[_0x13ad('0x9')](),controller[_0x13ad('0xe')]);router['put'](_0x13ad('0xb'),auth[_0x13ad('0x9')](),controller[_0x13ad('0xf')]);router[_0x13ad('0x10')](_0x13ad('0xb'),auth['isAuthenticated'](),controller[_0x13ad('0x11')]);module[_0x13ad('0x12')]=router;