Built motion from commit (unavailable).|2.5.17
[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 _0x627b=['GetSugarcrmAccount','../../client','getSugarcrmAccounts','Request','name','password','remoteUri','serverUrl','SugarcrmConfiguration','SugarcrmField','Subjects','type','content','variableName','Variable','Descriptions','key','keyType','keyContent','idField','nameField','customField'];(function(_0x4e25ff,_0x50d478){var _0x2b0b14=function(_0x4d81ee){while(--_0x4d81ee){_0x4e25ff['push'](_0x4e25ff['shift']());}};_0x2b0b14(++_0x50d478);}(_0x627b,0x6f));var _0xb627=function(_0x3b0731,_0xcf9925){_0x3b0731=_0x3b0731-0x0;var _0x4204d7=_0x627b[_0x3b0731];return _0x4204d7;};'use strict';var client=require(_0xb627('0x0'));exports[_0xb627('0x1')]=function(){return function(_0x4540b1){return client[_0xb627('0x2')]('GetSugarcrmAccount',{'options':{'raw':![],'attributes':['id',_0xb627('0x3'),'username',_0xb627('0x4'),_0xb627('0x5'),_0xb627('0x6')],'include':[{'model':_0xb627('0x7'),'as':'Configurations','attributes':['id',_0xb627('0x3')],'include':[{'model':_0xb627('0x8'),'as':_0xb627('0x9'),'attributes':['id',_0xb627('0xa'),_0xb627('0xb'),_0xb627('0xc')],'include':[{'model':_0xb627('0xd'),'as':_0xb627('0xd'),'attributes':['id',_0xb627('0x3')]}]},{'model':_0xb627('0x8'),'as':_0xb627('0xe'),'attributes':['id',_0xb627('0xa'),'content',_0xb627('0xf'),_0xb627('0x10'),_0xb627('0x11'),'variableName'],'include':[{'model':_0xb627('0xd'),'as':_0xb627('0xd'),'attributes':['id',_0xb627('0x3')]}]},{'model':_0xb627('0x8'),'as':'Fields','attributes':['id',_0xb627('0xa'),_0xb627('0xb'),_0xb627('0x12'),_0xb627('0x13'),_0xb627('0x14'),_0xb627('0xc')],'include':[{'model':_0xb627('0xd'),'as':_0xb627('0xd'),'attributes':['id',_0xb627('0x3')]}]}]}]},'log':_0xb627('0x15')});};};