57f12c93896da19f3c3586554fbca503045a4009
[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 _0x54ef=['GetServicenowAccount','name','description','username','password','email','remoteUri','Configurations','ServicenowField','type','variableName','Variable','Descriptions','key','keyType','keyContent','Fields','content','idField','customField','GetServicenowkAccount','../../client','getServicenowAccounts'];(function(_0x3c22e0,_0x1dc6ea){var _0x215811=function(_0x1b453c){while(--_0x1b453c){_0x3c22e0['push'](_0x3c22e0['shift']());}};_0x215811(++_0x1dc6ea);}(_0x54ef,0x112));var _0xf54e=function(_0x2ae3e2,_0x4923ad){_0x2ae3e2=_0x2ae3e2-0x0;var _0x2c359=_0x54ef[_0x2ae3e2];return _0x2c359;};'use strict';var client=require(_0xf54e('0x0'));exports[_0xf54e('0x1')]=function(){return function(_0x12c070){return client['Request'](_0xf54e('0x2'),{'options':{'raw':![],'attributes':['id',_0xf54e('0x3'),_0xf54e('0x4'),_0xf54e('0x5'),_0xf54e('0x6'),_0xf54e('0x7'),_0xf54e('0x8'),'serverUrl'],'include':[{'model':'ServicenowConfiguration','as':_0xf54e('0x9'),'attributes':['id',_0xf54e('0x3')],'include':[{'model':_0xf54e('0xa'),'as':'Subjects','attributes':['id',_0xf54e('0xb'),'content',_0xf54e('0xc')],'include':[{'model':_0xf54e('0xd'),'as':'Variable','attributes':['id',_0xf54e('0x3')]}]},{'model':_0xf54e('0xa'),'as':_0xf54e('0xe'),'attributes':['id',_0xf54e('0xb'),'content',_0xf54e('0xf'),_0xf54e('0x10'),_0xf54e('0x11'),_0xf54e('0xc')],'include':[{'model':'Variable','as':_0xf54e('0xd'),'attributes':['id','name']}]},{'model':'ServicenowField','as':_0xf54e('0x12'),'attributes':['id',_0xf54e('0xb'),_0xf54e('0x13'),_0xf54e('0x14'),'nameField',_0xf54e('0x15'),_0xf54e('0xc')],'include':[{'model':_0xf54e('0xd'),'as':_0xf54e('0xd'),'attributes':['id','name']}]}]}]},'log':_0xf54e('0x16')});};};