Built motion from commit (unavailable).|2.5.29
[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 _0xc6b1=['put','update','destroy','util','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','create'];(function(_0x33d72f,_0x1bc0d4){var _0x1115e2=function(_0x5353e4){while(--_0x5353e4){_0x33d72f['push'](_0x33d72f['shift']());}};_0x1115e2(++_0x1bc0d4);}(_0xc6b1,0x189));var _0x1c6b=function(_0x15bb27,_0x1cd388){_0x15bb27=_0x15bb27-0x0;var _0x569d95=_0xc6b1[_0x15bb27];return _0x569d95;};'use strict';var multer=require('multer');var util=require(_0x1c6b('0x0'));var path=require('path');var timeout=require(_0x1c6b('0x1'));var express=require(_0x1c6b('0x2'));var router=express['Router']();var fs_extra=require(_0x1c6b('0x3'));var auth=require(_0x1c6b('0x4'));var interaction=require(_0x1c6b('0x5'));var config=require(_0x1c6b('0x6'));var controller=require('./intServicenowField.controller');router[_0x1c6b('0x7')]('/',auth[_0x1c6b('0x8')](),controller[_0x1c6b('0x9')]);router[_0x1c6b('0x7')](_0x1c6b('0xa'),auth[_0x1c6b('0x8')](),controller['show']);router['post']('/',auth[_0x1c6b('0x8')](),controller[_0x1c6b('0xb')]);router[_0x1c6b('0xc')](_0x1c6b('0xa'),auth['isAuthenticated'](),controller[_0x1c6b('0xd')]);router['delete'](_0x1c6b('0xa'),auth[_0x1c6b('0x8')](),controller[_0x1c6b('0xe')]);module['exports']=router;