29ea9ae13072527caf5fc2ce0accece55d9f5d21
[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 _0xe134=['moment','bluebird','request-promise','path','rimraf','exports','ZendeskField','int_zendesk_fields','zendesk_unique_index','idField','FieldId','lodash','util','../../config/logger','api'];(function(_0x234577,_0x3b9004){var _0x28fea6=function(_0x59692d){while(--_0x59692d){_0x234577['push'](_0x234577['shift']());}};_0x28fea6(++_0x3b9004);}(_0xe134,0x1cd));var _0x4e13=function(_0x479cbe,_0x4e3b50){_0x479cbe=_0x479cbe-0x0;var _0x120cd6=_0xe134[_0x479cbe];return _0x120cd6;};'use strict';var _=require(_0x4e13('0x0'));var util=require(_0x4e13('0x1'));var logger=require(_0x4e13('0x2'))(_0x4e13('0x3'));var moment=require(_0x4e13('0x4'));var BPromise=require(_0x4e13('0x5'));var rp=require(_0x4e13('0x6'));var fs=require('fs');var path=require(_0x4e13('0x7'));var rimraf=require(_0x4e13('0x8'));var config=require('../../config/environment');var attributes=require('./intZendeskField.attributes');module[_0x4e13('0x9')]=function(_0x36ebad,_0x50c7e7){return _0x36ebad['define'](_0x4e13('0xa'),attributes,{'tableName':_0x4e13('0xb'),'paranoid':![],'indexes':[{'name':_0x4e13('0xc'),'fields':[_0x4e13('0xd'),_0x4e13('0xe')],'unique':!![]}],'timestamps':!![]});};