Built motion from commit ffdca78c.|2.6.24
[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 _0xc211=['exports','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./intServicenowField.controller','get','index','/:id','isAuthenticated','create','put','update','delete','destroy'];(function(_0x485772,_0x5c094e){var _0x1fc729=function(_0x31cbc3){while(--_0x31cbc3){_0x485772['push'](_0x485772['shift']());}};_0x1fc729(++_0x5c094e);}(_0xc211,0x155));var _0x1c21=function(_0x5a47de,_0x57a87c){_0x5a47de=_0x5a47de-0x0;var _0x400ee6=_0xc211[_0x5a47de];return _0x400ee6;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x1c21('0x0'));var timeout=require(_0x1c21('0x1'));var express=require(_0x1c21('0x2'));var router=express[_0x1c21('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x1c21('0x4'));var config=require(_0x1c21('0x5'));var controller=require(_0x1c21('0x6'));router[_0x1c21('0x7')]('/',auth['isAuthenticated'](),controller[_0x1c21('0x8')]);router[_0x1c21('0x7')](_0x1c21('0x9'),auth[_0x1c21('0xa')](),controller['show']);router['post']('/',auth['isAuthenticated'](),controller[_0x1c21('0xb')]);router[_0x1c21('0xc')](_0x1c21('0x9'),auth[_0x1c21('0xa')](),controller[_0x1c21('0xd')]);router[_0x1c21('0xe')](_0x1c21('0x9'),auth[_0x1c21('0xa')](),controller[_0x1c21('0xf')]);module[_0x1c21('0x10')]=router;