0bbeb589ed2a4913acb327ced27521bc6c90bfcd
[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 _0xd64b=['update','delete','destroy','exports','multer','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','index','get','/:id','isAuthenticated','show','/:id/configurations','/:id/fields','post','create','put'];(function(_0x3baeee,_0x470398){var _0x40920b=function(_0x2cb336){while(--_0x2cb336){_0x3baeee['push'](_0x3baeee['shift']());}};_0x40920b(++_0x470398);}(_0xd64b,0xc1));var _0xbd64=function(_0x219d87,_0x1cb6f7){_0x219d87=_0x219d87-0x0;var _0x22823d=_0xd64b[_0x219d87];return _0x22823d;};'use strict';var multer=require(_0xbd64('0x0'));var util=require('util');var path=require(_0xbd64('0x1'));var timeout=require('connect-timeout');var express=require(_0xbd64('0x2'));var router=express[_0xbd64('0x3')]();var fs_extra=require(_0xbd64('0x4'));var auth=require(_0xbd64('0x5'));var interaction=require(_0xbd64('0x6'));var config=require('../../config/environment');var controller=require('./intServicenowAccount.controller');router['get']('/',auth['isAuthenticated'](),controller[_0xbd64('0x7')]);router[_0xbd64('0x8')](_0xbd64('0x9'),auth[_0xbd64('0xa')](),controller[_0xbd64('0xb')]);router[_0xbd64('0x8')](_0xbd64('0xc'),auth['isAuthenticated'](),controller['getConfigurations']);router[_0xbd64('0x8')](_0xbd64('0xd'),auth[_0xbd64('0xa')](),controller['getFields']);router[_0xbd64('0xe')]('/',auth[_0xbd64('0xa')](),controller[_0xbd64('0xf')]);router[_0xbd64('0xe')]('/:id/configurations',auth[_0xbd64('0xa')](),controller['addConfiguration']);router[_0xbd64('0x10')](_0xbd64('0x9'),auth[_0xbd64('0xa')](),controller[_0xbd64('0x11')]);router[_0xbd64('0x12')](_0xbd64('0x9'),auth[_0xbd64('0xa')](),controller[_0xbd64('0x13')]);module[_0xbd64('0x14')]=router;