Built motion from commit (unavailable).|2.5.14
[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 _0x5515=['path','rimraf','../../config/environment','./cmHopper.attributes','exports','define','cm_hopper','scheduledat','priority','util','../../config/logger','api','moment','bluebird','request-promise'];(function(_0x390680,_0x44392b){var _0x117c4a=function(_0x48759b){while(--_0x48759b){_0x390680['push'](_0x390680['shift']());}};_0x117c4a(++_0x44392b);}(_0x5515,0x9f));var _0x5551=function(_0x54c8ed,_0x4ff37c){_0x54c8ed=_0x54c8ed-0x0;var _0x5bb93e=_0x5515[_0x54c8ed];return _0x5bb93e;};'use strict';var _=require('lodash');var util=require(_0x5551('0x0'));var logger=require(_0x5551('0x1'))(_0x5551('0x2'));var moment=require(_0x5551('0x3'));var BPromise=require(_0x5551('0x4'));var rp=require(_0x5551('0x5'));var fs=require('fs');var path=require(_0x5551('0x6'));var rimraf=require(_0x5551('0x7'));var config=require(_0x5551('0x8'));var attributes=require(_0x5551('0x9'));module[_0x5551('0xa')]=function(_0x4af3f6,_0x191c2c){return _0x4af3f6[_0x5551('0xb')]('CmHopper',attributes,{'tableName':_0x5551('0xc'),'paranoid':![],'indexes':[{'name':_0x5551('0xd'),'fields':[_0x5551('0xd')]},{'name':'phone','fields':['phone']},{'name':_0x5551('0xe'),'fields':['priority']}],'timestamps':!![]});};