Built motion from commit (unavailable).|2.5.4
[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 _0x2288=['create','put','update','multer','path','connect-timeout','express','Router','../../config/environment','isAuthenticated','index','get','/:id','show','post'];(function(_0x2445d8,_0x22e09b){var _0x3e6299=function(_0x37eae3){while(--_0x37eae3){_0x2445d8['push'](_0x2445d8['shift']());}};_0x3e6299(++_0x22e09b);}(_0x2288,0x6c));var _0x8228=function(_0x15703b,_0x392f5d){_0x15703b=_0x15703b-0x0;var _0x487395=_0x2288[_0x15703b];return _0x487395;};'use strict';var multer=require(_0x8228('0x0'));var util=require('util');var path=require(_0x8228('0x1'));var timeout=require(_0x8228('0x2'));var express=require(_0x8228('0x3'));var router=express[_0x8228('0x4')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x8228('0x5'));var controller=require('./intServicenowField.controller');router['get']('/',auth[_0x8228('0x6')](),controller[_0x8228('0x7')]);router[_0x8228('0x8')](_0x8228('0x9'),auth['isAuthenticated'](),controller[_0x8228('0xa')]);router[_0x8228('0xb')]('/',auth[_0x8228('0x6')](),controller[_0x8228('0xc')]);router[_0x8228('0xd')](_0x8228('0x9'),auth[_0x8228('0x6')](),controller[_0x8228('0xe')]);router['delete']('/:id',auth['isAuthenticated'](),controller['destroy']);module['exports']=router;