Built motion from commit 43538d75.|2.5.35
[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 _0x3f8a=['Configurations','ServicenowField','Subjects','type','content','variableName','Variable','Descriptions','keyType','keyContent','Fields','idField','nameField','../../client','getServicenowAccounts','Request','name','description','username','password','email','remoteUri','serverUrl','ServicenowConfiguration'];(function(_0x291be4,_0x3411a6){var _0x326947=function(_0x34d5cf){while(--_0x34d5cf){_0x291be4['push'](_0x291be4['shift']());}};_0x326947(++_0x3411a6);}(_0x3f8a,0x1d5));var _0xa3f8=function(_0x335647,_0x13f7a0){_0x335647=_0x335647-0x0;var _0x5dbf94=_0x3f8a[_0x335647];return _0x5dbf94;};'use strict';var client=require(_0xa3f8('0x0'));exports[_0xa3f8('0x1')]=function(){return function(_0x29d753){return client[_0xa3f8('0x2')]('GetServicenowAccount',{'options':{'raw':![],'attributes':['id',_0xa3f8('0x3'),_0xa3f8('0x4'),_0xa3f8('0x5'),_0xa3f8('0x6'),_0xa3f8('0x7'),_0xa3f8('0x8'),_0xa3f8('0x9')],'include':[{'model':_0xa3f8('0xa'),'as':_0xa3f8('0xb'),'attributes':['id',_0xa3f8('0x3')],'include':[{'model':_0xa3f8('0xc'),'as':_0xa3f8('0xd'),'attributes':['id',_0xa3f8('0xe'),_0xa3f8('0xf'),_0xa3f8('0x10')],'include':[{'model':_0xa3f8('0x11'),'as':_0xa3f8('0x11'),'attributes':['id','name']}]},{'model':_0xa3f8('0xc'),'as':_0xa3f8('0x12'),'attributes':['id',_0xa3f8('0xe'),_0xa3f8('0xf'),'key',_0xa3f8('0x13'),_0xa3f8('0x14'),_0xa3f8('0x10')],'include':[{'model':_0xa3f8('0x11'),'as':_0xa3f8('0x11'),'attributes':['id',_0xa3f8('0x3')]}]},{'model':_0xa3f8('0xc'),'as':_0xa3f8('0x15'),'attributes':['id',_0xa3f8('0xe'),_0xa3f8('0xf'),_0xa3f8('0x16'),_0xa3f8('0x17'),'customField',_0xa3f8('0x10')],'include':[{'model':_0xa3f8('0x11'),'as':_0xa3f8('0x11'),'attributes':['id',_0xa3f8('0x3')]}]}]}]},'log':'GetServicenowkAccount'});};};