Built motion from commit (unavailable).|2.2.0
[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 _0xce06=['define','CmHopper','scheduledat','phone','priority','lodash','util','../../config/logger','api','request-promise','exports'];(function(_0x5bdef7,_0x1f8ed4){var _0x2a54a0=function(_0x100c40){while(--_0x100c40){_0x5bdef7['push'](_0x5bdef7['shift']());}};_0x2a54a0(++_0x1f8ed4);}(_0xce06,0x1de));var _0x6ce0=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0xce06[_0x321bb2];return _0x9c12ed;};'use strict';var _=require(_0x6ce0('0x0'));var util=require(_0x6ce0('0x1'));var logger=require(_0x6ce0('0x2'))(_0x6ce0('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x6ce0('0x4'));var attributes=require('./cmHopper.attributes');module[_0x6ce0('0x5')]=function(_0x19e8d3,_0x191586){return _0x19e8d3[_0x6ce0('0x6')](_0x6ce0('0x7'),attributes,{'tableName':'cm_hopper','paranoid':![],'indexes':[{'name':_0x6ce0('0x8'),'fields':[_0x6ce0('0x8')]},{'name':'phone','fields':[_0x6ce0('0x9')]},{'name':_0x6ce0('0xa'),'fields':[_0x6ce0('0xa')]}],'timestamps':!![]});};