7082b9f6c21bb1de82ba0dff449e680554f50c4f
[motion2.git] / server / services / ami / rpc / integrations / servicenow.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 _0x00bb=['description','username','email','remoteUri','name','ServicenowField','Subjects','type','content','variableName','Descriptions','keyType','Variable','Fields','nameField','customField','../../client','getServicenowAccounts','GetServicenowAccount'];(function(_0x19ab88,_0x1d9cf0){var _0x2c23cd=function(_0x5177fc){while(--_0x5177fc){_0x19ab88['push'](_0x19ab88['shift']());}};_0x2c23cd(++_0x1d9cf0);}(_0x00bb,0x1d8));var _0xb00b=function(_0x134c2e,_0x3573c4){_0x134c2e=_0x134c2e-0x0;var _0x2825db=_0x00bb[_0x134c2e];return _0x2825db;};'use strict';var client=require(_0xb00b('0x0'));exports[_0xb00b('0x1')]=function(){return function(_0x468a51){return client['Request'](_0xb00b('0x2'),{'options':{'raw':![],'attributes':['id','name',_0xb00b('0x3'),_0xb00b('0x4'),'password',_0xb00b('0x5'),_0xb00b('0x6'),'serverUrl'],'include':[{'model':'ServicenowConfiguration','as':'Configurations','attributes':['id',_0xb00b('0x7')],'include':[{'model':_0xb00b('0x8'),'as':_0xb00b('0x9'),'attributes':['id',_0xb00b('0xa'),_0xb00b('0xb'),_0xb00b('0xc')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0xb00b('0x7')]}]},{'model':_0xb00b('0x8'),'as':_0xb00b('0xd'),'attributes':['id',_0xb00b('0xa'),_0xb00b('0xb'),'key',_0xb00b('0xe'),'keyContent','variableName'],'include':[{'model':'Variable','as':_0xb00b('0xf'),'attributes':['id',_0xb00b('0x7')]}]},{'model':_0xb00b('0x8'),'as':_0xb00b('0x10'),'attributes':['id',_0xb00b('0xa'),_0xb00b('0xb'),'idField',_0xb00b('0x11'),_0xb00b('0x12'),'variableName'],'include':[{'model':_0xb00b('0xf'),'as':_0xb00b('0xf'),'attributes':['id','name']}]}]}]},'log':'GetServicenowkAccount'});};};