95d142e02d89acdc2de1b74a1406c857bac9f29f
[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 _0x8d0e=['type','content','variableName','Variable','Descriptions','key','keyType','keyContent','Fields','customField','GetServicenowkAccount','../../client','getServicenowAccounts','Request','GetServicenowAccount','name','description','username','password','remoteUri','Configurations','ServicenowField','Subjects'];(function(_0x32f845,_0x335cb9){var _0x3c0de4=function(_0x44c308){while(--_0x44c308){_0x32f845['push'](_0x32f845['shift']());}};_0x3c0de4(++_0x335cb9);}(_0x8d0e,0x1d7));var _0xe8d0=function(_0x3b9475,_0x4c4e0f){_0x3b9475=_0x3b9475-0x0;var _0x2049ab=_0x8d0e[_0x3b9475];return _0x2049ab;};'use strict';var client=require(_0xe8d0('0x0'));exports[_0xe8d0('0x1')]=function(){return function(_0xe2de5d){return client[_0xe8d0('0x2')](_0xe8d0('0x3'),{'options':{'raw':![],'attributes':['id',_0xe8d0('0x4'),_0xe8d0('0x5'),_0xe8d0('0x6'),_0xe8d0('0x7'),'email',_0xe8d0('0x8'),'serverUrl'],'include':[{'model':'ServicenowConfiguration','as':_0xe8d0('0x9'),'attributes':['id',_0xe8d0('0x4')],'include':[{'model':_0xe8d0('0xa'),'as':_0xe8d0('0xb'),'attributes':['id',_0xe8d0('0xc'),_0xe8d0('0xd'),_0xe8d0('0xe')],'include':[{'model':_0xe8d0('0xf'),'as':'Variable','attributes':['id',_0xe8d0('0x4')]}]},{'model':_0xe8d0('0xa'),'as':_0xe8d0('0x10'),'attributes':['id','type','content',_0xe8d0('0x11'),_0xe8d0('0x12'),_0xe8d0('0x13'),_0xe8d0('0xe')],'include':[{'model':_0xe8d0('0xf'),'as':_0xe8d0('0xf'),'attributes':['id','name']}]},{'model':_0xe8d0('0xa'),'as':_0xe8d0('0x14'),'attributes':['id','type',_0xe8d0('0xd'),'idField','nameField',_0xe8d0('0x15'),_0xe8d0('0xe')],'include':[{'model':_0xe8d0('0xf'),'as':_0xe8d0('0xf'),'attributes':['id',_0xe8d0('0x4')]}]}]}]},'log':_0xe8d0('0x16')});};};