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 _0x73e3=['define','FreshdeskField','int_freshdesk_fields','freshdesk_unique_index','lodash','../../config/logger','bluebird','path','rimraf','./intFreshdeskField.attributes'];(function(_0x13319e,_0x2238e7){var _0x27b270=function(_0xdc8a26){while(--_0xdc8a26){_0x13319e['push'](_0x13319e['shift']());}};_0x27b270(++_0x2238e7);}(_0x73e3,0x1e4));var _0x373e=function(_0x2a3c4d,_0x9c6b37){_0x2a3c4d=_0x2a3c4d-0x0;var _0x55c390=_0x73e3[_0x2a3c4d];return _0x55c390;};'use strict';var _=require(_0x373e('0x0'));var util=require('util');var logger=require(_0x373e('0x1'))('api');var moment=require('moment');var BPromise=require(_0x373e('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x373e('0x3'));var rimraf=require(_0x373e('0x4'));var config=require('../../config/environment');var attributes=require(_0x373e('0x5'));module['exports']=function(_0x8bd7eb,_0x1a38b5){return _0x8bd7eb[_0x373e('0x6')](_0x373e('0x7'),attributes,{'tableName':_0x373e('0x8'),'paranoid':![],'indexes':[{'name':_0x373e('0x9'),'fields':['idField','FieldId'],'unique':!![]}],'timestamps':!![]});};