Built motion from commit 9d1906d1.|2.5.40
[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 _0xe1f4=['type','key','keyType','idField','customField','../../client','Request','GetVtigerAccount','name','username','accessKey','remoteUri','serverUrl','VtigerConfiguration','Configurations','VtigerField','Subjects','content','variableName','Variable','Descriptions'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0xe1f4,0x17f));var _0x4e1f=function(_0x3f0da7,_0x473725){_0x3f0da7=_0x3f0da7-0x0;var _0x5eba0a=_0xe1f4[_0x3f0da7];return _0x5eba0a;};'use strict';var client=require(_0x4e1f('0x0'));exports['getVtigerAccounts']=function(){return function(_0x126013){return client[_0x4e1f('0x1')](_0x4e1f('0x2'),{'options':{'raw':![],'attributes':['id',_0x4e1f('0x3'),'description',_0x4e1f('0x4'),_0x4e1f('0x5'),_0x4e1f('0x6'),_0x4e1f('0x7')],'include':[{'model':_0x4e1f('0x8'),'as':_0x4e1f('0x9'),'attributes':['id',_0x4e1f('0x3')],'include':[{'model':_0x4e1f('0xa'),'as':_0x4e1f('0xb'),'attributes':['id','type',_0x4e1f('0xc'),_0x4e1f('0xd')],'include':[{'model':_0x4e1f('0xe'),'as':_0x4e1f('0xe'),'attributes':['id',_0x4e1f('0x3')]}]},{'model':_0x4e1f('0xa'),'as':_0x4e1f('0xf'),'attributes':['id',_0x4e1f('0x10'),_0x4e1f('0xc'),_0x4e1f('0x11'),_0x4e1f('0x12'),'keyContent','variableName'],'include':[{'model':_0x4e1f('0xe'),'as':'Variable','attributes':['id','name']}]},{'model':_0x4e1f('0xa'),'as':'Fields','attributes':['id','type','content',_0x4e1f('0x13'),'nameField',_0x4e1f('0x14'),'variableName'],'include':[{'model':_0x4e1f('0xe'),'as':_0x4e1f('0xe'),'attributes':['id','name']}]}]}]},'log':_0x4e1f('0x2')});};};