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