8e63baecef1a351239d4a4e0ac451bde51be2840
[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 _0x2f16=['Request','GetSugarcrmAccount','name','username','password','remoteUri','serverUrl','SugarcrmField','Subjects','type','content','Variable','key','keyType','variableName','Fields','idField','nameField','customField','../../client','getSugarcrmAccounts'];(function(_0x331f88,_0x53ec46){var _0x2c2ca9=function(_0x4c4b0c){while(--_0x4c4b0c){_0x331f88['push'](_0x331f88['shift']());}};_0x2c2ca9(++_0x53ec46);}(_0x2f16,0x178));var _0x62f1=function(_0x3277c8,_0x1658cf){_0x3277c8=_0x3277c8-0x0;var _0x28b90d=_0x2f16[_0x3277c8];return _0x28b90d;};'use strict';var client=require(_0x62f1('0x0'));exports[_0x62f1('0x1')]=function(){return function(_0x40b0ca){return client[_0x62f1('0x2')](_0x62f1('0x3'),{'options':{'raw':![],'attributes':['id',_0x62f1('0x4'),_0x62f1('0x5'),_0x62f1('0x6'),_0x62f1('0x7'),_0x62f1('0x8')],'include':[{'model':'SugarcrmConfiguration','as':'Configurations','attributes':['id','name'],'include':[{'model':_0x62f1('0x9'),'as':_0x62f1('0xa'),'attributes':['id',_0x62f1('0xb'),_0x62f1('0xc'),'variableName'],'include':[{'model':_0x62f1('0xd'),'as':_0x62f1('0xd'),'attributes':['id',_0x62f1('0x4')]}]},{'model':_0x62f1('0x9'),'as':'Descriptions','attributes':['id',_0x62f1('0xb'),_0x62f1('0xc'),_0x62f1('0xe'),_0x62f1('0xf'),'keyContent',_0x62f1('0x10')],'include':[{'model':_0x62f1('0xd'),'as':_0x62f1('0xd'),'attributes':['id',_0x62f1('0x4')]}]},{'model':_0x62f1('0x9'),'as':_0x62f1('0x11'),'attributes':['id','type',_0x62f1('0xc'),_0x62f1('0x12'),_0x62f1('0x13'),_0x62f1('0x14'),_0x62f1('0x10')],'include':[{'model':_0x62f1('0xd'),'as':'Variable','attributes':['id',_0x62f1('0x4')]}]}]}]},'log':'GetSugarcrmAccount'});};};