Built motion from commit c0cdc9d8.|2.6.28
[motion2.git] / server / api / intServicenowAccount / 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 _0x8b2b=['../../config/environment','isAuthenticated','index','get','/:id','/:id/configurations','getConfigurations','create','post','addConfiguration','exports','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x485424,_0x42fa1c){var _0x4a94d0=function(_0x156297){while(--_0x156297){_0x485424['push'](_0x485424['shift']());}};_0x4a94d0(++_0x42fa1c);}(_0x8b2b,0x1c0));var _0xb8b2=function(_0x4a0c81,_0x51da83){_0x4a0c81=_0x4a0c81-0x0;var _0x55cab3=_0x8b2b[_0x4a0c81];return _0x55cab3;};'use strict';var multer=require(_0xb8b2('0x0'));var util=require(_0xb8b2('0x1'));var path=require(_0xb8b2('0x2'));var timeout=require('connect-timeout');var express=require(_0xb8b2('0x3'));var router=express[_0xb8b2('0x4')]();var fs_extra=require(_0xb8b2('0x5'));var auth=require(_0xb8b2('0x6'));var interaction=require(_0xb8b2('0x7'));var config=require(_0xb8b2('0x8'));var controller=require('./intServicenowAccount.controller');router['get']('/',auth[_0xb8b2('0x9')](),controller[_0xb8b2('0xa')]);router[_0xb8b2('0xb')](_0xb8b2('0xc'),auth['isAuthenticated'](),controller['show']);router[_0xb8b2('0xb')](_0xb8b2('0xd'),auth[_0xb8b2('0x9')](),controller[_0xb8b2('0xe')]);router[_0xb8b2('0xb')]('/:id/fields',auth[_0xb8b2('0x9')](),controller['getFields']);router['post']('/',auth[_0xb8b2('0x9')](),controller[_0xb8b2('0xf')]);router[_0xb8b2('0x10')](_0xb8b2('0xd'),auth[_0xb8b2('0x9')](),controller[_0xb8b2('0x11')]);router['put'](_0xb8b2('0xc'),auth['isAuthenticated'](),controller['update']);router['delete'](_0xb8b2('0xc'),auth[_0xb8b2('0x9')](),controller['destroy']);module[_0xb8b2('0x12')]=router;