Built motion from commit (unavailable).|2.5.22
[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 _0x7217=['../../client','Request','GetServicenowAccount','name','description','email','remoteUri','serverUrl','ServicenowConfiguration','Configurations','ServicenowField','Subjects','type','content','variableName','Variable','key','keyType','keyContent','Fields','idField','nameField','customField'];(function(_0x33199e,_0x428ded){var _0x2eef3c=function(_0x41a97a){while(--_0x41a97a){_0x33199e['push'](_0x33199e['shift']());}};_0x2eef3c(++_0x428ded);}(_0x7217,0x19e));var _0x7721=function(_0x46aff0,_0x122890){_0x46aff0=_0x46aff0-0x0;var _0x9d78cf=_0x7217[_0x46aff0];return _0x9d78cf;};'use strict';var client=require(_0x7721('0x0'));exports['getServicenowAccounts']=function(){return function(_0x69b5e3){return client[_0x7721('0x1')](_0x7721('0x2'),{'options':{'raw':![],'attributes':['id',_0x7721('0x3'),_0x7721('0x4'),'username','password',_0x7721('0x5'),_0x7721('0x6'),_0x7721('0x7')],'include':[{'model':_0x7721('0x8'),'as':_0x7721('0x9'),'attributes':['id',_0x7721('0x3')],'include':[{'model':_0x7721('0xa'),'as':_0x7721('0xb'),'attributes':['id',_0x7721('0xc'),_0x7721('0xd'),_0x7721('0xe')],'include':[{'model':_0x7721('0xf'),'as':_0x7721('0xf'),'attributes':['id',_0x7721('0x3')]}]},{'model':_0x7721('0xa'),'as':'Descriptions','attributes':['id',_0x7721('0xc'),_0x7721('0xd'),_0x7721('0x10'),_0x7721('0x11'),_0x7721('0x12'),_0x7721('0xe')],'include':[{'model':_0x7721('0xf'),'as':_0x7721('0xf'),'attributes':['id','name']}]},{'model':_0x7721('0xa'),'as':_0x7721('0x13'),'attributes':['id','type',_0x7721('0xd'),_0x7721('0x14'),_0x7721('0x15'),_0x7721('0x16'),'variableName'],'include':[{'model':_0x7721('0xf'),'as':_0x7721('0xf'),'attributes':['id','name']}]}]}]},'log':'GetServicenowkAccount'});};};