f53964288188be540c098c4c69ebd610f759ad3f
[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 _0xd6d2=['ticketType','Dynamics365Field','Subjects','type','content','variableName','Variable','Descriptions','key','keyType','keyContent','Fields','idField','nameField','../../client','getDynamics365Accounts','Request','GetDynamics365Account','username','remoteUri','tenantId','clientId','serverUrl','description','Dynamics365Configuration','Configurations','name'];(function(_0x14510c,_0x3f66f0){var _0x31c5f8=function(_0x1660ec){while(--_0x1660ec){_0x14510c['push'](_0x14510c['shift']());}};_0x31c5f8(++_0x3f66f0);}(_0xd6d2,0xcb));var _0x2d6d=function(_0x5cbf5c,_0x2bd9c9){_0x5cbf5c=_0x5cbf5c-0x0;var _0x54bda4=_0xd6d2[_0x5cbf5c];return _0x54bda4;};'use strict';var client=require(_0x2d6d('0x0'));exports[_0x2d6d('0x1')]=function(){return function(_0x4963d6){return client[_0x2d6d('0x2')](_0x2d6d('0x3'),{'options':{'raw':![],'attributes':['id','name',_0x2d6d('0x4'),'password',_0x2d6d('0x5'),_0x2d6d('0x6'),_0x2d6d('0x7'),'clientSecret',_0x2d6d('0x8'),_0x2d6d('0x9')],'include':[{'model':_0x2d6d('0xa'),'as':_0x2d6d('0xb'),'attributes':['id',_0x2d6d('0xc'),_0x2d6d('0xd')],'include':[{'model':_0x2d6d('0xe'),'as':_0x2d6d('0xf'),'attributes':['id',_0x2d6d('0x10'),_0x2d6d('0x11'),_0x2d6d('0x12')],'include':[{'model':'Variable','as':_0x2d6d('0x13'),'attributes':['id',_0x2d6d('0xc')]}]},{'model':_0x2d6d('0xe'),'as':_0x2d6d('0x14'),'attributes':['id',_0x2d6d('0x10'),'content',_0x2d6d('0x15'),_0x2d6d('0x16'),_0x2d6d('0x17'),_0x2d6d('0x12')],'include':[{'model':_0x2d6d('0x13'),'as':'Variable','attributes':['id',_0x2d6d('0xc')]}]},{'model':_0x2d6d('0xe'),'as':_0x2d6d('0x18'),'attributes':['id',_0x2d6d('0x10'),'content',_0x2d6d('0x19'),_0x2d6d('0x1a'),'customField','variableName'],'include':[{'model':_0x2d6d('0x13'),'as':_0x2d6d('0x13'),'attributes':['id',_0x2d6d('0xc')]}]}]}]},'log':'GetDynamics365Account'});};};