Built motion from commit b0a9a629.|2.6.33
[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 _0xe453=['int_zendesk_fields','zendesk_unique_index','FieldId','lodash','util','moment','bluebird','request-promise','path','../../config/environment','./intZendeskField.attributes','exports','ZendeskField'];(function(_0x48c021,_0x454d7a){var _0x1ccc17=function(_0x49f087){while(--_0x49f087){_0x48c021['push'](_0x48c021['shift']());}};_0x1ccc17(++_0x454d7a);}(_0xe453,0xfa));var _0x3e45=function(_0x4e676e,_0x2a7c6d){_0x4e676e=_0x4e676e-0x0;var _0x336a3c=_0xe453[_0x4e676e];return _0x336a3c;};'use strict';var _=require(_0x3e45('0x0'));var util=require(_0x3e45('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x3e45('0x2'));var BPromise=require(_0x3e45('0x3'));var rp=require(_0x3e45('0x4'));var fs=require('fs');var path=require(_0x3e45('0x5'));var rimraf=require('rimraf');var config=require(_0x3e45('0x6'));var attributes=require(_0x3e45('0x7'));module[_0x3e45('0x8')]=function(_0x33215a,_0x19ca00){return _0x33215a['define'](_0x3e45('0x9'),attributes,{'tableName':_0x3e45('0xa'),'paranoid':![],'indexes':[{'name':_0x3e45('0xb'),'fields':['idField',_0x3e45('0xc')],'unique':!![]}],'timestamps':!![]});};