Built motion from commit (unavailable).|2.5.15
[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 _0xcc3a=['scheduledat','phone','lodash','util','../../config/logger','bluebird','request-promise','path','rimraf','../../config/environment','exports','define','CmHopper','cm_hopper'];(function(_0x15d9b4,_0x427b76){var _0x25543e=function(_0x410b00){while(--_0x410b00){_0x15d9b4['push'](_0x15d9b4['shift']());}};_0x25543e(++_0x427b76);}(_0xcc3a,0x144));var _0xacc3=function(_0x19950b,_0x53d0d7){_0x19950b=_0x19950b-0x0;var _0x3c6b41=_0xcc3a[_0x19950b];return _0x3c6b41;};'use strict';var _=require(_0xacc3('0x0'));var util=require(_0xacc3('0x1'));var logger=require(_0xacc3('0x2'))('api');var moment=require('moment');var BPromise=require(_0xacc3('0x3'));var rp=require(_0xacc3('0x4'));var fs=require('fs');var path=require(_0xacc3('0x5'));var rimraf=require(_0xacc3('0x6'));var config=require(_0xacc3('0x7'));var attributes=require('./cmHopper.attributes');module[_0xacc3('0x8')]=function(_0x2fa9ab,_0x3103bd){return _0x2fa9ab[_0xacc3('0x9')](_0xacc3('0xa'),attributes,{'tableName':_0xacc3('0xb'),'paranoid':![],'indexes':[{'name':'scheduledat','fields':[_0xacc3('0xc')]},{'name':_0xacc3('0xd'),'fields':['phone']},{'name':'priority','fields':['priority']}],'timestamps':!![]});};