Built motion from commit da617fac.|2.6.6
[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 _0x383b=['Subjects','type','content','variableName','Variable','Descriptions','key','keyType','keyContent','Fields','idField','nameField','customField','../../client','Request','GetVtigerAccount','description','username','accessKey','remoteUri','serverUrl','VtigerConfiguration','Configurations','name','VtigerField'];(function(_0x24ca45,_0x556eda){var _0x13ef71=function(_0x465ec0){while(--_0x465ec0){_0x24ca45['push'](_0x24ca45['shift']());}};_0x13ef71(++_0x556eda);}(_0x383b,0xbc));var _0xb383=function(_0x3ced91,_0x19cb7a){_0x3ced91=_0x3ced91-0x0;var _0x56fd4c=_0x383b[_0x3ced91];return _0x56fd4c;};'use strict';var client=require(_0xb383('0x0'));exports['getVtigerAccounts']=function(){return function(_0x16432a){return client[_0xb383('0x1')](_0xb383('0x2'),{'options':{'raw':![],'attributes':['id','name',_0xb383('0x3'),_0xb383('0x4'),_0xb383('0x5'),_0xb383('0x6'),_0xb383('0x7')],'include':[{'model':_0xb383('0x8'),'as':_0xb383('0x9'),'attributes':['id',_0xb383('0xa')],'include':[{'model':_0xb383('0xb'),'as':_0xb383('0xc'),'attributes':['id',_0xb383('0xd'),_0xb383('0xe'),_0xb383('0xf')],'include':[{'model':_0xb383('0x10'),'as':_0xb383('0x10'),'attributes':['id',_0xb383('0xa')]}]},{'model':_0xb383('0xb'),'as':_0xb383('0x11'),'attributes':['id',_0xb383('0xd'),_0xb383('0xe'),_0xb383('0x12'),_0xb383('0x13'),_0xb383('0x14'),_0xb383('0xf')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0xb383('0xa')]}]},{'model':'VtigerField','as':_0xb383('0x15'),'attributes':['id',_0xb383('0xd'),_0xb383('0xe'),_0xb383('0x16'),_0xb383('0x17'),_0xb383('0x18'),_0xb383('0xf')],'include':[{'model':_0xb383('0x10'),'as':_0xb383('0x10'),'attributes':['id',_0xb383('0xa')]}]}]}]},'log':_0xb383('0x2')});};};