69e450f0755f2c77f902b455059f8275a12b064d
[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 _0x2bfe=['remoteUri','serverUrl','SugarcrmConfiguration','name','SugarcrmField','Subjects','type','variableName','Variable','Descriptions','content','key','keyType','keyContent','Fields','idField','nameField','../../client','getSugarcrmAccounts','Request','GetSugarcrmAccount','username','password'];(function(_0x454d82,_0x3794df){var _0x21fecb=function(_0x234c13){while(--_0x234c13){_0x454d82['push'](_0x454d82['shift']());}};_0x21fecb(++_0x3794df);}(_0x2bfe,0x125));var _0xe2bf=function(_0x5ddb1c,_0x5ea4df){_0x5ddb1c=_0x5ddb1c-0x0;var _0x354adc=_0x2bfe[_0x5ddb1c];return _0x354adc;};'use strict';var client=require(_0xe2bf('0x0'));exports[_0xe2bf('0x1')]=function(){return function(_0x557661){return client[_0xe2bf('0x2')](_0xe2bf('0x3'),{'options':{'raw':![],'attributes':['id','name',_0xe2bf('0x4'),_0xe2bf('0x5'),_0xe2bf('0x6'),_0xe2bf('0x7')],'include':[{'model':_0xe2bf('0x8'),'as':'Configurations','attributes':['id',_0xe2bf('0x9')],'include':[{'model':_0xe2bf('0xa'),'as':_0xe2bf('0xb'),'attributes':['id',_0xe2bf('0xc'),'content',_0xe2bf('0xd')],'include':[{'model':_0xe2bf('0xe'),'as':_0xe2bf('0xe'),'attributes':['id',_0xe2bf('0x9')]}]},{'model':_0xe2bf('0xa'),'as':_0xe2bf('0xf'),'attributes':['id','type',_0xe2bf('0x10'),_0xe2bf('0x11'),_0xe2bf('0x12'),_0xe2bf('0x13'),'variableName'],'include':[{'model':_0xe2bf('0xe'),'as':_0xe2bf('0xe'),'attributes':['id','name']}]},{'model':'SugarcrmField','as':_0xe2bf('0x14'),'attributes':['id','type','content',_0xe2bf('0x15'),_0xe2bf('0x16'),'customField','variableName'],'include':[{'model':_0xe2bf('0xe'),'as':_0xe2bf('0xe'),'attributes':['id',_0xe2bf('0x9')]}]}]}]},'log':_0xe2bf('0x3')});};};