1f862c5d3c38984a8e761302fce7fba34381c3f8
[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 _0x6cc7=['rimraf','../../config/environment','./cmHopper.attributes','CmHopper','scheduledat','phone','priority','../../config/logger','api','moment','request-promise','path'];(function(_0xc063bd,_0x4e57ba){var _0x52a7f7=function(_0x433c5d){while(--_0x433c5d){_0xc063bd['push'](_0xc063bd['shift']());}};_0x52a7f7(++_0x4e57ba);}(_0x6cc7,0xeb));var _0x76cc=function(_0x49d19d,_0x245cf5){_0x49d19d=_0x49d19d-0x0;var _0x4ebef1=_0x6cc7[_0x49d19d];return _0x4ebef1;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x76cc('0x0'))(_0x76cc('0x1'));var moment=require(_0x76cc('0x2'));var BPromise=require('bluebird');var rp=require(_0x76cc('0x3'));var fs=require('fs');var path=require(_0x76cc('0x4'));var rimraf=require(_0x76cc('0x5'));var config=require(_0x76cc('0x6'));var attributes=require(_0x76cc('0x7'));module['exports']=function(_0x24e883,_0x148f24){return _0x24e883['define'](_0x76cc('0x8'),attributes,{'tableName':'cm_hopper','paranoid':![],'indexes':[{'name':_0x76cc('0x9'),'fields':[_0x76cc('0x9')]},{'name':_0x76cc('0xa'),'fields':[_0x76cc('0xa')]},{'name':'priority','fields':[_0x76cc('0xb')]}],'timestamps':!![]});};