Built motion from commit (unavailable).|2.5.30
[motion2.git] / server / api / intDeskField / intDeskField.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 _0x36e0=['../../config/logger','api','moment','path','rimraf','./intDeskField.attributes','exports','DeskField','int_desk_fields','desk_unique_index','lodash','util'];(function(_0x21fdb1,_0x77c956){var _0x18d6ff=function(_0x462af2){while(--_0x462af2){_0x21fdb1['push'](_0x21fdb1['shift']());}};_0x18d6ff(++_0x77c956);}(_0x36e0,0xd6));var _0x036e=function(_0x525e2f,_0xbc47c5){_0x525e2f=_0x525e2f-0x0;var _0x5eaccc=_0x36e0[_0x525e2f];return _0x5eaccc;};'use strict';var _=require(_0x036e('0x0'));var util=require(_0x036e('0x1'));var logger=require(_0x036e('0x2'))(_0x036e('0x3'));var moment=require(_0x036e('0x4'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x036e('0x5'));var rimraf=require(_0x036e('0x6'));var config=require('../../config/environment');var attributes=require(_0x036e('0x7'));module[_0x036e('0x8')]=function(_0x5b38a3,_0x3726cc){return _0x5b38a3['define'](_0x036e('0x9'),attributes,{'tableName':_0x036e('0xa'),'paranoid':![],'indexes':[{'name':_0x036e('0xb'),'fields':['idField','FieldId'],'unique':!![]}],'timestamps':!![]});};