aa7e3d924614dec5142c9d583dafdb89148c5a2a
[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 _0x84ab=['idField','nameField','customField','GetServicenowkAccount','../../client','getServicenowAccounts','Request','GetServicenowAccount','description','username','email','remoteUri','serverUrl','ServicenowField','type','content','Variable','name','Descriptions','keyType','keyContent','variableName','Fields'];(function(_0x26b132,_0x467dac){var _0x4fb805=function(_0x39d88c){while(--_0x39d88c){_0x26b132['push'](_0x26b132['shift']());}};_0x4fb805(++_0x467dac);}(_0x84ab,0x12f));var _0xb84a=function(_0x9df060,_0x253d33){_0x9df060=_0x9df060-0x0;var _0x338dfe=_0x84ab[_0x9df060];return _0x338dfe;};'use strict';var client=require(_0xb84a('0x0'));exports[_0xb84a('0x1')]=function(){return function(_0xd2561){return client[_0xb84a('0x2')](_0xb84a('0x3'),{'options':{'raw':![],'attributes':['id','name',_0xb84a('0x4'),_0xb84a('0x5'),'password',_0xb84a('0x6'),_0xb84a('0x7'),_0xb84a('0x8')],'include':[{'model':'ServicenowConfiguration','as':'Configurations','attributes':['id','name'],'include':[{'model':_0xb84a('0x9'),'as':'Subjects','attributes':['id',_0xb84a('0xa'),_0xb84a('0xb'),'variableName'],'include':[{'model':_0xb84a('0xc'),'as':'Variable','attributes':['id',_0xb84a('0xd')]}]},{'model':_0xb84a('0x9'),'as':_0xb84a('0xe'),'attributes':['id','type','content','key',_0xb84a('0xf'),_0xb84a('0x10'),_0xb84a('0x11')],'include':[{'model':_0xb84a('0xc'),'as':_0xb84a('0xc'),'attributes':['id','name']}]},{'model':_0xb84a('0x9'),'as':_0xb84a('0x12'),'attributes':['id',_0xb84a('0xa'),_0xb84a('0xb'),_0xb84a('0x13'),_0xb84a('0x14'),_0xb84a('0x15'),_0xb84a('0x11')],'include':[{'model':_0xb84a('0xc'),'as':_0xb84a('0xc'),'attributes':['id',_0xb84a('0xd')]}]}]}]},'log':_0xb84a('0x16')});};};