Built motion from commit (unavailable).|2.3.96
[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 _0xf6c3=['Subjects','content','variableName','Variable','Descriptions','key','keyType','keyContent','type','idField','nameField','getSugarcrmAccounts','Request','GetSugarcrmAccount','name','username','password','serverUrl','SugarcrmConfiguration','SugarcrmField'];(function(_0x175a55,_0x4082fd){var _0x167adf=function(_0x18ef07){while(--_0x18ef07){_0x175a55['push'](_0x175a55['shift']());}};_0x167adf(++_0x4082fd);}(_0xf6c3,0x19b));var _0x3f6c=function(_0x3f6ae4,_0x393869){_0x3f6ae4=_0x3f6ae4-0x0;var _0x290e30=_0xf6c3[_0x3f6ae4];return _0x290e30;};'use strict';var client=require('../../client');exports[_0x3f6c('0x0')]=function(){return function(_0x51e1e3){return client[_0x3f6c('0x1')](_0x3f6c('0x2'),{'options':{'raw':![],'attributes':['id',_0x3f6c('0x3'),_0x3f6c('0x4'),_0x3f6c('0x5'),'remoteUri',_0x3f6c('0x6')],'include':[{'model':_0x3f6c('0x7'),'as':'Configurations','attributes':['id',_0x3f6c('0x3')],'include':[{'model':_0x3f6c('0x8'),'as':_0x3f6c('0x9'),'attributes':['id','type',_0x3f6c('0xa'),_0x3f6c('0xb')],'include':[{'model':_0x3f6c('0xc'),'as':_0x3f6c('0xc'),'attributes':['id',_0x3f6c('0x3')]}]},{'model':'SugarcrmField','as':_0x3f6c('0xd'),'attributes':['id','type',_0x3f6c('0xa'),_0x3f6c('0xe'),_0x3f6c('0xf'),_0x3f6c('0x10'),_0x3f6c('0xb')],'include':[{'model':_0x3f6c('0xc'),'as':'Variable','attributes':['id',_0x3f6c('0x3')]}]},{'model':_0x3f6c('0x8'),'as':'Fields','attributes':['id',_0x3f6c('0x11'),_0x3f6c('0xa'),_0x3f6c('0x12'),_0x3f6c('0x13'),'customField',_0x3f6c('0xb')],'include':[{'model':'Variable','as':'Variable','attributes':['id','name']}]}]}]},'log':_0x3f6c('0x2')});};};