Built motion from commit (unavailable).|2.5.4
[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 _0x4eb2=['rimraf','../../config/environment','./cmHopper.attributes','exports','CmHopper','cm_hopper','scheduledat','phone','priority','lodash','../../config/logger','api','moment','bluebird','request-promise','path'];(function(_0x5db4b0,_0x17dfb5){var _0x126c9f=function(_0x1f87f2){while(--_0x1f87f2){_0x5db4b0['push'](_0x5db4b0['shift']());}};_0x126c9f(++_0x17dfb5);}(_0x4eb2,0x129));var _0x24eb=function(_0x2b7764,_0x2606f1){_0x2b7764=_0x2b7764-0x0;var _0x848dcb=_0x4eb2[_0x2b7764];return _0x848dcb;};'use strict';var _=require(_0x24eb('0x0'));var util=require('util');var logger=require(_0x24eb('0x1'))(_0x24eb('0x2'));var moment=require(_0x24eb('0x3'));var BPromise=require(_0x24eb('0x4'));var rp=require(_0x24eb('0x5'));var fs=require('fs');var path=require(_0x24eb('0x6'));var rimraf=require(_0x24eb('0x7'));var config=require(_0x24eb('0x8'));var attributes=require(_0x24eb('0x9'));module[_0x24eb('0xa')]=function(_0x39be5f,_0x442ece){return _0x39be5f['define'](_0x24eb('0xb'),attributes,{'tableName':_0x24eb('0xc'),'paranoid':![],'indexes':[{'name':_0x24eb('0xd'),'fields':['scheduledat']},{'name':_0x24eb('0xe'),'fields':[_0x24eb('0xe')]},{'name':_0x24eb('0xf'),'fields':['priority']}],'timestamps':!![]});};