2fe0fa1265e8d34f47a6e516c3d7c2a3cf805950
[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 _0x95e1=['../../config/logger','api','moment','rimraf','../../config/environment','./cmHopper.attributes','exports','CmHopper','cm_hopper','scheduledat','phone','priority','lodash'];(function(_0x32f26d,_0x2c0b5d){var _0x5d9ddc=function(_0x1f0e26){while(--_0x1f0e26){_0x32f26d['push'](_0x32f26d['shift']());}};_0x5d9ddc(++_0x2c0b5d);}(_0x95e1,0x103));var _0x195e=function(_0x36c5b0,_0x5001da){_0x36c5b0=_0x36c5b0-0x0;var _0xf19333=_0x95e1[_0x36c5b0];return _0xf19333;};'use strict';var _=require(_0x195e('0x0'));var util=require('util');var logger=require(_0x195e('0x1'))(_0x195e('0x2'));var moment=require(_0x195e('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x195e('0x4'));var config=require(_0x195e('0x5'));var attributes=require(_0x195e('0x6'));module[_0x195e('0x7')]=function(_0x1d1748,_0x21009b){return _0x1d1748['define'](_0x195e('0x8'),attributes,{'tableName':_0x195e('0x9'),'paranoid':![],'indexes':[{'name':_0x195e('0xa'),'fields':['scheduledat']},{'name':_0x195e('0xb'),'fields':[_0x195e('0xb')]},{'name':_0x195e('0xc'),'fields':[_0x195e('0xc')]}],'timestamps':!![]});};