Built motion from commit (unavailable).|2.4.19
[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 _0x5f51=['scheduledat','phone','priority','lodash','util','../../config/logger','api','bluebird','request-promise','rimraf','exports','define','cm_hopper'];(function(_0x571bbc,_0x242132){var _0x3e8edb=function(_0x5cc0a2){while(--_0x5cc0a2){_0x571bbc['push'](_0x571bbc['shift']());}};_0x3e8edb(++_0x242132);}(_0x5f51,0x1bd));var _0x15f5=function(_0x2f5ac5,_0x1ee939){_0x2f5ac5=_0x2f5ac5-0x0;var _0x37c9a8=_0x5f51[_0x2f5ac5];return _0x37c9a8;};'use strict';var _=require(_0x15f5('0x0'));var util=require(_0x15f5('0x1'));var logger=require(_0x15f5('0x2'))(_0x15f5('0x3'));var moment=require('moment');var BPromise=require(_0x15f5('0x4'));var rp=require(_0x15f5('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x15f5('0x6'));var config=require('../../config/environment');var attributes=require('./cmHopper.attributes');module[_0x15f5('0x7')]=function(_0x100216,_0x55e347){return _0x100216[_0x15f5('0x8')]('CmHopper',attributes,{'tableName':_0x15f5('0x9'),'paranoid':![],'indexes':[{'name':'scheduledat','fields':[_0x15f5('0xa')]},{'name':_0x15f5('0xb'),'fields':[_0x15f5('0xb')]},{'name':_0x15f5('0xc'),'fields':[_0x15f5('0xc')]}],'timestamps':!![]});};