8898e978a631533f8c8fcca40bcf2befcd16481d
[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 _0x3a0e=['cm_hopper','priority','lodash','api','moment','request-promise','../../config/environment','./cmHopper.attributes','exports','define','CmHopper'];(function(_0x38adba,_0x70a25d){var _0x1e00ad=function(_0x5cc29b){while(--_0x5cc29b){_0x38adba['push'](_0x38adba['shift']());}};_0x1e00ad(++_0x70a25d);}(_0x3a0e,0x16d));var _0xe3a0=function(_0x1278b6,_0x24252e){_0x1278b6=_0x1278b6-0x0;var _0x2cff42=_0x3a0e[_0x1278b6];return _0x2cff42;};'use strict';var _=require(_0xe3a0('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xe3a0('0x1'));var moment=require(_0xe3a0('0x2'));var BPromise=require('bluebird');var rp=require(_0xe3a0('0x3'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xe3a0('0x4'));var attributes=require(_0xe3a0('0x5'));module[_0xe3a0('0x6')]=function(_0x53761e,_0x3cf566){return _0x53761e[_0xe3a0('0x7')](_0xe3a0('0x8'),attributes,{'tableName':_0xe3a0('0x9'),'paranoid':![],'indexes':[{'name':'scheduledat','fields':['scheduledat']},{'name':'phone','fields':['phone']},{'name':'priority','fields':[_0xe3a0('0xa')]}],'timestamps':!![]});};