Built motion from commit efa66e19.|2.6.22
[motion2.git] / server / services / ami / rpc / integrations / dynamics365.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 _0x96cc=['data7','../../client','GetDynamics365Account','name','username','password','remoteUri','tenantId','clientId','clientSecret','serverUrl','modernAuthentication','Dynamics365Configuration','Configurations','ticketType','moduleCreate','additionalSearchContact','Dynamics365Field','Subjects','type','variableName','Variable','Descriptions','content','keyType','keyContent','Fields','idField','nameField','customField','CloudProvider','data2','data5'];(function(_0x21a9d9,_0x4d5ac8){var _0x46adce=function(_0xfdd336){while(--_0xfdd336){_0x21a9d9['push'](_0x21a9d9['shift']());}};_0x46adce(++_0x4d5ac8);}(_0x96cc,0x16c));var _0xc96c=function(_0x382e37,_0x3fdb3c){_0x382e37=_0x382e37-0x0;var _0x1ffec6=_0x96cc[_0x382e37];return _0x1ffec6;};'use strict';var client=require(_0xc96c('0x0'));exports['getDynamics365Accounts']=function(){return function(_0x15025f){return client['Request'](_0xc96c('0x1'),{'options':{'raw':![],'attributes':['id',_0xc96c('0x2'),_0xc96c('0x3'),_0xc96c('0x4'),_0xc96c('0x5'),_0xc96c('0x6'),_0xc96c('0x7'),_0xc96c('0x8'),_0xc96c('0x9'),'description',_0xc96c('0xa')],'include':[{'model':_0xc96c('0xb'),'as':_0xc96c('0xc'),'attributes':['id',_0xc96c('0x2'),_0xc96c('0xd'),_0xc96c('0xe'),_0xc96c('0xf'),'openNewTab'],'include':[{'model':_0xc96c('0x10'),'as':_0xc96c('0x11'),'attributes':['id',_0xc96c('0x12'),'content',_0xc96c('0x13')],'include':[{'model':'Variable','as':_0xc96c('0x14'),'attributes':['id','name']}]},{'model':_0xc96c('0x10'),'as':_0xc96c('0x15'),'attributes':['id',_0xc96c('0x12'),_0xc96c('0x16'),'key',_0xc96c('0x17'),_0xc96c('0x18'),_0xc96c('0x13')],'include':[{'model':_0xc96c('0x14'),'as':'Variable','attributes':['id',_0xc96c('0x2')]}]},{'model':_0xc96c('0x10'),'as':_0xc96c('0x19'),'attributes':['id',_0xc96c('0x12'),_0xc96c('0x16'),_0xc96c('0x1a'),_0xc96c('0x1b'),_0xc96c('0x1c'),_0xc96c('0x13')],'include':[{'model':_0xc96c('0x14'),'as':_0xc96c('0x14'),'attributes':['id','name']}]}]},{'model':'CloudProvider','as':_0xc96c('0x1d'),'attributes':['id',_0xc96c('0x1e'),_0xc96c('0x1f'),_0xc96c('0x20')]}]},'log':'GetDynamics365Account'});};};