4c8dcac606a0f4212bf70724ffcf11abf7558105
[motion2.git] / server / api / intZendeskField / intZendeskField.model.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x70c9=['ZendeskField','int_zendesk_fields','zendesk_unique_index','idField','FieldId','lodash','util','../../config/logger','api','bluebird','request-promise','path','rimraf','../../config/environment','./intZendeskField.attributes','exports','define'];(function(_0xd00f1f,_0x25e249){var _0x409165=function(_0x240877){while(--_0x240877){_0xd00f1f['push'](_0xd00f1f['shift']());}};_0x409165(++_0x25e249);}(_0x70c9,0x148));var _0x970c=function(_0x289488,_0x22d744){_0x289488=_0x289488-0x0;var _0x16c2eb=_0x70c9[_0x289488];return _0x16c2eb;};'use strict';var _=require(_0x970c('0x0'));var util=require(_0x970c('0x1'));var logger=require(_0x970c('0x2'))(_0x970c('0x3'));var moment=require('moment');var BPromise=require(_0x970c('0x4'));var rp=require(_0x970c('0x5'));var fs=require('fs');var path=require(_0x970c('0x6'));var rimraf=require(_0x970c('0x7'));var config=require(_0x970c('0x8'));var attributes=require(_0x970c('0x9'));module[_0x970c('0xa')]=function(_0x38e5a8,_0x4c7c7d){return _0x38e5a8[_0x970c('0xb')](_0x970c('0xc'),attributes,{'tableName':_0x970c('0xd'),'paranoid':![],'indexes':[{'name':_0x970c('0xe'),'fields':[_0x970c('0xf'),_0x970c('0x10')],'unique':!![]}],'timestamps':!![]});};