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