Built motion from commit (unavailable).|2.5.22
[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 _0xecb2=['name_fax','FaxAccountId','name_openchannel','OpenchannelAccountId','name_whatsapp','WhatsappAccountId','lodash','api','request-promise','path','rimraf','../../config/environment','./disposition.attributes','exports','Disposition','tools_dispositions','name_voice','name','ListId','ChatWebsiteId','name_mail','MailAccountId','name_sms','SmsAccountId'];(function(_0x4b2cc6,_0x29ef43){var _0x3e0b08=function(_0x3b4131){while(--_0x3b4131){_0x4b2cc6['push'](_0x4b2cc6['shift']());}};_0x3e0b08(++_0x29ef43);}(_0xecb2,0xf6));var _0x2ecb=function(_0x55b4df,_0x5b6de8){_0x55b4df=_0x55b4df-0x0;var _0x56dbcd=_0xecb2[_0x55b4df];return _0x56dbcd;};'use strict';var _=require(_0x2ecb('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x2ecb('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x2ecb('0x2'));var fs=require('fs');var path=require(_0x2ecb('0x3'));var rimraf=require(_0x2ecb('0x4'));var config=require(_0x2ecb('0x5'));var attributes=require(_0x2ecb('0x6'));module[_0x2ecb('0x7')]=function(_0x4c169f,_0x51b28c){return _0x4c169f['define'](_0x2ecb('0x8'),attributes,{'tableName':_0x2ecb('0x9'),'paranoid':![],'indexes':[{'unique':!![],'name':_0x2ecb('0xa'),'fields':[_0x2ecb('0xb'),_0x2ecb('0xc')]},{'unique':!![],'name':'name_chat','fields':[_0x2ecb('0xb'),_0x2ecb('0xd')]},{'unique':!![],'name':_0x2ecb('0xe'),'fields':['name',_0x2ecb('0xf')]},{'unique':!![],'name':_0x2ecb('0x10'),'fields':[_0x2ecb('0xb'),_0x2ecb('0x11')]},{'unique':!![],'name':_0x2ecb('0x12'),'fields':['name',_0x2ecb('0x13')]},{'unique':!![],'name':_0x2ecb('0x14'),'fields':[_0x2ecb('0xb'),_0x2ecb('0x15')]},{'unique':!![],'name':_0x2ecb('0x16'),'fields':[_0x2ecb('0xb'),_0x2ecb('0x17')]}],'timestamps':!![]});};