Built motion from commit (unavailable).|2.5.2
[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 _0x3e74=['type','content','variableName','Variable','Descriptions','key','keyContent','name','Fields','idField','nameField','customField','GetServicenowkAccount','../../client','Request','GetServicenowAccount','username','email','remoteUri','serverUrl','ServicenowConfiguration','Configurations','ServicenowField','Subjects'];(function(_0x50cd41,_0x4874a7){var _0x399475=function(_0x1946da){while(--_0x1946da){_0x50cd41['push'](_0x50cd41['shift']());}};_0x399475(++_0x4874a7);}(_0x3e74,0x175));var _0x43e7=function(_0x56ca18,_0x427465){_0x56ca18=_0x56ca18-0x0;var _0x4f6336=_0x3e74[_0x56ca18];return _0x4f6336;};'use strict';var client=require(_0x43e7('0x0'));exports['getServicenowAccounts']=function(){return function(_0x349480){return client[_0x43e7('0x1')](_0x43e7('0x2'),{'options':{'raw':![],'attributes':['id','name','description',_0x43e7('0x3'),'password',_0x43e7('0x4'),_0x43e7('0x5'),_0x43e7('0x6')],'include':[{'model':_0x43e7('0x7'),'as':_0x43e7('0x8'),'attributes':['id','name'],'include':[{'model':_0x43e7('0x9'),'as':_0x43e7('0xa'),'attributes':['id',_0x43e7('0xb'),_0x43e7('0xc'),_0x43e7('0xd')],'include':[{'model':'Variable','as':_0x43e7('0xe'),'attributes':['id','name']}]},{'model':'ServicenowField','as':_0x43e7('0xf'),'attributes':['id',_0x43e7('0xb'),'content',_0x43e7('0x10'),'keyType',_0x43e7('0x11'),_0x43e7('0xd')],'include':[{'model':'Variable','as':_0x43e7('0xe'),'attributes':['id',_0x43e7('0x12')]}]},{'model':_0x43e7('0x9'),'as':_0x43e7('0x13'),'attributes':['id','type','content',_0x43e7('0x14'),_0x43e7('0x15'),_0x43e7('0x16'),'variableName'],'include':[{'model':'Variable','as':_0x43e7('0xe'),'attributes':['id',_0x43e7('0x12')]}]}]}]},'log':_0x43e7('0x17')});};};