Built motion from commit 3c2ce842.|2.6.31
[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 _0xf485=['index','/:id','show','/:id/configurations','getConfigurations','/:id/fields','getFields','post','addConfiguration','put','update','destroy','exports','multer','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated'];(function(_0x155496,_0x313cf7){var _0x5b657d=function(_0x50fc4b){while(--_0x50fc4b){_0x155496['push'](_0x155496['shift']());}};_0x5b657d(++_0x313cf7);}(_0xf485,0x1af));var _0x5f48=function(_0x2e0cfe,_0x4b8709){_0x2e0cfe=_0x2e0cfe-0x0;var _0x4bd6c5=_0xf485[_0x2e0cfe];return _0x4bd6c5;};'use strict';var multer=require(_0x5f48('0x0'));var util=require('util');var path=require(_0x5f48('0x1'));var timeout=require('connect-timeout');var express=require(_0x5f48('0x2'));var router=express[_0x5f48('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x5f48('0x4'));var interaction=require(_0x5f48('0x5'));var config=require(_0x5f48('0x6'));var controller=require('./intServicenowAccount.controller');router[_0x5f48('0x7')]('/',auth[_0x5f48('0x8')](),controller[_0x5f48('0x9')]);router[_0x5f48('0x7')](_0x5f48('0xa'),auth[_0x5f48('0x8')](),controller[_0x5f48('0xb')]);router[_0x5f48('0x7')](_0x5f48('0xc'),auth['isAuthenticated'](),controller[_0x5f48('0xd')]);router[_0x5f48('0x7')](_0x5f48('0xe'),auth[_0x5f48('0x8')](),controller[_0x5f48('0xf')]);router[_0x5f48('0x10')]('/',auth[_0x5f48('0x8')](),controller['create']);router[_0x5f48('0x10')](_0x5f48('0xc'),auth['isAuthenticated'](),controller[_0x5f48('0x11')]);router[_0x5f48('0x12')](_0x5f48('0xa'),auth[_0x5f48('0x8')](),controller[_0x5f48('0x13')]);router['delete']('/:id',auth[_0x5f48('0x8')](),controller[_0x5f48('0x14')]);module[_0x5f48('0x15')]=router;