Built motion from commit c116dc8b.|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 _0xd335=['multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','index','get','/:id','show','create','destroy','exports'];(function(_0x385277,_0x447492){var _0x5d44e4=function(_0x27f456){while(--_0x27f456){_0x385277['push'](_0x385277['shift']());}};_0x5d44e4(++_0x447492);}(_0xd335,0xb4));var _0x5d33=function(_0x23f497,_0x412b9e){_0x23f497=_0x23f497-0x0;var _0x22386f=_0xd335[_0x23f497];return _0x22386f;};'use strict';var multer=require(_0x5d33('0x0'));var util=require(_0x5d33('0x1'));var path=require(_0x5d33('0x2'));var timeout=require(_0x5d33('0x3'));var express=require(_0x5d33('0x4'));var router=express[_0x5d33('0x5')]();var fs_extra=require(_0x5d33('0x6'));var auth=require(_0x5d33('0x7'));var interaction=require(_0x5d33('0x8'));var config=require(_0x5d33('0x9'));var controller=require('./intServicenowField.controller');router['get']('/',auth[_0x5d33('0xa')](),controller[_0x5d33('0xb')]);router[_0x5d33('0xc')](_0x5d33('0xd'),auth['isAuthenticated'](),controller[_0x5d33('0xe')]);router['post']('/',auth[_0x5d33('0xa')](),controller[_0x5d33('0xf')]);router['put']('/:id',auth[_0x5d33('0xa')](),controller['update']);router['delete'](_0x5d33('0xd'),auth[_0x5d33('0xa')](),controller[_0x5d33('0x10')]);module[_0x5d33('0x11')]=router;