Built motion from commit (unavailable).|2.5.29
[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 _0x2da9=['define','int_desk_fields','desk_unique_index','idField','FieldId','lodash','util','../../config/logger','moment','bluebird','request-promise','rimraf','../../config/environment','exports'];(function(_0x128056,_0x4f314b){var _0x47da14=function(_0xf6f119){while(--_0xf6f119){_0x128056['push'](_0x128056['shift']());}};_0x47da14(++_0x4f314b);}(_0x2da9,0xe5));var _0x92da=function(_0x1a1ae7,_0x5c7181){_0x1a1ae7=_0x1a1ae7-0x0;var _0xb1af72=_0x2da9[_0x1a1ae7];return _0xb1af72;};'use strict';var _=require(_0x92da('0x0'));var util=require(_0x92da('0x1'));var logger=require(_0x92da('0x2'))('api');var moment=require(_0x92da('0x3'));var BPromise=require(_0x92da('0x4'));var rp=require(_0x92da('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x92da('0x6'));var config=require(_0x92da('0x7'));var attributes=require('./intDeskField.attributes');module[_0x92da('0x8')]=function(_0x4e2433,_0x27a0c1){return _0x4e2433[_0x92da('0x9')]('DeskField',attributes,{'tableName':_0x92da('0xa'),'paranoid':![],'indexes':[{'name':_0x92da('0xb'),'fields':[_0x92da('0xc'),_0x92da('0xd')],'unique':!![]}],'timestamps':!![]});};