Built motion from commit (unavailable).|2.5.26
[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 _0x236b=['moment','bluebird','path','rimraf','DeskField','int_desk_fields','desk_unique_index','idField','FieldId','util','../../config/logger','api'];(function(_0x51d5c1,_0x1ae343){var _0x3f3cf8=function(_0x222272){while(--_0x222272){_0x51d5c1['push'](_0x51d5c1['shift']());}};_0x3f3cf8(++_0x1ae343);}(_0x236b,0xd5));var _0xb236=function(_0x279271,_0x49bb0a){_0x279271=_0x279271-0x0;var _0x301f31=_0x236b[_0x279271];return _0x301f31;};'use strict';var _=require('lodash');var util=require(_0xb236('0x0'));var logger=require(_0xb236('0x1'))(_0xb236('0x2'));var moment=require(_0xb236('0x3'));var BPromise=require(_0xb236('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xb236('0x5'));var rimraf=require(_0xb236('0x6'));var config=require('../../config/environment');var attributes=require('./intDeskField.attributes');module['exports']=function(_0x5525fc,_0x434e88){return _0x5525fc['define'](_0xb236('0x7'),attributes,{'tableName':_0xb236('0x8'),'paranoid':![],'indexes':[{'name':_0xb236('0x9'),'fields':[_0xb236('0xa'),_0xb236('0xb')],'unique':!![]}],'timestamps':!![]});};