Built motion from commit (unavailable).|2.5.1
[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 _0xc9eb=['cm_hopper','scheduledat','phone','priority','lodash','util','../../config/logger','api','bluebird','request-promise','path','rimraf','../../config/environment','./cmHopper.attributes','exports','define','CmHopper'];(function(_0xc25ff3,_0x344727){var _0x150f83=function(_0x2a28b5){while(--_0x2a28b5){_0xc25ff3['push'](_0xc25ff3['shift']());}};_0x150f83(++_0x344727);}(_0xc9eb,0x18b));var _0xbc9e=function(_0x267ce2,_0x16d394){_0x267ce2=_0x267ce2-0x0;var _0xcefe7=_0xc9eb[_0x267ce2];return _0xcefe7;};'use strict';var _=require(_0xbc9e('0x0'));var util=require(_0xbc9e('0x1'));var logger=require(_0xbc9e('0x2'))(_0xbc9e('0x3'));var moment=require('moment');var BPromise=require(_0xbc9e('0x4'));var rp=require(_0xbc9e('0x5'));var fs=require('fs');var path=require(_0xbc9e('0x6'));var rimraf=require(_0xbc9e('0x7'));var config=require(_0xbc9e('0x8'));var attributes=require(_0xbc9e('0x9'));module[_0xbc9e('0xa')]=function(_0x20dfac,_0x19c9ae){return _0x20dfac[_0xbc9e('0xb')](_0xbc9e('0xc'),attributes,{'tableName':_0xbc9e('0xd'),'paranoid':![],'indexes':[{'name':'scheduledat','fields':[_0xbc9e('0xe')]},{'name':_0xbc9e('0xf'),'fields':[_0xbc9e('0xf')]},{'name':_0xbc9e('0x10'),'fields':[_0xbc9e('0x10')]}],'timestamps':!![]});};