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 _0xb79a=['FreshsalesField','int_freshsales_fields','freshsales_unique_index','idField','lodash','util','../../config/logger','bluebird','path','rimraf','../../config/environment','exports','define'];(function(_0x29b609,_0x19d388){var _0x54c952=function(_0xb3c38d){while(--_0xb3c38d){_0x29b609['push'](_0x29b609['shift']());}};_0x54c952(++_0x19d388);}(_0xb79a,0x163));var _0xab79=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0xb79a[_0x321bb2];return _0x9c12ed;};'use strict';var _=require(_0xab79('0x0'));var util=require(_0xab79('0x1'));var logger=require(_0xab79('0x2'))('api');var moment=require('moment');var BPromise=require(_0xab79('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xab79('0x4'));var rimraf=require(_0xab79('0x5'));var config=require(_0xab79('0x6'));var attributes=require('./intFreshsalesField.attributes');module[_0xab79('0x7')]=function(_0x571943,_0x44f09d){return _0x571943[_0xab79('0x8')](_0xab79('0x9'),attributes,{'tableName':_0xab79('0xa'),'paranoid':![],'indexes':[{'name':_0xab79('0xb'),'fields':[_0xab79('0xc'),'FieldId'],'unique':!![]}],'timestamps':!![]});};