8c75d6acc71e3e59bda5c0cd5c2ac8a2249b5fdb
[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 _0x66fa=['password','remoteUri','tenantId','clientId','clientSecret','serverUrl','description','Dynamics365Configuration','Configurations','ticketType','Subjects','type','variableName','Variable','Dynamics365Field','Descriptions','key','keyContent','content','idField','nameField','GetDynamics365Account','../../client','getDynamics365Accounts','name','username'];(function(_0x2641f9,_0x26715f){var _0x585741=function(_0x2d1462){while(--_0x2d1462){_0x2641f9['push'](_0x2641f9['shift']());}};_0x585741(++_0x26715f);}(_0x66fa,0x168));var _0xa66f=function(_0x1495d5,_0x581401){_0x1495d5=_0x1495d5-0x0;var _0x320de6=_0x66fa[_0x1495d5];return _0x320de6;};'use strict';var client=require(_0xa66f('0x0'));exports[_0xa66f('0x1')]=function(){return function(_0xab19a){return client['Request']('GetDynamics365Account',{'options':{'raw':![],'attributes':['id',_0xa66f('0x2'),_0xa66f('0x3'),_0xa66f('0x4'),_0xa66f('0x5'),_0xa66f('0x6'),_0xa66f('0x7'),_0xa66f('0x8'),_0xa66f('0x9'),_0xa66f('0xa')],'include':[{'model':_0xa66f('0xb'),'as':_0xa66f('0xc'),'attributes':['id','name',_0xa66f('0xd')],'include':[{'model':'Dynamics365Field','as':_0xa66f('0xe'),'attributes':['id',_0xa66f('0xf'),'content',_0xa66f('0x10')],'include':[{'model':_0xa66f('0x11'),'as':_0xa66f('0x11'),'attributes':['id',_0xa66f('0x2')]}]},{'model':_0xa66f('0x12'),'as':_0xa66f('0x13'),'attributes':['id','type','content',_0xa66f('0x14'),'keyType',_0xa66f('0x15'),_0xa66f('0x10')],'include':[{'model':_0xa66f('0x11'),'as':'Variable','attributes':['id',_0xa66f('0x2')]}]},{'model':_0xa66f('0x12'),'as':'Fields','attributes':['id',_0xa66f('0xf'),_0xa66f('0x16'),_0xa66f('0x17'),_0xa66f('0x18'),'customField',_0xa66f('0x10')],'include':[{'model':_0xa66f('0x11'),'as':'Variable','attributes':['id',_0xa66f('0x2')]}]}]}]},'log':_0xa66f('0x19')});};};