1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xd20e=['ServicenowField','Subjects','type','content','variableName','Variable','Descriptions','key','keyContent','idField','nameField','customField','../../client','Request','name','description','password','email','remoteUri','serverUrl','ServicenowConfiguration','Configurations'];(function(_0x441a87,_0x3aa99d){var _0x49c9a4=function(_0x43d4b4){while(--_0x43d4b4){_0x441a87['push'](_0x441a87['shift']());}};_0x49c9a4(++_0x3aa99d);}(_0xd20e,0x198));var _0xed20=function(_0x5c2e3e,_0x26ecd3){_0x5c2e3e=_0x5c2e3e-0x0;var _0x53f64a=_0xd20e[_0x5c2e3e];return _0x53f64a;};'use strict';var client=require(_0xed20('0x0'));exports['getServicenowAccounts']=function(){return function(_0x52673e){return client[_0xed20('0x1')]('GetServicenowAccount',{'options':{'raw':![],'attributes':['id',_0xed20('0x2'),_0xed20('0x3'),'username',_0xed20('0x4'),_0xed20('0x5'),_0xed20('0x6'),_0xed20('0x7')],'include':[{'model':_0xed20('0x8'),'as':_0xed20('0x9'),'attributes':['id',_0xed20('0x2')],'include':[{'model':_0xed20('0xa'),'as':_0xed20('0xb'),'attributes':['id',_0xed20('0xc'),_0xed20('0xd'),_0xed20('0xe')],'include':[{'model':_0xed20('0xf'),'as':_0xed20('0xf'),'attributes':['id',_0xed20('0x2')]}]},{'model':_0xed20('0xa'),'as':_0xed20('0x10'),'attributes':['id',_0xed20('0xc'),_0xed20('0xd'),_0xed20('0x11'),'keyType',_0xed20('0x12'),_0xed20('0xe')],'include':[{'model':_0xed20('0xf'),'as':_0xed20('0xf'),'attributes':['id',_0xed20('0x2')]}]},{'model':_0xed20('0xa'),'as':'Fields','attributes':['id',_0xed20('0xc'),_0xed20('0xd'),_0xed20('0x13'),_0xed20('0x14'),_0xed20('0x15'),_0xed20('0xe')],'include':[{'model':_0xed20('0xf'),'as':_0xed20('0xf'),'attributes':['id',_0xed20('0x2')]}]}]}]},'log':'GetServicenowkAccount'});};};