29028ba5e0ebfd5f4def80c832387312d59c2e6c
[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 _0x1e12=['content','variableName','Variable','Descriptions','key','keyType','keyContent','Fields','idField','nameField','customField','../../client','getDynamics365Accounts','Request','GetDynamics365Account','name','username','password','remoteUri','tenantId','clientSecret','serverUrl','description','ticketType','moduleCreate','Dynamics365Field','Subjects','type'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x1e12,0xeb));var _0x21e1=function(_0x3c1c44,_0x147f2f){_0x3c1c44=_0x3c1c44-0x0;var _0x15a595=_0x1e12[_0x3c1c44];return _0x15a595;};'use strict';var client=require(_0x21e1('0x0'));exports[_0x21e1('0x1')]=function(){return function(_0x167724){return client[_0x21e1('0x2')](_0x21e1('0x3'),{'options':{'raw':![],'attributes':['id',_0x21e1('0x4'),_0x21e1('0x5'),_0x21e1('0x6'),_0x21e1('0x7'),_0x21e1('0x8'),'clientId',_0x21e1('0x9'),_0x21e1('0xa'),_0x21e1('0xb')],'include':[{'model':'Dynamics365Configuration','as':'Configurations','attributes':['id','name',_0x21e1('0xc'),_0x21e1('0xd')],'include':[{'model':_0x21e1('0xe'),'as':_0x21e1('0xf'),'attributes':['id',_0x21e1('0x10'),_0x21e1('0x11'),_0x21e1('0x12')],'include':[{'model':_0x21e1('0x13'),'as':_0x21e1('0x13'),'attributes':['id',_0x21e1('0x4')]}]},{'model':_0x21e1('0xe'),'as':_0x21e1('0x14'),'attributes':['id','type',_0x21e1('0x11'),_0x21e1('0x15'),_0x21e1('0x16'),_0x21e1('0x17'),'variableName'],'include':[{'model':_0x21e1('0x13'),'as':_0x21e1('0x13'),'attributes':['id',_0x21e1('0x4')]}]},{'model':_0x21e1('0xe'),'as':_0x21e1('0x18'),'attributes':['id',_0x21e1('0x10'),_0x21e1('0x11'),_0x21e1('0x19'),_0x21e1('0x1a'),_0x21e1('0x1b'),_0x21e1('0x12')],'include':[{'model':'Variable','as':_0x21e1('0x13'),'attributes':['id','name']}]}]}]},'log':_0x21e1('0x3')});};};