Built motion from commit 3e059bc2.|2.5.32
[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 _0xd667=['multer','util','connect-timeout','express','Router','../../config/environment','get','isAuthenticated','index','/:id','post','put','update','delete','exports'];(function(_0xdcd4be,_0xdc70a9){var _0x139ef1=function(_0x5f1e53){while(--_0x5f1e53){_0xdcd4be['push'](_0xdcd4be['shift']());}};_0x139ef1(++_0xdc70a9);}(_0xd667,0xf0));var _0x7d66=function(_0x4c2296,_0x1300b2){_0x4c2296=_0x4c2296-0x0;var _0x5ac397=_0xd667[_0x4c2296];return _0x5ac397;};'use strict';var multer=require(_0x7d66('0x0'));var util=require(_0x7d66('0x1'));var path=require('path');var timeout=require(_0x7d66('0x2'));var express=require(_0x7d66('0x3'));var router=express[_0x7d66('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x7d66('0x5'));var controller=require('./intServicenowField.controller');router[_0x7d66('0x6')]('/',auth[_0x7d66('0x7')](),controller[_0x7d66('0x8')]);router[_0x7d66('0x6')](_0x7d66('0x9'),auth[_0x7d66('0x7')](),controller['show']);router[_0x7d66('0xa')]('/',auth['isAuthenticated'](),controller['create']);router[_0x7d66('0xb')](_0x7d66('0x9'),auth[_0x7d66('0x7')](),controller[_0x7d66('0xc')]);router[_0x7d66('0xd')](_0x7d66('0x9'),auth[_0x7d66('0x7')](),controller['destroy']);module[_0x7d66('0xe')]=router;