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 _0x72f0=['ZendeskField','int_zendesk_fields','zendesk_unique_index','idField','FieldId','lodash','util','../../config/logger','moment','request-promise','rimraf','exports'];(function(_0x1a11e7,_0x321768){var _0x3c3a49=function(_0x20b412){while(--_0x20b412){_0x1a11e7['push'](_0x1a11e7['shift']());}};_0x3c3a49(++_0x321768);}(_0x72f0,0xe9));var _0x072f=function(_0x1ccb5d,_0x341da9){_0x1ccb5d=_0x1ccb5d-0x0;var _0x1fe071=_0x72f0[_0x1ccb5d];return _0x1fe071;};'use strict';var _=require(_0x072f('0x0'));var util=require(_0x072f('0x1'));var logger=require(_0x072f('0x2'))('api');var moment=require(_0x072f('0x3'));var BPromise=require('bluebird');var rp=require(_0x072f('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x072f('0x5'));var config=require('../../config/environment');var attributes=require('./intZendeskField.attributes');module[_0x072f('0x6')]=function(_0x3018ec,_0x47cf1f){return _0x3018ec['define'](_0x072f('0x7'),attributes,{'tableName':_0x072f('0x8'),'paranoid':![],'indexes':[{'name':_0x072f('0x9'),'fields':[_0x072f('0xa'),_0x072f('0xb')],'unique':!![]}],'timestamps':!![]});};