32810379fcdaa79e8a5e26cf64e1b8febdda9495
[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(_0x428935,_0x11fd0f){var _0x5c957e=function(_0x34821e){while(--_0x34821e){_0x428935['push'](_0x428935['shift']());}};_0x5c957e(++_0x11fd0f);}(_0x2542,0x169));var _0x2254=function(_0x4cd578,_0x794b88){_0x4cd578=_0x4cd578-0x0;var _0x3ec07d=_0x2542[_0x4cd578];return _0x3ec07d;};'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')});};};