Built motion from commit e0fa946e.|2.6.5
[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 _0xa44b=['rimraf','exports','ZendeskField','int_zendesk_fields','zendesk_unique_index','idField','lodash','util','../../config/logger','api','bluebird','request-promise'];(function(_0x2fab89,_0x5672c8){var _0x21cea7=function(_0x13755a){while(--_0x13755a){_0x2fab89['push'](_0x2fab89['shift']());}};_0x21cea7(++_0x5672c8);}(_0xa44b,0x156));var _0xba44=function(_0x4c0619,_0x58dd6b){_0x4c0619=_0x4c0619-0x0;var _0x40ee84=_0xa44b[_0x4c0619];return _0x40ee84;};'use strict';var _=require(_0xba44('0x0'));var util=require(_0xba44('0x1'));var logger=require(_0xba44('0x2'))(_0xba44('0x3'));var moment=require('moment');var BPromise=require(_0xba44('0x4'));var rp=require(_0xba44('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0xba44('0x6'));var config=require('../../config/environment');var attributes=require('./intZendeskField.attributes');module[_0xba44('0x7')]=function(_0x4d38bd,_0xeeb512){return _0x4d38bd['define'](_0xba44('0x8'),attributes,{'tableName':_0xba44('0x9'),'paranoid':![],'indexes':[{'name':_0xba44('0xa'),'fields':[_0xba44('0xb'),'FieldId'],'unique':!![]}],'timestamps':!![]});};