89e1fccc5d4f26102c27f2fddd6cd5d604a2d513
[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 _0xc6f1=['Variable','Descriptions','content','key','keyType','Fields','nameField','customField','getVtigerAccounts','Request','GetVtigerAccount','name','description','username','accessKey','remoteUri','Configurations','VtigerField','Subjects','type','variableName'];(function(_0x28ce97,_0x4aa1fa){var _0x7210cf=function(_0x410fc9){while(--_0x410fc9){_0x28ce97['push'](_0x28ce97['shift']());}};_0x7210cf(++_0x4aa1fa);}(_0xc6f1,0x71));var _0x1c6f=function(_0x3c59b5,_0x40975c){_0x3c59b5=_0x3c59b5-0x0;var _0x40a8a1=_0xc6f1[_0x3c59b5];return _0x40a8a1;};'use strict';var client=require('../../client');exports[_0x1c6f('0x0')]=function(){return function(_0x4e75bf){return client[_0x1c6f('0x1')](_0x1c6f('0x2'),{'options':{'raw':![],'attributes':['id',_0x1c6f('0x3'),_0x1c6f('0x4'),_0x1c6f('0x5'),_0x1c6f('0x6'),_0x1c6f('0x7'),'serverUrl'],'include':[{'model':'VtigerConfiguration','as':_0x1c6f('0x8'),'attributes':['id',_0x1c6f('0x3')],'include':[{'model':_0x1c6f('0x9'),'as':_0x1c6f('0xa'),'attributes':['id',_0x1c6f('0xb'),'content',_0x1c6f('0xc')],'include':[{'model':_0x1c6f('0xd'),'as':_0x1c6f('0xd'),'attributes':['id',_0x1c6f('0x3')]}]},{'model':_0x1c6f('0x9'),'as':_0x1c6f('0xe'),'attributes':['id',_0x1c6f('0xb'),_0x1c6f('0xf'),_0x1c6f('0x10'),_0x1c6f('0x11'),'keyContent',_0x1c6f('0xc')],'include':[{'model':_0x1c6f('0xd'),'as':'Variable','attributes':['id',_0x1c6f('0x3')]}]},{'model':_0x1c6f('0x9'),'as':_0x1c6f('0x12'),'attributes':['id',_0x1c6f('0xb'),_0x1c6f('0xf'),'idField',_0x1c6f('0x13'),_0x1c6f('0x14'),_0x1c6f('0xc')],'include':[{'model':'Variable','as':_0x1c6f('0xd'),'attributes':['id',_0x1c6f('0x3')]}]}]}]},'log':_0x1c6f('0x2')});};};