ffaa6ab4db206e3ba9b0a4b6ee8c76c6f4c05148
[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 _0x85b9=['Descriptions','key','keyType','keyContent','variableName','Fields','nameField','customField','getSugarcrmAccounts','Request','GetSugarcrmAccount','name','password','remoteUri','serverUrl','SugarcrmConfiguration','Configurations','SugarcrmField','type','content','Variable'];(function(_0x2fc012,_0x503e5b){var _0x2891f9=function(_0x295f5e){while(--_0x295f5e){_0x2fc012['push'](_0x2fc012['shift']());}};_0x2891f9(++_0x503e5b);}(_0x85b9,0x71));var _0x985b=function(_0x819464,_0x46fc91){_0x819464=_0x819464-0x0;var _0x49dcc0=_0x85b9[_0x819464];return _0x49dcc0;};'use strict';var client=require('../../client');exports[_0x985b('0x0')]=function(){return function(_0x46007c){return client[_0x985b('0x1')](_0x985b('0x2'),{'options':{'raw':![],'attributes':['id',_0x985b('0x3'),'username',_0x985b('0x4'),_0x985b('0x5'),_0x985b('0x6')],'include':[{'model':_0x985b('0x7'),'as':_0x985b('0x8'),'attributes':['id',_0x985b('0x3')],'include':[{'model':_0x985b('0x9'),'as':'Subjects','attributes':['id',_0x985b('0xa'),_0x985b('0xb'),'variableName'],'include':[{'model':_0x985b('0xc'),'as':_0x985b('0xc'),'attributes':['id',_0x985b('0x3')]}]},{'model':_0x985b('0x9'),'as':_0x985b('0xd'),'attributes':['id',_0x985b('0xa'),'content',_0x985b('0xe'),_0x985b('0xf'),_0x985b('0x10'),_0x985b('0x11')],'include':[{'model':_0x985b('0xc'),'as':_0x985b('0xc'),'attributes':['id',_0x985b('0x3')]}]},{'model':_0x985b('0x9'),'as':_0x985b('0x12'),'attributes':['id','type','content','idField',_0x985b('0x13'),_0x985b('0x14'),'variableName'],'include':[{'model':_0x985b('0xc'),'as':'Variable','attributes':['id',_0x985b('0x3')]}]}]}]},'log':_0x985b('0x2')});};};