Built motion from commit 47436d59.|2.6.7
[motion2.git] / server / api / disposition / disposition.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 _0x7a96=['OpenchannelAccountId','name_whatsapp','WhatsappAccountId','util','api','moment','bluebird','request-promise','path','./disposition.attributes','exports','define','Disposition','name_voice','name','ListId','name_chat','ChatWebsiteId','name_mail','SmsAccountId','FaxAccountId','name_openchannel'];(function(_0x53abe5,_0x33a9e5){var _0xc1c37e=function(_0xd53c6e){while(--_0xd53c6e){_0x53abe5['push'](_0x53abe5['shift']());}};_0xc1c37e(++_0x33a9e5);}(_0x7a96,0xb3));var _0x67a9=function(_0x3a60fb,_0x4003cd){_0x3a60fb=_0x3a60fb-0x0;var _0x37c1fb=_0x7a96[_0x3a60fb];return _0x37c1fb;};'use strict';var _=require('lodash');var util=require(_0x67a9('0x0'));var logger=require('../../config/logger')(_0x67a9('0x1'));var moment=require(_0x67a9('0x2'));var BPromise=require(_0x67a9('0x3'));var rp=require(_0x67a9('0x4'));var fs=require('fs');var path=require(_0x67a9('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x67a9('0x6'));module[_0x67a9('0x7')]=function(_0x217ea4,_0x360c65){return _0x217ea4[_0x67a9('0x8')](_0x67a9('0x9'),attributes,{'tableName':'tools_dispositions','paranoid':![],'indexes':[{'unique':!![],'name':_0x67a9('0xa'),'fields':[_0x67a9('0xb'),_0x67a9('0xc')]},{'unique':!![],'name':_0x67a9('0xd'),'fields':[_0x67a9('0xb'),_0x67a9('0xe')]},{'unique':!![],'name':_0x67a9('0xf'),'fields':[_0x67a9('0xb'),'MailAccountId']},{'unique':!![],'name':'name_sms','fields':[_0x67a9('0xb'),_0x67a9('0x10')]},{'unique':!![],'name':'name_fax','fields':[_0x67a9('0xb'),_0x67a9('0x11')]},{'unique':!![],'name':_0x67a9('0x12'),'fields':['name',_0x67a9('0x13')]},{'unique':!![],'name':_0x67a9('0x14'),'fields':[_0x67a9('0xb'),_0x67a9('0x15')]}],'timestamps':!![]});};