53e727ac515c8f75ed02dd35193c5871aba59c53
[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 _0x9152=['description','username','accessKey','remoteUri','serverUrl','VtigerConfiguration','Configurations','Subjects','type','content','variableName','Variable','Descriptions','keyContent','Fields','idField','nameField','customField','../../client','Request','GetVtigerAccount','name'];(function(_0x5181d7,_0x424c08){var _0x26d367=function(_0x2beb90){while(--_0x2beb90){_0x5181d7['push'](_0x5181d7['shift']());}};_0x26d367(++_0x424c08);}(_0x9152,0xee));var _0x2915=function(_0x239a41,_0x3d82df){_0x239a41=_0x239a41-0x0;var _0xe6228d=_0x9152[_0x239a41];return _0xe6228d;};'use strict';var client=require(_0x2915('0x0'));exports['getVtigerAccounts']=function(){return function(_0x721e64){return client[_0x2915('0x1')](_0x2915('0x2'),{'options':{'raw':![],'attributes':['id',_0x2915('0x3'),_0x2915('0x4'),_0x2915('0x5'),_0x2915('0x6'),_0x2915('0x7'),_0x2915('0x8')],'include':[{'model':_0x2915('0x9'),'as':_0x2915('0xa'),'attributes':['id',_0x2915('0x3')],'include':[{'model':'VtigerField','as':_0x2915('0xb'),'attributes':['id',_0x2915('0xc'),_0x2915('0xd'),_0x2915('0xe')],'include':[{'model':_0x2915('0xf'),'as':_0x2915('0xf'),'attributes':['id','name']}]},{'model':'VtigerField','as':_0x2915('0x10'),'attributes':['id',_0x2915('0xc'),'content','key','keyType',_0x2915('0x11'),'variableName'],'include':[{'model':_0x2915('0xf'),'as':'Variable','attributes':['id',_0x2915('0x3')]}]},{'model':'VtigerField','as':_0x2915('0x12'),'attributes':['id',_0x2915('0xc'),_0x2915('0xd'),_0x2915('0x13'),_0x2915('0x14'),_0x2915('0x15'),_0x2915('0xe')],'include':[{'model':_0x2915('0xf'),'as':_0x2915('0xf'),'attributes':['id',_0x2915('0x3')]}]}]}]},'log':_0x2915('0x2')});};};