51a9e60945d7229807bbb917fab075ea82abf503
[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 _0xbf6e=['GetSugarcrmAccount','name','username','password','remoteUri','SugarcrmConfiguration','Configurations','SugarcrmField','Subjects','type','content','Variable','Descriptions','key','keyType','keyContent','variableName','Fields','idField','nameField','customField','Request'];(function(_0x46698a,_0x8de1e4){var _0x356db0=function(_0x19e83c){while(--_0x19e83c){_0x46698a['push'](_0x46698a['shift']());}};_0x356db0(++_0x8de1e4);}(_0xbf6e,0x149));var _0xebf6=function(_0x2650e9,_0xb91cc){_0x2650e9=_0x2650e9-0x0;var _0x3511c8=_0xbf6e[_0x2650e9];return _0x3511c8;};'use strict';var client=require('../../client');exports['getSugarcrmAccounts']=function(){return function(_0x1f94d5){return client[_0xebf6('0x0')](_0xebf6('0x1'),{'options':{'raw':![],'attributes':['id',_0xebf6('0x2'),_0xebf6('0x3'),_0xebf6('0x4'),_0xebf6('0x5'),'serverUrl'],'include':[{'model':_0xebf6('0x6'),'as':_0xebf6('0x7'),'attributes':['id',_0xebf6('0x2')],'include':[{'model':_0xebf6('0x8'),'as':_0xebf6('0x9'),'attributes':['id',_0xebf6('0xa'),_0xebf6('0xb'),'variableName'],'include':[{'model':_0xebf6('0xc'),'as':_0xebf6('0xc'),'attributes':['id',_0xebf6('0x2')]}]},{'model':'SugarcrmField','as':_0xebf6('0xd'),'attributes':['id',_0xebf6('0xa'),'content',_0xebf6('0xe'),_0xebf6('0xf'),_0xebf6('0x10'),_0xebf6('0x11')],'include':[{'model':_0xebf6('0xc'),'as':_0xebf6('0xc'),'attributes':['id','name']}]},{'model':_0xebf6('0x8'),'as':_0xebf6('0x12'),'attributes':['id','type',_0xebf6('0xb'),_0xebf6('0x13'),_0xebf6('0x14'),_0xebf6('0x15'),_0xebf6('0x11')],'include':[{'model':'Variable','as':'Variable','attributes':['id','name']}]}]}]},'log':_0xebf6('0x1')});};};