Built motion from commit (unavailable).|2.5.12
[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 _0xf120=['clientSecret','serverUrl','description','Dynamics365Configuration','Configurations','Dynamics365Field','type','content','variableName','Descriptions','key','keyType','Variable','Fields','idField','nameField','customField','getDynamics365Accounts','Request','name','username','password','tenantId','clientId'];(function(_0x54d8a8,_0x4cd321){var _0x1e4105=function(_0x5ac284){while(--_0x5ac284){_0x54d8a8['push'](_0x54d8a8['shift']());}};_0x1e4105(++_0x4cd321);}(_0xf120,0x179));var _0x0f12=function(_0x21f04f,_0x93fe5){_0x21f04f=_0x21f04f-0x0;var _0x1f579f=_0xf120[_0x21f04f];return _0x1f579f;};'use strict';var client=require('../../client');exports[_0x0f12('0x0')]=function(){return function(_0x154c82){return client[_0x0f12('0x1')]('GetDynamics365Account',{'options':{'raw':![],'attributes':['id',_0x0f12('0x2'),_0x0f12('0x3'),_0x0f12('0x4'),'remoteUri',_0x0f12('0x5'),_0x0f12('0x6'),_0x0f12('0x7'),_0x0f12('0x8'),_0x0f12('0x9')],'include':[{'model':_0x0f12('0xa'),'as':_0x0f12('0xb'),'attributes':['id',_0x0f12('0x2'),'ticketType'],'include':[{'model':_0x0f12('0xc'),'as':'Subjects','attributes':['id',_0x0f12('0xd'),_0x0f12('0xe'),_0x0f12('0xf')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x0f12('0x2')]}]},{'model':_0x0f12('0xc'),'as':_0x0f12('0x10'),'attributes':['id',_0x0f12('0xd'),_0x0f12('0xe'),_0x0f12('0x11'),_0x0f12('0x12'),'keyContent',_0x0f12('0xf')],'include':[{'model':_0x0f12('0x13'),'as':_0x0f12('0x13'),'attributes':['id',_0x0f12('0x2')]}]},{'model':_0x0f12('0xc'),'as':_0x0f12('0x14'),'attributes':['id',_0x0f12('0xd'),_0x0f12('0xe'),_0x0f12('0x15'),_0x0f12('0x16'),_0x0f12('0x17'),_0x0f12('0xf')],'include':[{'model':_0x0f12('0x13'),'as':_0x0f12('0x13'),'attributes':['id',_0x0f12('0x2')]}]}]}]},'log':'GetDynamics365Account'});};};