Built motion from commit (unavailable).|2.5.14
[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 _0xcbe1=['util','request-promise','path','../../config/environment','exports','define','ZendeskField','int_zendesk_fields','zendesk_unique_index','idField','FieldId'];(function(_0x5d2803,_0xf375bd){var _0xdcad2c=function(_0x3c3a98){while(--_0x3c3a98){_0x5d2803['push'](_0x5d2803['shift']());}};_0xdcad2c(++_0xf375bd);}(_0xcbe1,0x1a2));var _0x1cbe=function(_0x44ca6e,_0x5e2c91){_0x44ca6e=_0x44ca6e-0x0;var _0x2edab2=_0xcbe1[_0x44ca6e];return _0x2edab2;};'use strict';var _=require('lodash');var util=require(_0x1cbe('0x0'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x1cbe('0x1'));var fs=require('fs');var path=require(_0x1cbe('0x2'));var rimraf=require('rimraf');var config=require(_0x1cbe('0x3'));var attributes=require('./intZendeskField.attributes');module[_0x1cbe('0x4')]=function(_0x168121,_0x5603f7){return _0x168121[_0x1cbe('0x5')](_0x1cbe('0x6'),attributes,{'tableName':_0x1cbe('0x7'),'paranoid':![],'indexes':[{'name':_0x1cbe('0x8'),'fields':[_0x1cbe('0x9'),_0x1cbe('0xa')],'unique':!![]}],'timestamps':!![]});};