e2f12a1389d3295f7dc69ec4c08d3edcaaa1670d
[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 _0x152f=['cm_hopper','scheduledat','phone','priority','lodash','util','../../config/logger','api','bluebird','request-promise','path','rimraf','../../config/environment','./cmHopper.attributes','exports','define','CmHopper'];(function(_0x159359,_0x2f1ec2){var _0xa0ef58=function(_0x24ad05){while(--_0x24ad05){_0x159359['push'](_0x159359['shift']());}};_0xa0ef58(++_0x2f1ec2);}(_0x152f,0x125));var _0xf152=function(_0x3ce3c,_0x319337){_0x3ce3c=_0x3ce3c-0x0;var _0x55a2c9=_0x152f[_0x3ce3c];return _0x55a2c9;};'use strict';var _=require(_0xf152('0x0'));var util=require(_0xf152('0x1'));var logger=require(_0xf152('0x2'))(_0xf152('0x3'));var moment=require('moment');var BPromise=require(_0xf152('0x4'));var rp=require(_0xf152('0x5'));var fs=require('fs');var path=require(_0xf152('0x6'));var rimraf=require(_0xf152('0x7'));var config=require(_0xf152('0x8'));var attributes=require(_0xf152('0x9'));module[_0xf152('0xa')]=function(_0x1c274c,_0x782a99){return _0x1c274c[_0xf152('0xb')](_0xf152('0xc'),attributes,{'tableName':_0xf152('0xd'),'paranoid':![],'indexes':[{'name':_0xf152('0xe'),'fields':[_0xf152('0xe')]},{'name':_0xf152('0xf'),'fields':[_0xf152('0xf')]},{'name':_0xf152('0x10'),'fields':['priority']}],'timestamps':!![]});};