Built motion from commit (unavailable).|2.5.6
[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 _0x45af=['scheduledat','phone','priority','lodash','../../config/logger','api','moment','request-promise','path','../../config/environment','./cmHopper.attributes','exports','CmHopper','cm_hopper'];(function(_0x1f45cd,_0x513fc6){var _0x31490c=function(_0x3470e3){while(--_0x3470e3){_0x1f45cd['push'](_0x1f45cd['shift']());}};_0x31490c(++_0x513fc6);}(_0x45af,0x1a7));var _0xf45a=function(_0x276033,_0xa0ff79){_0x276033=_0x276033-0x0;var _0x2a78ce=_0x45af[_0x276033];return _0x2a78ce;};'use strict';var _=require(_0xf45a('0x0'));var util=require('util');var logger=require(_0xf45a('0x1'))(_0xf45a('0x2'));var moment=require(_0xf45a('0x3'));var BPromise=require('bluebird');var rp=require(_0xf45a('0x4'));var fs=require('fs');var path=require(_0xf45a('0x5'));var rimraf=require('rimraf');var config=require(_0xf45a('0x6'));var attributes=require(_0xf45a('0x7'));module[_0xf45a('0x8')]=function(_0x373927,_0x4a3a37){return _0x373927['define'](_0xf45a('0x9'),attributes,{'tableName':_0xf45a('0xa'),'paranoid':![],'indexes':[{'name':_0xf45a('0xb'),'fields':[_0xf45a('0xb')]},{'name':_0xf45a('0xc'),'fields':[_0xf45a('0xc')]},{'name':'priority','fields':[_0xf45a('0xd')]}],'timestamps':!![]});};