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