6f2d35ad86c14e4fc8b1d4b4d83764e97ca0055f
[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 _0xa97d=['bluebird','rimraf','../../config/environment','./cmHopper.attributes','exports','define','CmHopper','cm_hopper','scheduledat','phone','util','../../config/logger','api','moment'];(function(_0xd261f1,_0x334b12){var _0x34d88b=function(_0x4afc08){while(--_0x4afc08){_0xd261f1['push'](_0xd261f1['shift']());}};_0x34d88b(++_0x334b12);}(_0xa97d,0x168));var _0xda97=function(_0x58df23,_0x3e9eb9){_0x58df23=_0x58df23-0x0;var _0x2fcd18=_0xa97d[_0x58df23];return _0x2fcd18;};'use strict';var _=require('lodash');var util=require(_0xda97('0x0'));var logger=require(_0xda97('0x1'))(_0xda97('0x2'));var moment=require(_0xda97('0x3'));var BPromise=require(_0xda97('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0xda97('0x5'));var config=require(_0xda97('0x6'));var attributes=require(_0xda97('0x7'));module[_0xda97('0x8')]=function(_0x1dfa67,_0x1ca21a){return _0x1dfa67[_0xda97('0x9')](_0xda97('0xa'),attributes,{'tableName':_0xda97('0xb'),'paranoid':![],'indexes':[{'name':_0xda97('0xc'),'fields':[_0xda97('0xc')]},{'name':_0xda97('0xd'),'fields':[_0xda97('0xd')]},{'name':'priority','fields':['priority']}],'timestamps':!![]});};