Built motion from commit 616d3211.|2.6.4
[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 _0x0e02=['path','../../config/environment','./intZendeskField.attributes','exports','int_zendesk_fields','zendesk_unique_index','idField','FieldId','lodash','util','../../config/logger','api','moment','bluebird','request-promise'];(function(_0x268111,_0x31c1f9){var _0x54e72a=function(_0x16e79c){while(--_0x16e79c){_0x268111['push'](_0x268111['shift']());}};_0x54e72a(++_0x31c1f9);}(_0x0e02,0x143));var _0x20e0=function(_0x5b3b58,_0x30efe4){_0x5b3b58=_0x5b3b58-0x0;var _0x5f244f=_0x0e02[_0x5b3b58];return _0x5f244f;};'use strict';var _=require(_0x20e0('0x0'));var util=require(_0x20e0('0x1'));var logger=require(_0x20e0('0x2'))(_0x20e0('0x3'));var moment=require(_0x20e0('0x4'));var BPromise=require(_0x20e0('0x5'));var rp=require(_0x20e0('0x6'));var fs=require('fs');var path=require(_0x20e0('0x7'));var rimraf=require('rimraf');var config=require(_0x20e0('0x8'));var attributes=require(_0x20e0('0x9'));module[_0x20e0('0xa')]=function(_0x1272ac,_0x2e48ee){return _0x1272ac['define']('ZendeskField',attributes,{'tableName':_0x20e0('0xb'),'paranoid':![],'indexes':[{'name':_0x20e0('0xc'),'fields':[_0x20e0('0xd'),_0x20e0('0xe')],'unique':!![]}],'timestamps':!![]});};