Built motion from commit (unavailable).|2.5.10
[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 _0xf3cd=['password','email','serverUrl','ServicenowConfiguration','Configurations','ServicenowField','Subjects','content','Variable','Descriptions','type','key','keyType','keyContent','variableName','Fields','idField','nameField','customField','GetServicenowkAccount','../../client','getServicenowAccounts','Request','GetServicenowAccount','name','username'];(function(_0x5f51d2,_0x4f0133){var _0x24bf08=function(_0x25e6b5){while(--_0x25e6b5){_0x5f51d2['push'](_0x5f51d2['shift']());}};_0x24bf08(++_0x4f0133);}(_0xf3cd,0xfe));var _0xdf3c=function(_0x118733,_0x2bd820){_0x118733=_0x118733-0x0;var _0x4777af=_0xf3cd[_0x118733];return _0x4777af;};'use strict';var client=require(_0xdf3c('0x0'));exports[_0xdf3c('0x1')]=function(){return function(_0x31e5a5){return client[_0xdf3c('0x2')](_0xdf3c('0x3'),{'options':{'raw':![],'attributes':['id',_0xdf3c('0x4'),'description',_0xdf3c('0x5'),_0xdf3c('0x6'),_0xdf3c('0x7'),'remoteUri',_0xdf3c('0x8')],'include':[{'model':_0xdf3c('0x9'),'as':_0xdf3c('0xa'),'attributes':['id',_0xdf3c('0x4')],'include':[{'model':_0xdf3c('0xb'),'as':_0xdf3c('0xc'),'attributes':['id','type',_0xdf3c('0xd'),'variableName'],'include':[{'model':'Variable','as':_0xdf3c('0xe'),'attributes':['id',_0xdf3c('0x4')]}]},{'model':'ServicenowField','as':_0xdf3c('0xf'),'attributes':['id',_0xdf3c('0x10'),_0xdf3c('0xd'),_0xdf3c('0x11'),_0xdf3c('0x12'),_0xdf3c('0x13'),_0xdf3c('0x14')],'include':[{'model':_0xdf3c('0xe'),'as':'Variable','attributes':['id',_0xdf3c('0x4')]}]},{'model':_0xdf3c('0xb'),'as':_0xdf3c('0x15'),'attributes':['id',_0xdf3c('0x10'),'content',_0xdf3c('0x16'),_0xdf3c('0x17'),_0xdf3c('0x18'),'variableName'],'include':[{'model':_0xdf3c('0xe'),'as':_0xdf3c('0xe'),'attributes':['id',_0xdf3c('0x4')]}]}]}]},'log':_0xdf3c('0x19')});};};