Built motion from commit (unavailable).|2.5.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 _0x73fc=['phone','priority','../../config/logger','api','moment','path','rimraf','../../config/environment','exports','CmHopper','cm_hopper','scheduledat'];(function(_0x4a6b92,_0x53929c){var _0x303f17=function(_0x30a218){while(--_0x30a218){_0x4a6b92['push'](_0x4a6b92['shift']());}};_0x303f17(++_0x53929c);}(_0x73fc,0xf2));var _0xc73f=function(_0x24ddef,_0x5aab76){_0x24ddef=_0x24ddef-0x0;var _0x157f8e=_0x73fc[_0x24ddef];return _0x157f8e;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xc73f('0x0'))(_0xc73f('0x1'));var moment=require(_0xc73f('0x2'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xc73f('0x3'));var rimraf=require(_0xc73f('0x4'));var config=require(_0xc73f('0x5'));var attributes=require('./cmHopper.attributes');module[_0xc73f('0x6')]=function(_0x1ea3f8,_0x460514){return _0x1ea3f8['define'](_0xc73f('0x7'),attributes,{'tableName':_0xc73f('0x8'),'paranoid':![],'indexes':[{'name':_0xc73f('0x9'),'fields':[_0xc73f('0x9')]},{'name':'phone','fields':[_0xc73f('0xa')]},{'name':_0xc73f('0xb'),'fields':[_0xc73f('0xb')]}],'timestamps':!![]});};