Built motion from commit (unavailable).|2.5.16
[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 _0x0be6=['path','../../config/environment','exports','define','DeskField','int_desk_fields','desk_unique_index','idField','FieldId','lodash','../../config/logger','api','moment','bluebird'];(function(_0x1cde21,_0x536555){var _0x391a21=function(_0x5d915f){while(--_0x5d915f){_0x1cde21['push'](_0x1cde21['shift']());}};_0x391a21(++_0x536555);}(_0x0be6,0x175));var _0x60be=function(_0xdcf738,_0x7cca48){_0xdcf738=_0xdcf738-0x0;var _0x3f7966=_0x0be6[_0xdcf738];return _0x3f7966;};'use strict';var _=require(_0x60be('0x0'));var util=require('util');var logger=require(_0x60be('0x1'))(_0x60be('0x2'));var moment=require(_0x60be('0x3'));var BPromise=require(_0x60be('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x60be('0x5'));var rimraf=require('rimraf');var config=require(_0x60be('0x6'));var attributes=require('./intDeskField.attributes');module[_0x60be('0x7')]=function(_0xf7a066,_0x2ac38a){return _0xf7a066[_0x60be('0x8')](_0x60be('0x9'),attributes,{'tableName':_0x60be('0xa'),'paranoid':![],'indexes':[{'name':_0x60be('0xb'),'fields':[_0x60be('0xc'),_0x60be('0xd')],'unique':!![]}],'timestamps':!![]});};