Built motion from commit (unavailable).|2.5.22
[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 _0x699e=['exports','define','DeskField','int_desk_fields','desk_unique_index','idField','lodash','util','../../config/logger','api','moment','bluebird','request-promise','./intDeskField.attributes'];(function(_0x4c3217,_0x223df1){var _0x5f17be=function(_0x21658f){while(--_0x21658f){_0x4c3217['push'](_0x4c3217['shift']());}};_0x5f17be(++_0x223df1);}(_0x699e,0x68));var _0xe699=function(_0x38c719,_0x1b266){_0x38c719=_0x38c719-0x0;var _0x3ff3cf=_0x699e[_0x38c719];return _0x3ff3cf;};'use strict';var _=require(_0xe699('0x0'));var util=require(_0xe699('0x1'));var logger=require(_0xe699('0x2'))(_0xe699('0x3'));var moment=require(_0xe699('0x4'));var BPromise=require(_0xe699('0x5'));var rp=require(_0xe699('0x6'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xe699('0x7'));module[_0xe699('0x8')]=function(_0x7b2631,_0x549a89){return _0x7b2631[_0xe699('0x9')](_0xe699('0xa'),attributes,{'tableName':_0xe699('0xb'),'paranoid':![],'indexes':[{'name':_0xe699('0xc'),'fields':[_0xe699('0xd'),'FieldId'],'unique':!![]}],'timestamps':!![]});};