Built motion from commit (unavailable).|2.5.26
[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 _0x99dc=['CmHopper','cm_hopper','phone','priority','lodash','api','bluebird','request-promise','path','rimraf','../../config/environment','./cmHopper.attributes','exports','define'];(function(_0x421196,_0x1cbd94){var _0x2738af=function(_0xc956ff){while(--_0xc956ff){_0x421196['push'](_0x421196['shift']());}};_0x2738af(++_0x1cbd94);}(_0x99dc,0x1c4));var _0xc99d=function(_0x41bdd4,_0x3d5c76){_0x41bdd4=_0x41bdd4-0x0;var _0x5c03a6=_0x99dc[_0x41bdd4];return _0x5c03a6;};'use strict';var _=require(_0xc99d('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xc99d('0x1'));var moment=require('moment');var BPromise=require(_0xc99d('0x2'));var rp=require(_0xc99d('0x3'));var fs=require('fs');var path=require(_0xc99d('0x4'));var rimraf=require(_0xc99d('0x5'));var config=require(_0xc99d('0x6'));var attributes=require(_0xc99d('0x7'));module[_0xc99d('0x8')]=function(_0x22a1f2,_0x12107e){return _0x22a1f2[_0xc99d('0x9')](_0xc99d('0xa'),attributes,{'tableName':_0xc99d('0xb'),'paranoid':![],'indexes':[{'name':'scheduledat','fields':['scheduledat']},{'name':_0xc99d('0xc'),'fields':[_0xc99d('0xc')]},{'name':_0xc99d('0xd'),'fields':['priority']}],'timestamps':!![]});};