Built motion from commit 19a84241.|2.5.34
[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 _0x2b41=['update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','./intServicenowAccount.controller','get','/:id','isAuthenticated','show','/:id/configurations','getConfigurations','create','post','addConfiguration','put'];(function(_0x996f1e,_0x337932){var _0x147bb5=function(_0x4eec67){while(--_0x4eec67){_0x996f1e['push'](_0x996f1e['shift']());}};_0x147bb5(++_0x337932);}(_0x2b41,0x146));var _0x12b4=function(_0x12a5a7,_0x3f04d4){_0x12a5a7=_0x12a5a7-0x0;var _0x5e868e=_0x2b41[_0x12a5a7];return _0x5e868e;};'use strict';var multer=require(_0x12b4('0x0'));var util=require(_0x12b4('0x1'));var path=require(_0x12b4('0x2'));var timeout=require(_0x12b4('0x3'));var express=require(_0x12b4('0x4'));var router=express[_0x12b4('0x5')]();var fs_extra=require(_0x12b4('0x6'));var auth=require(_0x12b4('0x7'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x12b4('0x8'));router[_0x12b4('0x9')]('/',auth['isAuthenticated'](),controller['index']);router['get'](_0x12b4('0xa'),auth[_0x12b4('0xb')](),controller[_0x12b4('0xc')]);router[_0x12b4('0x9')](_0x12b4('0xd'),auth[_0x12b4('0xb')](),controller[_0x12b4('0xe')]);router['get']('/:id/fields',auth[_0x12b4('0xb')](),controller['getFields']);router['post']('/',auth[_0x12b4('0xb')](),controller[_0x12b4('0xf')]);router[_0x12b4('0x10')](_0x12b4('0xd'),auth[_0x12b4('0xb')](),controller[_0x12b4('0x11')]);router[_0x12b4('0x12')](_0x12b4('0xa'),auth[_0x12b4('0xb')](),controller[_0x12b4('0x13')]);router[_0x12b4('0x14')]('/:id',auth[_0x12b4('0xb')](),controller[_0x12b4('0x15')]);module[_0x12b4('0x16')]=router;