34ea1043945c2ed679c1628a5cfe2ed047692029
[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 _0x24ca=['nameField','customField','../../client','Request','GetServicenowAccount','description','username','password','email','remoteUri','serverUrl','ServicenowConfiguration','Configurations','name','ServicenowField','Subjects','content','variableName','Variable','Descriptions','type','key','keyType','keyContent','Fields','idField'];(function(_0x10d5b3,_0x4f3017){var _0x5860fd=function(_0x5b4527){while(--_0x5b4527){_0x10d5b3['push'](_0x10d5b3['shift']());}};_0x5860fd(++_0x4f3017);}(_0x24ca,0x1bc));var _0xa24c=function(_0x2c9b79,_0x7cf58b){_0x2c9b79=_0x2c9b79-0x0;var _0x265032=_0x24ca[_0x2c9b79];return _0x265032;};'use strict';var client=require(_0xa24c('0x0'));exports['getServicenowAccounts']=function(){return function(_0x2cf7df){return client[_0xa24c('0x1')](_0xa24c('0x2'),{'options':{'raw':![],'attributes':['id','name',_0xa24c('0x3'),_0xa24c('0x4'),_0xa24c('0x5'),_0xa24c('0x6'),_0xa24c('0x7'),_0xa24c('0x8')],'include':[{'model':_0xa24c('0x9'),'as':_0xa24c('0xa'),'attributes':['id',_0xa24c('0xb')],'include':[{'model':_0xa24c('0xc'),'as':_0xa24c('0xd'),'attributes':['id','type',_0xa24c('0xe'),_0xa24c('0xf')],'include':[{'model':_0xa24c('0x10'),'as':'Variable','attributes':['id',_0xa24c('0xb')]}]},{'model':_0xa24c('0xc'),'as':_0xa24c('0x11'),'attributes':['id',_0xa24c('0x12'),_0xa24c('0xe'),_0xa24c('0x13'),_0xa24c('0x14'),_0xa24c('0x15'),_0xa24c('0xf')],'include':[{'model':'Variable','as':_0xa24c('0x10'),'attributes':['id',_0xa24c('0xb')]}]},{'model':_0xa24c('0xc'),'as':_0xa24c('0x16'),'attributes':['id','type',_0xa24c('0xe'),_0xa24c('0x17'),_0xa24c('0x18'),_0xa24c('0x19'),_0xa24c('0xf')],'include':[{'model':_0xa24c('0x10'),'as':_0xa24c('0x10'),'attributes':['id','name']}]}]}]},'log':'GetServicenowkAccount'});};};