74aa15df25767cd15ecd64d120b9c29c5c028196
[motion2.git] / server / api / intZohoField / intZohoField.model.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 _0x926f=['lodash','../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment','./intZohoField.attributes','exports','define','ZohoField','int_zoho_fields','zoho_unique_index','idField','FieldId'];(function(_0x49ca18,_0x5e6d05){var _0x145d54=function(_0x30b9be){while(--_0x30b9be){_0x49ca18['push'](_0x49ca18['shift']());}};_0x145d54(++_0x5e6d05);}(_0x926f,0x1c0));var _0xf926=function(_0x5b644e,_0x2e5e07){_0x5b644e=_0x5b644e-0x0;var _0x49c6bf=_0x926f[_0x5b644e];return _0x49c6bf;};'use strict';var _=require(_0xf926('0x0'));var util=require('util');var logger=require(_0xf926('0x1'))(_0xf926('0x2'));var moment=require(_0xf926('0x3'));var BPromise=require(_0xf926('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xf926('0x5'));var rimraf=require(_0xf926('0x6'));var config=require(_0xf926('0x7'));var attributes=require(_0xf926('0x8'));module[_0xf926('0x9')]=function(_0x1353f3,_0x1e0b12){return _0x1353f3[_0xf926('0xa')](_0xf926('0xb'),attributes,{'tableName':_0xf926('0xc'),'paranoid':![],'indexes':[{'name':_0xf926('0xd'),'fields':[_0xf926('0xe'),_0xf926('0xf')],'unique':!![]}],'timestamps':!![]});};