243a8836529e0eeff8701be23608e7403adfe153
[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 _0x3f40=['define','ZendeskField','int_zendesk_fields','zendesk_unique_index','FieldId','lodash','util','../../config/logger','moment','request-promise','path','rimraf','../../config/environment','exports'];(function(_0x1a014b,_0x48acae){var _0x462258=function(_0x1473be){while(--_0x1473be){_0x1a014b['push'](_0x1a014b['shift']());}};_0x462258(++_0x48acae);}(_0x3f40,0xbb));var _0x03f4=function(_0x1fe895,_0x2872c0){_0x1fe895=_0x1fe895-0x0;var _0x4b71e2=_0x3f40[_0x1fe895];return _0x4b71e2;};'use strict';var _=require(_0x03f4('0x0'));var util=require(_0x03f4('0x1'));var logger=require(_0x03f4('0x2'))('api');var moment=require(_0x03f4('0x3'));var BPromise=require('bluebird');var rp=require(_0x03f4('0x4'));var fs=require('fs');var path=require(_0x03f4('0x5'));var rimraf=require(_0x03f4('0x6'));var config=require(_0x03f4('0x7'));var attributes=require('./intZendeskField.attributes');module[_0x03f4('0x8')]=function(_0x3b42bb,_0x196b64){return _0x3b42bb[_0x03f4('0x9')](_0x03f4('0xa'),attributes,{'tableName':_0x03f4('0xb'),'paranoid':![],'indexes':[{'name':_0x03f4('0xc'),'fields':['idField',_0x03f4('0xd')],'unique':!![]}],'timestamps':!![]});};