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 _0xccde=['./intZendeskField.attributes','exports','define','ZendeskField','int_zendesk_fields','zendesk_unique_index','idField','FieldId','util','../../config/logger','moment','request-promise','rimraf','../../config/environment'];(function(_0x301604,_0x5cb5dd){var _0x191bfa=function(_0x2d308f){while(--_0x2d308f){_0x301604['push'](_0x301604['shift']());}};_0x191bfa(++_0x5cb5dd);}(_0xccde,0x158));var _0xeccd=function(_0x92c450,_0x41f1e3){_0x92c450=_0x92c450-0x0;var _0x2a9599=_0xccde[_0x92c450];return _0x2a9599;};'use strict';var _=require('lodash');var util=require(_0xeccd('0x0'));var logger=require(_0xeccd('0x1'))('api');var moment=require(_0xeccd('0x2'));var BPromise=require('bluebird');var rp=require(_0xeccd('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0xeccd('0x4'));var config=require(_0xeccd('0x5'));var attributes=require(_0xeccd('0x6'));module[_0xeccd('0x7')]=function(_0x13577b,_0x35f5d7){return _0x13577b[_0xeccd('0x8')](_0xeccd('0x9'),attributes,{'tableName':_0xeccd('0xa'),'paranoid':![],'indexes':[{'name':_0xeccd('0xb'),'fields':[_0xeccd('0xc'),_0xeccd('0xd')],'unique':!![]}],'timestamps':!![]});};