Built motion from commit efa66e19.|2.6.22
[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 _0xa799=['create','put','/:id','update','destroy','exports','multer','path','connect-timeout','Router','fs-extra','../../components/auth/service','./intServicenowField.controller','isAuthenticated'];(function(_0x380775,_0x348799){var _0x2d39d7=function(_0x4fd2e0){while(--_0x4fd2e0){_0x380775['push'](_0x380775['shift']());}};_0x2d39d7(++_0x348799);}(_0xa799,0x156));var _0x9a79=function(_0xb69076,_0x164c72){_0xb69076=_0xb69076-0x0;var _0x211b86=_0xa799[_0xb69076];return _0x211b86;};'use strict';var multer=require(_0x9a79('0x0'));var util=require('util');var path=require(_0x9a79('0x1'));var timeout=require(_0x9a79('0x2'));var express=require('express');var router=express[_0x9a79('0x3')]();var fs_extra=require(_0x9a79('0x4'));var auth=require(_0x9a79('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x9a79('0x6'));router['get']('/',auth['isAuthenticated'](),controller['index']);router['get']('/:id',auth['isAuthenticated'](),controller['show']);router['post']('/',auth[_0x9a79('0x7')](),controller[_0x9a79('0x8')]);router[_0x9a79('0x9')](_0x9a79('0xa'),auth[_0x9a79('0x7')](),controller[_0x9a79('0xb')]);router['delete'](_0x9a79('0xa'),auth[_0x9a79('0x7')](),controller[_0x9a79('0xc')]);module[_0x9a79('0xd')]=router;