fcb5d06d342b08ff7ffac8f99fb78e68a9c56975
[motion2.git] / server / services / ami / rpc / integrations / vtiger.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 _0xbc5b=['remoteUri','serverUrl','VtigerConfiguration','VtigerField','Subjects','type','content','Variable','Descriptions','keyType','keyContent','Fields','nameField','customField','variableName','../../client','getVtigerAccounts','Request','GetVtigerAccount','name','description','username'];(function(_0x59f4a5,_0x5d4944){var _0x38f1a7=function(_0x1e1b06){while(--_0x1e1b06){_0x59f4a5['push'](_0x59f4a5['shift']());}};_0x38f1a7(++_0x5d4944);}(_0xbc5b,0xbf));var _0xbbc5=function(_0x4565bf,_0x5ad9d6){_0x4565bf=_0x4565bf-0x0;var _0x5610ba=_0xbc5b[_0x4565bf];return _0x5610ba;};'use strict';var client=require(_0xbbc5('0x0'));exports[_0xbbc5('0x1')]=function(){return function(_0x30c078){return client[_0xbbc5('0x2')](_0xbbc5('0x3'),{'options':{'raw':![],'attributes':['id',_0xbbc5('0x4'),_0xbbc5('0x5'),_0xbbc5('0x6'),'accessKey',_0xbbc5('0x7'),_0xbbc5('0x8')],'include':[{'model':_0xbbc5('0x9'),'as':'Configurations','attributes':['id',_0xbbc5('0x4')],'include':[{'model':_0xbbc5('0xa'),'as':_0xbbc5('0xb'),'attributes':['id',_0xbbc5('0xc'),_0xbbc5('0xd'),'variableName'],'include':[{'model':_0xbbc5('0xe'),'as':_0xbbc5('0xe'),'attributes':['id',_0xbbc5('0x4')]}]},{'model':_0xbbc5('0xa'),'as':_0xbbc5('0xf'),'attributes':['id',_0xbbc5('0xc'),_0xbbc5('0xd'),'key',_0xbbc5('0x10'),_0xbbc5('0x11'),'variableName'],'include':[{'model':_0xbbc5('0xe'),'as':_0xbbc5('0xe'),'attributes':['id','name']}]},{'model':_0xbbc5('0xa'),'as':_0xbbc5('0x12'),'attributes':['id',_0xbbc5('0xc'),_0xbbc5('0xd'),'idField',_0xbbc5('0x13'),_0xbbc5('0x14'),_0xbbc5('0x15')],'include':[{'model':_0xbbc5('0xe'),'as':_0xbbc5('0xe'),'attributes':['id',_0xbbc5('0x4')]}]}]}]},'log':_0xbbc5('0x3')});};};