1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x6fe5=['rimraf','../../config/environment','./intZohoField.attributes','exports','define','ZohoField','int_zoho_fields','idField','FieldId','lodash','util','../../config/logger','moment'];(function(_0x519756,_0x288785){var _0x37047e=function(_0x3d64a7){while(--_0x3d64a7){_0x519756['push'](_0x519756['shift']());}};_0x37047e(++_0x288785);}(_0x6fe5,0x100));var _0x56fe=function(_0x40cdfc,_0x32c144){_0x40cdfc=_0x40cdfc-0x0;var _0x2d1b6d=_0x6fe5[_0x40cdfc];return _0x2d1b6d;};'use strict';var _=require(_0x56fe('0x0'));var util=require(_0x56fe('0x1'));var logger=require(_0x56fe('0x2'))('api');var moment=require(_0x56fe('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x56fe('0x4'));var config=require(_0x56fe('0x5'));var attributes=require(_0x56fe('0x6'));module[_0x56fe('0x7')]=function(_0x59b48d,_0x32e033){return _0x59b48d[_0x56fe('0x8')](_0x56fe('0x9'),attributes,{'tableName':_0x56fe('0xa'),'paranoid':![],'indexes':[{'name':'zoho_unique_index','fields':[_0x56fe('0xb'),_0x56fe('0xc')],'unique':!![]}],'timestamps':!![]});};