Built motion from commit (unavailable).|2.5.26
[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 _0x6aa7=['nameField','GetServicenowkAccount','../../client','Request','GetServicenowAccount','name','username','password','email','ServicenowConfiguration','ServicenowField','Subjects','content','variableName','Variable','Descriptions','type','key','keyType','keyContent','Fields','idField'];(function(_0x151a5a,_0x3ced0d){var _0x17b6de=function(_0x2bf085){while(--_0x2bf085){_0x151a5a['push'](_0x151a5a['shift']());}};_0x17b6de(++_0x3ced0d);}(_0x6aa7,0x178));var _0x76aa=function(_0x5e6930,_0x54b791){_0x5e6930=_0x5e6930-0x0;var _0x4ecf37=_0x6aa7[_0x5e6930];return _0x4ecf37;};'use strict';var client=require(_0x76aa('0x0'));exports['getServicenowAccounts']=function(){return function(_0x2cbbdd){return client[_0x76aa('0x1')](_0x76aa('0x2'),{'options':{'raw':![],'attributes':['id',_0x76aa('0x3'),'description',_0x76aa('0x4'),_0x76aa('0x5'),_0x76aa('0x6'),'remoteUri','serverUrl'],'include':[{'model':_0x76aa('0x7'),'as':'Configurations','attributes':['id',_0x76aa('0x3')],'include':[{'model':_0x76aa('0x8'),'as':_0x76aa('0x9'),'attributes':['id','type',_0x76aa('0xa'),_0x76aa('0xb')],'include':[{'model':_0x76aa('0xc'),'as':'Variable','attributes':['id',_0x76aa('0x3')]}]},{'model':_0x76aa('0x8'),'as':_0x76aa('0xd'),'attributes':['id',_0x76aa('0xe'),_0x76aa('0xa'),_0x76aa('0xf'),_0x76aa('0x10'),_0x76aa('0x11'),_0x76aa('0xb')],'include':[{'model':_0x76aa('0xc'),'as':'Variable','attributes':['id',_0x76aa('0x3')]}]},{'model':'ServicenowField','as':_0x76aa('0x12'),'attributes':['id',_0x76aa('0xe'),_0x76aa('0xa'),_0x76aa('0x13'),_0x76aa('0x14'),'customField','variableName'],'include':[{'model':_0x76aa('0xc'),'as':'Variable','attributes':['id',_0x76aa('0x3')]}]}]}]},'log':_0x76aa('0x15')});};};