5daa0cec0327a150001c193bef9c7ca4aebed3ac
[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 _0x2a22=['../../config/environment','./cmHopper.attributes','exports','define','CmHopper','cm_hopper','scheduledat','phone','lodash','util','api','moment','bluebird','request-promise','path','rimraf'];(function(_0x3f2fea,_0x3c4ea8){var _0x69a4d5=function(_0x223109){while(--_0x223109){_0x3f2fea['push'](_0x3f2fea['shift']());}};_0x69a4d5(++_0x3c4ea8);}(_0x2a22,0x178));var _0x22a2=function(_0x1d1779,_0x284147){_0x1d1779=_0x1d1779-0x0;var _0x2377e9=_0x2a22[_0x1d1779];return _0x2377e9;};'use strict';var _=require(_0x22a2('0x0'));var util=require(_0x22a2('0x1'));var logger=require('../../config/logger')(_0x22a2('0x2'));var moment=require(_0x22a2('0x3'));var BPromise=require(_0x22a2('0x4'));var rp=require(_0x22a2('0x5'));var fs=require('fs');var path=require(_0x22a2('0x6'));var rimraf=require(_0x22a2('0x7'));var config=require(_0x22a2('0x8'));var attributes=require(_0x22a2('0x9'));module[_0x22a2('0xa')]=function(_0x3cabd5,_0x58a1e3){return _0x3cabd5[_0x22a2('0xb')](_0x22a2('0xc'),attributes,{'tableName':_0x22a2('0xd'),'paranoid':![],'indexes':[{'name':'scheduledat','fields':[_0x22a2('0xe')]},{'name':_0x22a2('0xf'),'fields':[_0x22a2('0xf')]},{'name':'priority','fields':['priority']}],'timestamps':!![]});};