a08aa9b86670576409c69b6a2333ed5b83b8cb3e
[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 _0xd6d7=['content','variableName','Variable','SugarcrmField','Descriptions','key','keyContent','Fields','idField','nameField','getSugarcrmAccounts','GetSugarcrmAccount','name','remoteUri','SugarcrmConfiguration','Configurations','Subjects','type'];(function(_0x205030,_0x52652f){var _0x1a5831=function(_0x1ba790){while(--_0x1ba790){_0x205030['push'](_0x205030['shift']());}};_0x1a5831(++_0x52652f);}(_0xd6d7,0x12a));var _0x7d6d=function(_0x8ba4f8,_0x3ba94c){_0x8ba4f8=_0x8ba4f8-0x0;var _0x2a291c=_0xd6d7[_0x8ba4f8];return _0x2a291c;};'use strict';var client=require('../../client');exports[_0x7d6d('0x0')]=function(){return function(_0x16da5f){return client['Request'](_0x7d6d('0x1'),{'options':{'raw':![],'attributes':['id',_0x7d6d('0x2'),'username','password',_0x7d6d('0x3'),'serverUrl'],'include':[{'model':_0x7d6d('0x4'),'as':_0x7d6d('0x5'),'attributes':['id',_0x7d6d('0x2')],'include':[{'model':'SugarcrmField','as':_0x7d6d('0x6'),'attributes':['id',_0x7d6d('0x7'),_0x7d6d('0x8'),_0x7d6d('0x9')],'include':[{'model':'Variable','as':_0x7d6d('0xa'),'attributes':['id',_0x7d6d('0x2')]}]},{'model':_0x7d6d('0xb'),'as':_0x7d6d('0xc'),'attributes':['id',_0x7d6d('0x7'),_0x7d6d('0x8'),_0x7d6d('0xd'),'keyType',_0x7d6d('0xe'),_0x7d6d('0x9')],'include':[{'model':_0x7d6d('0xa'),'as':_0x7d6d('0xa'),'attributes':['id',_0x7d6d('0x2')]}]},{'model':_0x7d6d('0xb'),'as':_0x7d6d('0xf'),'attributes':['id',_0x7d6d('0x7'),_0x7d6d('0x8'),_0x7d6d('0x10'),_0x7d6d('0x11'),'customField','variableName'],'include':[{'model':_0x7d6d('0xa'),'as':_0x7d6d('0xa'),'attributes':['id',_0x7d6d('0x2')]}]}]}]},'log':_0x7d6d('0x1')});};};