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 _0x02f7=['request-promise','../../config/environment','./intFreshsalesField.attributes','exports','FreshsalesField','int_freshsales_fields','freshsales_unique_index','idField','FieldId','lodash','util','api','moment','bluebird'];(function(_0x35f93c,_0x4ad889){var _0x4b1e5b=function(_0x162df5){while(--_0x162df5){_0x35f93c['push'](_0x35f93c['shift']());}};_0x4b1e5b(++_0x4ad889);}(_0x02f7,0x1f3));var _0x702f=function(_0x16252d,_0xaad177){_0x16252d=_0x16252d-0x0;var _0xeb5dd5=_0x02f7[_0x16252d];return _0xeb5dd5;};'use strict';var _=require(_0x702f('0x0'));var util=require(_0x702f('0x1'));var logger=require('../../config/logger')(_0x702f('0x2'));var moment=require(_0x702f('0x3'));var BPromise=require(_0x702f('0x4'));var rp=require(_0x702f('0x5'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x702f('0x6'));var attributes=require(_0x702f('0x7'));module[_0x702f('0x8')]=function(_0xb9b5ea,_0x3dec84){return _0xb9b5ea['define'](_0x702f('0x9'),attributes,{'tableName':_0x702f('0xa'),'paranoid':![],'indexes':[{'name':_0x702f('0xb'),'fields':[_0x702f('0xc'),_0x702f('0xd')],'unique':!![]}],'timestamps':!![]});};