Built motion from commit fe909640.|2.6.8
[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 _0xa4fc=['../../components/interaction/service','../../config/environment','get','index','post','isAuthenticated','put','/:id','update','delete','exports','multer','util','path','connect-timeout','express','fs-extra'];(function(_0x17b6e3,_0x4522ed){var _0x3906f3=function(_0x430f87){while(--_0x430f87){_0x17b6e3['push'](_0x17b6e3['shift']());}};_0x3906f3(++_0x4522ed);}(_0xa4fc,0x192));var _0xca4f=function(_0x525198,_0x16181e){_0x525198=_0x525198-0x0;var _0x1bddfd=_0xa4fc[_0x525198];return _0x1bddfd;};'use strict';var multer=require(_0xca4f('0x0'));var util=require(_0xca4f('0x1'));var path=require(_0xca4f('0x2'));var timeout=require(_0xca4f('0x3'));var express=require(_0xca4f('0x4'));var router=express['Router']();var fs_extra=require(_0xca4f('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xca4f('0x6'));var config=require(_0xca4f('0x7'));var controller=require('./intServicenowField.controller');router[_0xca4f('0x8')]('/',auth['isAuthenticated'](),controller[_0xca4f('0x9')]);router[_0xca4f('0x8')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0xca4f('0xa')]('/',auth[_0xca4f('0xb')](),controller['create']);router[_0xca4f('0xc')](_0xca4f('0xd'),auth[_0xca4f('0xb')](),controller[_0xca4f('0xe')]);router[_0xca4f('0xf')](_0xca4f('0xd'),auth[_0xca4f('0xb')](),controller['destroy']);module[_0xca4f('0x10')]=router;