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 _0xc119=['int_zendesk_fields','zendesk_unique_index','idField','lodash','util','../../config/logger','bluebird','path','rimraf','../../config/environment','exports','define','ZendeskField'];(function(_0x5eb05f,_0x11f20e){var _0x36def8=function(_0x4d6d85){while(--_0x4d6d85){_0x5eb05f['push'](_0x5eb05f['shift']());}};_0x36def8(++_0x11f20e);}(_0xc119,0xb9));var _0x9c11=function(_0x15f3c0,_0x165a64){_0x15f3c0=_0x15f3c0-0x0;var _0x1adfe0=_0xc119[_0x15f3c0];return _0x1adfe0;};'use strict';var _=require(_0x9c11('0x0'));var util=require(_0x9c11('0x1'));var logger=require(_0x9c11('0x2'))('api');var moment=require('moment');var BPromise=require(_0x9c11('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x9c11('0x4'));var rimraf=require(_0x9c11('0x5'));var config=require(_0x9c11('0x6'));var attributes=require('./intZendeskField.attributes');module[_0x9c11('0x7')]=function(_0x57f5f7,_0x56b42e){return _0x57f5f7[_0x9c11('0x8')](_0x9c11('0x9'),attributes,{'tableName':_0x9c11('0xa'),'paranoid':![],'indexes':[{'name':_0x9c11('0xb'),'fields':[_0x9c11('0xc'),'FieldId'],'unique':!![]}],'timestamps':!![]});};