Built motion from commit 53172ac8.|2.6.30
[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 _0x2472=['fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intServicenowField.controller','isAuthenticated','/:id','show','post','create','put','delete','destroy','util','connect-timeout'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x2472,0x139));var _0x2247=function(_0x355350,_0x119e0c){_0x355350=_0x355350-0x0;var _0x5db5f4=_0x2472[_0x355350];return _0x5db5f4;};'use strict';var multer=require('multer');var util=require(_0x2247('0x0'));var path=require('path');var timeout=require(_0x2247('0x1'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x2247('0x2'));var auth=require(_0x2247('0x3'));var interaction=require(_0x2247('0x4'));var config=require(_0x2247('0x5'));var controller=require(_0x2247('0x6'));router['get']('/',auth[_0x2247('0x7')](),controller['index']);router['get'](_0x2247('0x8'),auth[_0x2247('0x7')](),controller[_0x2247('0x9')]);router[_0x2247('0xa')]('/',auth[_0x2247('0x7')](),controller[_0x2247('0xb')]);router[_0x2247('0xc')](_0x2247('0x8'),auth['isAuthenticated'](),controller['update']);router[_0x2247('0xd')](_0x2247('0x8'),auth[_0x2247('0x7')](),controller[_0x2247('0xe')]);module['exports']=router;