Built motion from commit (unavailable).|2.5.0
[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 _0x3ee7=['request-promise','path','rimraf','../../config/environment','./intZendeskField.attributes','exports','ZendeskField','int_zendesk_fields','idField','util','moment'];(function(_0x186b24,_0x593576){var _0x4dbb2d=function(_0x525592){while(--_0x525592){_0x186b24['push'](_0x186b24['shift']());}};_0x4dbb2d(++_0x593576);}(_0x3ee7,0x98));var _0x73ee=function(_0x75b0d9,_0x40dd78){_0x75b0d9=_0x75b0d9-0x0;var _0x324713=_0x3ee7[_0x75b0d9];return _0x324713;};'use strict';var _=require('lodash');var util=require(_0x73ee('0x0'));var logger=require('../../config/logger')('api');var moment=require(_0x73ee('0x1'));var BPromise=require('bluebird');var rp=require(_0x73ee('0x2'));var fs=require('fs');var path=require(_0x73ee('0x3'));var rimraf=require(_0x73ee('0x4'));var config=require(_0x73ee('0x5'));var attributes=require(_0x73ee('0x6'));module[_0x73ee('0x7')]=function(_0x2bc2c1,_0x447c6f){return _0x2bc2c1['define'](_0x73ee('0x8'),attributes,{'tableName':_0x73ee('0x9'),'paranoid':![],'indexes':[{'name':'zendesk_unique_index','fields':[_0x73ee('0xa'),'FieldId'],'unique':!![]}],'timestamps':!![]});};