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 _0x6c20=['key','keyType','keyContent','Fields','idField','customField','GetSugarcrmAccount','../../client','getSugarcrmAccounts','Request','name','username','password','remoteUri','serverUrl','SugarcrmConfiguration','Configurations','SugarcrmField','Subjects','type','content','variableName','Variable','Descriptions'];(function(_0x130aee,_0x5efdac){var _0x452dcc=function(_0x2a4a7d){while(--_0x2a4a7d){_0x130aee['push'](_0x130aee['shift']());}};_0x452dcc(++_0x5efdac);}(_0x6c20,0xaf));var _0x06c2=function(_0x846ae8,_0x33a70b){_0x846ae8=_0x846ae8-0x0;var _0x356b00=_0x6c20[_0x846ae8];return _0x356b00;};'use strict';var client=require(_0x06c2('0x0'));exports[_0x06c2('0x1')]=function(){return function(_0x456fbd){return client[_0x06c2('0x2')]('GetSugarcrmAccount',{'options':{'raw':![],'attributes':['id',_0x06c2('0x3'),_0x06c2('0x4'),_0x06c2('0x5'),_0x06c2('0x6'),_0x06c2('0x7')],'include':[{'model':_0x06c2('0x8'),'as':_0x06c2('0x9'),'attributes':['id',_0x06c2('0x3')],'include':[{'model':_0x06c2('0xa'),'as':_0x06c2('0xb'),'attributes':['id',_0x06c2('0xc'),_0x06c2('0xd'),_0x06c2('0xe')],'include':[{'model':_0x06c2('0xf'),'as':_0x06c2('0xf'),'attributes':['id',_0x06c2('0x3')]}]},{'model':'SugarcrmField','as':_0x06c2('0x10'),'attributes':['id',_0x06c2('0xc'),_0x06c2('0xd'),_0x06c2('0x11'),_0x06c2('0x12'),_0x06c2('0x13'),'variableName'],'include':[{'model':_0x06c2('0xf'),'as':_0x06c2('0xf'),'attributes':['id','name']}]},{'model':_0x06c2('0xa'),'as':_0x06c2('0x14'),'attributes':['id',_0x06c2('0xc'),_0x06c2('0xd'),_0x06c2('0x15'),'nameField',_0x06c2('0x16'),_0x06c2('0xe')],'include':[{'model':_0x06c2('0xf'),'as':'Variable','attributes':['id','name']}]}]}]},'log':_0x06c2('0x17')});};};