Built motion from commit 3d6333b4.|2.6.31
[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 _0x2542=['content','variableName','Variable','key','keyType','Fields','idField','nameField','GetServicenowkAccount','../../client','getServicenowAccounts','Request','name','username','password','email','remoteUri','serverUrl','Configurations','ServicenowField','Subjects','type'];(function(_0x423241,_0x3ee513){var _0x2ee6f6=function(_0x23a4a5){while(--_0x23a4a5){_0x423241['push'](_0x423241['shift']());}};_0x2ee6f6(++_0x3ee513);}(_0x2542,0x169));var _0x2254=function(_0x3f6ce2,_0x3a8303){_0x3f6ce2=_0x3f6ce2-0x0;var _0x297f93=_0x2542[_0x3f6ce2];return _0x297f93;};'use strict';var client=require(_0x2254('0x0'));exports[_0x2254('0x1')]=function(){return function(_0x2f3bcd){return client[_0x2254('0x2')]('GetServicenowAccount',{'options':{'raw':![],'attributes':['id',_0x2254('0x3'),'description',_0x2254('0x4'),_0x2254('0x5'),_0x2254('0x6'),_0x2254('0x7'),_0x2254('0x8')],'include':[{'model':'ServicenowConfiguration','as':_0x2254('0x9'),'attributes':['id',_0x2254('0x3')],'include':[{'model':_0x2254('0xa'),'as':_0x2254('0xb'),'attributes':['id',_0x2254('0xc'),_0x2254('0xd'),_0x2254('0xe')],'include':[{'model':_0x2254('0xf'),'as':_0x2254('0xf'),'attributes':['id',_0x2254('0x3')]}]},{'model':_0x2254('0xa'),'as':'Descriptions','attributes':['id',_0x2254('0xc'),_0x2254('0xd'),_0x2254('0x10'),_0x2254('0x11'),'keyContent','variableName'],'include':[{'model':_0x2254('0xf'),'as':_0x2254('0xf'),'attributes':['id',_0x2254('0x3')]}]},{'model':_0x2254('0xa'),'as':_0x2254('0x12'),'attributes':['id',_0x2254('0xc'),'content',_0x2254('0x13'),_0x2254('0x14'),'customField',_0x2254('0xe')],'include':[{'model':_0x2254('0xf'),'as':_0x2254('0xf'),'attributes':['id',_0x2254('0x3')]}]}]}]},'log':_0x2254('0x15')});};};