Built motion from commit da617fac.|2.6.6
[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 _0x49c9=['/:id','update','destroy','exports','multer','util','connect-timeout','express','Router','../../components/interaction/service','./intServicenowAccount.controller','isAuthenticated','get','show','/:id/configurations','getConfigurations','/:id/fields','getFields','post','create','addConfiguration','put'];(function(_0x29cd52,_0x88b52b){var _0x5218bc=function(_0x455b4f){while(--_0x455b4f){_0x29cd52['push'](_0x29cd52['shift']());}};_0x5218bc(++_0x88b52b);}(_0x49c9,0x164));var _0x949c=function(_0xf4c5d0,_0x2d3223){_0xf4c5d0=_0xf4c5d0-0x0;var _0x2a4390=_0x49c9[_0xf4c5d0];return _0x2a4390;};'use strict';var multer=require(_0x949c('0x0'));var util=require(_0x949c('0x1'));var path=require('path');var timeout=require(_0x949c('0x2'));var express=require(_0x949c('0x3'));var router=express[_0x949c('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x949c('0x5'));var config=require('../../config/environment');var controller=require(_0x949c('0x6'));router['get']('/',auth[_0x949c('0x7')](),controller['index']);router[_0x949c('0x8')]('/:id',auth[_0x949c('0x7')](),controller[_0x949c('0x9')]);router['get'](_0x949c('0xa'),auth[_0x949c('0x7')](),controller[_0x949c('0xb')]);router[_0x949c('0x8')](_0x949c('0xc'),auth[_0x949c('0x7')](),controller[_0x949c('0xd')]);router[_0x949c('0xe')]('/',auth['isAuthenticated'](),controller[_0x949c('0xf')]);router[_0x949c('0xe')](_0x949c('0xa'),auth[_0x949c('0x7')](),controller[_0x949c('0x10')]);router[_0x949c('0x11')](_0x949c('0x12'),auth['isAuthenticated'](),controller[_0x949c('0x13')]);router['delete']('/:id',auth[_0x949c('0x7')](),controller[_0x949c('0x14')]);module[_0x949c('0x15')]=router;