Built motion from commit 00bf23f6.|2.6.16
[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 _0x998a=['Disposition','tools_dispositions','name_voice','name','ListId','ChatWebsiteId','name_mail','MailAccountId','name_sms','name_fax','OpenchannelAccountId','name_whatsapp','WhatsappAccountId','util','api','moment','bluebird','request-promise','path','../../config/environment','./disposition.attributes','define'];(function(_0x1093fd,_0x15d51a){var _0x4490df=function(_0x35e742){while(--_0x35e742){_0x1093fd['push'](_0x1093fd['shift']());}};_0x4490df(++_0x15d51a);}(_0x998a,0xd3));var _0xa998=function(_0x436168,_0x49b287){_0x436168=_0x436168-0x0;var _0x37e9f3=_0x998a[_0x436168];return _0x37e9f3;};'use strict';var _=require('lodash');var util=require(_0xa998('0x0'));var logger=require('../../config/logger')(_0xa998('0x1'));var moment=require(_0xa998('0x2'));var BPromise=require(_0xa998('0x3'));var rp=require(_0xa998('0x4'));var fs=require('fs');var path=require(_0xa998('0x5'));var rimraf=require('rimraf');var config=require(_0xa998('0x6'));var attributes=require(_0xa998('0x7'));module['exports']=function(_0x34c0d4,_0x28064a){return _0x34c0d4[_0xa998('0x8')](_0xa998('0x9'),attributes,{'tableName':_0xa998('0xa'),'paranoid':![],'indexes':[{'unique':!![],'name':_0xa998('0xb'),'fields':[_0xa998('0xc'),_0xa998('0xd')]},{'unique':!![],'name':'name_chat','fields':[_0xa998('0xc'),_0xa998('0xe')]},{'unique':!![],'name':_0xa998('0xf'),'fields':[_0xa998('0xc'),_0xa998('0x10')]},{'unique':!![],'name':_0xa998('0x11'),'fields':['name','SmsAccountId']},{'unique':!![],'name':_0xa998('0x12'),'fields':[_0xa998('0xc'),'FaxAccountId']},{'unique':!![],'name':'name_openchannel','fields':[_0xa998('0xc'),_0xa998('0x13')]},{'unique':!![],'name':_0xa998('0x14'),'fields':[_0xa998('0xc'),_0xa998('0x15')]}],'timestamps':!![]});};