Built motion from commit eddce310.|2.6.12
[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 _0xb7f1=['path','connect-timeout','express','fs-extra','../../config/environment','./intServicenowAccount.controller','isAuthenticated','index','get','/:id','/:id/configurations','getConfigurations','/:id/fields','post','addConfiguration','put','update','delete','destroy','exports'];(function(_0x13e0a6,_0x1be031){var _0x20e2b7=function(_0x47c5a2){while(--_0x47c5a2){_0x13e0a6['push'](_0x13e0a6['shift']());}};_0x20e2b7(++_0x1be031);}(_0xb7f1,0xdc));var _0x1b7f=function(_0x26e954,_0xf5e77){_0x26e954=_0x26e954-0x0;var _0x1bdaea=_0xb7f1[_0x26e954];return _0x1bdaea;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x1b7f('0x0'));var timeout=require(_0x1b7f('0x1'));var express=require(_0x1b7f('0x2'));var router=express['Router']();var fs_extra=require(_0x1b7f('0x3'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x1b7f('0x4'));var controller=require(_0x1b7f('0x5'));router['get']('/',auth[_0x1b7f('0x6')](),controller[_0x1b7f('0x7')]);router[_0x1b7f('0x8')](_0x1b7f('0x9'),auth[_0x1b7f('0x6')](),controller['show']);router[_0x1b7f('0x8')](_0x1b7f('0xa'),auth[_0x1b7f('0x6')](),controller[_0x1b7f('0xb')]);router[_0x1b7f('0x8')](_0x1b7f('0xc'),auth[_0x1b7f('0x6')](),controller['getFields']);router[_0x1b7f('0xd')]('/',auth['isAuthenticated'](),controller['create']);router[_0x1b7f('0xd')](_0x1b7f('0xa'),auth[_0x1b7f('0x6')](),controller[_0x1b7f('0xe')]);router[_0x1b7f('0xf')](_0x1b7f('0x9'),auth['isAuthenticated'](),controller[_0x1b7f('0x10')]);router[_0x1b7f('0x11')](_0x1b7f('0x9'),auth[_0x1b7f('0x6')](),controller[_0x1b7f('0x12')]);module[_0x1b7f('0x13')]=router;