Built motion from commit 25580385.|2.6.2
[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 _0x58e4=['key','keyType','keyContent','Fields','idField','nameField','customField','../../client','Request','GetVtigerAccount','description','username','accessKey','remoteUri','serverUrl','VtigerConfiguration','Configurations','name','VtigerField','Subjects','type','content','variableName','Variable'];(function(_0x296754,_0x5befe9){var _0x1d9f1d=function(_0x3f033e){while(--_0x3f033e){_0x296754['push'](_0x296754['shift']());}};_0x1d9f1d(++_0x5befe9);}(_0x58e4,0x157));var _0x458e=function(_0x3d4e7b,_0x18868d){_0x3d4e7b=_0x3d4e7b-0x0;var _0x490999=_0x58e4[_0x3d4e7b];return _0x490999;};'use strict';var client=require(_0x458e('0x0'));exports['getVtigerAccounts']=function(){return function(_0x5e0880){return client[_0x458e('0x1')](_0x458e('0x2'),{'options':{'raw':![],'attributes':['id','name',_0x458e('0x3'),_0x458e('0x4'),_0x458e('0x5'),_0x458e('0x6'),_0x458e('0x7')],'include':[{'model':_0x458e('0x8'),'as':_0x458e('0x9'),'attributes':['id',_0x458e('0xa')],'include':[{'model':_0x458e('0xb'),'as':_0x458e('0xc'),'attributes':['id',_0x458e('0xd'),_0x458e('0xe'),_0x458e('0xf')],'include':[{'model':_0x458e('0x10'),'as':_0x458e('0x10'),'attributes':['id',_0x458e('0xa')]}]},{'model':_0x458e('0xb'),'as':'Descriptions','attributes':['id',_0x458e('0xd'),_0x458e('0xe'),_0x458e('0x11'),_0x458e('0x12'),_0x458e('0x13'),_0x458e('0xf')],'include':[{'model':'Variable','as':_0x458e('0x10'),'attributes':['id',_0x458e('0xa')]}]},{'model':_0x458e('0xb'),'as':_0x458e('0x14'),'attributes':['id','type',_0x458e('0xe'),_0x458e('0x15'),_0x458e('0x16'),_0x458e('0x17'),_0x458e('0xf')],'include':[{'model':_0x458e('0x10'),'as':_0x458e('0x10'),'attributes':['id',_0x458e('0xa')]}]}]}]},'log':_0x458e('0x2')});};};