Built motion from commit 14588770.|2.5.38
[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 _0x3dc8=['express','Router','fs-extra','../../components/interaction/service','../../config/environment','./intServicenowAccount.controller','isAuthenticated','index','get','/:id','/:id/configurations','getConfigurations','getFields','post','addConfiguration','put','update','delete','destroy','exports','util','path'];(function(_0x29e35f,_0x4859ef){var _0x266b74=function(_0xc09e1){while(--_0xc09e1){_0x29e35f['push'](_0x29e35f['shift']());}};_0x266b74(++_0x4859ef);}(_0x3dc8,0x148));var _0x83dc=function(_0x3ea8c1,_0x3e0a18){_0x3ea8c1=_0x3ea8c1-0x0;var _0x26d45b=_0x3dc8[_0x3ea8c1];return _0x26d45b;};'use strict';var multer=require('multer');var util=require(_0x83dc('0x0'));var path=require(_0x83dc('0x1'));var timeout=require('connect-timeout');var express=require(_0x83dc('0x2'));var router=express[_0x83dc('0x3')]();var fs_extra=require(_0x83dc('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x83dc('0x5'));var config=require(_0x83dc('0x6'));var controller=require(_0x83dc('0x7'));router['get']('/',auth[_0x83dc('0x8')](),controller[_0x83dc('0x9')]);router[_0x83dc('0xa')](_0x83dc('0xb'),auth['isAuthenticated'](),controller['show']);router[_0x83dc('0xa')](_0x83dc('0xc'),auth['isAuthenticated'](),controller[_0x83dc('0xd')]);router[_0x83dc('0xa')]('/:id/fields',auth[_0x83dc('0x8')](),controller[_0x83dc('0xe')]);router[_0x83dc('0xf')]('/',auth[_0x83dc('0x8')](),controller['create']);router[_0x83dc('0xf')]('/:id/configurations',auth[_0x83dc('0x8')](),controller[_0x83dc('0x10')]);router[_0x83dc('0x11')]('/:id',auth[_0x83dc('0x8')](),controller[_0x83dc('0x12')]);router[_0x83dc('0x13')](_0x83dc('0xb'),auth['isAuthenticated'](),controller[_0x83dc('0x14')]);module[_0x83dc('0x15')]=router;