Built motion from commit (unavailable).|2.5.31
[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 _0xc17f=['keyContent','Fields','idField','customField','../../client','getSugarcrmAccounts','Request','GetSugarcrmAccount','name','password','remoteUri','serverUrl','SugarcrmConfiguration','SugarcrmField','Subjects','type','content','variableName','Variable','Descriptions'];(function(_0x397014,_0x17cc12){var _0x1163f7=function(_0x290ac1){while(--_0x290ac1){_0x397014['push'](_0x397014['shift']());}};_0x1163f7(++_0x17cc12);}(_0xc17f,0xb8));var _0xfc17=function(_0x44ede8,_0x4e1b37){_0x44ede8=_0x44ede8-0x0;var _0x12fa9d=_0xc17f[_0x44ede8];return _0x12fa9d;};'use strict';var client=require(_0xfc17('0x0'));exports[_0xfc17('0x1')]=function(){return function(_0x45c778){return client[_0xfc17('0x2')](_0xfc17('0x3'),{'options':{'raw':![],'attributes':['id',_0xfc17('0x4'),'username',_0xfc17('0x5'),_0xfc17('0x6'),_0xfc17('0x7')],'include':[{'model':_0xfc17('0x8'),'as':'Configurations','attributes':['id',_0xfc17('0x4')],'include':[{'model':_0xfc17('0x9'),'as':_0xfc17('0xa'),'attributes':['id',_0xfc17('0xb'),_0xfc17('0xc'),_0xfc17('0xd')],'include':[{'model':_0xfc17('0xe'),'as':_0xfc17('0xe'),'attributes':['id','name']}]},{'model':_0xfc17('0x9'),'as':_0xfc17('0xf'),'attributes':['id',_0xfc17('0xb'),_0xfc17('0xc'),'key','keyType',_0xfc17('0x10'),_0xfc17('0xd')],'include':[{'model':_0xfc17('0xe'),'as':_0xfc17('0xe'),'attributes':['id',_0xfc17('0x4')]}]},{'model':_0xfc17('0x9'),'as':_0xfc17('0x11'),'attributes':['id',_0xfc17('0xb'),_0xfc17('0xc'),_0xfc17('0x12'),'nameField',_0xfc17('0x13'),_0xfc17('0xd')],'include':[{'model':_0xfc17('0xe'),'as':'Variable','attributes':['id',_0xfc17('0x4')]}]}]}]},'log':_0xfc17('0x3')});};};