Built motion from commit (unavailable).|2.3.4
[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 _0x325f=['description','username','password','email','remoteUri','serverUrl','ServicenowConfiguration','Configurations','ServicenowField','Subjects','type','content','variableName','Variable','Descriptions','key','keyType','keyContent','Fields','nameField','customField','GetServicenowkAccount','../../client','Request','name'];(function(_0x8b0f43,_0x1c57b8){var _0x3f4425=function(_0x16e59a){while(--_0x16e59a){_0x8b0f43['push'](_0x8b0f43['shift']());}};_0x3f4425(++_0x1c57b8);}(_0x325f,0x174));var _0xf325=function(_0x3a2ba0,_0x31d5b1){_0x3a2ba0=_0x3a2ba0-0x0;var _0x4684e7=_0x325f[_0x3a2ba0];return _0x4684e7;};'use strict';var client=require(_0xf325('0x0'));exports['getServicenowAccounts']=function(){return function(_0xa4a93e){return client[_0xf325('0x1')]('GetServicenowAccount',{'options':{'raw':![],'attributes':['id',_0xf325('0x2'),_0xf325('0x3'),_0xf325('0x4'),_0xf325('0x5'),_0xf325('0x6'),_0xf325('0x7'),_0xf325('0x8')],'include':[{'model':_0xf325('0x9'),'as':_0xf325('0xa'),'attributes':['id',_0xf325('0x2')],'include':[{'model':_0xf325('0xb'),'as':_0xf325('0xc'),'attributes':['id',_0xf325('0xd'),_0xf325('0xe'),_0xf325('0xf')],'include':[{'model':_0xf325('0x10'),'as':_0xf325('0x10'),'attributes':['id','name']}]},{'model':'ServicenowField','as':_0xf325('0x11'),'attributes':['id','type','content',_0xf325('0x12'),_0xf325('0x13'),_0xf325('0x14'),_0xf325('0xf')],'include':[{'model':_0xf325('0x10'),'as':_0xf325('0x10'),'attributes':['id',_0xf325('0x2')]}]},{'model':_0xf325('0xb'),'as':_0xf325('0x15'),'attributes':['id',_0xf325('0xd'),_0xf325('0xe'),'idField',_0xf325('0x16'),_0xf325('0x17'),_0xf325('0xf')],'include':[{'model':_0xf325('0x10'),'as':_0xf325('0x10'),'attributes':['id',_0xf325('0x2')]}]}]}]},'log':_0xf325('0x18')});};};