0fdf89701c527716beeb3daae1c5b6d3c19916f2
[motion2.git] / server / services / ami / rpc / integrations / sugarcrm.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 _0x18af=['GetSugarcrmAccount','name','username','password','remoteUri','serverUrl','SugarcrmConfiguration','Configurations','SugarcrmField','type','content','variableName','Variable','Descriptions','key','keyType','nameField','customField','../../client','getSugarcrmAccounts'];(function(_0x2f1ad5,_0x29f487){var _0x1f346e=function(_0x5bf895){while(--_0x5bf895){_0x2f1ad5['push'](_0x2f1ad5['shift']());}};_0x1f346e(++_0x29f487);}(_0x18af,0x17a));var _0xf18a=function(_0x4317d4,_0x33bc39){_0x4317d4=_0x4317d4-0x0;var _0x3f4bde=_0x18af[_0x4317d4];return _0x3f4bde;};'use strict';var client=require(_0xf18a('0x0'));exports[_0xf18a('0x1')]=function(){return function(_0x58e4b3){return client['Request'](_0xf18a('0x2'),{'options':{'raw':![],'attributes':['id',_0xf18a('0x3'),_0xf18a('0x4'),_0xf18a('0x5'),_0xf18a('0x6'),_0xf18a('0x7')],'include':[{'model':_0xf18a('0x8'),'as':_0xf18a('0x9'),'attributes':['id',_0xf18a('0x3')],'include':[{'model':_0xf18a('0xa'),'as':'Subjects','attributes':['id',_0xf18a('0xb'),_0xf18a('0xc'),_0xf18a('0xd')],'include':[{'model':_0xf18a('0xe'),'as':_0xf18a('0xe'),'attributes':['id',_0xf18a('0x3')]}]},{'model':_0xf18a('0xa'),'as':_0xf18a('0xf'),'attributes':['id',_0xf18a('0xb'),_0xf18a('0xc'),_0xf18a('0x10'),_0xf18a('0x11'),'keyContent',_0xf18a('0xd')],'include':[{'model':_0xf18a('0xe'),'as':_0xf18a('0xe'),'attributes':['id',_0xf18a('0x3')]}]},{'model':'SugarcrmField','as':'Fields','attributes':['id',_0xf18a('0xb'),_0xf18a('0xc'),'idField',_0xf18a('0x12'),_0xf18a('0x13'),_0xf18a('0xd')],'include':[{'model':_0xf18a('0xe'),'as':_0xf18a('0xe'),'attributes':['id',_0xf18a('0x3')]}]}]}]},'log':_0xf18a('0x2')});};};