b2c55ffb04e6fbd7deccd08bb42463d03e32edb5
[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 _0x733c=['lodash','util','../../config/logger','api','bluebird','request-promise','rimraf','../../config/environment','./cmHopper.attributes','exports','define','CmHopper','cm_hopper','scheduledat','priority'];(function(_0x14add3,_0x13ce8d){var _0x4a174f=function(_0x2b3ed7){while(--_0x2b3ed7){_0x14add3['push'](_0x14add3['shift']());}};_0x4a174f(++_0x13ce8d);}(_0x733c,0x78));var _0xc733=function(_0x525f2c,_0x4f3879){_0x525f2c=_0x525f2c-0x0;var _0x590503=_0x733c[_0x525f2c];return _0x590503;};'use strict';var _=require(_0xc733('0x0'));var util=require(_0xc733('0x1'));var logger=require(_0xc733('0x2'))(_0xc733('0x3'));var moment=require('moment');var BPromise=require(_0xc733('0x4'));var rp=require(_0xc733('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0xc733('0x6'));var config=require(_0xc733('0x7'));var attributes=require(_0xc733('0x8'));module[_0xc733('0x9')]=function(_0xef1bd5,_0x540865){return _0xef1bd5[_0xc733('0xa')](_0xc733('0xb'),attributes,{'tableName':_0xc733('0xc'),'paranoid':![],'indexes':[{'name':'scheduledat','fields':[_0xc733('0xd')]},{'name':'phone','fields':['phone']},{'name':_0xc733('0xe'),'fields':[_0xc733('0xe')]}],'timestamps':!![]});};