Built motion from commit (unavailable).|2.4.21
[motion2.git] / server / api / cmHopper / cmHopper.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 _0xdf3e=['cm_hopper','scheduledat','priority','lodash','util','api','moment','bluebird','request-promise','path','rimraf','./cmHopper.attributes','exports','define','CmHopper'];(function(_0x12518e,_0x33767f){var _0x445f18=function(_0x1fcff3){while(--_0x1fcff3){_0x12518e['push'](_0x12518e['shift']());}};_0x445f18(++_0x33767f);}(_0xdf3e,0x189));var _0xedf3=function(_0x1778e1,_0x3e1727){_0x1778e1=_0x1778e1-0x0;var _0x2bc4c6=_0xdf3e[_0x1778e1];return _0x2bc4c6;};'use strict';var _=require(_0xedf3('0x0'));var util=require(_0xedf3('0x1'));var logger=require('../../config/logger')(_0xedf3('0x2'));var moment=require(_0xedf3('0x3'));var BPromise=require(_0xedf3('0x4'));var rp=require(_0xedf3('0x5'));var fs=require('fs');var path=require(_0xedf3('0x6'));var rimraf=require(_0xedf3('0x7'));var config=require('../../config/environment');var attributes=require(_0xedf3('0x8'));module[_0xedf3('0x9')]=function(_0x236b40,_0x1aec24){return _0x236b40[_0xedf3('0xa')](_0xedf3('0xb'),attributes,{'tableName':_0xedf3('0xc'),'paranoid':![],'indexes':[{'name':_0xedf3('0xd'),'fields':['scheduledat']},{'name':'phone','fields':['phone']},{'name':'priority','fields':[_0xedf3('0xe')]}],'timestamps':!![]});};