Built motion from commit (unavailable).|2.4.17
[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 _0xed37=['priority','../../config/logger','api','moment','request-promise','path','rimraf','../../config/environment','./cmHopper.attributes','exports','define','CmHopper','cm_hopper','scheduledat','phone'];(function(_0x29e0eb,_0x9acb52){var _0x597d2d=function(_0x596ef9){while(--_0x596ef9){_0x29e0eb['push'](_0x29e0eb['shift']());}};_0x597d2d(++_0x9acb52);}(_0xed37,0x79));var _0x7ed3=function(_0x167cc1,_0x56ef5a){_0x167cc1=_0x167cc1-0x0;var _0x10bc4b=_0xed37[_0x167cc1];return _0x10bc4b;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x7ed3('0x0'))(_0x7ed3('0x1'));var moment=require(_0x7ed3('0x2'));var BPromise=require('bluebird');var rp=require(_0x7ed3('0x3'));var fs=require('fs');var path=require(_0x7ed3('0x4'));var rimraf=require(_0x7ed3('0x5'));var config=require(_0x7ed3('0x6'));var attributes=require(_0x7ed3('0x7'));module[_0x7ed3('0x8')]=function(_0x341f,_0x1bcfef){return _0x341f[_0x7ed3('0x9')](_0x7ed3('0xa'),attributes,{'tableName':_0x7ed3('0xb'),'paranoid':![],'indexes':[{'name':_0x7ed3('0xc'),'fields':[_0x7ed3('0xc')]},{'name':'phone','fields':[_0x7ed3('0xd')]},{'name':'priority','fields':[_0x7ed3('0xe')]}],'timestamps':!![]});};