Built motion from commit (unavailable).|2.3.5
[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 _0xc99e=['content','Variable','Descriptions','key','keyContent','variableName','Fields','idField','nameField','customField','../../client','getServicenowAccounts','GetServicenowAccount','name','description','password','remoteUri','serverUrl','ServicenowConfiguration','ServicenowField','type'];(function(_0x4b570d,_0x51874e){var _0x3ff89d=function(_0x65dbda){while(--_0x65dbda){_0x4b570d['push'](_0x4b570d['shift']());}};_0x3ff89d(++_0x51874e);}(_0xc99e,0x1d8));var _0xec99=function(_0x5acb4c,_0x3056a9){_0x5acb4c=_0x5acb4c-0x0;var _0x38d75f=_0xc99e[_0x5acb4c];return _0x38d75f;};'use strict';var client=require(_0xec99('0x0'));exports[_0xec99('0x1')]=function(){return function(_0x4bb46d){return client['Request'](_0xec99('0x2'),{'options':{'raw':![],'attributes':['id',_0xec99('0x3'),_0xec99('0x4'),'username',_0xec99('0x5'),'email',_0xec99('0x6'),_0xec99('0x7')],'include':[{'model':_0xec99('0x8'),'as':'Configurations','attributes':['id','name'],'include':[{'model':_0xec99('0x9'),'as':'Subjects','attributes':['id',_0xec99('0xa'),_0xec99('0xb'),'variableName'],'include':[{'model':'Variable','as':_0xec99('0xc'),'attributes':['id','name']}]},{'model':_0xec99('0x9'),'as':_0xec99('0xd'),'attributes':['id',_0xec99('0xa'),'content',_0xec99('0xe'),'keyType',_0xec99('0xf'),_0xec99('0x10')],'include':[{'model':_0xec99('0xc'),'as':_0xec99('0xc'),'attributes':['id','name']}]},{'model':_0xec99('0x9'),'as':_0xec99('0x11'),'attributes':['id',_0xec99('0xa'),_0xec99('0xb'),_0xec99('0x12'),_0xec99('0x13'),_0xec99('0x14'),_0xec99('0x10')],'include':[{'model':_0xec99('0xc'),'as':_0xec99('0xc'),'attributes':['id',_0xec99('0x3')]}]}]}]},'log':'GetServicenowkAccount'});};};