Built motion from commit (unavailable).|2.5.22
[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 _0x8152=['Variable','type','key','keyContent','variableName','Fields','nameField','customField','../../client','getSugarcrmAccounts','GetSugarcrmAccount','name','username','password','SugarcrmConfiguration','SugarcrmField','content'];(function(_0x20234a,_0x3b8a5f){var _0x278639=function(_0x20df62){while(--_0x20df62){_0x20234a['push'](_0x20234a['shift']());}};_0x278639(++_0x3b8a5f);}(_0x8152,0x16d));var _0x2815=function(_0x514aee,_0x3bce1c){_0x514aee=_0x514aee-0x0;var _0x52c017=_0x8152[_0x514aee];return _0x52c017;};'use strict';var client=require(_0x2815('0x0'));exports[_0x2815('0x1')]=function(){return function(_0x1b5927){return client['Request'](_0x2815('0x2'),{'options':{'raw':![],'attributes':['id',_0x2815('0x3'),_0x2815('0x4'),_0x2815('0x5'),'remoteUri','serverUrl'],'include':[{'model':_0x2815('0x6'),'as':'Configurations','attributes':['id','name'],'include':[{'model':_0x2815('0x7'),'as':'Subjects','attributes':['id','type',_0x2815('0x8'),'variableName'],'include':[{'model':_0x2815('0x9'),'as':_0x2815('0x9'),'attributes':['id',_0x2815('0x3')]}]},{'model':_0x2815('0x7'),'as':'Descriptions','attributes':['id',_0x2815('0xa'),'content',_0x2815('0xb'),'keyType',_0x2815('0xc'),_0x2815('0xd')],'include':[{'model':_0x2815('0x9'),'as':_0x2815('0x9'),'attributes':['id','name']}]},{'model':_0x2815('0x7'),'as':_0x2815('0xe'),'attributes':['id','type',_0x2815('0x8'),'idField',_0x2815('0xf'),_0x2815('0x10'),'variableName'],'include':[{'model':'Variable','as':_0x2815('0x9'),'attributes':['id',_0x2815('0x3')]}]}]}]},'log':_0x2815('0x2')});};};